/* =========================================================================
   Lake Tahoe Acupuncture & Wellness — redesign
   Plain CSS design system. Recreates the homepage concept and extends it
   to the secondary pages.
   ========================================================================= */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  --indigo:        #474776;   /* header / primary */
  --indigo-dark:   #2f2f54;
  --indigo-deep:   #14141f;   /* top + bottom hairline bars */
  --ink:           #2c2c34;   /* body text */
  --ink-soft:      #5a5a66;   /* muted text */
  --script-ink:    #54546a;   /* section headings (script) */
  --stone:         #efece4;   /* warm tinted section background (was lavender #f3f1fa) */
  --stone-line:    #e2dcce;   /* warm hairline / border (was lavender-line #e4e0f1) */
  --peach:         #f7d0aa;
  --sage:          #7d8a6f;   /* warm secondary accent — decorative only (dots, glyphs, markers, borders) */
  --sage-deep:     #4f6b43;   /* warm secondary accent — text / links; AA-safe (5.97:1 on white, 5.06:1 on stone) */
  --slate:         #3f3f47;   /* footer */
  --slate-card:    #4a4a53;
  --paper:         #ffffff;
  --link:          #5b5b93;
  --link-hover:    #383862;

  --maxw:    1120px;
  --gap:     clamp(1rem, 3vw, 2rem);
  --radius:  10px;
  --shadow:  0 6px 24px rgba(40, 38, 64, .10);

  --font-script: "Raleway", "Segoe UI", system-ui, sans-serif;   /* headings */
  --font-body:   system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-family: var(--font-script); font-weight: 600; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink);
  padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Script section heading shared across pages */
.script-heading {
  font-family: var(--font-script);
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--script-ink);
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  text-align: center;
  margin: 0 0 1.6rem;
}

