/* ============================================================
   BLOOM POSTPARTUM CARE — Shared Design System
   Rest. Recover. Bloom.
   Palette: blush, dusty rose, mauve, cream, sage
   ============================================================ */

:root {
  /* Color */
  --cream:        #fbf6f3;
  --cream-2:      #f6ede8;
  --ivory:        #fffdfb;
  --blush:        #f5d9d6;
  --blush-soft:   #f9e7e4;
  --rose:         #e3a9a4;
  --rose-deep:    #c97f7a;
  --mauve:        #9b5d63;
  --plum:         #6e3f48;
  --sage:         #a7b59a;
  --sage-deep:    #7d8e73;
  --ink:          #4a3537;
  --ink-soft:     #6f595b;
  --line:         #ecd9d4;
  --white:        #ffffff;

  --grad-warm: linear-gradient(135deg, #f9e7e4 0%, #f5d9d6 50%, #ecc8c4 100%);
  --grad-petal: linear-gradient(135deg, #e3a9a4 0%, #c97f7a 100%);
  --grad-soft:  radial-gradient(120% 120% at 20% 10%, #fffdfb 0%, #fbf6f3 45%, #f6ede8 100%);

  /* Type */
  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;

  /* Scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  --step-1:  clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.5rem + 1vw, 2.3rem);
  --step-3:  clamp(2.3rem, 1.9rem + 2vw, 3.4rem);
  --step-4:  clamp(3rem, 2.3rem + 3.5vw, 5.2rem);
  --step-5:  clamp(4rem, 2.8rem + 6vw, 8rem);

  /* Space */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2.5rem;  --sp-5: 4rem;   --sp-6: 6rem;  --sp-7: 9rem;

  --maxw: 1180px;
  --radius: 22px;
  --radius-sm: 13px;
  --shadow: 0 24px 60px -28px rgba(110, 63, 72, 0.32);
  --shadow-soft: 0 14px 40px -22px rgba(110, 63, 72, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Background canvas ---------- */
.scene-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.page { position: relative; z-index: 1; }

/* ---------- Headings ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; color: var(--plum); letter-spacing: 0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
.script { font-family: var(--script); font-weight: 400; color: var(--rose-deep); line-height: 1; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--rose); display: inline-block; }
.eyebrow.center::after { content: ""; width: 30px; height: 1px; background: var(--rose); display: inline-block; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-3); }
.section { padding: var(--sp-7) 0; position: relative; }
.section.tight { padding: var(--sp-6) 0; }
.lede { font-family: var(--serif); font-size: var(--step-1); color: var(--ink-soft); font-style: italic; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.95em 2em;
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: var(--pad);
  font-family: var(--sans); font-weight: 500;
  font-size: var(--step-0);
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s;
  will-change: transform;
}
.btn-primary { background: var(--grad-petal); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover { box-shadow: 0 20px 44px -18px rgba(201,127,122,0.6); }
.btn-ghost { background: var(--white); color: var(--mauve); box-shadow: inset 0 0 0 1.5px var(--blush); }
.btn-ghost:hover { background: var(--blush-soft); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.site-header.scrolled {
  background: rgba(251, 246, 243, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(236,217,212,0.9);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.34em; color: var(--plum); text-indent: 0.34em; font-weight: 600; }
.brand-sub { font-size: 0.56rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--rose-deep); display: block; margin-top: 2px; text-indent: 0.36em; }
/* Slide-in panel menu, opened by the hamburger on ALL screen sizes */
.nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 84vw);
  display: flex; flex-direction: column; justify-content: center; gap: 0.3rem;
  padding: 2rem clamp(1.8rem, 4vw, 3rem);
  background: #fbf6f3;
  box-shadow: -24px 0 70px -34px rgba(110, 63, 72, 0.55);
  transform: translateX(105%);
  transition: transform 0.55s var(--ease);
  z-index: 55;
}
.nav.open { transform: translateX(0); }
.nav a {
  padding: 0.7em 0.3em;
  font-family: var(--serif); font-size: var(--step-1); font-weight: 500;
  letter-spacing: 0.02em; color: var(--mauve);
  transition: color 0.3s, padding-left 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--rose-deep); padding-left: 0.9em; }
.nav .btn { margin-top: 1.1rem; align-self: flex-start; font-family: var(--sans); }

/* The 3-line hamburger tab — visible on every page, every screen size */
.nav-toggle { display: flex; flex-direction: column; gap: 6px; z-index: 60; width: 34px; padding: 4px 0; }
.nav-toggle span { height: 2px; width: 100%; background: var(--plum); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Soft dimming scrim behind the open menu (created by main.js) */
.nav-scrim { position: fixed; inset: 0; background: rgba(74, 53, 55, 0.32); opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s; z-index: 40; }
.nav-scrim.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 8rem 0 5rem; position: relative; }
.hero .tagline-script { font-family: var(--script); font-size: var(--step-5); color: var(--rose-deep); display: block; line-height: 0.9; }
.hero h1 { margin: 0.1em 0 0.3em; }
.hero .sub { font-size: var(--step-1); color: var(--ink-soft); max-width: 40ch; margin: 0 auto var(--sp-3); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--rose-deep); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.hero-scroll::after { content: ""; width: 1px; height: 42px; background: linear-gradient(var(--rose), transparent); animation: scrolldown 2.4s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Cards / Glass ---------- */
.card {
  background: rgba(255, 253, 251, 0.93);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-soft);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--sp-3); }
.svc {
  position: relative; padding: var(--sp-4); border-radius: var(--radius);
  background: rgba(255, 253, 251, 0.93); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--blush); }
