/* ===========================================================
   Dra. Soto Dentista — El Monte
   Design system v1 (mirror Downey)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Palette — 60/25/10/5 rhythm */
  --navy: #0E2A47;          /* anchor 60% */
  --navy-tint: #15355A;
  --navy-deep: #081C30;
  --charcoal: #1F2937;      /* body 25% */
  --charcoal-soft: #3C4654;
  --cerulean: #2B82F6;      /* accent 10% */
  --cerulean-deep: #1862CC;
  --coral: #F47A6B;         /* warm pop 5% */
  --coral-soft: #F9A99E;
  --bone: #F4EDE2;          /* warm cream 5% */
  --bone-deep: #ECE2D2;
  --paper: #FBF7F0;
  --line: #E5DCC9;
  --white: #FFFFFF;
  --ink-on-navy: #F4EDE2;
  --muted: #6B6258;

  /* Type */
  --display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Scale */
  --step--1: clamp(.78rem, .76rem + .12vw, .86rem);
  --step-0:  clamp(.96rem, .92rem + .2vw, 1.06rem);
  --step-1:  clamp(1.12rem, 1.04rem + .4vw, 1.32rem);
  --step-2:  clamp(1.32rem, 1.18rem + .7vw, 1.7rem);
  --step-3:  clamp(1.6rem, 1.36rem + 1.2vw, 2.2rem);
  --step-4:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-5:  clamp(2.6rem, 1.9rem + 3.5vw, 4.4rem);
  --step-6:  clamp(3.2rem, 2.2rem + 5vw, 5.8rem);

  /* Spacing */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 880px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* Radius / shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(14,42,71,.06), 0 4px 14px rgba(14,42,71,.05);
  --shadow-md: 0 10px 30px -10px rgba(14,42,71,.15), 0 4px 10px rgba(14,42,71,.06);
  --shadow-lg: 0 30px 60px -20px rgba(14,42,71,.25), 0 18px 36px -18px rgba(14,42,71,.12);

  /* Density (tweak-able) */
  --density: 1;
}

[data-density="compact"] { --density: .82; }
[data-density="airy"]    { --density: 1.18; }

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
  font-feature-settings: 'kern','liga','ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cerulean-deep); }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
::selection { background: var(--coral); color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.012em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -.02em; }
h2 { font-size: var(--step-4); letter-spacing: -.018em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 500; }
p  { margin: 0 0 1em; text-wrap: pretty; }
small, .small { font-size: var(--step--1); color: var(--muted); }

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--coral);
  margin: 0 0 var(--s-4);
  display: inline-block;
}
.eyebrow::before { content: "—  "; opacity: .8; }

.italic-serif { font-family: var(--display); font-style: italic; font-weight: 400; }
.coral { color: var(--coral); }
.cerulean { color: var(--cerulean); }
.navy { color: var(--navy); }

