/* ============================================================
   Good and Lovely - shared stylesheet
   Aesthetic: bright & modern, warm-neutral paper with a cool violet brand.
   Anchor colors: Purple Violet #4B3F72  +  Cloud Dancer #F0EEE9.
   Display face: Poppins.  Body: Nunito Sans.  (both loaded per page <head>)
   Companion to the Healthiest Finds static-site "treatment":
   same class conventions (.wrap, .grid, .card, .btn, .masthead, etc.)
   so the listicle / advertorial templates can be reskinned with this file.
   ============================================================ */

/* ---- 1. Design tokens ------------------------------------------ */
:root {
  /* surfaces - Cloud Dancer family (warm off-white) */
  --cloud:      #F0EEE9;   /* Cloud Dancer - page background */
  --cloud-deep: #E6E2D9;   /* deeper warm off-white - alt bands, placeholders */
  --white:      #FFFFFF;   /* cards */

  /* brand - Purple Violet family */
  --violet:      #4B3F72;  /* primary */
  --violet-deep: #372E57;  /* darker - hovers, deepest band */
  --violet-mid:  #6E5FA0;  /* lighter step - gradients, secondary accents */
  --violet-soft: #DBD6EC;  /* lavender tint - soft blocks, signup */
  --lav-wash:    #ECE8F6;  /* lightest lavender - alternating sections */

  /* ink - cool deep indigo to match the violet */
  --ink:        #2A2440;   /* near-black indigo */
  --ink-soft:   #5C5570;   /* secondary text */
  --ink-faint:  #938DA3;   /* captions, fine print */
  --line:       #E4DFD4;   /* hairline on warm paper */
  --line-lav:   #E0DAEE;   /* hairline on lavender */

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw-wide: 1120px;     /* homepage / wide layouts */
  --maxw-read: 680px;      /* reading column */

  --radius:    20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow:    0 14px 38px rgba(45, 35, 80, 0.12);
  --shadow-sm: 0 6px 18px rgba(45, 35, 80, 0.10);
  --shadow-xs: 0 2px 8px rgba(45, 35, 80, 0.07);
}

/* ---- 2. Reset / base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-deep); text-underline-offset: 2px; }
svg { display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---- 3. Typography --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-display); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--violet);
}
small, .fine { font-size: .82rem; line-height: 1.55; color: var(--ink-faint); }

/* ---- 4. Layout shells ------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px; }
.read { width: 100%; max-width: var(--maxw-read); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-soft { background: var(--lav-wash); }
.section-tight { padding: 48px 0; }
[id] { scroll-margin-top: 88px; }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 38px; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: .6rem; }
.section-head p { color: var(--ink-soft); margin: .6rem 0 0; }

/* ---- 5. Heart-sprout brand mark -------------------------------- */
.mark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.mark__icon { width: 34px; height: 34px; flex: none; }
.mark__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap;
}
.mark__word em { font-style: normal; color: var(--violet); }

