/* Bhatnagar Dental Clinic — styles (warm theme)
   To change the colours of the whole website, edit the values in :root below. */

:root {
  --bg: #F6F0E6;          /* page background: warm cream */
  --surface: #FFFDF9;     /* cards */
  --sand: #ECE3D3;        /* tinted sections */
  --espresso: #2A1A10;    /* darkest brown: footer, overlays */
  --cocoa: #4A3528;       /* dark brown blocks */
  --accent: #9A4E28;      /* terracotta: buttons and links */
  --accent-dark: #7C3D1E;
  --gold: #E8C48C;        /* highlights on dark backgrounds */
  --text: #2A1A10;
  --muted: #5F4E42;
  --border: #DCCFBB;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(42, 26, 16, 0.06), 0 6px 16px rgba(42, 26, 16, 0.07);
  --shadow-lg: 0 2px 4px rgba(42, 26, 16, 0.08), 0 24px 48px -16px rgba(42, 26, 16, 0.38);
  --header-h: 84px;
  --bar-height: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.light { font-weight: 300; }
h1 .light, h2 .light { display: block; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); }
address { font-style: normal; }
code { font-size: 0.9em; background: var(--sand); padding: 0.1em 0.35em; border-radius: 4px; word-break: break-all; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section-dark :focus-visible, .welcome-band :focus-visible, .visit-band :focus-visible,
.contact-card :focus-visible, .site-footer :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: var(--gold); }

.container { width: min(100% - 40px, 1240px); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- draft notes ---------- */

.draft-banner {
  background: #FFF4CC; color: #4A3B00; border-bottom: 1px solid #E5CF7A;
  padding: 8px 20px; font-size: 0.85rem; text-align: center;
}
.todo {
  display: inline-block; background: #FFF4CC; color: #4A3B00; border: 1px dashed #B8982A;
  border-radius: 6px; padding: 0 8px; font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.todo-line { font-size: 0.9rem; color: inherit; opacity: 0.85; margin: 0.75em 0 0; }

/* ---------- motion helpers ---------- */

.reveal { opacity: 0; translate: 0 32px; transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 26px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 2px solid var(--accent); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn span { display: inline-flex; }
.btn::after {
  content: ""; width: 7px; height: 7px; margin-left: 4px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); transition: translate 0.2s;
}
.btn:hover::after { translate: 4px 0; }
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 46px; padding: 8px 18px; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(154, 78, 40, 0.8); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--espresso); border-color: #fff; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--sand); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }
.actions-center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: none; color: var(--accent);
}
.text-link::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); transition: translate 0.2s;
}
.text-link:hover::after { translate: 4px 0; }

/* ---------- header: see-through over the first screen, solid after scrolling ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff;
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header.is-solid, .site-header.menu-open {
  background: rgba(246, 240, 230, 0.96); color: var(--text);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 10px 30px -20px rgba(42, 26, 16, 0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); transition: min-height 0.3s; }
.site-header.is-solid .header-inner { min-height: 72px; }

.brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 44px; }
.brand img { border-radius: 8px; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }
.brand-town { display: block; font-size: 0.75rem; opacity: 0.8; line-height: 1.3; letter-spacing: 0.16em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 14px; min-width: 0; }
.nav-links { display: flex; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: inherit; text-decoration: none; font-weight: 500; border-radius: 6px; white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--gold); }
.site-header.is-solid .nav-links > li > a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 10px; }
.site-header:not(.is-solid):not(.menu-open) .nav-actions .btn-primary { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }

.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.submenu {
  position: absolute; top: 100%; left: 0; min-width: 300px; padding: 10px;
  background: var(--surface); color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity 0.2s, translate 0.2s, visibility 0.2s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; translate: 0 0; }
.submenu a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.submenu a:hover { background: var(--sand); color: var(--accent); }
.submenu-icon { display: inline-flex; color: var(--accent); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 8px;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* ---------- sections ---------- */

.section { padding: clamp(36px, 5vw, 64px) 0; position: relative; }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-lead { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.08rem; }
.section-head-center .section-lead { margin-inline: auto; }
.eyebrow {
  color: var(--accent); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1em;
}

