/* Madeleine Rose Wellness — Design System */

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

/* ── Tokens ── */
:root {
  --cream:      #FAFAF9;
  --linen:      #F3F1EE;
  --blush:      #ECEAE6;
  --blush-2:    #E5E2DE;
  --rose:       #9B8B7A;
  --rose-dark:  #7D6E60;
  --blue:       #7D8F9B;
  --blue-light: #E8EEF1;
  --blue-wash:  #F1F4F6;
  --text:       #1A1A1A;
  --muted:      #737373;
  --rule:       #E0DDD9;

  --bg:         var(--cream);
  --surface:    var(--linen);
  --accent:     var(--rose);
  --accent-2:   var(--blue);
  --text:       #1A1A1A;
  --text-muted: var(--muted);
  --border:     var(--rule);

  --ff-display: 'Times New Roman', Times, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --max-w:  1080px;
  --pad-x:  clamp(1.5rem, 5vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #151513;
    --surface:    #1E1D1B;
    --linen:      #1A1918;
    --cream:      #151513;
    --blush:      #252320;
    --blue-wash:  #181C1F;
    --blue-light: #192023;
    --text:       #F0EFEC;
    --text-muted: #8A8A8A;
    --border:     #2E2C29;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Type scale ── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); }
h4 { font-size: 1.1rem; }
p  { max-width: 68ch; }

.eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Layout ── */
.wrap {
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
}
section { padding: clamp(4rem, 9vw, 9rem) 0; }
.page-start { padding-top: calc(64px + clamp(3rem, 6vw, 6rem)); }

/* Hairline rule */
.rule { display: block; width: 48px; height: 0.75px; background: var(--border); margin: 1.5rem 0; }
.rule--c { margin-inline: auto; }

/* ── NAV ── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.75px solid var(--border);
}
.nav__bar {
  height: 64px;
  width: min(var(--max-w), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wordmark */
.nav__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.nav__logo-mr {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text);
}
.nav__logo-line { width: 100%; height: 0.75px; background: var(--border); }
.nav__logo-sub  {
  font-family: var(--ff-body);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Desktop links */
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current] { color: var(--text); }
.btn-nav {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 0.75px solid var(--text);
  color: var(--text);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-nav:hover { background: var(--text); color: var(--bg); }

/* Hamburger */
.nav__burger {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  flex-direction: column;
  gap: 6px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  display: none;
  flex-direction: column;
  background: var(--bg);
  border-top: 0.75px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.nav__drawer.is-open { max-height: 500px; }
.nav__drawer a {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 0.75px solid var(--border);
  transition: color 0.2s;
}
.nav__drawer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: flex; }
}

/* ── HERO ── */
.hero {
  padding-top: 64px;
  min-height: 94vh;
  display: flex;
  align-items: center;
}
.hero--blush { background: var(--blush); }
.hero--linen { background: var(--linen); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.hero__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

.hero__img--placeholder { background: var(--blush); }

.hero__flag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero__flag::before { content: ''; display: block; width: 28px; height: 0.75px; background: var(--border); }
.hero__flag span { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.hero h1 { margin-bottom: 1.5rem; }
.hero__body {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 46ch;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 4/3; max-height: 60vw; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  border: 0.75px solid;
  transition: all 0.22s;
}
.btn--fill    { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--fill:hover { opacity: 0.82; }
.btn--outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: var(--bg); }
.btn--ghost   { background: transparent; border-color: var(--border); color: var(--text-muted); }
.btn--ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* ── SECTION HEADING ── */
.sh { max-width: 52ch; }
.sh--c { margin-inline: auto; text-align: center; }
.sh h2  { margin-bottom: 1rem; }
.sh p   { color: var(--text-muted); font-size: 1.05rem; }

/* ── GRIDS ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 0.75px solid var(--border);
  border-radius: 3px;
  padding: 2.25rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--text-muted); }
.card h3   { font-size: 1.35rem; margin-bottom: 0.75rem; }
.card p    { color: var(--text-muted); font-size: 0.95rem; }

/* Price */
.price {
  font-family: var(--ff-body);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  margin: 1rem 0;
}
.price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.4rem; }
.price small { font-size: 0.9rem; color: var(--text-muted); }

/* Feature list */
.feat { display: flex; flex-direction: column; gap: 0.55rem; margin: 1.25rem 0; }
.feat li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.feat li::before { content: '—'; color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }

/* ── SERVICE TEASERS (home) ── */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 0.75px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.22s, transform 0.22s;
}
.service-card:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.service-card__rule { width: 32px; height: 0.75px; background: var(--border); }
.service-card h3 { font-size: 1.5rem; }
.service-card p  { color: var(--text-muted); font-size: 0.93rem; }
.service-card .arrow {
  margin-top: auto;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.service-card .arrow::after { content: '→'; font-size: 0.85rem; transition: transform 0.2s; }
.service-card:hover .arrow { color: var(--text); }
.service-card:hover .arrow::after { transform: translateX(4px); }

/* ── SPLIT LAYOUT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 0.75px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step__num { font-family: var(--ff-display); font-size: 1.8rem; font-weight: 300; color: var(--text-muted); line-height: 1; }
.step__body h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.4rem; }
.step__body p  { color: var(--text-muted); font-size: 0.93rem; max-width: 56ch; }

/* ── PULLQUOTE ── */
.pullquote {
  border-left: 1.5px solid var(--border);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 2.5rem 0;
}
.pullquote p {
  font-family: var(--ff-body);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  max-width: 60ch;
}

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--surface);
  border: 0.75px solid var(--border);
  border-left: 2px solid var(--border);
  border-radius: 3px;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.disclaimer strong { color: var(--text); }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 0.75px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-q::after {
  content: '+';
  font-family: var(--ff-body);
  font-size: 1.1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.38s ease; }
.faq-item.is-open .faq-a { max-height: 600px; }
.faq-a p {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 70ch;
}

/* ── EBOOK CARD ── */
.ebook-card {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: var(--blush);
  border: 0.75px solid var(--border);
  border-radius: 3px;
  padding: 2.5rem;
}
.ebook-cover {
  width: 90px;
  flex-shrink: 0;
  aspect-ratio: 3/4;
  background: var(--text);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  text-align: center;
}
.ebook-cover span { color: var(--bg); font-family: var(--ff-body); font-size: 0.78rem; line-height: 1.4; }
.ebook-text h3  { font-size: 1.4rem; }
.ebook-text p   { color: var(--text-muted); margin: 0.75rem 0 1.25rem; font-size: 0.95rem; }
@media (max-width: 560px) { .ebook-card { flex-direction: column; } }

/* ── BLOG ── */
.post-card { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 2rem; border-bottom: 0.75px solid var(--border); }
.post-card__cat { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.post-card__title { font-family: var(--ff-body); font-size: 1.05rem; font-weight: 500; line-height: 1.45; color: var(--text); transition: opacity 0.2s; }
.post-card__title:hover { opacity: 0.6; }
.post-card__excerpt { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }
.post-card__meta { font-size: 0.75rem; color: var(--text-muted); }

.post-header { padding-top: calc(64px + clamp(3rem, 6vw, 5rem)); padding-bottom: clamp(2rem, 4vw, 4rem); background: var(--linen); }
.post-header .eyebrow { margin-bottom: 0.75rem; }
.post-header h1 { max-width: 22ch; margin-bottom: 1.5rem; }
.post-meta { display: flex; gap: 1.5rem; font-size: 0.78rem; color: var(--text-muted); }

.post-body { max-width: 68ch; }
.post-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.post-body h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.post-body p  { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.post-body strong { color: var(--text); }
.post-body ul, .post-body ol { margin: 1rem 0 1.25rem 1.25rem; }
.post-body li { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; margin-bottom: 0.4rem; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }

/* ── FORM ── */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.form-input,
.form-select,
.form-textarea {
  background: var(--bg);
  border: 0.75px solid var(--border);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--text); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737373' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--surface);
  border-top: 0.75px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.75px solid var(--border);
  margin-bottom: 2rem;
}
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 38ch; margin-top: 1rem; line-height: 1.8; }
.footer__col h5 {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__disclaimer { font-size: 0.78rem; color: var(--text-muted); line-height: 1.8; max-width: 90ch; margin-bottom: 1.25rem; }
.footer__copy { font-size: 0.72rem; color: var(--text-muted); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── UTILITIES ── */
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-c      { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
