:root {
  color-scheme: light;
  --river: #287b89;
  --deep: #17434d;
  --sage: #84a98c;
  --apricot: #f4a261;
  --mist: #edf7f8;
  --paper: #ffffff;
  --ink: #203138;
  --muted: #607077;
  --line: rgba(32, 49, 56, 0.14);
  --shadow: 0 20px 48px rgba(23, 67, 77, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.utility-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px max(22px, calc((100vw - 1180px) / 2));
  background: var(--deep);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.clinic-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  gap: 12px;
  padding: 16px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(32, 49, 56, 0.12);
  background: rgba(237, 247, 248, 0.93);
  backdrop-filter: blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--river);
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--deep);
  font-size: 22px;
}

.brand span span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-link,
.nav-tabs a,
.button,
.gallery-lock {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(40, 123, 137, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.appointment-link,
.button {
  border-color: var(--apricot);
  background: var(--apricot);
  color: #2b2118;
  cursor: pointer;
}

.button.alt {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.button.quiet {
  border-color: rgba(40, 123, 137, 0.24);
  background: #ffffff;
  color: var(--river);
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-tabs a[aria-current="page"] {
  background: var(--river);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(40, 123, 137, 0.24);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--deep);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--river);
}

.nav-toggle strong {
  font-size: 13px;
}

.gallery-lock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  background: var(--deep);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(23, 67, 77, 0.24);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 76px max(22px, calc((100vw - 1180px) / 2)) 48px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 67, 77, 0.86), rgba(23, 67, 77, 0.56) 48%, rgba(23, 67, 77, 0.12)),
    var(--hero-image, url("https://images.unsplash.com/photo-1628009368231-7bb7cfcb0def?auto=format&fit=crop&w=1800&q=80")) center / cover;
  color: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(0deg, rgba(23, 67, 77, 0.78), transparent);
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: #cbe9e5;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 70px;
  line-height: 0.98;
}

h2 {
  color: var(--deep);
  font-size: 46px;
  line-height: 1.08;
}

h3 {
  font-size: 22px;
}

.hero p:not(.eyebrow),
.lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 78px max(22px, calc((100vw - 1180px) / 2));
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 44px));
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric-band div {
  display: grid;
  gap: 5px;
  min-height: 116px;
  align-content: center;
  padding: 22px;
  background: #ffffff;
}

.metric-band strong {
  color: var(--river);
  font-size: 32px;
  line-height: 1;
}

.metric-band span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.section.white {
  background: #ffffff;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading .eyebrow,
.card .eyebrow,
.form-card .eyebrow {
  color: var(--river);
}

.section-heading p,
.card p,
.visit p,
.plan p,
.quote p,
.form-card p,
.care-list li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 32px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
}

.photo-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.card-grid,
.visit-grid,
.plan-grid,
.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.visit,
.plan,
.quote,
.form-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(23, 67, 77, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover,
.visit:hover,
.plan:hover,
.quote:hover,
.form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(23, 67, 77, 0.12);
}

.card strong,
.visit strong,
.plan strong {
  display: block;
  margin-bottom: 8px;
  color: var(--river);
  font-size: 18px;
}

.visit {
  display: grid;
  gap: 14px;
}

.visit span {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(132, 169, 140, 0.18);
  color: var(--deep);
  font-size: 13px;
  font-weight: 900;
}

.plan-grid {
  align-items: stretch;
}

.plan {
  display: grid;
  gap: 14px;
}

.plan .price {
  color: var(--deep);
  font-size: 34px;
  font-weight: 950;
}

.care-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.care-list li {
  padding-left: 28px;
  position: relative;
}

.care-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 24px;
}

.review-grid,
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-grid .quote strong {
  display: block;
  margin-bottom: 12px;
  color: var(--deep);
  font-size: 19px;
  line-height: 1.35;
}

.review-grid .quote span {
  color: var(--river);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.gallery-strip img {
  width: 100%;
  height: 310px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(23, 67, 77, 0.07);
}

.faq-item button {
  width: 100%;
  min-height: 58px;
  border: 0;
  padding: 0 20px;
  background: transparent;
  color: var(--deep);
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-item.is-open p {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--deep);
  font-size: 13px;
  font-weight: 950;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--river);
  font-weight: 950;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px max(22px, calc((100vw - 1180px) / 2)) 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--river);
  font-weight: 950;
}

@media (max-width: 840px) {
  .utility-bar,
  .header-row,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .clinic-header {
    position: static;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-tabs {
    display: none;
  }

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

  .hero {
    min-height: 520px;
    padding-top: 70px;
    padding-bottom: 46px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .split,
  .split.reverse,
  .card-grid,
  .visit-grid,
  .plan-grid,
  .prep-grid,
  .two-column,
  .form-grid,
  .metric-band,
  .review-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }
}

/* Client-ready interaction pass */
.nav-tabs {
  position: relative;
}

.nav-tabs a {
  position: relative;
  z-index: 1;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.nav-tabs a:hover,
.nav-tabs a:focus-visible {
  transform: translateY(-1px);
}

.menu-orbit {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border: 1px solid rgba(40, 123, 137, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40, 123, 137, 0.16), rgba(244, 162, 97, 0.18));
  opacity: 0;
  transition: transform 260ms ease, width 260ms ease, height 260ms ease, opacity 180ms ease;
  pointer-events: none;
}

.nav-toggle span {
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.interactive-surface {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.interactive-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(132, 169, 140, 0.2), transparent 36%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.interactive-surface > * {
  position: relative;
  z-index: 1;
}

.interactive-surface:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(23, 67, 77, 0.14);
}

.interactive-surface:hover::after {
  opacity: 1;
}

.form-card.is-success {
  border-color: rgba(40, 123, 137, 0.34);
  box-shadow: 0 18px 42px rgba(40, 123, 137, 0.12);
}

@media (max-width: 840px) {
  .nav-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease;
  }

  .nav-tabs.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-tabs a {
    min-width: 0;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .nav-tabs {
    grid-template-columns: 1fr;
  }

  .gallery-lock {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-indent: -999px;
  }

  .gallery-lock::before {
    content: "<";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 20px;
    text-indent: 0;
  }
}
