/* =========================================================
   CENTRAL TEXAS PEDIATRIC DENTISTRY
   "Modern Austin Pediatric Warmth"
   Palette: Sage #4A9B6F + Cream #FAF5EC + Ochre #D4872E
   Adapted from site-forge Clinical-Warm
   ========================================================= */

:root {
  /* ---- PALETTE ---- */
  --paper:        #FAF5EC;  /* warm cream ground */
  --paper-2:      #EEF7F2;  /* sage tint — alternating sections */
  --paper-soft:   #FCFAF6;
  --ink:          #1A3628;  /* deep forest — headings */
  --ink-2:        #102218;
  --sage:         #4A9B6F;  /* primary — buttons, highlights */
  --sage-2:       #6BB58A;  /* lighter sage */
  --sage-soft:    #D0EBD8;  /* very light sage bg */
  --ochre:        #D4872E;  /* accent — warmth, tags, underlines */
  --ochre-2:      #E8A050;
  --ochre-soft:   #F4DABA;
  /* base.css structural aliases */
  --accent:       #D4872E;
  --accent-2:     #E8A050;
  --accent-soft:  #F4DABA;
  --spot:         #4A9B6F;
  --muted:        #3D5A4A;
  --muted-2:      #6A8A76;
  --line:         rgba(74,155,111,.15);
  --line-2:       rgba(74,155,111,.07);

  /* ---- TYPE ---- */
  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-body:    "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* ---- SCALE ---- */
  --container:        1300px;
  --container-narrow: 1020px;
  --gutter: clamp(20px, 4vw, 52px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(26,54,40,.12);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px -20px rgba(26,54,40,.18);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
*::selection { background: var(--ink); color: var(--paper); }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.65; font-weight: 400;
  color: var(--ink); background: var(--paper);
  overflow-x: hidden; width: 100%; max-width: 100vw;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
section, header, footer { max-width: 100vw; overflow-x: clip; position: relative; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .35s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 400; letter-spacing: -.012em; line-height: 1.1; color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); }
p  { color: var(--muted); }
em, .italic { font-style: italic; font-family: var(--f-display); }
.serif { font-family: var(--f-display); font-weight: 400; }

.eyebrow {
  font-family: var(--f-body); text-transform: uppercase;
  letter-spacing: .4em; font-size: 11px; font-weight: 600;
  color: var(--ink); display: inline-block;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 24px; height: 2px;
  background: var(--ochre); margin-right: 14px; vertical-align: middle;
}
.label-mono {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
}

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(60px, 9vw, 130px) 0; }
.section--sage { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink p { color: rgba(250,245,236,.72); }
.section--ink .eyebrow { color: var(--paper); }
.section--ink .eyebrow::before { background: var(--ochre); }
.section--ochre { background: var(--ochre); color: #fff; }
.section--ochre h2 { color: #fff; }
.section--ochre p { color: rgba(255,255,255,.85); }
.grid { display: grid; gap: clamp(24px, 4vw, 56px); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 28px; border: 2px solid var(--sage);
  background: var(--sage); color: #fff;
  transition: all .35s var(--ease); cursor: pointer;
}
.btn:hover { background: transparent; color: var(--sage); opacity: 1; }
.btn--ghost {
  background: transparent; color: var(--sage); border-color: var(--sage);
}
.btn--ghost:hover { background: var(--sage); color: #fff; }
.btn--ochre {
  background: var(--ochre); border-color: var(--ochre); color: #fff;
}
.btn--ochre:hover { background: transparent; color: var(--ochre); }
.btn--white {
  background: #fff; border-color: #fff; color: var(--ink);
}
.btn--white:hover { background: transparent; color: #fff; }

/* ---- ANNOUNCE BAR ---- */
.announce {
  background: var(--ink); text-align: center; padding: 10px 20px;
  font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase;
  color: rgba(250,245,236,.75); font-weight: 500;
}
.announce span { color: var(--ochre-2); }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; }
.nav-brand { display: flex; flex-direction: column; gap: 0; }
.nav-brand-name {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 400;
  letter-spacing: .01em; color: var(--ink); line-height: 1.1;
}
.nav-brand-sub {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 1px;
}
.nav-links {
  display: flex; gap: 28px; list-style: none;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
}
.nav-links a:hover { color: var(--sage); opacity: 1; }
.nav-links .nav-ins a { color: var(--ochre); font-weight: 700; }
.nav-links .nav-ins a:hover { color: var(--ochre-2); }
.nav-cta { flex-shrink: 0; }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-burger span {
  width: 22px; height: 1.5px; background: var(--ink);
  transition: .3s var(--ease); display: block;
}

/* ---- HERO ---- */
.hero { padding: clamp(56px, 11vh, 140px) 0 clamp(44px, 7vw, 100px); }
.hero-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--muted-2); margin-bottom: 24px;
}
.hero-meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ochre); display: inline-block; }
.hero-title { margin-bottom: 18px; }
.hero-title em { color: var(--sage); }
.hero-tag {
  font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 54ch; color: var(--muted);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4vw, 64px); align-items: center;
}
.hero-img-wrap {
  position: relative; border-radius: 4px; overflow: hidden;
}
.hero-img-wrap img { width: 100%; height: 480px; object-fit: cover; }
.hero-img-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--paper); padding: 14px 18px;
  border-left: 3px solid var(--ochre);
  box-shadow: var(--shadow-soft);
}
.hero-img-badge strong {
  display: block; font-family: var(--f-display); font-size: 1.5rem;
  font-weight: 400; color: var(--ink); line-height: 1.1;
}
.hero-img-badge span {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 4px; display: block;
}

