/* ==========================================================================
   Dentist of Cerritos — styles.css (multi-page)
   Palette: warm cream canvas, deep pine teal, soft sage, amber accent
   Type: Fraunces (display) + Inter (body)
   ========================================================================== */

:root {
  --cream: #faf6f0;
  --cream-deep: #f3ece1;
  --pine: #0d5c55;
  --pine-deep: #08403b;
  --pine-ink: #0a2f2c;
  --sage: #cfe3dc;
  --sage-soft: #e4efea;
  --amber: #e8a13d;
  --amber-deep: #a8680e;
  --ink: #21302e;
  --ink-soft: #556763;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 24px rgba(10, 47, 44, 0.08);
  --shadow-lift: 0 16px 38px rgba(10, 47, 44, 0.13);

  --container: 1200px;
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0425rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.12;
  color: var(--pine-ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); }

h1, h2 { text-wrap: balance; }

h1 em, h2 em { font-style: italic; color: var(--pine); }
.band-dark h2 em, .cta-inner h2 em { color: var(--amber); }
h3 { font-size: 1.22rem; font-family: var(--font-body); font-weight: 700; }
h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--pine); }
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Skip link (visible on keyboard focus only) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--pine-deep);
  color: var(--white);
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 0; }

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-tinted { background: var(--sage-soft); }

.section-head {
  max-width: 660px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head-center { margin-inline: auto; text-align: center; }

.section-sub { color: var(--ink-soft); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  flex: none;
}

.eyebrow-light { color: var(--amber); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.45rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

.btn-primary {
  background: var(--pine);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(13, 92, 85, 0.28);
}
.btn-primary:hover { background: var(--pine-deep); }

.btn-outline {
  border: 2px solid var(--pine);
  color: var(--pine);
  background: transparent;
}
.btn-outline:hover { background: rgba(13, 92, 85, 0.07); }

.btn-light {
  background: var(--cream);
  color: var(--pine-deep);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.btn-light:hover { background: var(--white); }

.btn-amber {
  background: var(--amber);
  color: var(--pine-ink);
  box-shadow: 0 6px 16px rgba(201, 127, 27, 0.3);
}
.btn-amber:hover { background: #f0b054; }

.text-link { font-weight: 600; text-decoration: none; color: var(--pine); }
.text-link:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */

.topbar {
  background: var(--pine-ink);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 500;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding-block: 0.5rem;
}

.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

.topbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.4rem;
}

.topbar-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar-item svg { width: 14px; height: 14px; fill: var(--amber); flex: none; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 246, 240, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 92, 85, 0.08);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(10, 47, 44, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.7rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 52px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}

.site-nav > ul > li { position: relative; }

.site-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.site-nav > ul > li > a:hover { color: var(--pine); background: rgba(13, 92, 85, 0.06); }

.site-nav > ul > li > a[aria-current="page"] {
  color: var(--pine);
  font-weight: 600;
}

.caret {
  width: 9px;
  height: 9px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dropdowns (desktop: hover / focus-within) */

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(13, 92, 85, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  display: none;
  z-index: 95;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown li a:hover { background: var(--sage-soft); color: var(--pine-deep); }

.dropdown-label {
  display: block;
  padding: 0.55rem 0.8rem 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.dropdown-wide { min-width: 480px; column-count: 2; column-gap: 0; }
.dropdown-wide li { break-inside: avoid; }

/* Services mega-menu */
.dropdown-mega {
  left: 50%;
  transform: translateX(-50%);
  min-width: min(880px, 92vw);
  padding: 1.1rem 1.2rem;
}

.has-dropdown:hover > .dropdown-mega,
.has-dropdown:focus-within > .dropdown-mega {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.4rem;
}

.mega-group { padding: 0.15rem 0; }

.mega-group > a {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--pine-deep);
  text-decoration: none;
  padding: 0.32rem 0.5rem;
  border-radius: 8px;
}

.mega-group > a:hover { background: var(--sage-soft); }

.mega-group ul { list-style: none; margin: 0; padding: 0; }

.mega-group ul a {
  display: block;
  padding: 0.2rem 0.5rem 0.2rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
}

.mega-group ul a:hover { background: var(--sage-soft); color: var(--pine-deep); }

.nav-cta { margin-left: 0.5rem; flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--pine-ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ---------- Home hero (photo) ---------- */

.hero-photo {
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 64vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-photo img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 280px at 12% 100%, rgba(232, 161, 61, 0.14), transparent 70%),
    linear-gradient(100deg, rgba(8, 44, 40, 0.88) 0%, rgba(8, 44, 40, 0.6) 48%, rgba(8, 44, 40, 0.16) 100%);
  z-index: -1;
}

.hero-photo-copy { max-width: 620px; padding-block: 4rem; }

.hero-photo-copy h1 { color: var(--white); }
.hero-photo-copy h1 em { font-style: italic; color: var(--amber); }

.hero-photo-copy .lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin-bottom: 1.7em;
  max-width: 32em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.9rem; }
.actions-center { justify-content: center; margin: 1.6rem 0 0; }

.hero-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--white);
}

.hero-chips svg { width: 14px; height: 14px; fill: var(--amber); flex: none; }

/* ---------- Interior page hero ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(280px, 36vh, 400px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 44, 40, 0.30) 0%, rgba(8, 44, 40, 0.78) 100%);
  z-index: -1;
}

.page-hero-copy { padding-block: 2.6rem; }
.page-hero-copy h1 { color: var(--white); margin-bottom: 0.15em; }
.page-hero-copy p { color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; margin: 0; max-width: 42em; }

.breadcrumb {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Trust strip ---------- */

.trust-strip { background: var(--pine-ink); color: var(--sage); padding-block: 0.9rem; }

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-inner span[aria-hidden="true"] { color: var(--amber); }

/* ---------- Split sections (photo + copy) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: -14px 14px 0 0 var(--sage), var(--shadow-lift);
}

.split-media-auto img { aspect-ratio: 1071 / 800; }
.split-media-sq img { aspect-ratio: 6 / 5; }
.split-media-wide img { aspect-ratio: 2 / 1; }

/* Focal-point helpers for wide source photos */
.pos-l  { object-position: 15% 50%; }
.pos-cl { object-position: 32% 50%; }
.pos-cr { object-position: 68% 50%; }
.pos-r  { object-position: 85% 50%; }

.split-copy .section-sub { margin-bottom: 1.4em; }

.split-reverse .split-media { order: 2; }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 92, 85, 0.06);
  transition: box-shadow 0.2s ease;
}

