/* ============================================================
   GMCClinics — Jumeirah Dental
   Clinical-premium dental clinic, Jumeirah Beach Road, Dubai
   Palette + type from research/brand-system.md
   ============================================================ */

:root {
  --bg: #F6FBFC;
  --surface: #FFFFFF;
  --text: #10202B;
  --ink: #0E2A33;
  --muted: #647985;
  --primary: #0D7C8A;
  --primary-deep: #0A6573;
  --secondary: #17324D;
  --secondary-deep: #102539;
  --accent: #7AC6C4;
  --accent-soft: #E4F4F3;
  --border: #D8ECEF;
  --focus: #0D7C8A;
  --photo-light: #D8EAFC;

  --shadow-sm: 0 1px 2px rgba(16, 32, 43, .05), 0 1px 3px rgba(16, 32, 43, .04);
  --shadow-md: 0 6px 18px rgba(16, 32, 43, .07), 0 2px 6px rgba(16, 32, 43, .04);
  --shadow-lg: 0 24px 60px rgba(13, 51, 64, .14), 0 8px 24px rgba(16, 32, 43, .08);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --header-h: 70px;

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; color: var(--ink); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 116px); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { color: var(--muted); font-size: clamp(17px, 2vw, 19px); margin-top: 18px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: #33454f; }

/* pulse line motif (derived from logo heartbeat mark) */
.pulse {
  width: 100%; height: 22px;
  color: var(--accent);
  opacity: .9;
}
.pulse svg { width: 100%; height: 100%; display: block; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--primary);
  --b-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .005em;
  border: 1.5px solid transparent;
  background: var(--b-bg);
  color: var(--b-fg);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { box-shadow: 0 8px 20px rgba(13, 124, 138, .28); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13, 124, 138, .34); }
.btn-secondary { --b-bg: #fff; --b-fg: var(--secondary); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--secondary); }
.btn-ghost:hover { color: var(--primary); }
.btn-light { --b-bg: #fff; --b-fg: var(--secondary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

/* ---------- logo chip ---------- */
.logo-chip {
  background: #fff;
  border-radius: 14px;
  padding: 7px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(16, 32, 43, .10);
  flex: none;
}
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 251, 252, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 22px rgba(16, 32, 43, .06);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo-chip { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--secondary); letter-spacing: -.01em; }
.brand-text span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--secondary);
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--accent-soft); color: var(--primary-deep); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle, .header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--secondary);
}
.nav-toggle svg, .header-call svg { width: 22px; height: 22px; }

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 32, 43, .42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mobile-nav-panel a.mlink {
  padding: 15px 12px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-panel a.mlink:hover { background: var(--accent-soft); }
.mclose { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; }
.mclose svg { width: 22px; height: 22px; }
.mobile-nav-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--primary); }
.hero-copy .lead { margin-bottom: 26px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 16px 8px 12px;
  box-shadow: var(--shadow-sm);
}
.rating-chip .stars { color: #F2A93B; letter-spacing: 1px; font-size: 15px; }
.rating-chip b { font-family: var(--font-display); font-size: 16px; color: var(--secondary); }
.rating-chip span { font-size: 14px; color: var(--muted); }
.hero-addr { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-addr svg { width: 17px; height: 17px; color: var(--primary); flex: none; }

/* arched hero media (logo-circle motif) */
.hero-media { position: relative; }
.arch {
  position: relative;
  border-radius: 260px 260px var(--r-lg) var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 7px solid #fff;
  aspect-ratio: 4 / 4.4;
  background: var(--accent-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-ring {
  position: absolute;
  inset: -34px -34px auto auto;
  width: 150px; height: 150px;
  border: 2px dashed var(--accent);
  border-radius: 50%;
  opacity: .5;
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 30px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
}
.hero-badge .hb-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--primary); flex: none; }
.hero-badge .hb-icon svg { width: 22px; height: 22px; }
.hero-badge b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--secondary); }
.hero-badge span { font-size: 13px; color: var(--muted); }