/* ===== Layout ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: calc(var(--s-9) * var(--density)) 0; }
.section-tight { padding: calc(var(--s-7) * var(--density)) 0; }
.bg-bone { background: var(--bone); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: var(--ink-on-navy); }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4 { color: var(--bone); }
.bg-cream-strip { background: linear-gradient(180deg, var(--paper) 0%, var(--bone) 100%); }

/* ===== Top utility bar ===== */
.utility {
  background: var(--navy-deep);
  color: var(--bone);
  font-size: .8rem;
  padding: 8px 0;
  letter-spacing: .01em;
}
.utility .wrap { display: flex; justify-content: space-between; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.utility a { color: var(--bone); text-decoration: none; opacity: .9; }
.utility a:hover { opacity: 1; color: var(--coral-soft); }
.utility .util-left, .utility .util-right { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.utility .dot { color: var(--coral); margin: 0 .35em; }

/* ===== Primary nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(229,220,201,.5);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: var(--s-5); }
.brand {
  display: flex; flex-direction: column; line-height: 1; text-decoration: none;
}
.brand-mark { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--navy); letter-spacing: -.01em; }
.brand-sub  { font-family: var(--body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: var(--s-5); align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--charcoal);
  font-size: .94rem; font-weight: 500;
  padding: 8px 4px; position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.is-active { color: var(--navy); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px;
  background: var(--coral); border-radius: 2px;
}
.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--navy); color: var(--bone);
  font-size: .92rem; font-weight: 500; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.nav-links a.nav-cta:hover { background: var(--cerulean-deep); color: var(--white); transform: translateY(-1px); }
.nav-cta svg { flex-shrink: 0; }
.nav-links a.nav-phone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--navy);
  text-decoration: none; flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.nav-phone svg { width: 18px; height: 18px; }
.nav-links a.nav-phone:hover { background: var(--coral); color: #fff; border-color: var(--coral); transform: translateY(-1px); }
.lang-toggle {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none;
}
.lang-toggle:hover { border-color: var(--coral); color: var(--coral); }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; }
.lang-toggle svg { width: 15px; height: 15px; }
.nav-burger { display: none; background: transparent; border: 0; padding: 8px; }
.nav-burger svg { width: 28px; height: 28px; stroke: var(--navy); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper); padding: var(--s-5) var(--gutter);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    align-items: flex-start; gap: var(--s-3);
  }
  .nav.is-open .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 500; font-size: .98rem;
  text-decoration: none; border: 0;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 6px 18px -6px rgba(244,122,107,.55); }
.btn-primary:hover { background: #ec5e4d; color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(244,122,107,.65); }
.btn-secondary { background: var(--navy); color: var(--bone); }
.btn-secondary:hover { background: var(--navy-tint); color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--bone); }
.btn-ghost-light { background: transparent; color: var(--bone); border: 1px solid rgba(244,237,226,.4); }
.btn-ghost-light:hover { background: rgba(244,237,226,.1); color: var(--white); border-color: var(--bone); }
.btn-arrow::after { content: "→"; transition: transform .2s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ===== Editorial photo placeholders =====
   Until real photography drops in, these render as warm-toned cards
   with art-direction notes — reads as intentional editorial styling. */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background: linear-gradient(135deg, #E8D5BC 0%, #D9B89A 45%, #C9A085 100%);
  display: flex; align-items: flex-end; padding: var(--s-5);
  isolation: isolate; color: rgba(30,20,10,.7);
  min-height: 240px;
}
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(255,240,210,.5), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(244,122,107,.18), transparent 60%);
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .2  0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
  mix-blend-mode: multiply; opacity: .35;
}
.photo .photo-note {
  font-family: var(--display); font-style: italic; font-size: .85rem;
  line-height: 1.4; max-width: 30ch; opacity: .85;
}
.photo .photo-note::before { content: "❋ "; opacity: .6; }

/* Real photo inside a .photo frame — kills the decorative gradient/noise overlay */
.photo.has-photo { background: var(--bone-deep); padding: 0; }
.photo.has-photo::before,
.photo.has-photo::after { content: none; display: none; }
.photo.has-photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.photo.has-photo .photo-note { display: none; }