.service-card:hover { box-shadow: var(--shadow-lift); }

.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.5em; }

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--sage-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.service-icon svg { width: 25px; height: 25px; fill: var(--pine); }

a.service-card { display: block; text-decoration: none; color: inherit; }

/* ---------- Chips / tags ---------- */

.tag-row { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }

.tag-row li {
  background: var(--sage-soft);
  color: var(--pine-deep);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
}

.tag-row-light li { background: rgba(255, 255, 255, 0.14); color: var(--white); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.65rem; }

.check-list li { position: relative; padding-left: 2rem; font-weight: 500; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.26em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2308403b' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 68% no-repeat;
}

.check-list-dark li { color: var(--sage-soft); }

/* ---------- Doctors ---------- */

.doctor-hero {
  display: grid;
  grid-template-columns: minmax(340px, 460px) 1fr;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}

.doctor-hero img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: -14px 14px 0 0 var(--sage), var(--shadow-lift);
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.doctor-hero img.img-natural { aspect-ratio: 1071 / 800; }

.doctor-creds {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.9em;
}

.fact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.4rem; }

.fact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(13, 92, 85, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem 1.25rem;
}

.fact-card h4 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35em; color: var(--pine-deep); }
.fact-card h4 svg { width: 18px; height: 18px; fill: var(--amber-deep); flex: none; }
.fact-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Steps / info ---------- */

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.info-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.info-step {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.fine-print { margin-top: 2rem; font-size: 0.87rem; color: var(--ink-soft); text-align: center; }
.fine-print-left { text-align: left; margin-top: 1.4rem; }
.mt-lg { margin-top: 1.6rem; }

/* ---------- Gallery ---------- */

.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.ba-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 92, 85, 0.06);
  overflow: hidden;
}

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cream-deep); }

.ba-pair figure { margin: 0; position: relative; }

.ba-pair img { width: 100%; aspect-ratio: 7 / 6; object-fit: cover; }

.ba-card-wide .ba-pair img { aspect-ratio: 380 / 209; }

.ba-pair figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(10, 47, 44, 0.82);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
}

.ba-pair figure:last-child figcaption { background: var(--amber); color: var(--pine-ink); }

.ba-card h3 { padding: 1rem 1.4rem 1.1rem; margin: 0; font-size: 1.05rem; }

/* ---------- Insurance / financing ---------- */

.logo-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0 0; padding: 0; list-style: none; }

.logo-chips li {
  background: var(--white);
  border: 1px solid rgba(13, 92, 85, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pine-deep);
}

.logo-chips li a { color: inherit; text-decoration: none; }
.logo-chips li:has(a):hover { box-shadow: var(--shadow-soft); border-color: var(--amber); }

.related-band h2 { margin-bottom: 1.2rem; }

/* ---------- Forms (PDF downloads) ---------- */

.form-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

.form-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(13, 92, 85, 0.1);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: box-shadow 0.2s ease;
}

.form-card:hover { box-shadow: var(--shadow-lift); }
.form-card svg { width: 30px; height: 30px; fill: var(--pine); flex: none; }
.form-card small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.83rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.8rem; max-width: 860px; }

