/* ==========================================================================
   LeBlanc Health Training - main stylesheet
   Based on the v9 style guide for The Data Driven Doula.
   ========================================================================== */

/* ---------- Fonts (loaded from Google Fonts so we don't have to ship them) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,600&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---------- Tokens (lifted directly from the style guide) ---------- */
:root {
  --berry-rose: #B85073;
  --wine: #8F3C5A;
  --sage: #6E8052;
  --cornflower: #85A8D4;
  --lavender: #A08BAA;
  --cream: #DCE5D0;
  --indigo: #2C3E5C;
  --deep-rose: #8A4A55;
  --deep-sage: #55683F;
  --plum: #7A5A85;
  --ink: #2C2118;
  --muted: #7A7086;

  /* Backgrounds for callout-style blocks */
  --intro-bg: #F9E4EA;
  --tip-bg: #EFF2E8;
  --warning-bg: #F7E5D9;
  --clinical-bg: #E8EBF2;
  --case-bg: #EEF3FA;
  --script-bg: #F4EFF6;
  --takeaway-bg: #F0EAF2;

  /* Layout */
  --max-w: 1140px;
  --prose-w: 720px;
  --serif-heading: 'Fraunces', 'Cambria', Georgia, serif;
  --serif-body: 'Lora', Georgia, 'Times New Roman', serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--berry-rose); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--berry-rose); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--wine); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); color: var(--sage); font-style: italic; font-weight: 500; }
h4 { font-size: 1rem; color: var(--plum); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

p { margin: 0 0 1em 0; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); font-style: italic; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--prose-w); margin: 0 auto; padding: 0 24px; }
section { padding: 30px 0; }
section.tight { padding: 18px 0; }
section.loose { padding: 56px 0; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(44, 33, 24, 0.08);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--indigo);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.brand-mark {
  color: var(--berry-rose);
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--berry-rose); text-decoration: none; }
.nav-cta {
  background: var(--berry-rose);
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 120ms ease;
}
.nav-cta:hover { background: var(--wine); }

/* Mobile nav: collapse to "Menu" button on narrow screens */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; gap: 4px; align-items: stretch; padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links { width: 100%; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid rgba(44, 33, 24, 0.06); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 36px 0 32px 0;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px; background: var(--indigo);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 18px;
}
.hero-tag { color: var(--sage); font-style: italic; font-size: 1.3rem; margin-bottom: 28px; }
.hero-sub { max-width: 640px; font-size: 1.18rem; color: var(--ink); }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--berry-rose); color: white; box-shadow: 3px 3px 0 rgba(184, 80, 115, 0.18); }
.btn-primary:hover { background: var(--wine); transform: translateY(-1px); color: white; text-decoration: none; }
.btn-secondary { background: white; color: var(--indigo); border: 2px solid var(--indigo); }
.btn-secondary:hover { background: var(--indigo); color: white; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--berry-rose); }
.btn-ghost:hover { color: var(--wine); }

/* ---------- Cards (used in 3-up CTA grid) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.card {
  background: white;
  border-radius: 10px;
  padding: 28px 26px;
  box-shadow: 4px 4px 0 rgba(44, 33, 24, 0.08), 8px 8px 18px rgba(44, 33, 24, 0.06);
  border: 1px solid rgba(44, 33, 24, 0.05);
  transition: transform 150ms ease, box-shadow 150ms ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 rgba(44, 33, 24, 0.10), 8px 12px 24px rgba(44, 33, 24, 0.10);
}
.card .label {
  font-family: var(--serif-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 12px;
}
.card h3 {
  font-style: normal;
  font-weight: 700;
  color: var(--indigo);
  font-size: 1.45rem;
  margin: 0 0 12px 0;
}
.card p { color: var(--ink); flex-grow: 1; }
.card .card-link { margin-top: 12px; font-weight: 600; }

/* Card accent variants */
.card.card-rose { border-top: 6px solid var(--berry-rose); }
.card.card-rose .label { color: var(--berry-rose); }
.card.card-sage { border-top: 6px solid var(--sage); }
.card.card-sage .label { color: var(--sage); }
.card.card-indigo { border-top: 6px solid var(--indigo); }
.card.card-indigo .label { color: var(--indigo); }
.card.card-cornflower { border-top: 6px solid var(--cornflower); }
.card.card-cornflower .label { color: var(--cornflower); }
.card.card-lavender { border-top: 6px solid var(--lavender); }
.card.card-lavender .label { color: var(--lavender); }

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--serif-heading);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--wine);
  text-align: center;
  border-top: 1px solid var(--sage);
  border-bottom: 1px solid var(--sage);
  padding: 28px 0;
  margin: 56px auto;
  max-width: 760px;
  line-height: 1.35;
}

