:root {
  --bg: #ececed;
  --surface: #f6f5f1;
  --ink: #264d5f;
  --ink-soft: #427182;
  --sand: #b7aa93;
  --sand-deep: #9f927b;
  --line: #d7d1c8;
  --white: #ffffff;
  --shadow: 0 15px 40px rgba(38, 77, 95, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Mulish", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(183, 170, 147, 0.24), transparent 33%),
    radial-gradient(circle at 90% 20%, rgba(66, 113, 130, 0.14), transparent 33%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  z-index: 10;
}

.social-rail {
  position: fixed;
  left: 0.9rem;
  top: 10.8rem;
  z-index: 15;
  display: grid;
  gap: 0.45rem;
}

.social-rail a {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(38, 77, 95, 0.25);
  background: rgba(246, 245, 241, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.top-links {
  background: var(--sand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.top-links__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.3rem;
  padding: 0.65rem 0;
}

.top-links a {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #e5dfd3;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.header-logo-wrap {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 330px;
}

.header-logo {
  mix-blend-mode: multiply;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  min-height: 1.6em;
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.tab-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #e5dfd3;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(38, 77, 95, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.08rem;
  padding: 0.5rem 1rem;
  min-width: 165px;
  text-align: center;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--ink-soft);
  background: transparent;
  color: var(--ink);
  border-radius: 0.5rem;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}

.menu-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  margin: 0.25rem 0;
  background: currentColor;
}

.welcome-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70vh;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #ece8df;
}

.welcome-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/spring-flowers-advicehouse.jpg") center center / cover no-repeat;
  opacity: 0.58;
  filter: saturate(122%) contrast(102%) brightness(101%);
  transform: scale(1.03);
  z-index: -2;
}

.welcome-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(229, 223, 211, 0.48), rgba(236, 232, 223, 0.54)),
    radial-gradient(circle at 12% 16%, rgba(38, 77, 95, 0.04), transparent 30%);
  z-index: -1;
}

.welcome-strip__content {
  padding: 6.8rem 0 7.3rem;
  text-align: center;
}

.welcome-strip h1 {
  margin: 0 auto;
  margin-bottom: 1.9rem;
  max-width: 900px;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateY(22px);
  animation: welcomeHeadingIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms forwards;
}

.welcome-actions {
  margin-top: 2.3rem;
  display: flex;
  justify-content: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: welcomeActionsIn 750ms ease 760ms forwards;
}

.welcome-actions .btn {
  width: 320px;
  max-width: calc(100vw - 3rem);
  padding: 0.95rem 2rem;
}

.kicker,
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sand-deep);
}

.hero .kicker {
  color: #f0e9dc;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
}

h3 {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.btn--solid:hover {
  background: #1f4250;
}

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink-soft);
}

.btn--ghost:hover {
  color: var(--white);
  background: var(--ink-soft);
}

.section {
  padding: clamp(3.6rem, 6vw, 6.2rem) 0;
}

.intro-section {
  background: linear-gradient(to bottom, rgba(246, 245, 241, 0.9), rgba(255, 255, 255, 0.84));
  border-bottom: 1px solid var(--line);
}

.intro-section__content {
  max-width: 880px;
  text-align: center;
}

.intro-section h2 {
  margin-bottom: 1rem;
}

.intro-section p {
  margin: 0;
  color: #365e6d;
}

.split-highlights {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(246, 245, 241, 0.92));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-stack {
  display: grid;
  gap: 1.6rem;
}

.split-row {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(38, 77, 95, 0.08);
}

.split-row--reverse {
  grid-template-columns: 0.97fr 1.03fr;
}

.split-row--reverse .split-media {
  order: 2;
}

.split-row--reverse .split-copy {
  order: 1;
}

.split-media {
  min-height: 340px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(88%);
}

.split-copy {
  padding: clamp(1.4rem, 2.8vw, 2.3rem);
  display: grid;
  align-content: center;
}