.section-dark { background: var(--cocoa); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .section-lead { color: #E6D8C8; }

/* ---------- 1. first screen ---------- */

.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 110px;
  background:
    radial-gradient(55% 65% at 78% 42%, rgba(232, 196, 140, 0.26), transparent 70%),
    radial-gradient(45% 55% at 5% 100%, rgba(154, 78, 40, 0.35), transparent 70%),
    linear-gradient(140deg, #1E120A 0%, #2E1D12 45%, #553A28 100%);
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(16px, 4vw, 48px); align-items: center; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; color: var(--gold); margin-bottom: 0.6em; }
.hero-intro { color: #F0E6DA; max-width: 54ch; font-size: 1.08rem; }

.hero-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: center; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.hero-stage.has-3d canvas { display: block; }
.hero-stage.has-3d .tooth-fallback { display: none; }
.tooth-fallback { position: absolute; inset: 18%; width: 64%; height: 64%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4)); }
.hero-glow {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 140, 0.36), rgba(232, 196, 140, 0) 68%);
  filter: blur(8px);
}

/* With a background photo: full picture behind centred text */
.hero.hero-photo { background: var(--espresso); }
.hero-photo .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 18, 10, 0.72) 0%, rgba(30, 18, 10, 0.55) 45%, rgba(30, 18, 10, 0.85) 100%);
}
.hero-photo .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero-photo .hero-stage { display: none; }
.hero-photo .hero-intro { margin-inline: auto; }
.hero-photo .actions { justify-content: center; }

/* Tall or small background photo on computers: the whole photo in a frame beside the text,
   over a soft, lightly blurred copy of the same photo. Phones keep the full-screen photo. */
.hero-side-photo { display: none; margin: 0; justify-self: center; }
.hero-side-photo img {
  display: block; width: auto; max-width: 100%; max-height: min(66vh, 600px);
  border-radius: 18px; border: 6px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.75);
}
@media (min-width: 901px) {
  .hero-photo-side .hero-media { filter: blur(14px) brightness(0.9) saturate(1.1); transform: scale(1.1); }
  .hero-photo-side .hero-media::after {
    background: linear-gradient(90deg, rgba(30, 18, 10, 0.62) 0%, rgba(30, 18, 10, 0.42) 55%, rgba(30, 18, 10, 0.28) 100%);
  }
  .hero-photo-side .hero-grid { grid-template-columns: 1.2fr 0.8fr; text-align: left; }
  .hero-photo-side .hero-intro { margin-inline: 0; }
  .hero-photo-side .actions { justify-content: flex-start; }
  .hero-photo-side .hero-text { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
  .hero-photo-side .hero-side-photo { display: block; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 30px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 20px;
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

/* ---------- 2. welcome band ---------- */

.welcome { padding-bottom: 0; }
.welcome-band {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--cocoa); color: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.welcome-photo { margin: 0; min-height: 440px; position: relative; }
.welcome-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome-text { padding: clamp(32px, 5vw, 72px); align-self: center; }
.welcome-text h2 { color: #fff; }
.welcome-text .eyebrow { color: var(--gold); }
.welcome-text .prose p { color: #EADDCD; }
.prose p { max-width: 62ch; font-size: 1.05rem; }

/* ---------- 3. why patients choose us ---------- */

.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.why-grid .section-head { margin-bottom: 28px; }
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.check {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-top: -1px;
  background: var(--accent); color: #fff;
}

.collage { position: relative; min-height: 520px; }
.collage-item { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--sand); }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-1 { top: 0; right: 0; width: 78%; height: 72%; }
.collage-2 { bottom: 0; left: 0; width: 58%; height: 52%; border: 8px solid var(--bg); }
.collage::before {
  content: ""; position: absolute; left: 12%; top: 10%; width: 40%; height: 40%;
  background: radial-gradient(var(--accent) 2px, transparent 2.5px) 0 0 / 18px 18px; opacity: 0.35;
}

/* ---------- 4. meet the dentist ---------- */

.doctor-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.doctor-text { padding: clamp(32px, 5vw, 72px); align-self: center; }
.doctor-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 0.2em; }
.doctor-role { color: var(--accent); font-weight: 600; margin-bottom: 1.4em; }
.doctor-text .prose p { color: var(--muted); }
.doctor-photo { margin: 0; position: relative; min-height: 520px; background: var(--sand); }
.doctor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.doctor-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.doctor-card.is-flipped { grid-template-columns: 0.9fr 1.1fr; }
.doctor-card.is-flipped .doctor-photo { order: -1; }
.doctor-photo-empty { display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); background: linear-gradient(140deg, #6B4630, var(--espresso)); }
.doctor-photo-empty svg { stroke-width: 1.1; }
.doctor-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 16px; margin: 0;
  color: #fff; font-size: 0.9rem; background: linear-gradient(transparent, rgba(30, 18, 10, 0.85));
}

/* ---------- sliders ---------- */

.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.slider-arrows { display: flex; gap: 10px; margin-bottom: clamp(32px, 4vw, 52px); }
.arrow {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--accent); background: transparent; color: var(--accent); transition: background-color 0.2s, color 0.2s;
}
.arrow:hover:not(:disabled) { background: var(--accent); color: #fff; }
.arrow:disabled { opacity: 0.35; cursor: default; }
.section-dark .arrow { border-color: var(--gold); color: var(--gold); }
.section-dark .arrow:hover:not(:disabled) { background: var(--gold); color: var(--espresso); }

.slider {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 8px; overscroll-behavior-x: contain;
}
.slider::-webkit-scrollbar { display: none; }
.slider > li { flex: none; scroll-snap-align: start; }

/* ---------- 5. photo strip ---------- */

.strip-section { padding-bottom: clamp(36px, 4.5vw, 56px); }
.photo-strip { padding-inline: max(20px, calc((100vw - 1240px) / 2)); scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2)); }
.photo-strip > li { width: clamp(260px, 30vw, 420px); }
.photo-strip figure { margin: 0; }
.strip-open {
  display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sand); cursor: zoom-in; box-shadow: var(--shadow-sm);
}
.strip-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s; }
.strip-open:hover img { transform: scale(1.05); }
.photo-strip figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.strip-section .todo-line { flex-basis: 100%; margin-top: -20px; margin-bottom: 24px; }

