/* Your Family Dental — site styles (vanilla CSS, no build step) */

:root {
  --ink: #0b0c0f;
  --text: #2b2e35;
  --muted: #5d626b;
  --line: #e2e4e7;
  --surface: #f1f2f1;
  --white: #fff;
  --brand: #2f5597;        /* logo blue */
  --brand-deep: #1f2a44;   /* buttons */
  --brand-gray: #7e7979;   /* logo gray */
  --star: #f4b400;
  --error: #9b1c1c;

  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --container: 1240px;
  --gutter: 24px;
  --header-h: 84px;
  --section: 112px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ─── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 16px/1.6 var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; }
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: var(--ink); font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.card-title { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }

/* Mono badge with a small diamond (section eyebrows) */
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.badge-dark { border-color: transparent; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  font: 700 14px/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { background: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--surface); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: inherit; padding-inline: 10px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 13px; }
.btn i { font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row-center { justify-content: center; margin-top: 48px; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .96); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
body:not(.has-hero) main { padding-top: var(--header-h); }
.has-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; color: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; flex: none; }
.brand-logo { width: 150px; height: auto; }
.brand-white { display: none; }
.has-hero .site-header:not(.is-scrolled) .brand-color { display: none; }
.has-hero .site-header:not(.is-scrolled) .brand-white { display: block; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-item > a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 8px; white-space: nowrap; font-size: 14px; font-weight: 500; text-decoration: none; border-radius: 6px; }
.menu-item > a:hover, .menu-item > a.is-active { color: var(--brand); }
.has-hero .site-header:not(.is-scrolled) .menu-item > a:hover,
.has-hero .site-header:not(.is-scrolled) .menu-item > a.is-active { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; margin-left: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: 11px; }
.sub-toggle i { transition: transform .25s var(--ease); }
.is-open > .sub-toggle i { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; left: 0; z-index: 10; min-width: 240px; padding: 10px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(11, 12, 15, .12);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 8px; font-size: 15px; text-decoration: none; }
.submenu a:hover, .submenu a[aria-current] { background: var(--surface); color: var(--brand); }
.submenu a i { font-size: 11px; color: var(--muted); }
.submenu-wide { display: grid; grid-template-columns: repeat(3, minmax(210px, 1fr)); gap: 2px; left: 50%; translate: -50% 0; width: max-content; }
.submenu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.submenu-all a { font: 500 13px var(--font-mono); text-transform: uppercase; letter-spacing: .03em; }

.header-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-cta .btn, .header-cta .btn-call { white-space: nowrap; }
.header-cta .btn-primary { padding-inline: 16px; }
.header-cta .btn-call { padding-inline: 12px; }
.header-cta .btn-call { font-family: var(--font-body); text-transform: none; font-size: 15px; letter-spacing: 0; }
.mobile-call, .nav-toggle { display: none; }
.nav-mobile-cta { display: none; }

@media (min-width: 1280px) {
  .main-nav { margin-left: 16px; }
  .menu-item:hover > .submenu, .menu-item:focus-within > .submenu, .menu-item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 1279px) {
  :root { --header-h: 72px; }
  .brand-logo { width: 128px; }
  .header-cta { margin-left: auto; }
  .header-cta .btn-call { display: none; }
  .mobile-call, .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; }
  .mobile-call { border-radius: 50%; border: 1px solid currentColor; text-decoration: none; }
  .nav-toggle { flex-direction: column; gap: 5px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
  .nav-toggle span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 40; overflow-y: auto; padding: 16px var(--gutter) 40px;
    background: #fff; color: var(--ink); border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }
  body.nav-open .brand-color { display: block !important; }
  body.nav-open .brand-white { display: none !important; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu-item > a { flex: 1; min-height: 56px; font-size: 18px; padding: 8px 0; color: var(--ink) !important; text-decoration: none !important; }
  .sub-toggle { width: 56px; height: 56px; margin: 0; font-size: 14px; }
  .submenu, .submenu-wide {
    position: static; display: none; width: 100%; min-width: 0; translate: none; transform: none; opacity: 1; visibility: visible;
    padding: 0 0 12px; border: 0; box-shadow: none; border-radius: 0; grid-template-columns: 1fr;
  }
  .is-open > .submenu { display: block; }
  .submenu a { padding-left: 12px; color: var(--muted); }
  .nav-mobile-cta { display: grid; gap: 12px; margin-top: 24px; }
}
@media (max-width: 639px) {
  .header-cta { display: none; }
  .mobile-call { margin-left: auto; }
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11, 12, 15, .86) 0%, rgba(11, 12, 15, .62) 45%, rgba(11, 12, 15, .18) 100%),
              linear-gradient(0deg, rgba(11, 12, 15, .55) 0%, rgba(11, 12, 15, 0) 40%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-content: end; gap: 48px 32px; padding-top: calc(var(--header-h) + 72px); padding-bottom: 56px; }
