/* =========================================================================
   AcupunctChi Clinic — calm wellness / spa design system
   ========================================================================= */
:root {
  --bg:        #FBF7F0;   /* cream */
  --bg-2:      #F4ECE0;   /* sand */
  --surface:   #FFFFFF;
  --ink:       #2E2A24;   /* charcoal */
  --ink-soft:  #6E6457;   /* muted brown-grey */
  --brand:     #F97D19;   /* signature orange */
  --brand-dark:#DD6A0C;
  --accent:    #7C8A6B;   /* sage */
  --accent-deep:#586348;
  --line:      #E8DECE;
  --shadow-sm: 0 2px 10px rgba(46,42,36,.06);
  --shadow-md: 0 14px 40px rgba(46,42,36,.10);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 .8rem;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color:#fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(249,125,25,.28); }
.btn-solid:hover { background: var(--brand-dark); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(46,42,36,.25); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-2px); }
.btn-light { background:#fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-2); color: var(--ink); transform: translateY(-2px); }

.pill {
  display: inline-block; font-family: var(--font-sans); font-size: .62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color:#fff; background: var(--accent);
  padding: .12rem .5rem; border-radius: 999px; vertical-align: middle;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,240,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand-logo { height: 46px; width: auto; }
.primary-nav .nav-list {
  list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0;
}
.nav-list > li > a {
  display: inline-flex; align-items: center; gap: .25rem;
  color: var(--ink); font-weight: 600; font-size: .98rem;
  padding: .55rem .7rem; border-radius: 10px; transition: background .15s, color .15s;
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { color: var(--brand-dark); background: rgba(249,125,25,.10); }
.caret { font-size: .7em; opacity: .7; }

.has-dropdown { position: relative; }
.dropdown {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  min-width: 230px; max-height: 70vh; overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap:.5rem; padding: .5rem .75rem; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--bg-2); color: var(--brand-dark); }

.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background-size: cover; background-position: center; color: #fff;
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}
.page-hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.28); margin: 0; }
.crumbs { font-size: .85rem; letter-spacing: .04em; margin-bottom: .9rem; color: rgba(255,255,255,.92); }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: rgba(255,255,255,.8); }

/* ---------- Interior content / prose ---------- */
.page { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.prose { max-width: 820px; margin-inline: auto; font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; color: var(--accent-deep); }
.prose img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 1.4rem auto; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose ul li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose strong { color: var(--ink); }

/* Two-column interior layout (contact / appointment) */
.info-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.info-layout .prose { max-width: none; margin: 0; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); position: sticky; top: 100px;
}
.info-card h3 { margin-top: 1.2rem; color: var(--accent-deep); }
.info-card h3:first-child { margin-top: 0; }
.info-card ul { padding-left: 1.1rem; margin: .4rem 0 1rem; }
.cards-pay img { display:inline-block; height: 34px; width:auto; margin: 0 6px 6px 0; border-radius: 6px; box-shadow: none; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--bg-2); }
.section-sage { background: linear-gradient(160deg,#6f7d5e,#586348); color:#fff; }
.section-sage h2, .section-sage h3 { color:#fff; }
.section-sage .eyebrow { color: #DCE5CE; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Home: hero ---------- */
.hero-home {
  position: relative; color: #fff; text-align: center;
  background: linear-gradient(rgba(40,34,28,.42), rgba(40,34,28,.52)), center/cover no-repeat var(--hero-img);
  padding: clamp(5rem, 16vw, 11rem) 0 clamp(4rem, 12vw, 8rem);
}
.hero-home h1 { color: #fff; text-shadow: 0 4px 28px rgba(0,0,0,.35); margin-bottom: .35em; }
.hero-home .lede { font-size: clamp(1.1rem, 2.2vw, 1.45rem); max-width: 720px; margin: 0 auto 2rem; color: rgba(255,255,255,.95); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-eyebrow { color: #F3D9BE; letter-spacing: .26em; }

/* ---------- Home: feature trio ---------- */
.feature-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: -4.5rem; position: relative; z-index: 5; }
.feature-card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); transition: transform .18s ease;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; }
.feature-card .link { font-weight: 700; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(249,125,25,.12); color: var(--brand-dark); margin-bottom: 1rem; font-size: 1.5rem; }

/* ---------- Home: split (customized care / holistic) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split + .split { margin-top: 3rem; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split .two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.5rem; }
.split .two-lists ul { list-style: none; padding: 0; margin: .3rem 0; }
.split .two-lists li { padding: .35rem 0 .35rem 1.5rem; position: relative; }
.split .two-lists li::before { content: "✦"; color: var(--brand); position: absolute; left: 0; }

/* ---------- Acupnosis spotlight ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.spotlight .media { position: relative; }
.spotlight .media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.spotlight .badge-float {
  position: absolute; top: -14px; left: -14px; background: var(--brand); color:#fff;
  font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .9rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.spotlight h2 { margin-top: .2rem; }
.spotlight .lede { font-size: 1.15rem; color: #EDEFE6; }
.section-sage .spotlight .lede { color: rgba(255,255,255,.92); }

/* ---------- Therapy grid ---------- */
.therapy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.therapy-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.therapy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.therapy-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.therapy-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.therapy-card:hover .thumb img { transform: scale(1.06); }
.therapy-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.therapy-card h3 { font-size: 1.45rem; margin: 0; }
.therapy-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; flex: 1; }
.therapy-card .more { font-weight: 700; font-size: .85rem; color: var(--brand-dark); margin-top: .4rem; }
.therapy-card.is-featured { outline: 2px solid var(--brand); }
.therapy-card.is-featured .body { background: rgba(249,125,25,.06); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); max-width: 560px; }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.cta-band .btn-solid { background:#fff; color: var(--brand-dark); box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.cta-band .btn-solid:hover { background: var(--bg); color: var(--brand-dark); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.7); color:#fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); color:#fff; border-color:#fff; }

/* ---------- Footer ---------- */
.site-footer { background: #2A2620; color: #D9D0C2; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .7rem; }
.footer-logo { height: 46px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: .8rem; }
.footer-tag { font-family: var(--font-serif); font-size: 1.25rem; color:#fff; margin: 0 0 .5rem; }
.muted { color: #A89E8F; }
.site-footer a, .footer-links a { color: #E7DECE; }
.site-footer a:hover { color: var(--brand); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .3rem 0; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; margin: .2rem 0; border-bottom: 1px dotted rgba(255,255,255,.14); padding-bottom: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem; }
.disclaimer { font-size: .78rem; color: #978D7E; line-height: 1.6; }
.copy { font-size: .82rem; color: #B7AD9D; margin: .4rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .2s, opacity .2s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .primary-nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 78px); overflow-y: auto; box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .25s ease; padding: 1rem 0 1.5rem;
  }
  body.nav-open .primary-nav { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: .1rem; width: 92%; margin-inline: auto; }
  .nav-list > li > a { padding: .85rem .6rem; font-size: 1.05rem; border-radius: 10px; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    background: var(--bg-2); border-radius: 12px; margin: .2rem 0 .4rem; max-height: 0; overflow: hidden; padding: 0 .5rem; transition: max-height .25s ease, padding .25s ease;
  }
  .has-dropdown.open > .dropdown { max-height: 80vh; padding: .4rem .5rem; overflow:auto; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .feature-trio { grid-template-columns: 1fr; margin-top: -3rem; }
  .split, .spotlight, .info-layout { grid-template-columns: 1fr; }
  .spotlight .media { order: -1; }
  .info-card { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .split .two-lists { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
