@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* ============================================================
   Endodontic Associates of Bergen County
   Brand-matched: Trajan-style caps (Cinzel) + Lato,
   cream canvas, soft professional blue, photographic & airy.
   ============================================================ */

:root {
  --cream: #f8f7f2;
  --white: #ffffff;
  --ink: #303030;
  --slate: #2f4255;        /* headings */
  --slate-soft: #61707d;   /* muted text */
  --blue: #2a5db0;         /* accent */
  --blue-d: #1f4789;
  --blue-tint: #eef3fb;
  --blue-tint2: #f3f7fc;
  --gold: #c2982f;         /* stars only */
  --line: #e4e2d8;
  --line-soft: #efeee6;

  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Lato', system-ui, -apple-system, sans-serif;

  --r: 6px;
  --r-lg: 10px;
  --maxw: 1200px;
  --header-h: 70px;
  --bottom-bar-h: 58px;

  --shadow-sm: 0 1px 3px rgba(47, 66, 85, 0.07);
  --shadow: 0 14px 40px -22px rgba(47, 66, 85, 0.45);
  --shadow-lg: 0 30px 70px -30px rgba(47, 66, 85, 0.5);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
svg { flex-shrink: 0; }

html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  padding-bottom: var(--bottom-bar-h);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--blue-d); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--slate); font-weight: 600; line-height: 1.18; letter-spacing: 0.01em; }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
}

/* ── Utility top bar (desktop) ──────────────── */
.topbar { display: none; }

/* ── Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 10px 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; max-width: 64vw; overflow: hidden; }
.logo-name {
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-sub { font-size: 0.7rem; color: var(--slate-soft); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border-radius: var(--r);
  white-space: nowrap;
}
.btn-call:hover { background: var(--blue-d); color: #fff; }
.btn-call svg { width: 15px; height: 15px; }
.btn-call .btn-call-label { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--slate);
}

.nav-desktop { display: none; }

/* ── Mobile drawer ──────────────────────────── */
.nav-overlay { display: none; position: fixed; inset: 0; top: var(--header-h); background: rgba(47,66,85,0.4); z-index: 150; }
.nav-overlay.open { display: block; }
.nav-drawer {
  position: fixed;
  top: var(--header-h);
  right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: var(--white);
  z-index: 160;
  transform: translateX(105%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  padding: 12px 0 40px;
  box-shadow: -12px 0 40px -12px rgba(47,66,85,0.3);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  display: block;
  padding: 15px 24px;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer a:hover, .nav-drawer a.active { background: var(--blue-tint); color: var(--blue-d); }
.nav-drawer .drawer-call {
  margin: 20px 24px 0;
  padding: 14px;
  text-align: center;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  border: none;
  font-family: var(--serif);
  letter-spacing: 0.06em;
}
.nav-drawer .drawer-call:hover { background: var(--blue-d); color: #fff; }

/* ── Bottom bar (mobile) ────────────────────── */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-bar-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}
.bottom-bar a svg { width: 20px; height: 20px; }
.bottom-bar a.primary { background: var(--blue); color: #fff; }
.bottom-bar a.primary:hover { background: var(--blue-d); color: #fff; }

/* ── Layout ─────────────────────────────────── */
.main { }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.section { padding: 48px 0; }
.section-tint { background: var(--blue-tint2); }
.section-cream { background: var(--cream); }
.divider { height: 1px; background: var(--line); max-width: var(--maxw); margin: 0 auto; }

.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--slate-soft); font-size: 1rem; }

/* ── Hero ───────────────────────────────────── */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-tint);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,71,137,0.18), transparent 40%);
}
.hero-copy { padding: 34px 18px 40px; }
.hero-copy .eyebrow { display: block; margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(1.9rem, 6.4vw, 3rem);
  color: var(--slate);
  line-height: 1.14;
  margin-bottom: 18px;
}
.hero-lead { font-size: 1.06rem; color: var(--slate-soft); max-width: 46ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.hero-rating { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--slate-soft); }
.hero-rating .stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.hero-rating strong { color: var(--slate); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-d); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-d); background: var(--blue-tint2); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-light:hover { background: rgba(255,255,255,0.24); color: #fff; }
.btn-on-blue { background: #fff; color: var(--blue-d); }
.btn-on-blue:hover { background: var(--cream); color: var(--blue-d); }

/* ── Welcome / intro ────────────────────────── */
.intro-text { max-width: 660px; margin: 0 auto; text-align: center; color: var(--ink); font-size: 1.08rem; line-height: 1.75; }
.intro-text p + p { margin-top: 16px; }

/* ── Credentials strip ──────────────────────── */
.creds { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 900px; margin: 30px auto 0; border-top: 1px solid var(--line); }
.cred { text-align: center; padding: 22px 14px; border-bottom: 1px solid var(--line); }
.cred .k { font-family: var(--serif); font-size: 1.05rem; color: var(--blue); font-weight: 600; letter-spacing: 0.04em; }
.cred .v { font-size: 0.82rem; color: var(--slate-soft); margin-top: 4px; }

/* ── Treatments list ────────────────────────── */
.treatments { max-width: 920px; margin: 0 auto; }
.treatment-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.treatment-row:last-child { border-bottom: 1px solid var(--line); }
.treatment-row .tnum { font-family: var(--serif); font-size: 1rem; color: var(--blue); width: 34px; flex-shrink: 0; }
.treatment-row .tbody { flex: 1; min-width: 0; }
.treatment-row h3 { font-size: 1.15rem; margin-bottom: 3px; letter-spacing: 0.03em; }
.treatment-row p { font-size: 0.92rem; color: var(--slate-soft); }
.treatment-row .tgo { color: var(--blue); flex-shrink: 0; transition: transform 0.18s var(--ease); }
.treatment-row:hover { color: var(--ink); }
.treatment-row:hover h3 { color: var(--blue-d); }
.treatment-row:hover .tgo { transform: translateX(4px); }

/* ── Featured review ────────────────────────── */
.feature-review { max-width: 760px; margin: 0 auto; text-align: center; }
.feature-review .stars { color: var(--gold); font-size: 1.3rem; letter-spacing: 3px; }
.feature-review blockquote {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.6;
  color: var(--slate);
  margin: 18px 0;
}
.feature-review cite { font-style: normal; font-size: 0.85rem; color: var(--slate-soft); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Page header (inner) ────────────────────── */
.page-header { background: var(--white); border-bottom: 1px solid var(--line); padding: 30px 0 28px; }
.page-header .wrap { text-align: center; }
.breadcrumb { font-size: 0.76rem; color: var(--slate-soft); margin-bottom: 14px; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--slate-soft); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; color: var(--line); }
.page-header .eyebrow { display: block; margin-bottom: 12px; }
.page-header h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.page-header p { margin-top: 12px; color: var(--slate-soft); max-width: 60ch; margin-inline: auto; }

/* ── Prose ──────────────────────────────────── */
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.prose p + p { margin-top: 1.05em; }

/* Links inside running copy: clearly an affordance (blue + underline) but not
   shouty — the underline firms up on hover. */
.prose a,
.intro-text a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(42, 93, 176, 0.45);
  text-underline-offset: 2px;
}
.prose a:hover,
.intro-text a:hover { color: var(--blue-d); text-decoration-color: currentColor; }
.prose .ext-icon,
.intro-text .ext-icon { margin-left: 2px; opacity: 0.65; vertical-align: -1px; }

/* Honour any real list structure in the content. */
.prose ul, .prose ol { margin: 12px 0 14px; padding-left: 1.4em; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose ul li::marker { color: var(--blue); }

/* Reading column: keep body copy to a comfortable ~66–70ch measure. */
.content-narrow { max-width: 680px; margin: 0 auto; }

.sub {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
  margin: 32px 0 10px;
}
.sub:first-child { margin-top: 0; }
.prose + .sub { margin-top: 30px; }

/* ── Accordion (consolidated pages) ─────────── */
.accordion { max-width: 760px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--slate);
}
.accordion-trigger:hover { color: var(--blue-d); }
.accordion-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
  color: var(--blue);
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.accordion-icon::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.accordion-icon::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: scaleY(0); opacity: 0; }
.accordion-panel { display: none; padding: 2px 4px 30px; }
.accordion-panel.open { display: block; animation: fade 0.3s var(--ease); }
.accordion-panel .prose { font-size: 1rem; }
/* A touch tighter first heading inside a freshly opened panel. */
.accordion-panel > .sub:first-child { margin-top: 4px; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Reviews page ───────────────────────────── */
.reviews-hero { text-align: center; padding: 8px 0 28px; }
.reviews-hero .score { font-family: var(--serif); font-size: 3rem; color: var(--slate); line-height: 1; }
.reviews-hero .stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 4px; margin: 8px 0; }
.reviews-hero p { color: var(--slate-soft); font-size: 0.9rem; }