/* photo color variants */
.photo--rose   { background: linear-gradient(135deg, #F0CDB3 0%, #E5A793 50%, #D17F73 100%); }
.photo--sand   { background: linear-gradient(135deg, #EFE2C9 0%, #DDC59C 50%, #BFA070 100%); }
.photo--moss   { background: linear-gradient(135deg, #D9D9B5 0%, #A8B58C 55%, #7B8F6E 100%); }
.photo--sky    { background: linear-gradient(135deg, #C7D8E8 0%, #8FA9C4 55%, #5B7595 100%); color: rgba(15,25,40,.7); }
.photo--coral  { background: linear-gradient(135deg, #F8C2B5 0%, #F2917F 55%, #D85F4D 100%); color: rgba(255,255,255,.85); }
.photo--cream  { background: linear-gradient(135deg, #F8F0DE 0%, #EAD9B8 55%, #D8BD90 100%); }
.photo--navy   { background: linear-gradient(135deg, #355474 0%, #1F3A5C 55%, #0E2A47 100%); color: rgba(244,237,226,.8); }
.photo--clay   { background: linear-gradient(135deg, #E8C7A8 0%, #C99879 50%, #A06F50 100%); }

.photo.is-tall { min-height: 480px; }
.photo.is-square { aspect-ratio: 1; min-height: 0; }
.photo.is-wide { aspect-ratio: 16/9; min-height: 0; }
.photo.is-portrait { aspect-ratio: 3/4; min-height: 0; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-7);
  align-items: center; min-height: 78vh;
  padding: var(--s-8) 0;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); min-height: 0; padding: var(--s-7) 0; }
}
.hero-eyebrow { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.hero-eyebrow .line { flex: 0 0 40px; height: 1px; background: var(--coral); }
.hero h1 {
  font-size: var(--step-6);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--navy);
  margin-bottom: var(--s-5);
}
.hero h1 .italic { font-style: italic; font-weight: 500; color: var(--coral); }
.hero-lede { font-size: var(--step-1); color: var(--charcoal-soft); max-width: 46ch; margin-bottom: var(--s-6); }
.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero-photo { position: relative; aspect-ratio: 4/5; }
.hero-photo .hero-tag {
  position: absolute; left: -18px; bottom: 28px;
  background: var(--bone); color: var(--navy);
  padding: 10px 16px; border-radius: 4px;
  font-family: var(--display); font-style: italic; font-size: .96rem;
  box-shadow: var(--shadow-md);
}

/* hero slider dots */
.hero-slider-controls {
  position: absolute; left: var(--gutter); bottom: var(--s-6);
  display: flex; gap: var(--s-3); align-items: center;
  z-index: 5;
}
.hero-dot {
  width: 36px; height: 3px; background: rgba(14,42,71,.2); border: 0; padding: 0;
  border-radius: 2px; transition: background .3s;
}
.hero-dot.is-active { background: var(--coral); }
.hero-slide-count {
  font-family: var(--display); font-style: italic; font-size: .92rem; color: var(--muted);
  margin-left: var(--s-3);
}

/* Hero variants */
[data-hero="static"] .hero-slider-controls { display: none; }
[data-hero="split"] .hero-grid { grid-template-columns: 1fr 1fr; }
[data-hero="split"] .hero-photo { aspect-ratio: 1; }

/* ===== Positioning row (6 beats) ===== */
.beats {
  background: var(--bone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6) 0;
}
.beats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-5);
}
@media (max-width: 900px) { .beats-grid { grid-template-columns: repeat(2, 1fr); } }
.beat {
  text-align: center;
}
.beat-icon {
  width: 38px; height: 38px; margin: 0 auto var(--s-3);
  color: var(--coral);
}
.beat-label {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; color: var(--navy);
  line-height: 1.3;
}

/* ===== Service cards ===== */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-soft);
  color: inherit;
}
.svc-card .photo { min-height: 200px; border-radius: 0; }
.svc-card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.svc-card h3 { margin: 0; font-size: var(--step-1); }
.svc-card p { margin: 0; color: var(--charcoal-soft); font-size: .96rem; }
.svc-card-meta {
  margin-top: auto; padding-top: var(--s-4);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .86rem; color: var(--muted);
  border-top: 1px solid var(--line);
}
.svc-card-meta .arrow { color: var(--coral); font-size: 1.1rem; }

/* ===== Testimonials ===== */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
}
.testimonial-stars {
  color: var(--coral); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: var(--s-3);
}
.testimonial-quote {
  font-family: var(--display); font-style: italic; font-size: 1.12rem;
  color: var(--navy); line-height: 1.45; margin-bottom: var(--s-5);
  text-wrap: pretty;
}
.testimonial-quote::before { content: "“"; font-size: 2.2rem; line-height: 0; vertical-align: -.4em; color: var(--coral); margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: var(--s-3); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #E5A793, #D17F73);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); color: white; font-weight: 600;
}
.testimonial-name { font-weight: 600; color: var(--navy); font-size: .94rem; line-height: 1.2; }
.testimonial-meta { font-size: .82rem; color: var(--muted); }

/* ===== Promise / split layouts ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--s-6); } }
.split--narrow { grid-template-columns: 5fr 7fr; }
.split--narrow-rev { grid-template-columns: 7fr 5fr; }

/* bilingual promise */
.promise-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7);
  border-top: 1px solid rgba(244,237,226,.18);
  padding-top: var(--s-6);
  margin-top: var(--s-6);
}
@media (max-width: 700px) { .promise-pair { grid-template-columns: 1fr; gap: var(--s-5); } }
.promise-pair .lang-tag {
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--coral); margin-bottom: var(--s-3); font-weight: 600;
}
.promise-pair p {
  font-family: var(--display); font-style: italic; font-size: var(--step-1);
  line-height: 1.45; color: var(--bone); margin: 0;
}

/* ===== Stats row ===== */
.stats-strip {
  background: var(--navy);
  color: var(--bone);
  padding: var(--s-6) 0;
}
.stats-strip .stats-row {
  display: flex; justify-content: space-around; align-items: center; gap: var(--s-5);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center; min-width: 150px;
}
.stat-num {
  font-family: var(--display); font-size: var(--step-3); color: var(--coral); font-weight: 600;
  letter-spacing: -.015em; line-height: 1;
}
.stat-num .small-prefix { font-size: .6em; vertical-align: super; margin-right: 2px; opacity: .9; }
.stat-label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; opacity: .85; }

/* ===== Areas served line ===== */
.areas-line {
  font-family: var(--display); font-style: italic; font-size: var(--step-1);
  text-align: center; color: var(--navy); line-height: 1.5;
  max-width: 60ch; margin: 0 auto;
}
.areas-line strong { font-style: normal; color: var(--coral); font-weight: 600; }

/* ===== Contact strip (dark) ===== */
.contact-strip {
  background: var(--navy);
  color: var(--bone);
  padding: calc(var(--s-8) * var(--density)) 0;
}
.contact-strip h2 { color: var(--bone); }
.contact-card {
  background: var(--navy-deep);
  border: 1px solid rgba(244,237,226,.12);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.contact-card a { color: var(--bone); }
.contact-card .phone-big {
  font-family: var(--display); font-size: var(--step-3); color: var(--coral);
  text-decoration: none; display: inline-block; margin: var(--s-3) 0;
  letter-spacing: -.01em;
}
.contact-card .phone-big:hover { color: var(--coral-soft); }
.welcome-text {
  font-family: var(--display); font-style: italic; color: var(--bone);
  font-size: 1.02rem; opacity: .88;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  color: var(--bone);
  padding: var(--s-8) 0 var(--s-5);
}
.footer a { color: var(--bone); text-decoration: none; opacity: .8; }
.footer a:hover { opacity: 1; color: var(--coral-soft); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-family: var(--body); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin: 0 0 var(--s-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-brand .brand-mark { color: var(--bone); }
.footer-brand p { font-size: .94rem; opacity: .8; margin-top: var(--s-3); max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(244,237,226,.15); padding-top: var(--s-5);
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-size: .82rem; opacity: .7;
}
.footer-other {
  margin-top: var(--s-3); font-size: .82rem; opacity: .55;
  font-style: italic; font-family: var(--display);
}

/* ===== Page header / banner ===== */
.page-banner {
  background: var(--bone);
  padding: calc(var(--s-9) * var(--density)) 0 calc(var(--s-7) * var(--density));
  border-bottom: 1px solid var(--line);
}
.page-banner .eyebrow { color: var(--coral); }
.page-banner h1 {
  font-size: var(--step-5);
  max-width: 18ch;
  margin-bottom: var(--s-5);
}
.page-banner .lede { font-size: var(--step-1); color: var(--charcoal-soft); max-width: 56ch; }

/* ===== Forms ===== */
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label {
  font-size: .82rem; font-weight: 500; color: var(--charcoal);
  letter-spacing: .02em; display: block; margin-bottom: 6px;
}
.form label .req { color: var(--coral); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%; padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: inherit;
  color: var(--charcoal);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0; border-color: var(--cerulean);
  box-shadow: 0 0 0 3px rgba(43,130,246,.18);
}
.form textarea { min-height: 130px; resize: vertical; }
.form-checkbox { display: flex; gap: var(--s-3); align-items: flex-start; font-size: .9rem; line-height: 1.4; }
.form-checkbox input { margin-top: 3px; }
.form-error {
  color: #B0331F; font-size: .82rem; margin-top: 4px; display: none;
}
.form-error.is-visible { display: block; }
.form-status {
  padding: var(--s-4); border-radius: var(--r-md); font-size: .92rem; display: none;
}
.form-status.is-success { display: block; background: #E8F2E8; color: #1B5E20; border: 1px solid #A5C9A5; }
.form-status.is-error   { display: block; background: #FDECEC; color: #8C1F1F; border: 1px solid #E5B4B4; }

/* ===== Tab control ===== */
.tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bone-deep);
  border-radius: 999px;
  margin-bottom: var(--s-5);
}
.tab {
  flex: 1; padding: 10px 18px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--charcoal-soft);
  transition: background .15s ease, color .15s ease;
}
.tab.is-active { background: var(--navy); color: var(--bone); }
.tab:not(.is-active):hover { color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
@media (max-width: 600px) { .tabs { flex-direction: column; border-radius: var(--r-md); } .tab { border-radius: var(--r-sm); } }

/* ===== Hours / mini tables ===== */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table td { padding: 12px 0; font-size: .96rem; }
.hours-table td:first-child { font-weight: 500; color: var(--navy); }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--charcoal-soft); }
.hours-table tr.is-today { background: rgba(244,122,107,.07); }
.hours-table tr.is-today td:first-child::before { content: "● "; color: var(--coral); }
.hours-table tr.is-today td:last-child { color: var(--coral); font-weight: 500; }
.hours-table tr.is-closed td:last-child { color: var(--muted); }

/* ===== Sidebar TOC ===== */
.toc-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: var(--s-7);
  align-items: flex-start;
}
@media (max-width: 900px) { .toc-layout { grid-template-columns: 1fr; } }
.toc {
  position: sticky; top: 100px;
  font-size: .9rem;
}
@media (max-width: 900px) { .toc { position: relative; top: 0; padding: var(--s-4); background: var(--bone); border-radius: var(--r-md); } }
.toc h5 {
  font-family: var(--body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin: 0 0 var(--s-3); font-weight: 600;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 6px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px; text-decoration: none;
  color: var(--charcoal-soft); padding: 4px 0; line-height: 1.35;
  border-left: 2px solid transparent; padding-left: 12px;
  transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--navy); }
.toc a.is-active { color: var(--navy); border-left-color: var(--coral); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--display); font-style: italic; color: var(--coral); font-size: .82rem; min-width: 22px; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: var(--s-5); font-size: 1.04rem; font-weight: 500; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  font-family: var(--display);
}
.faq-q::after { content: "+"; color: var(--coral); font-size: 1.5rem; font-weight: 300; transition: transform .2s ease; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  color: var(--charcoal-soft);
}
.faq-item.is-open .faq-a { max-height: 800px; }
.faq-a-inner { padding: 0 var(--s-5) var(--s-5); }

/* ===== Insurance grid ===== */
.insurance-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4);
}
@media (max-width: 900px) { .insurance-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .insurance-grid { grid-template-columns: repeat(2, 1fr); } }
.insurance-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-style: italic; color: var(--navy);
  font-size: 1.04rem; text-align: center; min-height: 80px;
  line-height: 1.2;
}