/* ---- TRUST BAR ---- */
.trust-bar { padding: clamp(32px, 5vw, 60px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-stat-num {
  font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--sage); letter-spacing: -.02em;
}
.trust-stat-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.trust-bar-divider { width: 1px; background: var(--line); height: 40px; align-self: center; }

/* ---- MARQUEE ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 13px 0; background: var(--paper-2); }
.marquee-track {
  display: flex; gap: 32px; white-space: nowrap; width: max-content;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); animation: marq 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span:nth-child(even) { color: var(--ochre); }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- INSURANCE CHIPS (the hero feature) ---- */
.ins-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ins-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1.5px solid var(--line);
  background: var(--paper); border-radius: 3px;
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  color: var(--ink); letter-spacing: .02em;
  transition: all .3s var(--ease);
}
.ins-chip:hover { border-color: var(--sage); background: var(--paper-2); }
.ins-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
  flex-shrink: 0;
}
/* Full insurance page cards */
.ins-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ins-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 28px 20px;
  border: 1.5px solid var(--line); background: var(--paper);
  text-align: center; transition: all .3s var(--ease);
}
.ins-card:hover { border-color: var(--sage); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.ins-card-name {
  font-family: var(--f-body); font-size: 14px; font-weight: 700;
  color: var(--ink); letter-spacing: .01em;
}
.ins-card-note { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ins-card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); }