.review-list { max-width: 760px; margin: 0 auto; }
.review-item { padding: 24px 0; border-top: 1px solid var(--line); }
.review-item:first-child { border-top: none; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue-d);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 0.92rem;
  flex-shrink: 0;
}
.review-who { font-weight: 700; color: var(--slate); font-size: 0.92rem; }
.review-date { font-size: 0.76rem; color: var(--slate-soft); }
.review-stars { color: var(--gold); font-size: 0.82rem; letter-spacing: 1px; margin-left: auto; }
.review-text { color: var(--ink); line-height: 1.75; font-size: 0.98rem; }
.review-text.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-toggle { background: none; border: none; color: var(--blue); font-family: var(--sans); font-weight: 700; font-size: 0.82rem; cursor: pointer; padding: 8px 0 0; }
.btn-load-more {
  display: block; margin: 30px auto 0; padding: 13px 30px;
  background: transparent; border: 1.5px solid var(--blue); color: var(--blue-d);
  border-radius: var(--r); font-family: var(--serif); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.btn-load-more:hover { background: var(--blue); color: #fff; }

/* ── Doctor / About ─────────────────────────── */
.doctor-hero { display: flex; flex-direction: column; gap: 24px; }
.doctor-portrait {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.doctor-meta .eyebrow { display: block; margin-bottom: 10px; }
.doctor-meta h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 4px; }
.doctor-meta .role { color: var(--slate-soft); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.04em; }
.doctor-meta .prose { max-width: 62ch; }
.cred-list { list-style: none; margin-top: 8px; }
.cred-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; font-size: 0.94rem; color: var(--ink); }
.cred-list li::before { content: '—'; color: var(--blue); }
.award-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.award-badges img { height: 60px; width: auto; object-fit: contain; }

/* ── Testimonials ───────────────────────────── */
.testi-list { max-width: 820px; margin: 0 auto; }
.testi { padding: 26px 0; border-top: 1px solid var(--line); }
.testi:first-child { border-top: none; }
.testi p { font-family: var(--sans); font-weight: 400; font-size: 1.05rem; line-height: 1.7; color: var(--slate); font-style: italic; }
.testi cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.8rem; color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Contact ────────────────────────────────── */
.contact-grid { display: grid; gap: 30px; max-width: var(--maxw); }
.contact-info h3 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; font-family: var(--serif); }
.contact-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-block:first-child { border-top: 1px solid var(--line); }
.contact-block p { color: var(--ink); }
.hours-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.94rem; }
.hours-row.today { color: var(--blue-d); font-weight: 700; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card .sub { color: var(--slate-soft); font-size: 0.95rem; font-weight: 400; line-height: 1.5; margin: 2px 0 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--slate); margin-bottom: 5px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--sans); font-size: 16px; background: var(--cream); color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-tint); }
.btn-submit {
  width: 100%; padding: 15px; background: var(--blue); color: #fff; border: none; border-radius: var(--r);
  font-family: var(--serif); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.btn-submit:hover { background: var(--blue-d); }
.map-embed { width: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; margin-top: 24px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Hub link list (fallback) ───────────────── */
.link-list { max-width: 760px; margin: 0 auto; list-style: none; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-family: var(--serif); font-weight: 600; letter-spacing: 0.03em; color: var(--slate); }
.link-list a::after { content: '→'; color: var(--blue); }
.link-list a:hover { color: var(--blue-d); }

/* ── CTA band ───────────────────────────────── */
.cta-band { background: var(--blue); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 26px; max-width: 50ch; margin-inline: auto; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; max-width: 380px; margin: 0 auto; }

/* ── Content images ─────────────────────────── */
.content-images { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-bottom: 22px; }
.content-images img { max-height: 70px; width: auto; }

/* ── Footer ─────────────────────────────────── */
.site-footer { background: var(--slate); color: rgba(255,255,255,0.72); padding: 44px 0 28px; font-size: 0.88rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand .logo-name { color: #fff; font-size: 1.05rem; }
.footer-brand p { margin-top: 12px; line-height: 1.7; max-width: 36ch; }
.footer-col h4 { font-family: var(--serif); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255,255,255,0.72); padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 20px; font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.footer-areas { margin-top: 8px; line-height: 1.7; }

/* ── Reveal ─────────────────────────────────── */
.reveal { opacity: 1; }
.reveal-ready .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto; } }

/* ============================================================
   Tablet / Desktop
   ============================================================ */
@media (min-width: 700px) {
  .hero-actions { flex-direction: row; }
  .creds { grid-template-columns: repeat(4, 1fr); }
  .cred { border-bottom: none; border-left: 1px solid var(--line); }
  .cred:first-child { border-left: none; }
  .contact-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .cta-actions { flex-direction: row; justify-content: center; max-width: none; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }

  .topbar {
    display: block;
    background: var(--slate);
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
  }
  .topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 7px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .topbar a { color: rgba(255,255,255,0.85); }
  .topbar a:hover { color: #fff; }
  .topbar .sep { color: rgba(255,255,255,0.3); margin: 0 10px; }

  .header-inner { padding: 12px 22px; }
  .logo-name { font-size: 1.15rem; }
  .logo-sub { font-size: 0.74rem; }

  .nav-desktop a {
    font-family: var(--serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--slate);
    padding: 9px 7px;
    border-radius: var(--r);
    white-space: nowrap;
    position: relative;
  }
  .nav-desktop a::after {
    content: '';
    position: absolute;
    left: 7px; right: 7px; bottom: 5px;
    height: 1.5px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform 0.2s var(--ease);
  }
  .nav-desktop a:hover, .nav-desktop a.active { color: var(--blue-d); }
  .nav-desktop a:hover::after, .nav-desktop a.active::after { transform: scaleX(1); }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }

  /* Hero two-column */
  .hero-grid { flex-direction: row; align-items: stretch; min-height: 540px; }
  .hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 60px 56px 60px 0; }
  .hero-photo { flex: 0 0 46%; min-width: 0; aspect-ratio: auto; }
  .hero-photo::after { background: linear-gradient(to right, rgba(248,247,242,0.5), transparent 22%); }
  .hero-grid { padding-left: 24px; }

  .doctor-hero { flex-direction: row; align-items: flex-start; gap: 48px; }
  .doctor-portrait { flex: 0 0 360px; margin: 0; position: sticky; top: 90px; }
  .doctor-meta { flex: 1; }

  .footer-areas { max-width: none; }
}

@media (min-width: 1100px) {
  .hero-copy { padding-right: 80px; }
}

/* The desktop nav has 7 items; together with the full (never-clipped) logo and
   the call button they only fit with side gutters at ~1200px+. Below 1200 the
   header collapses to the hamburger drawer so nothing overflows or clips. */
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav-desktop { display: flex; align-items: center; gap: 2px; }
  .nav-desktop a { padding: 9px 8px; }
}