.faq-list details {
  background: var(--white);
  border: 1px solid rgba(13, 92, 85, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--pine-ink);
  list-style-position: outside;
}

.faq-list details[open] summary { color: var(--pine); margin-bottom: 0.55rem; }

.faq-list details p { color: var(--ink-soft); margin: 0 0 0.5em; font-size: 0.96rem; }
.faq-list details p:last-child { margin-bottom: 0; }

/* ---------- Glossary ---------- */

.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 2.5rem; }

.glossary-grid dt {
  font-weight: 700;
  color: var(--pine-deep);
  padding-top: 0.7rem;
}

.glossary-grid dd {
  margin: 0.15rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(13, 92, 85, 0.15);
  padding-bottom: 0.8rem;
}

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 92, 85, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.2rem; }
.post-body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.post-body p { color: var(--ink-soft); font-size: 0.95rem; }
.post-meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 0.5rem; }

/* ---------- Visit / contact ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.visit-block { margin-bottom: 1.7rem; }

.visit-block h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1rem; margin-bottom: 0.4em; }
.visit-block h3 svg { width: 19px; height: 19px; fill: var(--amber-deep); flex: none; }
.visit-block p { color: var(--ink-soft); margin-bottom: 0.35em; }
.visit-block a { font-weight: 600; }

.hours-table { border-collapse: collapse; width: 100%; max-width: 380px; }

.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(13, 92, 85, 0.18);
  font-size: 0.96rem;
}

.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--ink-soft); text-align: right; }

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--white);
  min-height: 440px;
}

.visit-map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }

/* ---------- Dark feature band ---------- */

.band-dark {
  background: linear-gradient(155deg, var(--pine-deep) 0%, var(--pine) 90%);
  color: var(--sage-soft);
}

.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .section-sub, .band-dark p { color: var(--sage); }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(640px 320px at 18% 0%, rgba(232, 161, 61, 0.16), transparent 65%),
    linear-gradient(150deg, var(--pine) 0%, var(--pine-deep) 100%);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-inner { text-align: center; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: var(--sage); font-size: 1.1rem; margin-bottom: 1.7em; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine-ink);
  color: var(--sage);
  padding-top: clamp(3rem, 6vw, 4rem);
  border-top: 3px solid var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2.2rem;
  padding-bottom: 2.6rem;
}

.footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; }

.footer-brand p { font-size: 0.93rem; color: rgba(207, 227, 220, 0.75); max-width: 28em; }

.footer-col h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a { display: block; color: var(--sage); text-decoration: none; margin-bottom: 0.5rem; font-size: 0.93rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col p { font-size: 0.93rem; color: rgba(207, 227, 220, 0.75); }

.social-row { display: flex; gap: 0.6rem; margin-top: 1.1rem; }

.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
}

.social-row a:hover { background: rgba(255, 255, 255, 0.22); }
.social-row svg { width: 17px; height: 17px; fill: var(--sage-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: rgba(207, 227, 220, 0.8);
}

.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--sage); }
.footer-bottom a:hover { color: var(--white); }

/* Mobile sticky call bar */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(250, 246, 240, 0.97);
  border-top: 1px solid rgba(13, 92, 85, 0.15);
  box-shadow: 0 -6px 20px rgba(10, 47, 44, 0.12);
}

.mobile-cta .btn { flex: 1; justify-content: center; }

@media (max-width: 920px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .site-nav > ul > li > a { font-size: 0.86rem; padding-inline: 0.5rem; }
  .brand img { height: 44px; }
}

@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doctor-hero { grid-template-columns: 300px 1fr; }
}

@media (max-width: 920px) {
  html { scroll-padding-top: 90px; }

  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }

  .visit-grid { grid-template-columns: 1fr; }
  .visit-map { min-height: 340px; }
  .visit-map iframe { min-height: 340px; }

  .doctor-hero { grid-template-columns: 1fr; }
  .doctor-hero img { max-width: 420px; }

  .info-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .form-cards { grid-template-columns: 1fr; }
  .fact-cards { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--cream);
    box-shadow: 0 20px 40px rgba(10, 47, 44, 0.16);
    padding: 0.6rem 1.25rem 1.4rem;
    display: none;
  }

  .site-nav.is-open { display: block; }

  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }

  .site-nav > ul > li { border-bottom: 1px solid rgba(13, 92, 85, 0.1); }

  .site-nav > ul > li > a {
    padding: 0.9rem 0.25rem;
    font-size: 1.02rem;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.6rem 0.9rem;
    min-width: 0;
  }

  .dropdown-wide { column-count: 1; }

  .has-dropdown.is-open > .dropdown { display: block; }
  .has-dropdown:hover > .dropdown:not(.forced) { }

  .nav-cta { margin: 1rem 0 0; display: flex; justify-content: center; }
}

@media (max-width: 560px) {
  .card-grid, .card-grid-2, .post-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar-inner { justify-content: center; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