/* ---------- 6. patient stories ---------- */

.story-track > li { width: clamp(280px, 32vw, 390px); }
.story { display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 4 / 5; background: #000; border-radius: var(--radius-lg); overflow: hidden; }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.5s; }
.video-play:hover img { opacity: 1; transform: scale(1.04); }
.play-badge {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.story-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; color: #E6D8C8; }
.story-meta strong { color: #fff; }

.story-photo-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in; }
.story-photo-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.story-photo-open:hover img { transform: scale(1.04); }
.story-quote figcaption.with-photo { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.story-quote figure {
  margin: 0; height: 100%; min-height: 320px; padding: 34px 30px; border-radius: var(--radius-lg);
  background: var(--bg); color: var(--text); display: flex; flex-direction: column;
}
.quote-mark { font-family: Georgia, serif; font-size: 4.5rem; line-height: 0.6; color: var(--accent); height: 34px; }
.story-quote blockquote { margin: 0 0 auto; font-size: 1.05rem; line-height: 1.7; }
.story-quote figcaption { margin-top: 22px; font-weight: 700; color: var(--accent); }

.missing {
  aspect-ratio: 4 / 5; border: 2px dashed #CDBCA2; border-radius: var(--radius-lg); background: #FBF7F0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 0.95rem; text-align: center; padding: 16px;
}
.missing.on-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(232, 196, 140, 0.5); color: #E6D8C8; }
#stories-note .todo-line { text-align: center; margin-top: 1.5em; }

/* ---------- 7. treatments ---------- */

/* Treatments slide sideways like the photos, with arrow buttons */
.service-grid {
  padding: 6px max(20px, calc((100vw - 1240px) / 2)) 28px;
  scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2));
}
.service-grid > li { width: clamp(270px, 26vw, 330px); }
.service-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, translate 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-lg); translate: 0 -4px; }
.service-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-media-icon {
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 30% 20%, rgba(232, 196, 140, 0.55), transparent 55%),
    linear-gradient(140deg, #6B4630, var(--espresso));
}
.service-media-icon svg { width: 76px; height: 76px; stroke-width: 1.1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); transition: transform 0.5s; }
.service-card:hover .service-media-icon svg { transform: scale(1.08) rotate(-4deg); }
.service-body { position: relative; padding: 34px 28px 22px; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  position: absolute; top: -26px; left: 28px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff; box-shadow: 0 10px 20px -8px rgba(124, 61, 30, 0.8); border: 4px solid var(--surface);
}
.service-body p { color: var(--muted); font-size: 1rem; flex: 1; }

/* ---------- 8. first visit ---------- */