/* ============================================================
   QA round: dropdowns, rotating reviews, form, status, anchors
   ============================================================ */

/* Anchor scroll offset (sticky header) */
.accordion-item { scroll-margin-top: 96px; }
section[id] { scroll-margin-top: 84px; }

/* Honeypot */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Form status */
.form-status { margin-top: 14px; font-size: 0.88rem; line-height: 1.5; }
.form-status.ok { color: #1d7a4d; }
.form-status.err { color: #b3402a; }

/* Open / closed status indicator */
.status-pill { display: inline-flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d98a3d; display: inline-block; flex-shrink: 0; }
.status-pill.is-open .status-dot, .hours-status.is-open .status-dot { background: #3ab54a; }
.hours-status { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--slate-soft); font-weight: 700; margin-bottom: 12px; }
.hours-status.is-open { color: #1d7a4d; }

/* Rotating featured review */
.feature-slides { display: grid; }
.feature-slide { grid-area: 1 / 1; margin: 0; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.feature-slide.active { opacity: 1; pointer-events: auto; }
.feature-slide figcaption { font-style: normal; font-size: 0.82rem; color: var(--slate-soft); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 16px; }
.feature-dots { display: flex; gap: 9px; justify-content: center; margin-top: 24px; }
.fdot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.fdot:hover { background: var(--slate-soft); }
.fdot.active { background: var(--blue); transform: scale(1.3); }

/* Mobile drawer sub-links */
.drawer-sub { background: var(--cream); }
.nav-drawer .drawer-sub a {
  padding: 11px 24px 11px 40px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate-soft);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .drawer-sub a:hover { background: var(--blue-tint); color: var(--blue-d); }

/* Desktop nav dropdowns */
@media (min-width: 900px) {
  .nav-desktop .nav-group { position: relative; }
  .nav-desktop .nav-top { display: inline-flex; align-items: center; gap: 4px; }
  .nav-caret { transition: transform 0.2s var(--ease); opacity: 0.65; }
  .nav-desktop .nav-group:hover .nav-caret { transform: rotate(180deg); }

  .nav-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    z-index: 300;
  }
  .nav-desktop .nav-group:hover .nav-menu,
  .nav-desktop .nav-group:focus-within .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-desktop .nav-menu a {
    display: block;
    padding: 10px 14px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    border-radius: 6px;
    white-space: nowrap;
  }
  .nav-desktop .nav-menu a::after { content: none; }
  .nav-desktop .nav-menu a:hover { background: var(--blue-tint); color: var(--blue-d); }
}

/* ============================================================
   Referring Doctors: referral form + links of interest
   ============================================================ */
.form-section-label {
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { margin-top: 14px; font-size: 0.84rem; color: var(--slate-soft); line-height: 1.55; }
.form-note a { font-weight: 700; }
.ext-icon { display: inline-block; vertical-align: -1px; opacity: 0.7; }

.links-interest { list-style: none; }
.links-interest li { padding: 17px 4px; border-top: 1px solid var(--line); }
.links-interest li:last-child { border-bottom: 1px solid var(--line); }
.links-interest .li-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
a.li-name:hover { color: var(--blue-d); }
.links-interest .li-desc { display: block; margin-top: 4px; color: var(--slate-soft); font-size: 0.92rem; line-height: 1.65; }

.reviews-cta { margin-top: 18px; }

/* ── Sitemap ────────────────────────────────── */
.sitemap-grid { display: grid; gap: 30px; max-width: 980px; margin: 0 auto; }
@media (min-width: 640px) { .sitemap-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .sitemap-grid { grid-template-columns: repeat(3, 1fr); } }
.sitemap-col h3 { font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 12px; }
.sitemap-col h3 a { color: var(--slate); }
.sitemap-col h3 a:hover { color: var(--blue-d); }
.sitemap-col ul { list-style: none; }
.sitemap-col li { padding: 6px 0; }
.sitemap-col li a { color: var(--slate-soft); font-size: 0.95rem; }
.sitemap-col li a:hover { color: var(--blue-d); }

/* ── Footer legal links ─────────────────────── */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.footer-legal a { color: rgba(255,255,255,0.72); }
.footer-legal a:hover { color: #fff; }
