/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #FAF7F2;
  --white: #FFFFFF;
  --text: #4A4A4A;
  --text-light: #8A8A8A;
  --sage: #39d0db;
  --sage-dark: #1fb8c3;
  --sage-light: #e0f9fb;
  --peach: #39d0db;
  --peach-dark: #2e095e;
  --peach-light: #ede0ff;
  --lilac: #7a4aab;
  --lilac-dark: #2e095e;
  --lilac-light: #ede0ff;
  --purple: #2e095e;
  --purple-light: #ede0ff;
  --teal: #39d0db;
  --teal-light: #e0f9fb;
  --border: #ddd8ee;
  --shadow: 0 8px 32px rgba(46,9,94,0.09);
  --shadow-sm: 0 4px 16px rgba(46,9,94,0.05);
  --script: 'Merienda', serif;
  --sans: 'Nunito', sans-serif;
  --radius: 24px;
  --radius-sm: 16px;
  --radius-pill: 50px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.8; font-size: 16px; font-weight: 300; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.cjm-nav {
  padding: 20px 5vw;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.cjm-nav::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 0; right: 0;
  height: 28px;
  background: linear-gradient(to bottom, rgba(250,247,242,0.45), transparent);
  pointer-events: none;
  z-index: 99;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.logo { font-family: var(--script); font-size: 30px; font-weight: 700; color: #39d0db; cursor: pointer; text-decoration: none; line-height: 1; display: flex; align-items: center; }
.logo-img { max-height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--sage); }
.nav-cta { background: #2e095e !important; color: var(--white) !important; padding: 9px 22px; border-radius: var(--radius-pill); font-size: 13px !important; transition: background 0.2s !important; }
.nav-cta:hover { background: #1a0538 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Layout utilities ──────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 64px 5vw; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 64px 5vw; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* ── Section backgrounds ───────────────────────────────────────────────────── */
.section-white { padding: 64px 5vw; background: var(--white); }
.section-bg    { padding: 64px 5vw; background: var(--bg); }
.section-sage  { padding: 64px 5vw; background: var(--sage-light); }
.section-peach { padding: 64px 5vw; background: var(--bg); }

/* ── Typography ────────────────────────────────────────────────────────────── */
.eyebrow { font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 3px; font-size: 11px; margin-bottom: 14px; display: block; text-shadow: 0 0 10px rgba(255,255,255,0.95), 0 0 20px rgba(255,255,255,0.7), 0 1px 2px rgba(255,255,255,0.9); }
.section-title { font-family: var(--script); font-size: clamp(28px,4vw,46px); line-height: 1.2; color: #2e095e; margin-bottom: 18px; }
.section-subtitle { font-size: 17px; color: var(--purple); max-width: 560px; line-height: 1.75; font-weight: 300; text-align: justify; }
.divider { width: 48px; height: 3px; background: var(--peach); border-radius: 4px; margin: 20px 0 28px; }

/* ── Global paragraph justification ───────────────────────────────────────── */
p { text-align: justify; }

/* ── Sitewide font uniformity (match the About page type system) ───────────────
 * Forces every page (except decorative accents) onto the two brand faces so any
 * page-builder or inline fonts converge. !important beats page-level inline
 * styles; :not([class]) scopes size normalisation to raw/builder content only,
 * leaving the theme's deliberately-sized components untouched. */
body, p, li, td, th, label, figcaption,
input, textarea, select, button,
.nav-links a, .footer-col a { font-family: var(--sans) !important; }

h1, h2, h3, h4, h5, h6 { font-family: var(--script) !important; }

/* Re-assert the deliberate script/sans accents the rules above would flatten. */
.logo, .footer-logo, .card-title-tier, .pricing-name, .value-title,
.mock-title, .mock-author, .home-quote, .quote-mark, .quote-text,
.test-quote, .product-price, blockquote { font-family: var(--script) !important; }
.stat-num { font-family: var(--sans) !important; }

/* Body copy on raw/builder pages matches the About page's paragraph spec. */
p:not([class]) { font-size: 16px !important; line-height: 1.8 !important; font-weight: 300 !important; color: var(--purple) !important; }
h1:not([class]) { font-size: clamp(28px,4vw,46px) !important; line-height: 1.2 !important; color: #2e095e !important; }
h2:not([class]) { font-size: clamp(24px,3.2vw,38px) !important; line-height: 1.2 !important; color: #2e095e !important; }
h3:not([class]) { font-size: 18px !important; }

/* ── Coming Soon page ──────────────────────────────────────────────────────── */
.cjm-coming-soon-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.coming-soon-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; width: 100%; padding: 5vw; text-align: center; }
.coming-soon-inner { max-width: 560px; }
.coming-soon-inner h1 { font-family: var(--script); font-size: clamp(28px,4.5vw,46px); line-height: 1.2; color: #2e095e; margin-bottom: 18px; }
.coming-soon-inner p { font-size: 17px; color: var(--purple); line-height: 1.75; margin-bottom: 28px; }

/* ── Editable section backgrounds (set via CJM Content Manager plugin) ────── */
.cjm-section-bg { position: relative; background-size: cover; background-position: center; }
.cjm-section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cjm-overlay-color, transparent);
  opacity: var(--cjm-overlay-opacity, 0);
  pointer-events: none;
}
.cjm-section-bg > * { position: relative; z-index: 1; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ── Tags ──────────────────────────────────────────────────────────────────── */
.tag         { display: inline-block; align-self: flex-start; padding: 5px 16px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.tag-peach   { background: var(--peach-dark); color: var(--white); }
.tag-sage    { background: var(--sage);       color: var(--white); }
.tag-lilac   { background: var(--lilac);      color: var(--white); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn         { display: inline-block; padding: 14px 32px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; text-decoration: none; border: none; cursor: pointer; transition: all 0.25s; font-family: var(--sans); }
.btn-sage    { background: var(--sage);  color: var(--white); }
.btn-sage:hover  { background: var(--sage-dark); }
.btn-peach   { background: var(--peach); color: #5A3A1A; }
.btn-peach:hover { background: var(--peach-dark); color: var(--white); }
.btn-lilac   { background: var(--lilac); color: var(--white); }
.btn-lilac:hover { background: var(--lilac-dark); }
.btn-outline { background: transparent; color: var(--sage); border: 2px solid var(--sage); }
.btn-outline:hover { background: var(--sage); color: var(--white); }
.btn-white   { background: var(--white); color: var(--sage); }
.btn-white:hover { background: var(--sage-light); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group    { margin-bottom: 18px; }
.form-label    { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); margin-bottom: 8px; }
.form-input    { width: 100%; background: var(--white); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 14px 20px; font-family: var(--sans); font-size: 15px; color: var(--purple); box-shadow: var(--shadow-sm); outline: none; transition: border-color 0.2s; font-weight: 300; }
.form-input:focus { border-color: var(--peach); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 64px 5vw 32px; }
.hero-inner { max-width: 1200px; margin: 0 auto; }

/* ── Stats strip ───────────────────────────────────────────────────────────── */
.stats-strip { background: var(--sage-light); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; max-width: 1200px; margin: 0 auto 40px; position: relative; z-index: 10; }
.stat-num    { font-family: var(--sans); font-size: 32px; font-weight: 800; color: #2e095e; display: block; line-height: 1; }
.stat-label  { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); margin-top: 6px; display: block; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.cjm-footer { background: #1a0538; border-radius: 40px 40px 0 0; margin-top: 0; padding: 60px 5vw 36px; box-shadow: 0 -4px 24px rgba(46,9,94,0.2); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-family: var(--script); font-size: 32px; font-weight: 700; color: #39d0db; display: block; margin-bottom: 14px; cursor: pointer; text-decoration: none; }
.footer-tagline { font-size: 14px; color: #fff; font-weight: 300; line-height: 1.6; text-align: left; }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #39d0db; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #fff; text-decoration: none; cursor: pointer; transition: color 0.2s; font-weight: 300; }
.footer-col a:hover { color: #39d0db; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.footer-social a:hover { border-color: #39d0db; background: rgba(57,208,219,0.15); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.pricing-featured { transform: none; }
  .pricing-card.pricing-featured:hover { transform: translateY(-6px); }
}
@media (max-width: 768px) {
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 90px; left: 5vw; right: 5vw;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 20px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}