.visit-band { position: relative; isolation: isolate; color: #fff; padding: clamp(40px, 5.5vw, 70px) 0; background: var(--espresso); overflow: hidden; }
.visit-media { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; background-attachment: fixed; }
.visit-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(42, 26, 16, 0.86), rgba(42, 26, 16, 0.9)); }
.visit-band h2 { color: #fff; }
.visit-band .eyebrow { color: var(--gold); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li {
  padding: 34px 28px; border-radius: var(--radius-lg); text-align: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(232, 196, 140, 0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.steps h3 { color: #fff; margin-top: 18px; }
.steps p { color: #E6D8C8; margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--espresso); background: var(--gold);
}

/* ---------- 9. contact and questions ---------- */

.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--cocoa); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px); box-shadow: var(--shadow-lg); }
.contact-card h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.contact-card .eyebrow { color: var(--gold); }
.contact-block { padding-top: 22px; margin-top: 22px; border-top: 1px solid rgba(232, 196, 140, 0.25); }
.contact-block h3 { font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8em; }
.contact-block address > * { display: block; color: #F0E6DA; }
.contact-block address strong { color: #fff; }
.contact-block p { color: #F0E6DA; }
.contact-card a:not(.btn) { color: #fff; }
.contact-card .actions { margin-top: 1em; }
.phone-list { display: grid; gap: 4px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.phone-link:hover { text-decoration: underline; }
.phone-link span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; }
#contact-extra .btn { margin-top: 12px; }
.hours { display: grid; grid-template-columns: auto auto; gap: 6px 16px; margin: 0; color: #F0E6DA; }
.hours dt { font-weight: 600; color: #fff; }
.hours dd { margin: 0; text-align: right; }

.faq-wrap { padding-top: 12px; }
.faq { display: grid; gap: 12px; margin-top: 1.4em; }
.faq details { background: var(--surface); border-radius: var(--radius-lg); padding: 0 24px; box-shadow: var(--shadow-sm); border: 1px solid transparent; }
.faq details[open] { border-color: var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none;
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; padding: 20px 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sand); color: var(--accent); font-size: 1.3rem; font-weight: 500; transition: rotate 0.25s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); }

/* ---------- footer ---------- */

.site-footer { background: var(--espresso); color: #D9C9B8; padding: 40px 0 0; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h3 { font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2em; }
.site-footer p { margin-bottom: 0.6em; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.brand-light { color: #fff; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(232, 196, 140, 0.18); padding: 26px 0 32px 90px; font-size: 0.85rem; color: #B9A794; display: grid; gap: 4px; }
.footer-bottom p { margin: 0; }

.noscript { padding: 20px; text-align: center; }

/* ---------- floating call button and phone action bar ---------- */

.float-call {
  position: fixed; left: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%; background: var(--gold); color: var(--espresso);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.55); transition: transform 0.2s;
}
.float-call:hover { transform: scale(1.08); }
.float-call svg { width: 26px; height: 26px; }
.float-call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { opacity: 0.8; scale: 1; } 100% { opacity: 0; scale: 1.5; } }

.action-bar { display: none; }

/* ---------- smaller screens ---------- */

@media (max-width: 1320px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px; max-height: calc(100vh - 72px); overflow-y: auto;
    background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); padding: 12px 20px 22px;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links > li > a { min-height: 48px; }
  .caret { display: none; }
  .submenu { position: static; min-width: 0; opacity: 1; visibility: visible; translate: none; box-shadow: none; background: transparent; padding: 0 0 6px 12px; }
  .nav-actions { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .hero-grid, .welcome-band, .why-grid, .doctor-card, .doctor-card.is-flipped, .contact-grid, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-bottom: 96px; }
  .hero-stage { max-width: 240px; order: -1; margin: -8px auto -8px 0; }
  .welcome-photo { min-height: 300px; }
  .doctor-photo { min-height: 420px; order: -1; }
  .collage { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .visit-media { background-attachment: scroll; }
  .float-call { display: none; }
  .footer-bottom { padding-left: 0; }

  body { padding-bottom: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px)); }
  .action-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 249, 0.96); border-top: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .action-bar .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding-inline: 6px; gap: 6px; font-size: 0.92rem; }
  .action-bar .btn::after { display: none; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1rem; }
  .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .collage { min-height: 320px; }
  .doctor-photo { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