/* ---------- trust strip ---------- */
.trust {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item { padding: 26px 22px; text-align: center; border-right: 1px solid var(--border); }
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); color: var(--primary); letter-spacing: -.02em; }
.trust-item span { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; display: block; }

/* ============================================================
   PROCESS STRIP
   ============================================================ */
.process { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--surface); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 26px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.svc::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc:hover::after { transform: scaleY(1); }
.svc-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; color: var(--primary-deep); margin-bottom: 18px; }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; margin-bottom: 9px; }
.svc p { font-size: 15.5px; color: var(--muted); }
.svc .tag { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.disclaimer {
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 760px;
}
.disclaimer svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 2px; }

/* ============================================================
   FEATURE / QUOTE band
   ============================================================ */
.feature { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.feature-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4; border: 7px solid #fff; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.quote-mark { font-family: var(--font-display); font-size: 80px; line-height: .6; color: var(--accent); margin-bottom: 4px; }
.feature blockquote { margin: 0 0 22px; }
.feature blockquote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.25; color: var(--ink); letter-spacing: -.02em; }
.cite { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.cite .gicon { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.cite b { color: var(--secondary); font-family: var(--font-display); }

/* ============================================================
   STORY / ABOUT
   ============================================================ */
.story { background: var(--surface); }
.story-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story-media { position: relative; }
.story-media .arch2 { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.4; border: 7px solid #fff; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.story p + p { margin-top: 16px; }
.story p { color: #33454f; }
.story .pillrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14.5px;
}
.pill svg { width: 16px; height: 16px; }

/* ============================================================
   TEAM
   ============================================================ */
.team { background: var(--bg); }
.team-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.team-feature {
  grid-row: span 2;
  background: var(--secondary);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.team-feature .tf-photo { aspect-ratio: 4/3.2; overflow: hidden; background: #dfeef0; }
.team-feature .tf-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-feature .tf-body { padding: 24px 26px 28px; }
.team-feature .tf-role { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.team-feature h3 { color: #fff; font-size: 26px; margin: 8px 0 12px; }
.team-feature p { color: rgba(255, 255, 255, .78); font-size: 15px; }
.team-feature .flag { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, .85); font-weight: 600; }

.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mono {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), #d4eeec);
  color: var(--primary-deep);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.member h3 { font-size: 18.5px; margin-bottom: 5px; }
.member .role { font-size: 14px; color: var(--primary); font-weight: 600; }
.member .loc { font-size: 13px; color: var(--muted); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }
.member .loc svg { width: 14px; height: 14px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--surface); }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  cursor: zoom-in;
  border: 1px solid var(--border);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(16, 32, 43, .76));
  opacity: 0;
  transition: opacity .25s ease;
}
.gal-item:hover figcaption, .gal-item:focus-visible figcaption { opacity: 1; }
.gal-wide { grid-column: span 2; }
.gal-tall { grid-row: span 2; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(8, 20, 27, .92);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 86vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; }
.lb-close svg { width: 24px; height: 24px; }

/* ============================================================
   PATIENT INFO
   ============================================================ */
.patient { background: var(--bg); }
.patient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 48px); align-items: start; }
.hours-card {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 32px clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hours-card h3 { color: #fff; font-size: 24px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.hours-card h3 svg { width: 22px; height: 22px; color: var(--accent); }
.hours-card .sub { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 22px; }
.hours-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 16px; }
.hours-row:last-of-type { border-bottom: 0; }
.hours-row .day { color: rgba(255,255,255,.92); font-weight: 600; }
.hours-row .time { font-variant-numeric: tabular-nums; color: #fff; }
.hours-row.closed .time { color: var(--accent); }
.hours-foot { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.78); }
.hours-foot svg { width: 16px; height: 16px; color: var(--accent); }

.info-list { display: grid; gap: 16px; }
.info-item { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.info-item .ii-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--primary-deep); display: grid; place-items: center; flex: none; }
.info-item .ii-icon svg { width: 22px; height: 22px; }
.info-item h4 { font-family: var(--font-display); font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.info-item p { font-size: 15px; color: var(--muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; color: var(--secondary); margin-bottom: 7px; }
.field label .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13, 124, 138, .12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d4493f; box-shadow: 0 0 0 4px rgba(212, 73, 63, .1); }
.err { display: none; color: #c43b32; font-size: 13px; margin-top: 6px; font-weight: 600; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 16px; height: 16px; color: var(--primary); flex: none; margin-top: 1px; }
.form-success { display: none; text-align: center; padding: 20px 10px; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check svg { width: 34px; height: 34px; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

.visit-card { background: var(--secondary); color: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-placeholder {
  position: relative;
  aspect-ratio: 16/10;
  background:
    linear-gradient(rgba(13,51,64,.32), rgba(13,51,64,.32)),
    repeating-linear-gradient(45deg, #1d3c58 0 22px, #1a3650 22px 44px);
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255,255,255,.9);
}
.map-placeholder .pin { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 0 0 8px rgba(13,124,138,.3); }
.map-placeholder .pin svg { width: 28px; height: 28px; color: #fff; }
.map-placeholder b { font-family: var(--font-display); font-size: 18px; display: block; }
.map-placeholder span { font-size: 13.5px; color: rgba(255,255,255,.7); }
.visit-body { padding: 26px clamp(22px, 3vw, 32px) 30px; }
.visit-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.visit-row:last-of-type { border-bottom: 0; }
.visit-row .vr-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(122,198,196,.16); color: var(--accent); display: grid; place-items: center; flex: none; }
.visit-row .vr-icon svg { width: 20px; height: 20px; }
.visit-row .vr-label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 700; }
.visit-row .vr-val { font-size: 16.5px; color: #fff; font-weight: 600; margin-top: 2px; }
.visit-row a.vr-val:hover { color: var(--accent); }
.visit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--secondary-deep); color: rgba(255,255,255,.78); padding-top: clamp(48px, 7vw, 76px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .fb-top { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo-chip { width: 52px; height: 52px; }
.footer-brand b { font-family: var(--font-display); color: #fff; font-size: 18px; }
.footer-brand span.tag { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.footer-brand p { font-size: 14.5px; color: rgba(255,255,255,.62); }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: 15px; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; color: rgba(255,255,255,.66); padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a { width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; padding: 0; }
.social-row a:hover { background: var(--primary); border-color: var(--primary); }
.social-row svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-disclaimer { font-size: 12.5px; color: rgba(255,255,255,.4); padding-bottom: 30px; max-width: 880px; line-height: 1.6; }

/* ============================================================
   MOBILE ACTION BAR
   ============================================================ */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 22px rgba(16,32,43,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--secondary);
  border-right: 1px solid var(--border);
}
.action-bar a:last-child { border-right: 0; }
.action-bar a.primary { background: var(--primary); color: #fff; }
.action-bar svg { width: 22px; height: 22px; }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-cta .btn-secondary { display: none; }
  .nav-toggle, .header-call { display: inline-flex; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-feature { grid-row: span 1; grid-column: span 2; flex-direction: row; }
  .team-feature .tf-photo { width: 42%; aspect-ratio: auto; }
  .team-feature .tf-body { flex: 1; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 440px; margin-inline: auto; }
  .arch { aspect-ratio: 16/12; border-radius: 200px 200px var(--r-lg) var(--r-lg); }
  .feature-grid, .story-grid, .patient-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature-media { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gal-wide { grid-column: span 2; }
  .gal-tall { grid-row: span 1; }
  .story-media { max-width: 460px; margin-inline: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --header-h: 62px; }
  .action-bar { display: grid; }
  body { padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
  .team-grid { grid-template-columns: 1fr; }
  .team-feature { flex-direction: column; grid-column: span 1; }
  .team-feature .tf-photo { width: 100%; aspect-ratio: 4/3; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .visit-actions { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-badge { left: 0; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
}