/* ===== Payment options ===== */
.pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
}
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.pay-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.pay-card-name {
  font-family: var(--display); font-size: 1.2rem; color: var(--navy);
  margin-bottom: 4px;
}
.pay-card-tag {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: var(--s-3); font-weight: 600;
}
.pay-card p { font-size: .9rem; color: var(--charcoal-soft); margin: 0; }
.pay-card a { color: var(--cerulean-deep); font-size: .88rem; }

/* ===== Step list (first visit) ===== */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  display: flex; gap: var(--s-4);
}
.step-num {
  font-family: var(--display); font-style: italic; font-size: 2.4rem;
  color: var(--coral); line-height: 1; flex-shrink: 0; min-width: 60px;
}
.step h4 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--navy); margin: 0 0 8px; }
.step p { font-size: .96rem; color: var(--charcoal-soft); margin: 0; }

/* ===== Team grid ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }
.team-card .photo { aspect-ratio: 4/5; margin-bottom: var(--s-4); border-radius: var(--r-md); min-height: 0; }
.team-name { font-family: var(--display); font-size: 1.36rem; color: var(--navy); margin: 0; line-height: 1.1; }
.team-role { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin: 4px 0 var(--s-3); font-weight: 500; }
.team-bio { font-size: .94rem; color: var(--charcoal-soft); }

/* ===== Blog cards ===== */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { text-decoration: none; color: inherit; display: block; }
.blog-card .photo { aspect-ratio: 4/3; margin-bottom: var(--s-4); border-radius: var(--r-md); min-height: 0; }
.blog-card-meta { display: flex; gap: var(--s-3); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: var(--s-3); font-weight: 600; }
.blog-card h3 { font-size: 1.32rem; margin: 0 0 var(--s-3); line-height: 1.15; }
.blog-card p { font-size: .94rem; color: var(--charcoal-soft); margin: 0; }
.blog-card:hover h3 { color: var(--cerulean-deep); }
.blog-card-readmore {
  display: inline-block; margin-top: var(--s-3);
  color: var(--coral); font-weight: 600; font-size: .9rem;
  font-family: var(--body);
}
.blog-card:hover .blog-card-readmore { color: var(--cerulean-deep); }

