﻿/* ==========================================================================
   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: #f7f7f2;
  --cream-deep: #ecece0;
  --pine: #40604b;
  --pine-deep: #2d4634;
  --pine-ink: #1f3325;
  --sage: #cdd9bd;
  --sage-soft: #e8eddd;
  --amber: #a9bb8d;
  --amber-deep: #4d5e34;
  --ink: #262b22;
  --ink-soft: #525b4d;
  --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(31, 51, 37, 0.08);
  --shadow-lift: 0 16px 38px rgba(31, 51, 37, 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-xl { padding: 1.15rem 2.7rem; font-size: 1.15rem; }

.btn-primary {
  background: var(--pine);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(64, 96, 75, 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(64, 96, 75, 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(77, 94, 52, 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(247, 247, 242, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(64, 96, 75, 0.08);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(31, 51, 37, 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(64, 96, 75, 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(64, 96, 75, 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(169, 187, 141, 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: var(--shadow-lift);
}

/* Sage offset accent, used only on the homepage portrait */
.media-accent img { box-shadow: -14px 14px 0 0 var(--sage), var(--shadow-lift); }

/* Office map */
.map-link { display: block; border-radius: var(--radius-lg); }
.map-link .split-media img { aspect-ratio: 16 / 9; }
.map-note { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.55rem; text-align: right; }