.split-copy h2 {
  margin-top: 0.35rem;
}

.split-copy p {
  max-width: 42ch;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.soft-card {
  background: linear-gradient(170deg, rgba(183, 170, 147, 0.13), rgba(183, 170, 147, 0.04));
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 10px 22px rgba(38, 77, 95, 0.08);
}

.soft-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
}

.section--services {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.52), rgba(246, 245, 241, 0.9));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 640px;
}

.reviews-intro {
  max-width: 640px;
}

.reviews-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(38, 77, 95, 0.08);
}

.review-card--loading,
.review-card--empty {
  display: grid;
  place-items: center;
  min-height: 120px;
}

.review-stars {
  margin: 0 0 0.45rem;
  color: #b89242;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.review-source {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.reviews-actions {
  margin-top: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 6px 14px rgba(38, 77, 95, 0.06);
}

.team-panel {
  background: var(--surface);
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(38, 77, 95, 0.07);
}

.map-placeholder {
  margin-top: 1rem;
  min-height: 200px;
  border: 1px dashed var(--ink-soft);
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: rgba(66, 113, 130, 0.08);
}

.location-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1rem;
}

.location-logo {
  max-width: 340px;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.logos-section {
  padding-top: 2.4rem;
  padding-bottom: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(246, 245, 241, 0.92));
  border-bottom: 1px solid var(--line);
}

.logos-section__inner {
  text-align: center;
}

.logo-carousel {
  margin: 1.2rem auto 0;
  max-width: 860px;
}

.logo-carousel__viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(38, 77, 95, 0.07);
}

.logo-carousel__track {
  display: flex;
  transition: transform 1000ms ease;
  will-change: transform;
}

.logo-slide {
  min-width: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.logo-slide img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-badge {
  border: 1px solid rgba(38, 77, 95, 0.24);
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  background: rgba(229, 223, 211, 0.52);
}

.logo-carousel__dots {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.logo-carousel__dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  border: 0;
  background: rgba(38, 77, 95, 0.3);
  cursor: pointer;
}

.logo-carousel__dot.is-active {
  background: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-intro {
  max-width: 770px;
}

.quick-contact-links {
  display: flex;
  gap: 1rem;
  margin: 0.7rem 0 1.2rem;
}

.quick-contact-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(38, 77, 95, 0.35);
  font-weight: 700;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.contact-form label {
  display: block;
  margin: 0.5rem 0 0.28rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d0d3;
  border-radius: 0.55rem;
  padding: 0.58rem 0.62rem;
  font: inherit;
  background: #fbfcfc;
}

.contact-form textarea {
  min-height: 94px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.checkbox input {
  margin-top: 0.2rem;
  width: auto;
}

.contact-aside {
  background: linear-gradient(170deg, rgba(183, 170, 147, 0.16), rgba(66, 113, 130, 0.06));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.contact-photo-stack {
  position: relative;
  min-height: 520px;
  margin-bottom: 0.9rem;
}

.contact-photo {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(38, 77, 95, 0.2);
  box-shadow: 0 12px 22px rgba(38, 77, 95, 0.16);
  background: var(--white);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(102%);
}

.contact-photo--main {
  width: min(100%, 430px);
  height: 440px;
}

.contact-photo--accent {
  position: absolute;
  right: 0.1rem;
  bottom: 0;
  width: min(74%, 330px);
  height: 250px;
  border-width: 4px;
  border-color: rgba(246, 245, 241, 0.95);
  transform: rotate(-2deg);
}

.map-view-section {
  background: transparent;
  border: 0;
  padding: 0;
}

.map-view-section .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.google-map-empty {
  margin-top: 0;
  min-height: 520px;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.google-map-frame {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.treatments-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 58vh;
  border-bottom: 1px solid var(--line);
  background: #ece8df;
}

.treatments-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/dentist-applying-sample-from-tooth-scale-to-happy-patient-teeth.jpg") center center / cover no-repeat;
  opacity: 0.42;
  z-index: -2;
}

.treatments-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(236, 232, 223, 0.78), rgba(236, 232, 223, 0.92)),
    radial-gradient(circle at 14% 16%, rgba(38, 77, 95, 0.08), transparent 38%);
  z-index: -1;
}

.treatments-hero__content {
  padding: clamp(4.2rem, 8vw, 6.5rem) 0;
  max-width: 760px;
}

.treatments-hero__content p {
  margin: 0;
  max-width: 58ch;
  color: #365e6d;
}

.treatments-hero__actions {
  margin-top: 1.6rem;
}

.treatments-overview {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(246, 245, 241, 0.9));
  border-bottom: 1px solid var(--line);
}

.treatments-overview__intro {
  max-width: 70ch;
}

.treatments-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 1rem;
}