.cat-filter {
  display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-7);
}
.cat-chip {
  padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: .86rem; color: var(--charcoal-soft);
  cursor: pointer; transition: all .15s ease;
  font-family: var(--body);
}
.cat-chip:hover { border-color: var(--coral); }
.cat-chip.is-active { background: var(--navy); color: var(--bone); border-color: var(--navy); }

/* ===== Article ===== */
.article {
  max-width: 720px; margin: 0 auto;
  font-size: 1.08rem; line-height: 1.75;
}
.article h2 { font-size: var(--step-3); margin-top: var(--s-7); }
.article h3 { font-size: var(--step-2); margin-top: var(--s-6); }
.article p { margin-bottom: 1.2em; color: var(--charcoal); }
.article ul, .article ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.article ul li, .article ol li { margin-bottom: .5em; }
.article blockquote {
  border-left: 3px solid var(--coral);
  padding: var(--s-3) var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--display); font-style: italic; font-size: 1.24rem;
  color: var(--navy); line-height: 1.45;
}
.article .lede {
  font-size: 1.24rem; line-height: 1.55; color: var(--charcoal-soft);
  margin-bottom: var(--s-6); font-family: var(--display); font-style: italic;
}
.article-hero { aspect-ratio: 21/9; margin: var(--s-6) 0; border-radius: var(--r-md); min-height: 0; }
.article-meta { display: flex; gap: var(--s-4); align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: var(--s-5); }
.article-meta::before { content: ""; }

