/* ── 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 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  gap: 18px;
}
/* flex:0 0 auto on both the link and the image — without it the logo is a
 * shrinkable flex item and a crowded nav squeezes its right-hand side off. */
.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; gap: 10px; flex: 0 0 auto; }
.logo-img { flex: 0 0 auto; display: block; width: auto; height: auto; max-height: 44px; max-width: min(300px, 46vw); object-fit: contain; }
.logo-mark { flex: 0 0 auto; display: block; width: 36px; height: 36px; }
.logo-text { flex: 0 0 auto; font-family: var(--script); font-size: clamp(22px, 5.4vw, 30px); font-weight: 700; color: #2e095e; line-height: 1.15; white-space: nowrap; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 1.15rem; list-style: none; flex: 1 1 auto; min-width: 0; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; transition: color 0.2s; white-space: nowrap; }
.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; }

/* ── Account + basket ──────────────────────────────────────────────────────── */
.nav-basket { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sage-light); color: #2e095e !important; transition: background 0.2s, color 0.2s !important; }
.nav-basket:hover { background: var(--sage); color: var(--white) !important; }
.nav-basket svg { width: 18px; height: 18px; display: block; }
.cjm-basket-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #2e095e; color: var(--white); font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; font-family: var(--sans); }
.cjm-basket-count[hidden] { display: none; }
.footer-basket { display: inline-flex; align-items: center; gap: 8px; }
.footer-basket .cjm-basket-count { position: static; background: var(--sage); color: #1a0538; }
.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 ────────────────────────────────────────────────────────────── */
/* Deep purple drop shadow rather than a glow: at 11px with 3px tracking the
 * teal needs a dark edge under it to separate from the pale hero, which a
 * light glow can never provide. Tight offsets keep it a shadow, not a blur. */
.eyebrow {
  font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 3px; font-size: 11px; margin-bottom: 14px; display: block;
  text-shadow:
    0 1px 1px rgba(46,9,94,0.85),
    0 2px 4px rgba(46,9,94,0.45),
    0 0 10px rgba(46,9,94,0.25);
}
.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 accents the rules above would flatten.
 * Headings, brand wordmarks and card titles only — never running copy. */
.logo, .logo-text, .footer-logo, .card-title-tier, .pricing-name, .value-title,
.mock-title, .mock-author, .product-price { font-family: var(--script) !important; }
.stat-num { font-family: var(--sans) !important; }

/* Quoted copy is body text, not a heading: the script face plus its heavy,
 * slanted look belongs to headings only. !important is needed to beat the
 * fonts inlined into pasted page-content blocks (.ch-* classes). */
blockquote, .home-quote, .quote-mark, .quote-text, .quote-author, .test-quote,
.ch-quote, .cjm-shield-msg {
  font-family: var(--sans) !important;
  font-style: normal !important;
}
blockquote, .home-quote, .quote-text, .test-quote, .ch-quote { font-weight: 300 !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 is intentionally identical to btn-peach so every "green" button
 * across the whole site (incl. plugin/page-builder output) matches. */
.btn-sage,
.btn-peach   { background: var(--peach); color: #5A3A1A; }
.btn-sage:hover,
.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(--purple); 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-input::placeholder { color: var(--purple); opacity: 0.55; }
.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; }
/* Cells are flex columns with the label pushed to the bottom so a two-line
 * figure ("UK & Global") can't drag its own label out of line with the rest. */
.stats-strip > div { display: flex; flex-direction: column; }
.stat-num    { font-family: var(--sans); font-size: 32px; font-weight: 800; color: #2e095e; display: block; line-height: 1.15; }
.stat-label  { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-light); margin-top: auto; padding-top: 8px; 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: 16px; color: #fff; font-weight: 300; line-height: 1.6; text-align: left; max-width: 320px; }
.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; }
/* Client asked for this line "two times smaller". A literal 6px renders the
 * company's own registered name unreadable on a phone, so 8px is the floor.
 * Needs its own class: a classless <p> matches p:not([class]) above, and that
 * rule's font-size is !important, which always wins over a plain rule no
 * matter how specific — that's why 8px never actually rendered here before. */
.footer-copyright { font-size: 8px; letter-spacing: 0.2px; color: #fff !important; }
.footer-bottom a { color: #39d0db !important; text-decoration: none; font-family: var(--sans) !important; }
.footer-bottom a:hover { text-decoration: underline; }
.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; color: #fff; transition: all 0.2s; }
.footer-social a:hover { border-color: #39d0db; background: rgba(57,208,219,0.15); color: #39d0db; }
.footer-social .cjm-icon { width: 17px; height: 17px; }

/* ── 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); }
}
/* Nav collapses at 1024px: the menu carries ten items once Login and the
 * basket are in, which crams the pill well before the old 768px breakpoint. */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 90px; left: 5vw; right: 5vw;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
}
@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; }
}
