/* =========================================================
   THE WELLNESS CO. — Design System
   Fonts: HBScript / HBSerif are placeholders for the licensed
   Harvest Bailey Script + Harvest Bailey Regular font files.
   Swap the @font-face src paths in fonts.css once the .otf/.ttf
   files are uploaded — see README for instructions.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'HBScript';
  src: url('../fonts/HBScript.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'HBSerif';
  src: url('../fonts/HBSerif.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* ---- Brand palette ---- */
  --ink:        #2B2620;   /* primary text, warm near-black */
  --cream:      #F3EFE2;   /* page background */
  --cream-alt:  #ECE6D4;   /* section band background */
  --sage:       #7C8C6E;   /* botanical secondary accent */
  --sage-soft:  #E4E7DA;   /* sage tint for cards/badges */
  --blue:       #4A6B8A;   /* brand lotus blue — primary accent */
  --blue-deep:  #33506B;   /* hover / deep contrast */
  --amber:      #C08A4E;   /* eyebrow / subtitle accent */
  --line:       #D9CFB8;   /* hairline dividers */
  --white:      #FFFDF8;

  /* ---- Type ---- */
  --font-script: 'HBScript', 'Mrs Saint Delafield', 'Brush Script MT', cursive;
  --font-serif:  'HBSerif', 'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', 'Helvetica Neue', Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-sm); }
}

/* ---- Eyebrow / labels ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

/* ---- Brand wordmark: "The Wellness Co." ----
   "The" / "Co." / "LLC" -> serif, ink
   "Wellness" -> script, blue                    */
.brandmark {
  font-size: 1.6rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brandmark-icon { height: 2rem; width: auto; display: block; }
.brandmark .serif { font-family: var(--font-serif); font-weight: 600; color: var(--ink); }
.brandmark .script { font-family: var(--font-script); color: var(--blue); font-size: 1.55em; padding: 0 0.05em; }

/* ---- Headings ---- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }

.script-accent { font-family: var(--font-script); color: var(--blue); font-weight: 400; }

p { margin: 0 0 var(--space-sm); }
.lede { font-size: 1.15rem; color: #4A4436; max-width: 60ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.95em 1.9em;
  border-radius: 2px;
  border: 1px solid var(--blue);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }

/* ---- Site header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 226, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a.active,
.main-nav a:hover { color: var(--blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--amber);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.08);
    padding: 6rem 2rem 2rem;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: var(--space-md); }
}

/* ---- Hero ---- */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}
.hero p.lede { margin-bottom: var(--space-md); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Lotus motif (signature element) ---- */
.lotus-mark { width: 100%; height: auto; }
.lotus-divider {
  display: flex;
  justify-content: center;
  margin: var(--space-lg) 0;
}
.lotus-divider-img { width: 130px; height: auto; opacity: 1; }

/* ---- Sections ---- */
section { padding: var(--space-lg) 0; }
.section-band { background: var(--cream-alt); }
.section-head { max-width: 62ch; margin-bottom: var(--space-md); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

hr.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: var(--space-lg) 0;
}

/* ---- Service cards (home) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: var(--space-md) 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(43,38,32,0.08);
}
.service-card .icon { width: 34px; height: 34px; margin-bottom: 1rem; color: var(--blue); }
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p { font-size: 0.92rem; color: #5c5646; margin-bottom: 1rem; }
.service-card .card-link { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.service-card .card-link:hover { color: var(--blue-deep); }

/* ---- Offerings list ---- */
.offerings {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.1rem;
}
.offerings li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.offerings li .name { font-weight: 500; color: var(--ink); }
.offerings li .desc { color: #5c5646; font-size: 0.88rem; }
.offerings li .meta { color: var(--amber); white-space: nowrap; font-size: 0.85rem; }

/* ---- Tea Lounge menu: script names, serif taglines ---- */
.offerings.offerings-tea li .name {
  font-family: var(--font-script);
  color: var(--blue);
  font-size: 1.7rem;
  font-weight: 400;
}
.offerings.offerings-tea li .desc {
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 1.05rem;
  font-style: normal;
}
.offerings.offerings-tea li > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6em;
}
.offerings.offerings-tea li .desc::before {
  content: "\2022";
  margin-right: 0.6em;
  color: var(--amber);
}

/* ---- Coming soon / future practitioners strip ---- */
.future-strip {
  border: 1px dashed var(--sage);
  background: var(--sage-soft);
  padding: var(--space-md);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (max-width: 700px) { .future-strip { grid-template-columns: 1fr; } }
.future-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .future-strip.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .future-strip.cols-3 { grid-template-columns: 1fr; } }
.future-item .eyebrow { color: var(--sage); }
.future-item h3 { margin-bottom: 0.3rem; }
.future-item p { font-size: 0.88rem; color: #5c5646; margin-bottom: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--blue);
  color: var(--white);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #DCE6EE; }
.cta-band .btn-primary { background: var(--white); color: var(--blue-deep); border-color: var(--white); }
.cta-band .btn-primary:hover { background: transparent; color: var(--white); }

/* ---- Two column content ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-md); } }
.media-frame {
  aspect-ratio: 4/5;
  background: var(--sage-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 1rem;
}
.media-frame-logo { background: transparent; border: none; padding: 3rem; }
.hero-lotus-img { width: 100%; max-width: 340px; height: auto; }
.media-frame-photo { background: none; border: none; padding: 0; aspect-ratio: 1290/1770; overflow: hidden; }
.media-frame-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Ambient video band ---- */
.video-band {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-band video { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  .video-band video { display: none; }
  .video-band { background: var(--sage-soft); }
}

.video-divider {
  width: 100%;
  max-width: 900px;
  margin: var(--space-lg) auto;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-divider video { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  .video-divider video { display: none; }
  .video-divider { background: var(--sage-soft); aspect-ratio: 700/369; }
}

.video-banner-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--sage-soft);
  border: 1px dashed var(--sage);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  color: var(--sage);
  font-family: var(--font-sans);
  padding: 1rem;
}
.video-banner-placeholder .placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #5c6a52;
}

.video-banner {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-banner video { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  .video-banner video { display: none; }
  .video-banner { background: var(--sage-soft); aspect-ratio: 1116/588; }
}

.lotus-bloom-divider {
  width: 100%;
  max-width: 944px;
  margin: var(--space-lg) auto;
  padding: 0 var(--space-md);
}
.lotus-bloom-divider img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .lotus-bloom-divider { padding: 0 var(--space-sm); } }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #E7E2D3;
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a, .footer-grid p { color: #C9C3B0; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.site-footer .brandmark .serif { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #45402F;
  padding-top: var(--space-sm);
  font-size: 0.78rem;
  color: #8B8570;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Reveal on scroll ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Focus visibility ---- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---- Placeholder copy notice (dev-only, remove when real copy is in) ---- */
.placeholder-flag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 0.15em 0.6em;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}