/* ===== 404 ===== */
.notfound {
  min-height: 78vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--s-9) var(--gutter);
}
.notfound h1 {
  font-size: clamp(3rem, 8vw, 7rem); line-height: 1;
  margin-bottom: var(--s-3);
}
.notfound .zero-italic {
  font-style: italic; color: var(--coral);
  display: inline-block; transform: translateY(2px);
}
.notfound h2 { font-size: var(--step-3); color: var(--charcoal-soft); margin-bottom: var(--s-5); font-weight: 500; }
.notfound h2 span { color: var(--muted); font-style: italic; font-weight: 400; }

/* ===== Accessibility / Feature grid ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.feature-icon { color: var(--coral); margin-bottom: var(--s-3); }
.feature-card h4 { font-family: var(--display); font-size: 1.18rem; margin: 0 0 8px; }
.feature-card p { font-size: .92rem; color: var(--charcoal-soft); margin: 0; }

.badge-wcag {
  display: inline-flex; align-items: center; gap: var(--s-3);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
}
.badge-wcag-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--bone);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600;
}
.badge-wcag-text { line-height: 1.3; }
.badge-wcag-text strong { display: block; color: var(--navy); }
.badge-wcag-text span { font-size: .82rem; color: var(--muted); }

/* ===== Map ===== */
.map-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== Map decorative fallback (because real Google embed needs API key) ===== */
.map-fallback {
  aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden;
  background:
    linear-gradient(135deg, rgba(244,237,226,.7), rgba(229,220,201,.4)),
    repeating-linear-gradient(45deg, transparent 0 28px, rgba(14,42,71,.04) 28px 29px),
    repeating-linear-gradient(-45deg, transparent 0 38px, rgba(14,42,71,.04) 38px 39px),
    radial-gradient(circle at 30% 40%, rgba(43,130,246,.12), transparent 40%),
    var(--bone);
  position: relative;
  border: 1px solid var(--line);
}
.map-fallback::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 20px; background: var(--coral); border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 6px 20px rgba(244,122,107,.5);
}
.map-fallback::after {
  content: "3230 Santa Anita Ave · El Monte CA"; position: absolute; bottom: var(--s-4); left: var(--s-4);
  background: rgba(14,42,71,.85); color: var(--bone); padding: 8px 14px; border-radius: var(--r-md);
  font-size: .82rem; font-family: var(--body); letter-spacing: .02em;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }

.flex { display: flex; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

.section-title-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--s-7); gap: var(--s-5); flex-wrap: wrap;
}
.section-title-row h2 { margin: 0; max-width: 22ch; }
.section-title-row .lede { color: var(--charcoal-soft); max-width: 38ch; }

/* ===== Tweaks variations ===== */
[data-accent="coral"] { /* default */ }
[data-accent="cerulean"] .btn-primary { background: var(--cerulean); box-shadow: 0 6px 18px -6px rgba(43,130,246,.5); }
[data-accent="cerulean"] .btn-primary:hover { background: var(--cerulean-deep); }
[data-accent="cerulean"] .eyebrow,
[data-accent="cerulean"] .testimonial-stars,
[data-accent="cerulean"] .stat-num,
[data-accent="cerulean"] .areas-line strong,
[data-accent="cerulean"] .contact-card .phone-big { color: var(--cerulean); }
[data-accent="cerulean"] .nav-links a.is-active::after,
[data-accent="cerulean"] .toc a.is-active { border-color: var(--cerulean); }
[data-accent="cerulean"] .nav-links a.is-active::after { background: var(--cerulean); }

[data-accent="navy"] .btn-primary { background: var(--navy); color: var(--bone); box-shadow: 0 6px 18px -6px rgba(14,42,71,.5); }
[data-accent="navy"] .btn-primary:hover { background: var(--navy-tint); }

/* ===== Misc ===== */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--bone); padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

[data-comment-anchor] { /* keep anchors transparent */ }