/* ---------- Two-column section (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.flip > div:first-child { order: 2; }
.split-img {
  background: var(--cream);
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > div:first-child { order: 0; }
}

/* ---------- Stat / feature row ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.feature {
  text-align: center;
  padding: 16px 8px;
}
.feature .num {
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--berry-rose);
  line-height: 1;
  margin-bottom: 6px;
}
.feature .lab {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Color blocks (use as section backgrounds) ---------- */
.bg-cream { background: var(--cream); }
.bg-soft-rose { background: var(--intro-bg); }
.bg-soft-sage { background: var(--tip-bg); }
.bg-soft-indigo { background: var(--clinical-bg); }
.bg-soft-lavender { background: var(--script-bg); }
.bg-indigo { background: var(--indigo); color: #fff; }
.bg-indigo h2, .bg-indigo h3 { color: #fff; }
.bg-indigo p { color: rgba(255, 255, 255, 0.92); }

/* ---------- Lists with thick custom bullets ---------- */
ul.thick {
  list-style: none;
  padding: 0;
  margin: 0.6em 0 1.2em 0;
}
ul.thick li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.55;
}
ul.thick li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--berry-rose);
  box-shadow: 1.5px 1.5px 0 rgba(44, 33, 24, 0.15);
}
ul.thick.indigo li::before { background: var(--indigo); }
ul.thick.sage li::before { background: var(--sage); }
ul.thick.lavender li::before { background: var(--lavender); }