/* ---- Top hairline bar ------------------------------------------------- */
.topbar { background: var(--indigo-deep); height: 26px; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header { background: var(--indigo); color: #fff; position: relative; z-index: 50; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand:hover, .brand:focus { color: #fff; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; background: #fff; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-script); }
.brand .wm-kicker { font-size: .58rem; letter-spacing: .22em; opacity: .8; font-weight: 500; }
.brand .wm-main   { font-size: 1.25rem; letter-spacing: .15em; font-weight: 600; }
.brand .wm-sub    { font-size: 1rem; font-style: italic; font-weight: 300; letter-spacing: .03em; align-self: flex-end; margin-top: 1px; opacity: .95; }

.nav-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 1.6rem;
  cursor: pointer; padding: .2rem .4rem; line-height: 1;
}

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav a { color: #fff; font-size: .98rem; padding: .4rem 0; display: inline-block; }
.main-nav a:hover { text-decoration: none; color: #e7e3f6; }
.main-nav .current > a { box-shadow: inset 0 -2px 0 rgba(255,255,255,.85); }
.main-nav a.nav-phone {
  display: inline-flex; align-items: center; font-weight: 600; white-space: nowrap;
  padding: .65rem 1.6rem; border-radius: 999px; background: rgba(255,255,255,.10);
  transition: background .2s ease;
}
.main-nav a.nav-phone:hover { background: rgba(255,255,255,.20); color: #fff; text-decoration: none; }

/* Dropdowns */
.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; min-width: 230px; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .9rem .7rem; opacity: 0; visibility: hidden; transition: .16s ease; list-style: none; margin: 0;
  z-index: 60;
}
.submenu li + li { margin-top: 2px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(2px);
}
.submenu li { width: 100%; }
.submenu a { color: var(--ink); padding: .55rem .8rem; border-radius: 6px; width: 100%; }
.submenu a:hover { background: var(--stone); color: var(--link-hover); }

/* ---- Hero (home) ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 120% at 80% 120%, rgba(247,208,170,.0) 40%, rgba(247,208,170,.55) 100%),
    linear-gradient(120deg, #c9b6dd 0%, #b3a0d2 38%, #cda9c2 70%, #f3c7a4 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero-words { font-family: var(--font-script); font-weight: 300; letter-spacing: .03em; line-height: 1.12; margin: 0; color: #fff; text-shadow: 0 2px 18px rgba(70,55,90,.28); }
.hero-words span { display: block; font-size: clamp(2rem, 5.6vw, 3.4rem); }
.hero-words .l2 { margin-left: clamp(1.5rem, 7vw, 5rem); }
.hero-words .l3 { margin-left: clamp(3rem, 14vw, 10rem); }
.hero-stones { position: absolute; right: clamp(-2rem, 2vw, 4rem); bottom: -2px; width: clamp(180px, 32vw, 360px); z-index: 1; opacity: .96; }
@media (max-width: 720px) { .hero-stones { opacity: .35; } }

/* ---- Generic section spacing ----------------------------------------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tint { background: var(--stone); }
.section--narrow .container { max-width: 820px; }
/* tighten the gap between banner/breadcrumb and the first real content so
   secondary pages don't open on a void */
.breadcrumbs + .section { padding-top: clamp(1.4rem, 3vw, 2.2rem); }
/* Intro lead: one left-aligned statement at a comfortable measure, then the
   first subhead. (Left-aligned so multi-line leads read cleanly; the home
   welcome-lead is the one deliberately-centered lead, styled in home.css.) */
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink); max-width: 62ch; margin: 0 0 1.3rem; }

/* Article lead image — carries the Learning Center card photo up under the title */
.article-lead { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-lead img { width: 100%; height: clamp(200px, 34vw, 360px); object-fit: cover; display: block; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .3rem 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---- Page banner (secondary pages) ----------------------------------- */
.page-banner {
  color: #fff; text-align: center; padding-block: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(120% 140% at 85% 120%, rgba(247,208,170,.5), rgba(247,208,170,0) 60%),
    linear-gradient(120deg, #5a5a8c 0%, #6f5f9c 55%, #a98fb6 100%);
}
.page-banner h1 { font-family: var(--font-script); font-weight: 300; letter-spacing: .02em; font-size: clamp(2.1rem, 5vw, 3rem); margin: 0; color: #fff; }
.page-banner p { margin: .4rem 0 0; opacity: .92; }
.breadcrumbs { background: var(--stone); border-bottom: 1px solid var(--stone-line); font-size: .9rem; }
.breadcrumbs .container { padding-block: .7rem; }
.breadcrumbs a { color: var(--link); }
.breadcrumbs span { color: var(--ink-soft); }

/* ---- Cards ------------------------------------------------------------ */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; margin-inline: auto; }
@media (max-width: 600px) { .card-grid--2 { grid-template-columns: 1fr; } }

/* equal-height testimonial cards regardless of quote length */
.card-grid--quotes { grid-auto-rows: 1fr; }
.card-grid--quotes .card { height: 100%; }
/* deliberate large pale quote watermark sitting behind the testimonial text */
.card-grid--quotes .card-body { position: relative; }
.card-grid--quotes .card-body::before {
  content: "\201C"; position: absolute; top: -0.6rem; left: .6rem;
  font-family: Georgia, "Times New Roman", serif; font-size: 6.5rem; line-height: 1;
  color: var(--sage); opacity: .16; z-index: 0; pointer-events: none;
}
.card-grid--quotes blockquote,
.card-grid--quotes figcaption { position: relative; z-index: 1; }
.card-grid--quotes blockquote { padding-top: 1.1rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .thumb { aspect-ratio: 16 / 10; }
.card .card-body { padding: 1rem 1.1rem 1.3rem; }
.card h3 { font-size: 1.06rem; margin: 0 0 .5rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.card .readmore { color: var(--sage-deep); }

/* topical thumbnails — real photography, with gradient fallbacks */
.thumb { background-size: cover; background-position: center; }
.thumb--mri    { background: #8d6b3f url('/assets/img/lc-mri.png')    center / cover no-repeat; }
.thumb--detox  { background: #5d7184 url('/assets/img/lc-detox.png') center / cover no-repeat; }
.thumb--sun    { background: #2b4a63 url('/assets/img/lc-sun.png')    center / cover no-repeat; }
.thumb--summer { background: #c8772f url('/assets/img/lc-summer.png') center / cover no-repeat; }
.thumb--zen    { background: linear-gradient(135deg,#e6e1d3,#b9a98d); }
.thumb--herb   { background: linear-gradient(135deg,#9ec48f,#5f9152); }

/* Service / link tiles */
.tile-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile {
  display: block; background: #fff; border: 1px solid var(--stone-line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(40,38,64,.14); text-decoration: none; }
.tile h3 { margin: 0 0 .4rem; color: var(--indigo); font-size: 1.18rem; }
.tile p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.tile .tile-link { display: inline-block; margin-top: .8rem; color: var(--link); font-weight: 600; font-size: .9rem; }
.tile--full { grid-column: 1 / -1; }   /* span the full row (avoids an orphaned last card) */

/* ---- Mountain band ---------------------------------------------------- */
.band { line-height: 0; }
.band svg { width: 100%; height: clamp(150px, 22vw, 300px); display: block; }

/* ---- Testimonials ----------------------------------------------------- */
.testimonial { max-width: 820px; margin-inline: auto; text-align: center; position: relative; }
.testimonial .quote-mark { font-family: Georgia, serif; font-size: 4rem; color: var(--sage); line-height: 0; display: block; height: 1.6rem; }
.testimonial blockquote { font-style: italic; font-size: 1.12rem; color: var(--ink); margin: 0; }
.testimonial cite { display: block; margin-top: .9rem; font-style: normal; font-weight: 600; color: var(--ink-soft); }
.testi-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.testi-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--stone-line); cursor: pointer; padding: 0; }
.testi-dots button[aria-selected="true"] { background: var(--sage); }

/* ---- Conditions columns ---------------------------------------------- */
.cond-grid { display: grid; gap: 1.6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cond-group h3 { color: var(--indigo); font-size: 1.05rem; margin: 0 0 .4rem; border-bottom: 2px solid var(--stone-line); padding-bottom: .3rem; }
.cond-group ul { list-style: none; padding: 0; margin: 0; }
.cond-group li { padding: .15rem 0; font-size: .95rem; color: var(--ink); }

/* ---- FAQ accordion ---------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--stone-line); border-radius: var(--radius); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 600; color: var(--indigo);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sage); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.2rem 1.1rem; color: var(--ink); }

/* ---- Bio / profile ---------------------------------------------------- */
.profile { display: grid; gap: 2rem 2.6rem; grid-template-columns: 300px 1fr; align-items: start; }
/* portrait follows the (longer) text column instead of leaving a dead column
   beneath a short block; ready to swap the placeholder div for an <img> */
.profile .portrait { aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 90px; }
@media (max-width: 720px){
  .profile { grid-template-columns: 1fr; }
  /* explicit width so the empty placeholder keeps its box (an auto-margin block
     with only max-width collapses to 0); centered in the single column */
  .profile .portrait{ position: static; width: min(300px, 100%); margin-inline: auto; }
}
.factlist { list-style: none; padding: 0; margin: 0; }
.factlist li { padding-left: 1.4rem; position: relative; margin: .35rem 0; }
.factlist li::before { content: "✦"; position: absolute; left: 0; color: var(--sage); }

/* ---- CTA strip -------------------------------------------------------- */
.cta { background: var(--indigo); color: #fff; text-align: center; }
.cta h2 { color: #fff; font-family: var(--font-script); font-weight: 300; letter-spacing: .02em; font-size: clamp(1.8rem,3.6vw,2.4rem); margin: 0 0 .4rem; }
.cta p { margin: 0 0 1.4rem; opacity: .92; }
.btn {
  display: inline-block; background: #fff; color: var(--indigo); font-weight: 600;
  padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid #fff;
}
.btn:hover { background: transparent; color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--indigo); }
.btn-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--slate); color: #d7d7de; }
.footer-contact { padding-block: clamp(2rem, 5vw, 3.2rem); }
.footer-card {
  background: var(--slate-card); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.7fr; align-items: center;
}
@media (max-width: 800px){ .footer-card { grid-template-columns: 1fr; } }
.footer-card h2 { color: #fff; font-size: 1.15rem; margin: 0 0 1rem; }
.contact-line { display: flex; align-items: flex-start; gap: .75rem; margin: .65rem 0; }
.contact-line .ico { color: #fff; width: 18px; height: 18px; flex: none; margin-top: 4px; }
.contact-line a { color: #e7e7ee; text-decoration: none; font-weight: 600; }
.contact-line a:hover { text-decoration: underline; }

/* contact form */
.contact-form { display: grid; gap: .7rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .6rem .8rem; border-radius: 6px; border: 1px solid #5f5f69;
  background: #41414a; color: #fff; font: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a7a7b2; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form button { justify-self: start; }

/* map placeholder */
/* soften the live Google embed so it reads as part of the calm palette
   (desaturate + gentle contrast/warmth); stays fully clickable */
.map-embed {
  width: 100%; height: 230px; border: 0; border-radius: 10px; display: block;
  filter: saturate(.7) contrast(.92) brightness(1.03) sepia(.06);
}
.map-placeholder {
  min-height: 220px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #1f3b1f; font-weight: 600; padding: 1rem;
  background:
    linear-gradient(0deg, rgba(0,0,0,.04), rgba(0,0,0,.04)),
    repeating-linear-gradient(0deg,#e9e6dd 0 22px,#e4e0d4 22px 23px),
    repeating-linear-gradient(90deg,#e9e6dd 0 22px,#e4e0d4 22px 23px);
}
.map-placeholder .pin { color: #c0392b; }

/* footer link columns */
.footer-links { border-top: 1px solid rgba(255,255,255,.12); padding-block: 2rem; }
.footer-cols { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-cols h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin: 0 0 .7rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: .3rem 0; }
.footer-cols a { color: #c4c4cd; font-size: .92rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { background: var(--indigo-deep); color: #9a9aa6; text-align: center; font-size: .82rem; padding-block: 1rem; }

/* ---- Mobile nav ------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--indigo-dark);
    display: none; padding: .5rem 0 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav a { padding: .8rem var(--gap); }
  .nav-phone { background: none; border-radius: 0; padding: .8rem var(--gap); }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    background: rgba(0,0,0,.18); border-radius: 0; padding: 0; display: none;
  }
  .has-sub.open > .submenu { display: block; }
  .submenu a { color: #e7e3f6; padding-left: calc(var(--gap) + 1rem); }
  .submenu a:hover { background: rgba(255,255,255,.06); color: #fff; }
}

/* ---- Utilities -------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.stack > * + * { margin-top: 1.1rem; }
.byline { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.6rem; }
.note { background: var(--stone); border-left: 4px solid var(--sage); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; }
.disclaimer { font-size: .82rem; color: var(--ink-soft); font-style: italic; }

/* =========================================================================
   Polish layer (site-wide) — heading flourish, hover, scroll reveals.
   Homepage adds its own hero/section flourishes on top in home.css.
   ========================================================================= */

/* stone-dot rule beneath every script heading */
.script-heading::after {
  content: ""; display: block; height: 7px; width: 92px; margin: .85rem auto 0;
  background:
    radial-gradient(circle, var(--sage) 0 3.5px, transparent 4px) 50% 50% / 7px 7px no-repeat,
    linear-gradient(90deg, transparent, rgba(141,124,184,.5) 26%, rgba(141,124,184,.5) 74%, transparent) 50% 50% / 100% 1.5px no-repeat;
}

/* cards: lift + image zoom */
.card { overflow: hidden; transition: transform .4s cubic-bezier(.2,.75,.25,1), box-shadow .4s ease; }
.card .thumb { transition: transform .7s cubic-bezier(.2,.75,.25,1); }
.card:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(40,38,64,.20); }
.card:hover .thumb { transform: scale(1.07); }
/* card titles: no persistent underline — the card is the affordance; reserve
   the underline (and an indigo tint) for hover/focus */
.card h3 a { text-underline-offset: 3px; transition: color .3s; }
.card:hover h3 a, .card h3 a:focus-visible { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--indigo); }
.readmore { white-space: nowrap; font-weight: 600; }

/* link arrows nudge */
.tile-link { display: inline-block; transition: transform .25s ease; }
.tile-link:hover, .tile:hover .tile-link { transform: translateX(3px); text-decoration: none; }

/* scroll-reveal choreography (driven by include.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.75,.25,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card .thumb { transition: none; }
}