.treatment-card {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  gap: 0.8rem;
  padding: 0.25rem;
}

.treatment-circle {
  width: min(100%, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(38, 77, 95, 0.2);
  background: linear-gradient(160deg, rgba(38, 77, 95, 0.84), rgba(66, 113, 130, 0.72));
  box-shadow: 0 10px 22px rgba(38, 77, 95, 0.14);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.treatment-card__logo {
  width: 100%;
  max-width: 132px;
  height: auto;
  object-fit: contain;
  filter: saturate(104%) drop-shadow(0 1px 1px rgba(255, 255, 255, 0.2));
}

.treatment-card h3 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
}

.treatments-process {
  background: linear-gradient(to bottom, rgba(246, 245, 241, 0.72), rgba(255, 255, 255, 0.84));
}

.treatments-process__inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.4rem;
  align-items: start;
}

.treatments-process ol {
  margin: 0;
  padding-left: 1.2rem;
}

.treatments-process li + li {
  margin-top: 0.55rem;
}

.site-footer {
  padding-top: 3rem;
  background: #2a4f60;
  color: #e8f2f3;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.site-footer h3 {
  color: #f7ece0;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  color: #d9e8ea;
  text-decoration: none;
  margin: 0.28rem 0;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
  padding: 1rem 0 1.6rem;
  font-size: 0.9rem;
}

.footer-base p {
  margin: 0.4rem 0;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 430px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  padding: 0.8rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcomeHeadingIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes welcomeActionsIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-strip h1,
  .welcome-actions {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .social-rail {
    display: none;
  }

  .grid-two,
  .split-row,
  .reviews-grid,
  .treatments-grid,
  .treatments-process__inner,
  .contact-layout,
  .cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-row--reverse .split-media,
  .split-row--reverse .split-copy {
    order: initial;
  }

  .split-media {
    min-height: 250px;
  }

  .logo-slide {
    min-height: 132px;
  }

  .logo-slide img {
    max-height: 62px;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding: 0.4rem 0 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .site-header__inner {
    min-height: 3.8rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin: 0.65rem 0;
    padding: 0.35rem 0.5rem;
  }

  .main-nav a {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.5rem;
    text-align: center;
    border-top: 1px solid var(--line);
  }

  .welcome-strip {
    min-height: 58vh;
  }

  .welcome-strip__content {
    padding: 5.2rem 0 5.6rem;
  }

  .treatments-hero {
    min-height: 48vh;
  }

  .treatments-hero__actions {
    margin-top: 1.1rem;
  }

  .welcome-actions .btn {
    width: 100%;
    max-width: 420px;
  }

  .cookie-banner {
    left: 1rem;
    max-width: unset;
  }

  .contact-photo-stack {
    min-height: auto;
    display: grid;
    gap: 0.85rem;
  }

  .contact-photo--main,
  .contact-photo--accent {
    position: static;
    width: 100%;
    height: 250px;
    transform: none;
  }

  .contact-photo--accent {
    border-width: 1px;
    border-color: rgba(38, 77, 95, 0.2);
  }
}
