/* =====================================================================
   Sheer Sparkles — shared site styles (every page loads this first)
   Page-specific styles live in each page's own <style> block.
   ===================================================================== */

/* ============ TOKENS ============ */
:root {
  --navy: #1B2A3A; --navy-2: #24384D; --ink: #111C27;
  --lime: #A4D65E; --lime-soft: #EEF7E2; --lime-text: #4A7A16;
  --bg: #FFFFFF; --bg-soft: #F6F8F4; --line: #E2E8DE;
  --text: #2C3B49; --muted: #5B6B7A; --white: #FFFFFF;
  --star: #F5B301;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17,28,39,.05), 0 8px 24px rgba(17,28,39,.07);
  --shadow-lg: 0 24px 60px rgba(17,28,39,.14);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.16,1,.3,1);

  /* Legacy names used by older page styles, mapped onto the new palette */
  --charcoal: var(--ink); --deep: var(--navy); --cream: var(--bg-soft); --warm-white: #FFFFFF;
  --gold: var(--lime); --gold-light: #B4E073; --gold-dark: var(--lime-text);
  --blue: var(--navy); --blue-bright: var(--lime-text); --blue-light: var(--lime);
  --yellow: var(--lime); --yellow-light: #C9E89F;
  --taupe: var(--muted); --soft-gray: var(--line); --mid-gray: var(--muted);
  --text-dark: var(--ink); --text-body: var(--text); --text-light: var(--muted);
}

/* ============ BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.d1, .reveal-delay-1 { transition-delay: .08s !important; }
.d2, .reveal-delay-2 { transition-delay: .16s !important; }
.d3, .reveal-delay-3 { transition-delay: .24s !important; }
.reveal-delay-4 { transition-delay: .32s !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ TYPE ============ */
.eyebrow, .section-label { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-text); margin-bottom: 1rem; }
.eyebrow::before, .section-label::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--lime); }
.h2, .section-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); max-width: 720px; }
.h2 em, .section-title em { font-style: italic; color: var(--lime-text); }
.lead, .section-subtitle { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin-top: 1.1rem; line-height: 1.7; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head.center { text-align: center; }
.section-head.center .h2, .section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ============ BUTTONS ============ */
.btn, .btn-primary, .btn-secondary-outline { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .85rem 1.6rem; border-radius: 999px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn svg, .btn-primary svg, .btn-secondary-outline svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 6px 20px rgba(164,214,94,.35); }
.btn-primary:hover { transform: translateY(-2px); background: #B4E073; color: var(--ink); box-shadow: 0 10px 28px rgba(164,214,94,.45); }
.btn-outline, .btn-secondary-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover, .btn-secondary-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* ============ NAV ============ */
nav#navbar { position: fixed; inset: 0 0 auto 0; z-index: 1000; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
nav#navbar.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(17,28,39,.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { text-decoration: none; }
.nav-logo { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.nav-logo span { color: var(--lime-text); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-size: .95rem; font-weight: 500; padding: .35rem 0; position: relative; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--lime); transition: width .3s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links .btn { min-height: 44px; padding: .55rem 1.25rem; font-size: .95rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero { position: relative; overflow: hidden; padding: calc(76px + clamp(3rem, 7vw, 5.5rem)) var(--gutter) clamp(3.5rem, 7vw, 5.5rem); background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.page-hero-bg { position: absolute; inset: 0; background: radial-gradient(700px 420px at 85% 0%, rgba(164,214,94,.22) 0%, transparent 65%), radial-gradient(600px 400px at 0% 100%, rgba(164,214,94,.08) 0%, transparent 60%); }
.page-hero-pattern { display: none; }
.page-hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; }
.page-hero .section-label { color: var(--lime) !important; }
.page-hero .section-label > span { display: none !important; }
.page-hero .section-label::before { background: var(--lime); }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -.02em; color: var(--white); margin-bottom: 1.1rem; }
.page-hero h1 em { font-style: italic; color: var(--lime); }
.page-hero p { font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.7; color: rgba(255,255,255,.78); max-width: 620px; margin: 0 auto; }

/* ============ CTA BAND (inner pages) ============ */
.cta-band { padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter); text-align: center; }
.cta-band .section-title { margin: 0 auto 1.25rem; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .nav-logo { color: var(--white); font-size: 1.6rem; }
.site-footer .nav-logo span { color: var(--lime); }
.footer-brand p { font-size: .95rem; margin-top: .9rem; max-width: 320px; line-height: 1.65; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: var(--white); transition: background .3s, color .3s, border-color .3s; }
.footer-socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-col h4 { font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; font-size: .95rem; color: rgba(255,255,255,.72); text-decoration: none; padding: .3rem 0; }
.footer-col a:hover { color: var(--white); }
.footer-col span { color: rgba(255,255,255,.55); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-legal a:hover { color: var(--lime); }

/* ============ STICKY CTA ============ */
.sticky-cta { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 999; display: flex; gap: .6rem; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.sticky-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .btn { box-shadow: 0 10px 30px rgba(17,28,39,.25); }
.sticky-cta .btn-call { display: none; background: var(--navy); color: var(--white); }

/* ============ RESPONSIVE (shared parts) ============ */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(17,28,39,.1); padding: .5rem var(--gutter) 1.25rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links li:last-child { margin-top: 1rem; }
  .nav-links .btn { width: 100%; min-height: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  .nav-inner { height: 68px; } .nav-links { top: 68px; }
  .nav-logo { font-size: 1.5rem; }
  .page-hero { padding-top: calc(68px + 2.75rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .sticky-cta { left: 1rem; right: 1rem; bottom: 1rem; }
  .sticky-cta .btn { flex: 1; white-space: nowrap; padding: .75rem 1rem; font-size: .98rem; }
  .sticky-cta .btn-call { display: inline-flex; flex: 0 0 auto; }
  .site-footer { padding-bottom: 6rem; }
}