/* ---------- Form ---------- */
.form { max-width: 540px; }
.form label {
  display: block;
  font-family: var(--serif-heading);
  font-weight: 600;
  color: var(--indigo);
  margin-top: 18px;
  margin-bottom: 6px;
}
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(44, 33, 24, 0.18);
  font-family: var(--serif-body);
  font-size: 1rem;
  background: white;
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: 0;
  border-color: var(--berry-rose);
  box-shadow: 0 0 0 3px rgba(184, 80, 115, 0.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form button { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--indigo);
  color: rgba(255, 255, 255, 0.92);
  padding: 56px 0 32px 0;
  margin-top: 80px;
}
.footer h4 { color: rgba(255, 255, 255, 0.7); margin-bottom: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer a:hover { color: white; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer-fine {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}

/* ---------- Page-specific helpers ---------- */
.section-eyebrow {
  font-family: var(--serif-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--berry-rose);
  margin-bottom: 12px;
}

.unit-bar {
  height: 6px;
  background: linear-gradient(to right,
    var(--indigo) 0% 20%,
    var(--berry-rose) 20% 40%,
    var(--sage) 40% 60%,
    var(--cornflower) 60% 80%,
    var(--lavender) 80% 100%);
  border-radius: 3px;
  width: 80px;
  margin-bottom: 20px;
}

/* ==========================================================================
   VISUAL POLISH: shapes, callouts, animations, dense colored blocks
   ========================================================================== */

/* ---------- Decorative blob shapes (placed absolutely behind content) ---------- */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.32;
  mix-blend-mode: multiply;
}
.deco-rose    { background: radial-gradient(circle, rgba(184,80,115,0.45) 0%, rgba(184,80,115,0) 70%); }
.deco-sage    { background: radial-gradient(circle, rgba(110,128,82,0.45) 0%, rgba(110,128,82,0) 70%); }
.deco-indigo  { background: radial-gradient(circle, rgba(44,62,92,0.35) 0%, rgba(44,62,92,0) 70%); }
.deco-cornflower { background: radial-gradient(circle, rgba(133,168,212,0.45) 0%, rgba(133,168,212,0) 70%); }
.deco-lavender { background: radial-gradient(circle, rgba(160,139,170,0.45) 0%, rgba(160,139,170,0) 70%); }
.deco-cream   { background: radial-gradient(circle, rgba(245,234,218,0.95) 0%, rgba(245,234,218,0) 70%); }

@keyframes drift1 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(30px, -22px); }
  100% { transform: translate(0, 0); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-26px, 18px); }
  100% { transform: translate(0, 0); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(18px, 22px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}
.drift-a { animation: drift1 14s ease-in-out infinite; }
.drift-b { animation: drift2 18s ease-in-out infinite; }
.drift-c { animation: drift3 22s ease-in-out infinite; }

/* Place wrapper relative if it contains decos */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container,
.has-deco > .container-narrow { position: relative; z-index: 1; }

/* ---------- Callout boxes (mirroring the textbook system) ---------- */
.callout {
  position: relative;
  padding: 22px 26px 22px 64px;
  border-radius: 10px;
  border-left: 6pt solid;
  border-top: 1px solid;
  border-right: 1px solid;
  border-bottom: 1px solid;
  margin: 16px 0;
  box-shadow: 4px 4px 0 rgba(44,33,24,0.06), 8px 8px 18px rgba(44,33,24,0.06);
}
.callout .icon {
  position: absolute;
  left: 18px; top: 22px;
  width: 28px; height: 28px;
  display: block;
}
.callout .label {
  display: block;
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }

.callout.intro    { background: var(--intro-bg);    border-color: var(--berry-rose); }
.callout.intro .label, .callout.intro .icon { color: var(--berry-rose); stroke: var(--berry-rose); }

.callout.tip      { background: var(--tip-bg);      border-color: var(--sage); }
.callout.tip .label, .callout.tip .icon { color: var(--sage); stroke: var(--sage); }

.callout.clinical { background: var(--clinical-bg); border-color: var(--indigo); }
.callout.clinical .label, .callout.clinical .icon { color: var(--indigo); stroke: var(--indigo); }

.callout.script   { background: var(--script-bg);   border-color: var(--lavender); }
.callout.script .label, .callout.script .icon { color: var(--lavender); stroke: var(--lavender); }

.callout.case     { background: var(--case-bg);     border-color: var(--cornflower); }
.callout.case .label, .callout.case .icon { color: var(--cornflower); stroke: var(--cornflower); }

.callout.takeaway { background: var(--takeaway-bg); border-color: var(--plum); }
.callout.takeaway .label, .callout.takeaway .icon { color: var(--plum); stroke: var(--plum); }

/* ---------- Stat tiles (big numbers in colored boxes) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.stat {
  background: white;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  border-top: 6px solid;
  box-shadow: 3px 3px 0 rgba(44,33,24,0.06), 6px 6px 14px rgba(44,33,24,0.06);
  transition: transform 200ms ease;
}
.stat:hover { transform: translateY(-3px); }
.stat .num {
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 6px;
}
.stat .lab {
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.stat-rose       { border-color: var(--berry-rose); }
.stat-rose .num  { color: var(--berry-rose); }
.stat-sage       { border-color: var(--sage); }
.stat-sage .num  { color: var(--sage); }
.stat-indigo     { border-color: var(--indigo); }
.stat-indigo .num{ color: var(--indigo); }
.stat-lavender   { border-color: var(--lavender); }
.stat-lavender .num { color: var(--lavender); }
.stat-cornflower { border-color: var(--cornflower); }
.stat-cornflower .num { color: var(--cornflower); }
.stat-plum       { border-color: var(--plum); }
.stat-plum .num  { color: var(--plum); }

@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Card upgrade: hover glow + animated arrow ---------- */
.card .card-link::after {
  display: inline-block;
  transition: transform 200ms ease;
}
.card:hover .card-link::after { transform: translateX(4px); }

.card.card-rose:hover { box-shadow: 4px 4px 0 rgba(184,80,115,0.18), 8px 12px 24px rgba(184,80,115,0.20); }
.card.card-indigo:hover { box-shadow: 4px 4px 0 rgba(44,62,92,0.18), 8px 12px 24px rgba(44,62,92,0.18); }
.card.card-sage:hover { box-shadow: 4px 4px 0 rgba(110,128,82,0.18), 8px 12px 24px rgba(110,128,82,0.18); }
.card.card-lavender:hover { box-shadow: 4px 4px 0 rgba(160,139,170,0.20), 8px 12px 24px rgba(160,139,170,0.20); }
.card.card-cornflower:hover { box-shadow: 4px 4px 0 rgba(133,168,212,0.22), 8px 12px 24px rgba(133,168,212,0.22); }

/* ---------- Brand-anchor pill (tag-like decoration) ---------- */
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--serif-heading);
}
.pill-rose   { background: var(--intro-bg);    color: var(--berry-rose); }
.pill-sage   { background: var(--tip-bg);      color: var(--sage); }
.pill-indigo { background: var(--clinical-bg); color: var(--indigo); }
.pill-lavender { background: var(--script-bg); color: var(--lavender); }
.pill-cornflower { background: var(--case-bg);  color: var(--cornflower); }
.pill-plum   { background: var(--takeaway-bg); color: var(--plum); }