.svc .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--rose); color: var(--rose-deep); margin-bottom: var(--sp-2); transition: background 0.4s, color 0.4s; }
.svc:hover .ic { background: var(--grad-petal); color: var(--white); border-color: transparent; }
.svc .ic svg { width: 28px; height: 28px; }
.svc h3 { font-size: var(--step-1); color: var(--mauve); margin-bottom: 0.4em; }
.svc p { color: var(--ink-soft); font-size: var(--step-0); }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.split.reverse > :first-child { order: 2; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--grad-warm); }
.media-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4); border-radius: var(--radius); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-3); text-align: center; }
.stat .num { font-family: var(--serif); font-size: var(--step-3); color: var(--rose-deep); line-height: 1; }
.stat .lab { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.5em; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: var(--sp-3) 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: 3.5rem; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--rose); }
.marquee-track .dot { color: var(--sage); font-style: normal; }

/* ---------- Quote / testimonial ---------- */
.quote { background: var(--white); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-soft); border: 1px solid var(--line); position: relative; }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 6rem; color: var(--blush); position: absolute; top: 0.1em; left: 0.3em; line-height: 1; }
.quote p { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--ink); position: relative; }
.quote .by { font-style: normal; font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose-deep); margin-top: var(--sp-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-petal); border-radius: var(--radius); padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--white); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); }
.cta-band .script { color: var(--cream); }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 50ch; margin: var(--sp-2) auto var(--sp-3); }
.cta-band .btn-ghost { background: var(--white); color: var(--mauve); box-shadow: none; }
.cta-band .btn-ghost:hover { background: var(--cream); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-3); }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mauve); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: var(--step-0); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.9em 1.1em; transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--blush-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

/* ---------- Contact info list ---------- */
.contact-list { display: grid; gap: var(--sp-3); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blush-soft); color: var(--rose-deep); }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item .lab { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.contact-item a, .contact-item span.val { font-family: var(--serif); font-size: var(--step-1); color: var(--plum); }

/* ---------- Booking placeholder ---------- */
.booking-slot { border: 1.5px dashed var(--rose); border-radius: var(--radius); padding: var(--sp-4); text-align: center; background: var(--blush-soft); }
.booking-slot .pill { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose-deep); background: var(--white); padding: 0.4em 1em; border-radius: 999px; display: inline-block; margin-bottom: var(--sp-2); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: var(--sp-3); }
.post { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); display: flex; flex-direction: column; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16/10; background: var(--grad-warm); position: relative; }
.post .thumb.alt { background: linear-gradient(135deg, #eef0e8, #d9e0cf); }
.post .thumb.alt2 { background: linear-gradient(135deg, #f6ede8, #f0d9d4); }
.post .body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post .tag { font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose-deep); }
.post h3 { font-size: var(--step-1); color: var(--mauve); }
.post .excerpt { color: var(--ink-soft); font-size: var(--step-0); flex: 1; }
.post .more { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-deep); font-weight: 500; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: var(--sp-3); counter-reset: s; }
.step { position: relative; padding-top: var(--sp-3); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: var(--step-2); color: var(--blush); display: block; margin-bottom: 0.3em; }
.step h3 { font-size: var(--step-1); color: var(--mauve); margin-bottom: 0.3em; }
.step p { color: var(--ink-soft); font-size: var(--step-0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--cream); padding: var(--sp-6) 0 var(--sp-3); position: relative; z-index: 1; margin-top: var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-4); }
.site-footer .brand-name { color: var(--cream); }
.site-footer .brand-sub { color: var(--rose); }
.site-footer h4 { color: var(--blush); font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: var(--sp-2); font-weight: 600; }
.site-footer a { color: rgba(251,246,243,0.78); transition: color 0.3s; display: inline-block; padding: 0.2em 0; }
.site-footer a:hover { color: var(--white); }
.footer-tag { font-family: var(--script); font-size: var(--step-2); color: var(--rose); }
.footer-bottom { border-top: 1px solid rgba(251,246,243,0.16); margin-top: var(--sp-5); padding-top: var(--sp-3); display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; font-size: var(--step--1); color: rgba(251,246,243,0.6); }

/* ---------- Reveal animation defaults (no-JS safe) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.is-visible .reveal, .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Floating petals layer ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .split, .form-row { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .scene-canvas, .petals { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