.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(64, 96, 75, 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='%232d4634' 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(64, 96, 75, 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(64, 96, 75, 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(31, 51, 37, 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(64, 96, 75, 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(64, 96, 75, 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(64, 96, 75, 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: inside;
  padding-left: 0.25rem;
}

.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(64, 96, 75, 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(64, 96, 75, 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: stretch;
}

/* Both office columns end at the same place: the last panel in each stretches */
.visit-grid > div { display: flex; flex-direction: column; }
.visit-grid > div > .hero-panel-light:last-child { flex-grow: 1; }
.visit-grid > div > .btn { align-self: flex-start; }

.office-cta { text-align: center; margin-top: clamp(2.2rem, 4vw, 3.2rem); }

.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(64, 96, 75, 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(169, 187, 141, 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(205, 217, 189, 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(205, 217, 189, 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(205, 217, 189, 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(247, 247, 242, 0.97);
  border-top: 1px solid rgba(64, 96, 75, 0.15);
  box-shadow: 0 -6px 20px rgba(31, 51, 37, 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(31, 51, 37, 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(64, 96, 75, 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; }
}


/* ---------- Photo-free heros (Phamduong) ---------- */

.hero-flat {
  background:
    radial-gradient(700px 380px at 88% 12%, rgba(169, 187, 141, 0.16), transparent 62%),
    linear-gradient(150deg, var(--pine-ink) 0%, var(--pine) 100%);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.hero-flat .hero-photo-copy { max-width: 640px; padding-block: 0; }

.page-hero-flat {
  background:
    radial-gradient(560px 300px at 90% 0%, rgba(169, 187, 141, 0.14), transparent 62%),
    linear-gradient(150deg, var(--pine-ink) 0%, var(--pine) 100%);
  padding-block: clamp(2.6rem, 6vw, 4rem);
}

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

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  color: var(--white);
}

.hero-panel h3 { color: var(--white); margin-bottom: 0.6rem; }
.hero-panel p { color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }

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

@media (max-width: 920px) { .hero-grid-flat { grid-template-columns: 1fr; } }

.avatar-lg {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(145deg, var(--pine) 0%, var(--pine-deep) 100%);
  box-shadow: 0 10px 26px rgba(64, 96, 75, 0.35);
  flex: none;
}

.brand img { height: 38px; }
@media (max-width: 1120px) { .brand img { height: 32px; } }

/* ---------- Panel & footer utilities ---------- */
.hero-panel .text-link { color: var(--white); }
.hero-panel-light {
  background: var(--white);
  border: 1px solid rgba(64, 96, 75, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.hero-panel-light h3, .hero-panel-light h2.panel-h { color: var(--pine-ink); font-family: var(--font-body); font-size: 1.22rem; font-weight: 700; margin: 0 0 0.5rem; }
.hero-panel-light p { color: var(--ink-soft); }
.avatar-row { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 0.8rem; }
.avatar-row h3 { margin: 0; }
.avatar-row p { margin: 0; font-size: 0.9rem; }
.footer-wordmark { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 0.4rem; }

.mt-md { margin-top: 1rem; }

.hero-panel h2 { font-family: var(--font-body); font-size: 1.22rem; font-weight: 700; color: var(--white); margin: 0 0 0.6rem; }
.legal-h { font-family: var(--font-body); font-size: 1.22rem; font-weight: 700; color: var(--pine-deep); margin: 1.8rem 0 0.4rem; }



/* ---------- Front page: wave + stats ---------- */

.hero-flat { position: relative; padding-bottom: clamp(5.5rem, 11vw, 8.5rem); }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg { display: block; width: 100%; height: clamp(34px, 5vw, 64px); }
.hero-wave path { fill: var(--cream); }

.stat-band { padding-block: clamp(2.2rem, 5vw, 3.5rem); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-item { text-align: center; }

.stat-item b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--pine);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 920px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; } }

/* ---------- Text wordmark ---------- */
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--pine-ink); letter-spacing: 0.01em; }
.brand-word small { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-deep); }
@media (max-width: 1120px) { .brand-word strong { font-size: 1.1rem; } }

/* ---------- Photo slot placeholders ---------- */
.photo-slot {
  border: 2px dashed rgba(64, 96, 75, 0.4);
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--ink-soft);
  min-height: 260px;
}
.photo-slot svg { width: 34px; height: 34px; fill: var(--pine); opacity: 0.6; }
.photo-slot b { color: var(--pine-deep); font-size: 0.95rem; }
.photo-slot span { font-size: 0.82rem; }
.photo-slot-portrait { aspect-ratio: 4 / 5; }

/* ---------- Hero media ---------- */
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- Polish pass ---------- */
.btn { transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease; }
.btn:hover { transform: translateY(-2px); }
.service-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.service-card:hover { transform: translateY(-4px); }
.form-card-line small { display: inline; margin-left: 0.35rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .field-full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--pine-ink); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(64, 96, 75, 0.3);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
}
.form-success {
  background: var(--sage-soft);
  border: 1px solid rgba(64, 96, 75, 0.25);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  color: var(--pine-deep);
  font-weight: 600;
}
.form-error {
  background: #f9ece6;
  border: 1px solid rgba(143, 86, 32, 0.35);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  color: #7a4416;
  font-weight: 600;
  margin-top: 1rem;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Article pages ---------- */
.article-body { max-width: 760px; }
.article-body h2 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; color: var(--pine-deep); margin: 1.9rem 0 0.5rem; }
.article-body p { color: var(--ink-soft); }
.article-body ul { color: var(--ink-soft); padding-left: 1.2rem; }
.article-body li { margin-bottom: 0.35rem; }


/* ---------- Video cards (click-to-load) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
@media (max-width: 680px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(64, 96, 75, 0.18);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  font: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.video-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.video-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.video-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(320px 180px at 80% 10%, rgba(169, 187, 141, 0.25), transparent 60%),
    linear-gradient(150deg, var(--pine-ink) 0%, var(--pine) 100%);
}
.video-thumb svg { width: 62px; height: 62px; fill: var(--white); opacity: 0.95; }
.video-meta { display: block; padding: 1rem 1.2rem 1.1rem; }
.video-meta b { color: var(--pine-ink); }
.video-meta small { display: block; color: var(--ink-soft); font-size: 0.8rem; margin-top: 0.3rem; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.split-media-square img { aspect-ratio: 4 / 3; }


.split-start { align-items: flex-start; }

/* ---------- Profile card (photo + text as one) ---------- */
.profile-card {
  background: var(--white);
  border: 1px solid rgba(64, 96, 75, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.profile-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.profile-card-body { padding: 1.4rem 1.6rem 1.5rem; }
.profile-card-body h3 { color: var(--pine-ink); margin: 0 0 0.5rem; }
.profile-card-body p { color: var(--ink-soft); }


/* ---------- Service page variety + portrait sizing ---------- */
.split-flip > :first-child { order: 2; }
@media (max-width: 920px) { .split-flip > :first-child { order: 0; } }

/* On phones Dr. Sharon's photo swaps to the full square version, uncropped */
@media (max-width: 920px) {
  .split-media-square img, .profile-card img { aspect-ratio: 1 / 1; }
}
.panel-narrow { max-width: 720px; }
.profile-card, .split-media-square { max-width: 480px; margin-inline: auto; }