/* ---------- Wavy / squiggle divider (decorative section transitions) ---------- */
.wave-divider {
  height: 60px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,30 C150,60 300,0 450,30 C600,60 750,0 900,30 C1050,60 1200,0 1200,30 L1200,60 L0,60 Z' fill='white'/></svg>") no-repeat center/100% 100%;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0,30 C150,60 300,0 450,30 C600,60 750,0 900,30 C1050,60 1200,0 1200,30 L1200,60 L0,60 Z' fill='white'/></svg>") no-repeat center/100% 100%;
}

/* ---------- Hero upgrade ---------- */
.hero h1 {
  background: linear-gradient(135deg, var(--berry-rose) 0%, var(--wine) 50%, var(--berry-rose) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Reveal-on-scroll (CSS-only via supports + intersection) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ---------- Brand-anchor strip (multicolor band) ---------- */
.color-strip {
  height: 6px;
  background: linear-gradient(to right,
    var(--indigo) 0% 16.66%,
    var(--berry-rose) 16.66% 33.33%,
    var(--sage) 33.33% 50%,
    var(--cornflower) 50% 66.66%,
    var(--lavender) 66.66% 83.33%,
    var(--plum) 83.33% 100%);
}

/* ---------- Big book mockup card (used in hero) ---------- */
.book-stack {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.book-mini {
  width: 86px; height: 124px;
  border-radius: 4px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-heading);
  font-size: 0.7rem;
  text-align: center;
  padding: 8px;
  box-shadow: 3px 3px 0 rgba(44,33,24,0.10), 5px 5px 12px rgba(44,33,24,0.10);
  transition: transform 200ms ease;
}
.book-mini:hover { transform: translateY(-4px) rotate(-1deg); }
.book-mini.book-rose    { background: var(--intro-bg);    color: var(--berry-rose); border-top: 4px solid var(--berry-rose); }
.book-mini.book-indigo  { background: var(--clinical-bg); color: var(--indigo);     border-top: 4px solid var(--indigo); }
.book-mini.book-lavender{ background: var(--script-bg);   color: var(--lavender);   border-top: 4px solid var(--lavender); }
.book-mini.book-sage    { background: var(--tip-bg);      color: var(--sage);       border-top: 4px solid var(--sage); }

/* ---------- Small utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.color-rose { color: var(--berry-rose); }
.color-wine { color: var(--wine); }
.color-sage { color: var(--sage); }
.color-indigo { color: var(--indigo); }
.color-plum { color: var(--plum); }
.spacer-sm { height: 24px; }
.spacer { height: 48px; }
.spacer-lg { height: 80px; }

/* ==========================================================================
   MORE LIFE: animated stripe, dots, marquee, counters, swipes
   ========================================================================== */

/* ---------- Animated multi-color top strip (slow gradient slide) ---------- */
@keyframes colorStripSlide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.color-strip {
  background-size: 300% 100%;
  animation: colorStripSlide 18s linear infinite alternate;
}

/* ---------- Brand confetti dots (tiny floating dots scattered behind sections) ---------- */
.dots-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle, var(--berry-rose) 2px, transparent 2.5px),
    radial-gradient(circle, var(--sage) 2px, transparent 2.5px),
    radial-gradient(circle, var(--cornflower) 2px, transparent 2.5px),
    radial-gradient(circle, var(--lavender) 2px, transparent 2.5px);
  background-size: 80px 80px, 110px 110px, 95px 95px, 130px 130px;
  background-position: 0 0, 30px 50px, 50px 20px, 70px 80px;
  opacity: 0.18;
}
.has-deco > .container,
.has-deco > .container-narrow { position: relative; z-index: 1; }

/* ---------- Animated nav underline ---------- */
.nav-links a:not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--berry-rose);
  transition: width 220ms ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

/* ---------- Hero CTA pulse on primary ---------- */
@keyframes heroPulse {
  0%, 100% { box-shadow: 3px 3px 0 rgba(184,80,115,0.18), 0 0 0 0 rgba(184,80,115,0.35); }
  50%      { box-shadow: 3px 3px 0 rgba(184,80,115,0.18), 0 0 0 14px rgba(184,80,115,0); }
}
.hero .btn-primary {
  animation: heroPulse 2.6s ease-in-out infinite;
}
.hero .btn-primary:hover { animation: none; }

