/* Theme — base design tokens and global component styles for ParentPathOS */
/* Does NOT own page-specific layout — those live in their own CSS files */

:root {
  /* Palette */
  --bg:           #FBF7F0;   /* warm cream */
  --bg-alt:       #EDE3D2;   /* soft sand panels */
  --fg:           #1F1A17;   /* deep ink */
  --fg-muted:     #6B6257;
  --primary:      #B5532A;   /* rust */
  --primary-lt:   #D4724A;
  --accent:       #7A8A6F;   /* sage */
  --accent-lt:    #9AAD8E;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(31,26,23,0.08);
  --shadow-md:    0 8px 24px rgba(31,26,23,0.12);
  --shadow-lg:    0 16px 48px rgba(31,26,23,0.16);
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* legacy aliases — kept so older partial CSS still works */
  --accent-rust:       #B5532A;
  --accent-rust-light: #D4724A;
  --accent-sage:       #7A8A6F;
  --accent-slate:      #4A6FA5;
  --bg-alt-legacy:     #EDE3D2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  padding: 18px 40px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(181,83,42,0.08);
}
.nav__inner { max-width: 1200px; margin: 0 auto; }
.nav__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-lt); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--lg { font-size: 17px; padding: 16px 36px; border-radius: 14px; }
.btn--outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid rgba(31,26,23,0.2);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── SECTION LAYOUT HELPERS ───────────────────────────────────── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 18px;
}
.section-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── CARD ─────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── HERO (homepage) ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}
.hero__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  display: block;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 22px;
}
.hero__sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── VERTICALS SECTION ────────────────────────────────────────── */
.verticals { padding: 100px 40px; background: var(--white); }
.verticals__inner { max-width: 1200px; margin: 0 auto; }
.verticals__header { margin-bottom: 56px; }
.verticals__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.verticals__sub { font-size: 18px; color: var(--fg-muted); max-width: 520px; }
.verticals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vert-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid rgba(31,26,23,0.07);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vert-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.vert-card__body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.vert-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.vert-card--parenting .vert-card__tag { color: var(--primary); }
.vert-card--pregnancy .vert-card__tag { color: var(--accent); }
.vert-card--relationships .vert-card__tag { color: #7A5EA7; }
.vert-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.vert-card__pain { font-size: 15px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.vert-card__price { font-size: 13px; font-weight: 600; color: var(--fg-muted); margin-bottom: 18px; }
.vert-card__cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  gap: 6px;
}
.vert-card--parenting .vert-card__cta { color: var(--primary); }
.vert-card--pregnancy .vert-card__cta { color: var(--accent); }
.vert-card--relationships .vert-card__cta { color: #7A5EA7; }

/* ── WHY DIFFERENT ────────────────────────────────────────────── */
.why { padding: 90px 40px; background: var(--bg-alt); }
.why__inner { max-width: 1200px; margin: 0 auto; }
.why__header { margin-bottom: 52px; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item__icon {
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.why-item__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.why-item__body { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonials { padding: 90px 40px; background: var(--white); }
.testimonials__inner { max-width: 1200px; margin: 0 auto; }
.testimonials__header { margin-bottom: 52px; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1.5px solid rgba(31,26,23,0.06);
}
.testimonial__stars { font-size: 14px; color: var(--primary); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 20px;
}
.testimonial__name { font-size: 14px; font-weight: 600; color: var(--fg); }
.testimonial__role { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }
.testimonial__todo { font-size: 11px; color: rgba(31,26,23,0.3); font-style: italic; margin-top: 6px; }

/* ── TRUST ROW ─────────────────────────────────────────────────── */
.trust-row { padding: 32px 40px; background: var(--bg-alt); border-top: 1px solid rgba(31,26,23,0.06); border-bottom: 1px solid rgba(31,26,23,0.06); }
.trust-row__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 36px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--fg-muted); }
.trust-item__icon { font-size: 20px; }

/* ── FINAL CTA BLOCK ──────────────────────────────────────────── */
.final-cta { padding: 100px 40px; background: var(--fg); }
.final-cta__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.final-cta__sub { font-size: 18px; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 36px; }
.final-cta__cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.final-cta .btn--primary { background: var(--primary); }
.final-cta .btn--primary:hover { background: var(--primary-lt); }
.final-cta .btn--outline { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25); }
.final-cta .btn--outline:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer { padding: 60px 40px; background: var(--bg-alt); border-top: 1px solid rgba(31,26,23,0.06); }
.footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer__brand { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--fg); }
.footer__tagline { font-size: 14px; color: var(--fg-muted); margin-bottom: 4px; }
.footer__copy { font-size: 13px; color: var(--fg-muted); }
.footer__links { display: flex; gap: 20px; }
.footer__link { font-size: 13px; color: var(--fg-muted); text-decoration: none; }
.footer__link:hover { color: var(--primary); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .verticals__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .hero__inner { gap: 48px; }
}
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 90px 20px 60px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__headline { font-size: 36px; }
  .hero__image-wrap { max-width: 100%; }
  .verticals { padding: 70px 20px; }
  .verticals__grid { grid-template-columns: 1fr; }
  .why { padding: 70px 20px; }
  .why__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .testimonials { padding: 70px 20px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .trust-row { padding: 24px 20px; }
  .trust-row__inner { gap: 20px; }
  .final-cta { padding: 80px 20px; }
  .footer { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .hero__headline { font-size: 30px; }
  .hero__cta-row { flex-direction: column; }
  .hero__cta-row .btn { width: 100%; text-align: center; justify-content: center; }
  .why__grid { grid-template-columns: 1fr; }
}

/* ── FAQ ACCORDION (shared) ───────────────────────────────────── */
/* Works with any prefix — the js targets .faq-accordion-* classes */
.faq-accordion-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.faq-accordion-item { border-bottom: 1px solid rgba(31,26,23,0.09); }
.faq-accordion-item:first-child { border-top: 1px solid rgba(31,26,23,0.09); }
.faq-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq-accordion-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.faq-accordion-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(31,26,23,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1;
}
.faq-accordion-item.faq-open .faq-accordion-icon {
  transform: rotate(45deg);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.faq-accordion-body { padding: 0 0 20px; font-size: 16px; color: var(--fg-muted); line-height: 1.75; }

/* ── GUARANTEE BADGE (shared) ─────────────────────────────────── */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-alt);
  border: 1.5px solid rgba(122,138,111,0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  max-width: 560px;
  margin: 24px auto 0;
}
.guarantee-badge__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.guarantee-badge__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.guarantee-badge__desc { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* ── TRUST STRIP (shared, sales pages) ───────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: center;
  padding: 20px 0 0;
  margin-top: 12px;
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
}
.trust-strip__item svg { flex-shrink: 0; opacity: 0.7; }

/* ── STICKY CTA BAR (shared, sales pages) ────────────────────── */
/* Base: hidden. Becomes visible via JS adding .sticky-cta-bar--visible */
.sticky-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--fg);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 -4px 20px rgba(26,26,26,0.25);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.26, 0.64, 1);
  pointer-events: none;
}
.sticky-cta-bar--visible {
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta-bar__text { color: rgba(255,255,255,0.85); font-size: 14px; }
.sticky-cta-bar__text strong { color: #fff; }
.sticky-cta-bar__btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.sticky-cta-bar__btn:hover { background: var(--primary-lt); }
@media (max-width: 600px) {
  .sticky-cta-bar { flex-direction: column; gap: 8px; padding: 12px 20px; text-align: center; }
}

/* ── EXIT-INTENT MODAL ────────────────────────────────────────── */
.exit-intent {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-intent--visible { display: flex; }
.exit-intent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31,26,23,0.55);
  backdrop-filter: blur(3px);
}
.exit-intent__card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.exit-intent__close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--fg-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.exit-intent__close:hover { color: var(--fg); }
.exit-intent__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}
.exit-intent__headline {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.exit-intent__sub { font-size: 15px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 24px; }
.exit-intent__form { display: flex; flex-direction: column; gap: 10px; }
.exit-intent__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(31,26,23,0.18);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--fg);
  outline: none;
}
.exit-intent__input:focus { border-color: var(--primary); }
.exit-intent__submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.exit-intent__submit:hover { background: var(--primary-lt); }
.exit-intent__fine { font-size: 12px; color: var(--fg-muted); text-align: center; margin-top: 6px; }
.exit-intent__thanks {
  display: none;
  text-align: center;
  padding: 16px 0;
  font-size: 17px;
  color: var(--fg);
  line-height: 1.65;
}
.exit-intent__thanks strong { color: var(--primary); }
@media (max-width: 540px) {
  .exit-intent__card { padding: 36px 24px; }
  .exit-intent__headline { font-size: 22px; }
}

/* ── TESTIMONIALS SALES PAGE STRIP ───────────────────────────── */
.testimonials-strip { padding: 72px 40px; background: var(--bg-alt); }
.testimonials-strip__inner { max-width: 1080px; margin: 0 auto; }
.testimonials-strip__header { margin-bottom: 40px; text-align: center; }
.testimonials-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(31,26,23,0.05);
}
.testimonial-card__stars { color: var(--primary); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 16px;
}
.testimonial-card__name { font-size: 13px; font-weight: 600; color: var(--fg); }
.testimonial-card__context { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.testimonial-card__todo {
  font-size: 11px;
  color: rgba(31,26,23,0.3);
  font-style: italic;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(181,83,42,0.06);
  border-radius: 6px;
}
@media (max-width: 860px) { .testimonials-strip__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .testimonials-strip { padding: 56px 20px; }
  .testimonials-strip__grid { grid-template-columns: 1fr; }
}