/* ---- 6. Header / nav ------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 238, 233, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none; transition: color .15s ease;
}
.nav a:hover { color: var(--violet); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- 7. Buttons / CTA ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  background: var(--violet); color: #fff !important;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; text-align: center;
  padding: 13px 26px; border: 2px solid var(--violet); border-radius: var(--radius-pill);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--violet-deep); border-color: var(--violet-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--lg { font-size: 1.08rem; padding: 16px 34px; }
.btn--ghost { background: transparent; color: var(--violet-deep) !important; border-color: var(--violet); box-shadow: none; }
.btn--ghost:hover { background: var(--violet-soft); border-color: var(--violet); transform: translateY(-1px); }
.btn--deep { background: var(--violet-deep); border-color: var(--violet-deep); }
.btn--deep:hover { background: #2a2247; border-color: #2a2247; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- 8. Hero --------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 76px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__eyebrow { margin-bottom: 1.1rem; }
.hero h1 { margin: 0 0 1rem; }
.hero h1 .hl { color: var(--violet); }
.hero__sub { font-size: 1.22rem; line-height: 1.55; color: var(--ink-soft); max-width: 30ch; margin: 0 0 1.8rem; }
.hero__cta { margin-bottom: 1.4rem; }
.hero__note { font-size: .88rem; color: var(--ink-faint); display: flex; align-items: center; gap: .5rem; }
.hero__note svg { width: 18px; height: 18px; color: var(--violet-mid); flex: none; }

/* decorative art panel - no photography required */
.hero__art {
  position: relative; aspect-ratio: 5 / 5.2; border-radius: 28px;
  background:
    radial-gradient(120% 120% at 80% 15%, var(--violet-soft) 0%, transparent 55%),
    radial-gradient(120% 120% at 15% 90%, var(--lav-wash) 0%, transparent 55%),
    linear-gradient(160deg, #fff 0%, var(--cloud-deep) 100%);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__art .bigheart { width: 56%; height: auto; filter: drop-shadow(0 18px 30px rgba(75, 63, 114, .22)); }
.hero__blob { position: absolute; border-radius: 50%; opacity: .9; }
.hero__blob--1 { width: 90px; height: 90px; background: var(--violet); top: 30px; left: 34px; opacity: .12; }
.hero__blob--2 { width: 56px; height: 56px; background: var(--violet-mid); bottom: 44px; right: 50px; opacity: .18; }
.chip {
  position: absolute; background: #fff; border-radius: var(--radius-pill);
  padding: 9px 16px; box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: .45rem;
}
.chip svg { width: 15px; height: 15px; }
.chip--1 { top: 11%; right: -6px; }
.chip--2 { bottom: 13%; left: -10px; }

/* ---- 9. Life-stage band ---------------------------------------- */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stage {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 22px; box-shadow: var(--shadow-xs);
  transition: transform .14s ease, box-shadow .15s ease, border-color .15s ease;
}
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.stage__badge {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.stage__badge svg { width: 26px; height: 26px; }
.stage__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin: 0 0 .35rem; letter-spacing: -.01em; }
.stage__desc { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; margin: 0 0 1rem; flex: 1; }
.stage__link { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--violet); }
.stage:hover .stage__link { color: var(--violet-deep); }
/* progression - lavender deepening toward violet */
.t-1 { background: #ECE8F6; color: #4B3F72; }
.t-2 { background: #E4DEF2; color: #443A6C; }
.t-3 { background: #DBD3EC; color: #3D3463; }
.t-4 { background: #D2C9E6; color: #372E57; }
.t-5 { background: #C9BFE0; color: #312A50; }

/* ---- 10. Homepage featured grid -------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  text-decoration: none; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__thumb {
  aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 14px;
  position: relative; color: #fff;
}
.card__thumb .tag {
  font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--ink); padding: 5px 11px; border-radius: var(--radius-pill);
}
.thumb-a { background: linear-gradient(150deg, #6E5FA0, #4B3F72); }
.thumb-b { background: linear-gradient(150deg, #9B8FC6, #6E5FA0); }
.thumb-c { background: linear-gradient(150deg, #7E6FB0, #564780); }
.thumb-d { background: linear-gradient(150deg, #8579B8, #4B3F72); }
.thumb-e { background: linear-gradient(150deg, #B3A9D6, #8579B8); }
.thumb-f { background: linear-gradient(150deg, #6A5C98, #463A6A); }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__kicker { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.22; margin: 0; letter-spacing: -.01em; }

/* ---- 11. Mission strip ----------------------------------------- */
.mission { background: var(--violet); color: #fff; }
.mission .wrap { display: flex; align-items: center; gap: 34px; padding: 56px 24px; }
.mission__icon { flex: none; width: 92px; height: 92px; }
.mission h2 { color: #fff; margin: 0 0 .5rem; }
.mission p { color: rgba(255,255,255,.86); margin: 0; font-size: 1.12rem; max-width: 60ch; }

/* ---- 12. Newsletter -------------------------------------------- */
.signup { background: var(--violet-soft); }
.signup .inner { max-width: 620px; margin: 0 auto; text-align: center; }
.signup h2 { margin: 0 0 .5rem; }
.signup p { color: var(--ink-soft); margin: 0 0 1.6rem; }
.signup form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.signup input[type=email] {
  flex: 1; font-family: var(--font-sans); font-size: 1rem; padding: 14px 18px;
  border: 2px solid #fff; border-radius: var(--radius-pill); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-xs); min-width: 0;
}
.signup input[type=email]:focus { outline: none; border-color: var(--violet); }
.signup .fine { margin-top: 1rem; color: var(--violet-deep); opacity: .8; }

/* ---- 13. Footer ------------------------------------------------ */
.site-footer { background: var(--ink); color: #fff; padding: 52px 0 44px; }
.site-footer .mark__word { color: #fff; }
.site-footer .mark__word em { color: #B6ACD8; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.footer-blurb { max-width: 34ch; color: rgba(255,255,255,.7); font-size: .95rem; margin: 1rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 26px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.85); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-col h4 { color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; font-weight: 700; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-cols a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .92rem; }
.footer-cols a:hover { color: #fff; }
.legal-note { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.65; margin: 30px 0 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.legal-note a { color: rgba(255,255,255,.7); }

/* ---- 14. Article / template helpers (carried from HF treatment) - */
.ad-bar { background: var(--ink); color: #fff; text-align: center; padding: 7px 16px; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.disclosure { background: var(--cloud-deep); border-bottom: 1px solid var(--line); text-align: center; padding: 10px 16px; font-size: .8rem; color: var(--ink-soft); }
.pull { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.3; border-left: 4px solid var(--violet); padding-left: 1.1rem; margin: 1.8rem 0; color: var(--ink); }
.ph { background: var(--cloud-deep); border: 1px dashed #cfc8d6; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ink-faint); font-size: .8rem; padding: 1rem; min-height: 120px; }

/* ---- 15. Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 38px; }
  .hero__art { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__sub { max-width: 46ch; }
  .stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cloud); border-bottom: 1px solid var(--line); padding: 8px 0 16px;
    box-shadow: var(--shadow-sm); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; border-top: 1px solid var(--line); }
  .nav .btn { margin: 12px 24px 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 52px 0; }
  .mission .wrap { flex-direction: column; text-align: center; gap: 20px; }
  .mission p { margin: 0 auto; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .stages { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .signup form { flex-direction: column; }
  .signup input[type=email] { width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .cta-row .btn {
/* ---- 17. Embedded stock photos ---- */
.card__thumb { background-color: var(--violet-mid); background-size: cover; background-position: center; }
.hero-img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: var(--lav-wash); border-radius: var(--radius); }