/* ---- SERVICE CARDS ---- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.svc-card {
  padding: 32px 28px; border: 1.5px solid var(--line);
  background: var(--paper); transition: all .35s var(--ease);
}
.svc-card:hover { border-color: var(--sage); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.svc-card-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.svc-card-icon svg { width: 22px; height: 22px; stroke: var(--sage); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.svc-card p { font-size: 0.92rem; }
.svc-tag {
  display: inline-block; margin-top: 16px; padding: 4px 12px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ochre-soft); color: var(--ink); border-radius: 2px;
}

/* ---- TEAM CARDS ---- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.team-card { }
.team-img-wrap { position: relative; overflow: hidden; margin-bottom: 24px; }
.team-img-wrap img { width: 100%; height: 380px; object-fit: cover; object-position: top; }
.team-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 22px; background: linear-gradient(transparent, rgba(26,54,40,.85));
}
.team-name { font-family: var(--f-display); font-size: 1.4rem; color: #fff; font-weight: 400; }
.team-cred { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 4px; }
.team-bio h4 { font-size: 1rem; margin-bottom: 8px; margin-top: 18px; color: var(--sage); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.team-bio ul { list-style: none; padding: 0; }
.team-bio ul li { font-size: 0.9rem; color: var(--muted); padding: 5px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; }
.team-bio ul li::before { content: "—"; color: var(--ochre); flex-shrink: 0; }

/* ---- REVIEWS ---- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review-card {
  padding: 28px 26px; border: 1px solid var(--line); background: var(--paper);
  position: relative;
}
.review-stars { color: var(--ochre); font-size: 0.9rem; letter-spacing: .1em; margin-bottom: 14px; }
.review-quote { font-family: var(--f-display); font-size: 1.05rem; font-weight: 400; color: var(--ink); line-height: 1.5; }
.review-author { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-top: 16px; }

/* ---- PROCESS STEPS ---- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.process-step { padding: 24px 0; border-top: 2px solid var(--line); }
.process-num { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--ochre); margin-bottom: 14px; }
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.2rem; color: var(--sage);
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 18px; font-size: 0.93rem; }

/* ---- CTA BAND ---- */
.cta-band { padding: clamp(56px, 8vw, 100px) 0; background: var(--ink); }
.cta-band h2 { color: var(--paper); font-size: clamp(1.8rem, 3.5vw, 3rem); }
.cta-band p { color: rgba(250,245,236,.72); max-width: 52ch; margin-top: 16px; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info-row { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; }
.contact-info-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-soft); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.contact-info-icon svg { width: 16px; height: 16px; stroke: var(--sage); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.contact-info-text span { font-size: 0.9rem; color: var(--muted); }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-top: 16px; }
.hours-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 0.9rem; }
.hours-row span:first-child { color: var(--ink); font-weight: 600; }
.hours-row span:last-child { color: var(--muted-2); }

/* ---- FORM ---- */
form { display: flex; flex-direction: column; gap: 14px; }
form input, form textarea, form select {
  font-family: var(--f-body); font-size: 0.95rem;
  padding: 14px 16px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink);
  width: 100%; transition: border-color .3s var(--ease);
  outline: none; -webkit-appearance: none;
}
form input:focus, form textarea:focus { border-color: var(--sage); }
form textarea { resize: vertical; min-height: 120px; }
form input::placeholder, form textarea::placeholder { color: var(--muted-2); }

/* ---- FOOTER ---- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(52px, 7vw, 90px) 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-name { font-family: var(--f-display); font-size: 1.4rem; color: var(--paper); font-weight: 400; }
.footer-brand-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,245,236,.45); margin-top: 4px; }
.footer-tagline { font-size: 0.9rem; color: rgba(250,245,236,.65); margin-top: 14px; max-width: 28ch; }
.footer h5 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,245,236,.5); margin-bottom: 16px; font-weight: 600; }
.footer a { color: rgba(250,245,236,.72); display: block; font-size: 0.88rem; margin-bottom: 8px; transition: color .25s; }
.footer a:hover { color: var(--ochre-2); opacity: 1; }
.footer-credit {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid rgba(250,245,236,.12);
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .05em; color: rgba(250,245,236,.45);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-credit a { display: inline; color: var(--ochre-2); font-size: 10.5px; margin: 0; }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in, .no-js .reveal, .reveal.reveal--shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- IMAGE FALLBACK ---- */
.img-fallback { display: flex; align-items: center; justify-content: center; background: var(--paper-2); border: 1px solid var(--line); min-height: 220px; }
.img-fallback-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); padding: 24px; text-align: center; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: var(--ink); padding: clamp(44px, 8vw, 100px) 0; }
.page-hero h1 { color: var(--paper); font-size: clamp(2rem, 4.5vw, 3.8rem); }
.page-hero .eyebrow { color: var(--paper); }
.page-hero .eyebrow::before { background: var(--ochre); }
.page-hero-tag { color: rgba(250,245,236,.72); font-size: clamp(.95rem, 1.4vw, 1.1rem); max-width: 52ch; margin-top: 14px; }

/* ---- UTILITIES ---- */
.center { text-align: center; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 56px; }
.maxw-prose { max-width: 60ch; }
.pill {
  display: inline-block; padding: 4px 12px; background: var(--sage-soft);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sage); border-radius: 2px;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--sage); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; position: fixed; inset: 60px 0 auto 0; flex-direction: column;
    background: var(--paper); padding: 28px var(--gutter); gap: 20px;
    border-bottom: 1px solid var(--line); z-index: 99; box-shadow: var(--shadow-lift);
  }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .ins-card-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
}