.hero-copy { max-width: 680px; grid-column: 1 / -1; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { color: rgba(255, 255, 255, .86); max-width: 540px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 28px; align-self: end; font: 500 13px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .85); }
.hero-tags li { display: flex; align-items: center; }
.hero-tags li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .35); }
.hero-review { width: 280px; padding: 14px 18px; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); }
.hero-review blockquote { margin: 6px 0 4px; font: 600 14px/1.4 var(--font-head); }
.hero-review figcaption { font-size: 13px; font-weight: 600; }
.hero-review figcaption span { font-weight: 400; color: var(--muted); }
.hero-review figcaption span::before { content: "· "; }
.stars { display: inline-flex; gap: 3px; color: var(--star); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-anim { animation: fade-up .9s var(--ease) both; }
  .hero-tags.hero-anim { animation-delay: .15s; }
  .hero-review.hero-anim { animation-delay: .3s; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; gap: 32px; }
  .hero::before { background: linear-gradient(0deg, rgba(11, 12, 15, .9) 0%, rgba(11, 12, 15, .6) 60%, rgba(11, 12, 15, .45) 100%); }
  .hero-review { width: 100%; }
  .hero-tags { flex-direction: column; gap: 6px; }
  .hero-tags li + li { padding-left: 0; border-left: 0; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* ─── Sections ─────────────────────────────────────────────────────────── */
.section { padding: var(--section) 0; }
.section-tight { padding-top: calc(var(--section) * .6); }
.section-gray { background: var(--surface); }
.section-gray .badge { border-color: transparent; }
.section-dark { background: var(--ink); color: #b9bdc5; }
.section-dark .h2 { color: #fff; }
.section-head { max-width: 860px; margin: 0 auto 56px; text-align: center; }
.h2-statement { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.section-split-head, .intro-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.intro-text { font-size: 17px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Media cards (office photo + welcome video) */
.media-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.media-tall { aspect-ratio: 9 / 16; }
.media-card { position: relative; height: 540px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media-card:hover img { transform: scale(1.03); }
.media-wide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11, 12, 15, .28); pointer-events: none; }
.media-card figcaption { z-index: 2; position: absolute; inset: auto 0 0; padding: 80px 28px 26px; background: linear-gradient(0deg, rgba(11, 12, 15, .75), rgba(11, 12, 15, 0)); color: #fff; }
.media-title { display: block; font: 600 22px/1.3 var(--font-head); color: #fff; }
.media-text { display: block; margin-top: 4px; color: rgba(255, 255, 255, .85); }
.media-title-top { position: absolute; top: 22px; left: 24px; z-index: 2; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.video-play {
  position: absolute; top: 50%; left: 50%; z-index: 2; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 22px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease), background-color .3s;
}
.video-play i { margin-left: 4px; }
.video-play:hover { transform: scale(1.08); background: #fff; }

/* Feature cards */
.feature { padding: 30px 28px 32px; background: var(--surface); border-radius: var(--radius); }
.feature p { color: var(--muted); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--brand); font-size: 19px; }

/* Doctor */
.doctor { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.doctor-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #ddd; }
.doctor-photo img { width: 100%; aspect-ratio: 735 / 792; object-fit: cover; }
.doctor-photo figcaption { position: absolute; left: 20px; bottom: 20px; padding: 14px 18px; background: #fff; border-radius: 12px; }
.doctor-photo strong { display: block; font: 600 18px/1.3 var(--font-head); color: var(--ink); }
.doctor-photo span { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doctor-copy > p:not(.badge) { font-size: 17px; }
.facts { margin-top: 28px; border-top: 1px solid #d9dbde; }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #d9dbde; color: var(--ink); font-weight: 500; }
.fact-label { font: 500 12px/1.9 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Services */
.services { padding-bottom: 0; }
.services-band { position: relative; padding: var(--section) 0 220px; background: var(--ink); color: rgba(255, 255, 255, .85); overflow: hidden; }
.services-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.3) saturate(.8); transform: scale(1.06); }
.services-head { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 64px; align-items: end; }
.services-head .h2 { color: #fff; }
.service-cards { position: relative; margin-top: -150px; }
.service-card { display: flex; flex-direction: column; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(11, 12, 15, .08); }
.service-card img { width: 100%; aspect-ratio: 520 / 380; object-fit: cover; border-radius: 14px; }
.service-body { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 26px 18px 18px; text-align: center; }
.service-body p { color: var(--muted); flex: 1; margin-bottom: 22px; }
.service-list { margin-top: 56px; display: grid; grid-template-columns: 180px 1fr; gap: 16px 32px; align-items: start; padding-top: 32px; border-top: 1px solid var(--line); }
.service-list-title { font: 500 13px/44px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.chips a:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.rounded { border-radius: var(--radius-lg); }
.split-media img { width: 100%; aspect-ratio: 734 / 520; object-fit: cover; }
.split-copy > p:not(.badge) { font-size: 17px; }
.check-list { display: grid; gap: 12px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.check-list li::before { content: "\f00c"; font: 900 12px/1 "Font Awesome 6 Free"; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--surface); color: var(--brand); }

/* Reviews */
.reviews { align-items: stretch; }
.review { display: flex; flex-direction: column; padding: 28px; background: #fff; border-radius: var(--radius-lg); color: var(--text); }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.review-g { font-size: 18px; color: var(--muted); }
.review blockquote { flex: 1; font-size: 16px; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-size: 16px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-deep); color: #fff; font: 600 17px var(--font-head); }

/* Contact */
.contact { position: relative; padding: var(--section) 0; background: #eef2f8; color: var(--text); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.contact .h2 { margin-bottom: 18px; }
.contact .lead { margin-bottom: 14px; color: var(--ink); }
.contact-points { list-style: none; display: grid; gap: 14px; margin: 32px 0 0; padding: 0; }
.contact-points li { display: flex; align-items: center; gap: 16px; }
.contact-points i { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--brand); font-size: 17px; box-shadow: 0 1px 0 rgba(31, 42, 68, .06), 0 6px 16px rgba(31, 42, 68, .08); }
.contact-points span { display: block; font-size: 13px; color: var(--muted); }
.contact-points a, .contact-points strong { display: block; font: 600 18px/1.35 var(--font-head); color: var(--ink); text-decoration: none; }
.contact-points a:hover { color: var(--brand); }
.form-card { padding: 40px; background: #fff; color: var(--text); border: 1px solid rgba(31, 42, 68, .08); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(31, 42, 68, .10); }
.form-title { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* Forms */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; background: #f3f5f9;
  font: 400 16px/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 85, 151, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consents { display: grid; gap: 12px; margin: 8px 0 20px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-deep); }
.consent-links { margin: 0; font-size: 13px; color: var(--muted); }
.consent-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); }
.form-status { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: var(--error); font-size: 14px; }
.form-status.is-ok { background: #e8f5ec; color: #17633a; }
.form-submit { width: 100%; }

/* Office + map */
.office { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.map { min-height: 460px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }
.office-card { padding: 36px; background: var(--surface); border-radius: var(--radius-lg); }
.office-card .badge { border-color: transparent; }
.office-card .h3 { margin-bottom: 18px; }
.office-list { display: grid; gap: 2px; margin-bottom: 20px; }
.office-list li { display: flex; gap: 12px; align-items: center; }
.office-list i { width: 16px; color: var(--brand); }
.office-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 500; }
.office-list a:hover { color: var(--brand); }
.hours { margin: 0 0 24px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #dcdfe2; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer { padding: 88px 0 32px; background: var(--ink); color: #a7abb3; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr 2fr 1.1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand .brand-logo { width: 170px; }
.footer-tagline { margin-top: 18px; font: 600 20px/1.3 var(--font-head); color: #fff; }
.footer-brand .btn-row { margin-top: 24px; }
.footer-review { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; }
.footer-title { margin-bottom: 18px; font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.35; padding: 4px 0; }
.footer-services ul { columns: 2; column-gap: 24px; }
.footer-services li { break-inside: avoid; }
.footer-col address a, .footer-phone { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.footer-phone { margin-top: 4px; font: 600 18px var(--font-head); }
.footer-hours { margin: 16px 0 0; }
.footer-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.footer-hours dd { margin: 0; color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff; transition: background-color .2s, border-color .2s; }
.social a:hover { background: #fff; color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ─── Scroll reveals ───────────────────────────────────────────────────── */
.js [data-reveal], .js [data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible, .js [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1079px) {
  :root { --section: 88px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .service-cards > .service-card:last-child:nth-child(odd) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .service-cards > .service-card:last-child:nth-child(odd) img { height: 100%; aspect-ratio: auto; }
  .doctor, .split, .contact-inner { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .office { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 360px; }
  .service-list { grid-template-columns: 1fr; }
  .service-list-title { line-height: 1.4; }
}
@media (max-width: 899px) {
  .intro-head, .section-split-head, .services-head { grid-template-columns: 1fr; }
  .doctor, .split, .contact-inner { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 520px; }
  .media-grid { grid-template-columns: 1fr auto; }
  .media-card { height: 440px; }
}
@media (max-width: 767px) {
  :root { --section: 72px; --gutter: 16px; }
  .grid-3, .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
  .service-cards > .service-card:last-child:nth-child(odd) { display: flex; }
  .service-cards > .service-card:last-child:nth-child(odd) img { height: auto; aspect-ratio: 520 / 380; }
  .media-grid { grid-template-columns: 1fr; }
  .media-wide { height: 280px; }
  .media-tall { height: auto; width: 100%; max-width: 320px; margin: 0 auto; }
  .media-card figcaption { padding: 60px 20px 20px; }
  .section-head { text-align: left; margin-bottom: 40px; }
  .btn-row-center { justify-content: stretch; }
  .btn-row-center .btn, .split-copy .btn-row .btn, .doctor-copy .btn-row .btn { flex: 1 1 100%; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .services-band { padding-bottom: 180px; }
  .service-cards { margin-top: -120px; }
  .form-card { padding: 24px 18px; }
  .office-card { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; }
}