/* ---------- Marquee strip (auto-scrolling tagline band) ---------- */
.marquee {
  overflow: hidden;
  background: var(--cream);
  color: var(--berry-rose);
  padding: 12px 0;
  border-top: 1px solid rgba(184,80,115,0.18);
  border-bottom: 1px solid rgba(184,80,115,0.18);
  font-family: var(--serif-heading);
  font-style: italic;
  letter-spacing: 0.02em;
  font-size: 0.98rem;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: marqueeSlide 38s linear infinite;
  padding-right: 48px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 16px; }
.marquee-track .dot {
  width: 6px; height: 6px;
  background: var(--berry-rose);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.6;
}
@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Stagger children inside cards/stat grids on reveal ---------- */
.stat-grid > .stat,
.cards > .card {
  transition: opacity 600ms ease, transform 600ms ease;
}
.stat-grid > .stat:nth-child(1) { transition-delay: 0ms; }
.stat-grid > .stat:nth-child(2) { transition-delay: 80ms; }
.stat-grid > .stat:nth-child(3) { transition-delay: 160ms; }
.stat-grid > .stat:nth-child(4) { transition-delay: 240ms; }
.cards > .card:nth-child(1) { transition-delay: 0ms; }
.cards > .card:nth-child(2) { transition-delay: 90ms; }
.cards > .card:nth-child(3) { transition-delay: 180ms; }
.cards > .card:nth-child(4) { transition-delay: 270ms; }

/* ---------- Highlight brush (handwritten-feel underline) ---------- */
.highlight {
  background-image: linear-gradient(180deg, transparent 60%, rgba(184,80,115,0.30) 60%, rgba(184,80,115,0.30) 90%, transparent 90%);
  padding: 0 2px;
}
.highlight-sage { background-image: linear-gradient(180deg, transparent 60%, rgba(110,128,82,0.30) 60%, rgba(110,128,82,0.30) 90%, transparent 90%); }
.highlight-indigo { background-image: linear-gradient(180deg, transparent 60%, rgba(44,62,92,0.30) 60%, rgba(44,62,92,0.30) 90%, transparent 90%); }
.highlight-lavender { background-image: linear-gradient(180deg, transparent 60%, rgba(160,139,170,0.35) 60%, rgba(160,139,170,0.35) 90%, transparent 90%); }

/* ---------- Compact 2-up callout grid ---------- */
.callout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.callout-grid .callout { margin: 0; }
@media (max-width: 720px) { .callout-grid { grid-template-columns: 1fr; } }

/* ---------- Section divider (mini color bar) ---------- */
.divider {
  display: block;
  margin: 0 auto;
  height: 4px;
  width: 80px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--berry-rose), var(--sage), var(--cornflower), var(--lavender));
}

/* ---------- Tighter hero h1 + tag ---------- */
.hero h1 { margin-bottom: 8px; }
.hero-tag { margin-bottom: 18px; }
.hero-sub { margin-bottom: 0; }
.hero-cta-row { margin-top: 24px; }

/* ---------- Tighten cards, more pop ---------- */
.card { padding: 22px 22px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p  { font-size: 0.95rem; line-height: 1.5; }

/* ---------- Tighten stat tiles ---------- */
.stat { padding: 18px 14px; }
.stat .num { font-size: 2.2rem; }
.stat .lab { font-size: 0.85rem; }

/* ---------- Tighten sections with backgrounds further ---------- */
section.bg-cream, section.bg-soft-rose, section.bg-soft-sage,
section.bg-soft-indigo, section.bg-soft-lavender { padding-top: 28px; padding-bottom: 28px; }

/* ---------- Hero 2-column split ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-split .hero-text { padding-right: 12px; padding-top: 4px; }
.hero-portrait {
  position: relative;
  border-radius: 10px;
  height: 360px;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--berry-rose), 12px 12px 0 var(--sage);
  background: linear-gradient(135deg, var(--cream) 0%, #efe1cc 100%);
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}
.hero-portrait-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}
.hero-portrait-fallback .monogram {
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 3.4rem;
  color: var(--berry-rose);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-portrait-fallback .label {
  font-family: var(--serif-heading);
  font-style: italic;
  color: var(--indigo);
  font-size: 0.95rem;
  text-align: center;
  padding: 0 18px;
  line-height: 1.4;
}
@media (max-width: 880px) {
  .hero-portrait { margin: 0 auto; height: 320px; }
}
.hero-mini-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-mini-books .card {
  padding: 16px 16px;
  min-height: 130px;
}
.hero-mini-books .card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.hero-mini-books .card p { font-size: 0.85rem; line-height: 1.4; margin-bottom: 6px; }
.hero-mini-books .card .label { font-size: 0.7rem; margin-bottom: 6px; }
.hero-mini-books .card .card-link { font-size: 0.85rem; }
@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Even tighter hero text ---------- */
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 4px; }
.hero-tag { font-size: 1.15rem; margin-bottom: 12px; }
.hero-sub { font-size: 1.02rem; margin-bottom: 0; }
.hero-cta-row { margin-top: 18px; }

/* ---------- Compact about-stats split ---------- */
.about-stats {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
.about-stats .stat-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0;
}
.about-stats .stat { padding: 14px 12px; }
.about-stats .stat .num { font-size: 1.9rem; }
.about-stats .stat .lab { font-size: 0.78rem; }
@media (max-width: 880px) {
  .about-stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Animated count-up class (used by JS) ---------- */
.count-up::after { content: attr(data-suffix); }

/* ---------- Brand stamp (decorative SVG mark) ---------- */
.stamp {
  display: inline-block;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--berry-rose);
  position: relative;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--berry-rose);
}

/* ---------- MHN partnership band (above footer) ---------- */
.mhn-band {
  background: var(--cream);
  border-top: 1px solid rgba(44,62,92,0.10);
  border-bottom: 1px solid rgba(44,62,92,0.10);
  padding: 22px 0;
}
.mhn-band-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}
.mhn-band .badge {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mhn-band .badge img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.mhn-band p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.5;
}
.mhn-band p strong { font-family: var(--serif-heading); color: var(--indigo); }
.mhn-band .btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .mhn-band-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .mhn-band .badge { margin: 0 auto; }
}

/* ---------- Dedicated book grid section (replaces hero books) ---------- */
.books-strip {
  position: relative;
}
.books-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.books-strip-grid .card {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.books-strip-grid .card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.books-strip-grid .card p { font-size: 0.9rem; line-height: 1.4; flex-grow: 1; margin-bottom: 8px; }
.books-strip-grid .card .label { font-size: 0.7rem; margin-bottom: 6px; }
.books-strip-grid .card .price-line {
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 4px 0 6px;
}
.books-strip-grid .card .card-link { font-size: 0.88rem; }
@media (max-width: 980px) {
  .books-strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .books-strip-grid { grid-template-columns: 1fr; }
}

/* ---------- Make sure cards are always visible (cards are not in reveal selector) ---------- */
.split, .card, .split-img { opacity: 1; }

/* ---------- Big social icon cards ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px 24px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid transparent;
  background: white;
  box-shadow: 4px 4px 0 rgba(44,33,24,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.social-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 6px 6px 0 rgba(44,33,24,0.14);
}
.social-card .social-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: white;
}
.social-card .handle {
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.social-card .platform-name {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.social-card .follow-link {
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: auto;
}
.social-card.ig    { border-color: var(--berry-rose); }
.social-card.ig    .social-icon { background: var(--berry-rose); }
.social-card.ig    .follow-link { color: var(--berry-rose); }
.social-card.tt    { border-color: var(--indigo); }
.social-card.tt    .social-icon { background: var(--indigo); }
.social-card.tt    .follow-link { color: var(--indigo); }
.social-card.yt    { border-color: var(--sage); }
.social-card.yt    .social-icon { background: var(--sage); }
.social-card.yt    .follow-link { color: var(--sage); }
.social-card.sub   { border-color: var(--lavender); }
.social-card.sub   .social-icon { background: var(--lavender); }
.social-card.sub   .follow-link { color: var(--lavender); }
@media (max-width: 540px) { .social-grid { grid-template-columns: 1fr; } }

/* ---------- Video embed wrapper (responsive 16:9) ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--berry-rose), 12px 12px 0 var(--sage);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Related books strip (cross-linking on book pages) ---------- */
.related-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-books .card {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
}
.related-books .card .label { font-size: 0.7rem; margin-bottom: 4px; }
.related-books .card h3 { font-size: 1rem; margin-bottom: 4px; }
.related-books .card p {
  font-size: 0.86rem;
  line-height: 1.4;
  margin-bottom: 6px;
  flex-grow: 1;
}
.related-books .card .price-line {
  font-family: var(--serif-heading);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 2px 0 4px;
}
.related-books .card .card-link { font-size: 0.85rem; }
@media (max-width: 720px) {
  .related-books { grid-template-columns: 1fr; }
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid white;
}
