/* ============================================================
   MIDDLE GROUND — Global Stylesheet v2
   Typography: League Spartan (headings) · DM Sans Bold (sub) · DM Sans Regular (body)
   Exact brand palette from branding PDF
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&display=swap');

   /* ── Brand Tokens (exact from PDF) ──────────────────────── */
   :root {
     /* Main colours */
     --terracotta:     #C65D3B;
     --dark:           #2B2B2B;
     --blue:           #2F5BFF;
     /* Softer colours */
     --terracotta-soft:#D98A6A;
     --dark-soft:      #3A3A3A;
     --blue-soft:      #3E6BFF;
     /* Derived */
     --terracotta-pale:#F2DDD5;
     --blue-pale:      #D6DFFF;
     --dark-mid:       #6B6B6B;
     --cream:          #F4EFEA;
     --cream-deep:     #EDE4DB;
     --cream-deeper:   #DDD0C4;
     --white:          #FFFFFF;
     --black:          #0F0F0F;
   
     /* Typography — spec from branding PDF */
     --font-heading: 'League Spartan', sans-serif;   /* headings */
     --font-sub:     'DM Sans', sans-serif;           /* sub-headings bold */
     --font-body:    'DM Sans', sans-serif;           /* paragraphs regular */
     /* Keep --font-display as alias */
     --font-display: 'League Spartan', sans-serif;
   
     /* Radii */
     --radius-sm:  6px;
     --radius-md:  12px;
     --radius-lg:  20px;
     --radius-xl:  40px;
     --radius-full:9999px;
   
     /* Shadows */
     --shadow-sm: 0 1px 4px rgba(43,43,43,0.07), 0 2px 8px rgba(43,43,43,0.05);
     --shadow-md: 0 4px 16px rgba(43,43,43,0.1),  0 8px 32px rgba(43,43,43,0.08);
     --shadow-lg: 0 12px 40px rgba(43,43,43,0.14), 0 24px 64px rgba(43,43,43,0.1);
   
     /* Easing */
     --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
     --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
   
     /* Layout */
     --nav-h:  84px;
     --max-w:  1200px;
     --gutter: clamp(20px, 5vw, 80px);
   }
   
   /* ── Reset ──────────────────────────────────────────────── */
   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
   html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
   body {
     font-family: var(--font-body);
     font-size: 16px;
     line-height: 1.65;
     color: var(--dark);
     background: var(--cream);
     overflow-x: hidden;
     -webkit-font-smoothing: antialiased;
   }
   img, video { max-width: 100%; display: block; }
   a { color: inherit; text-decoration: none; }
   button { cursor: pointer; border: none; background: none; font-family: inherit; }
   ul, ol { list-style: none; }
   input, textarea, select { font-family: inherit; }
   
   /* ── Typography Scale (reduced from v1) ─────────────────── */
   /* Headings — League Spartan */
   .t-display {
     font-family: var(--font-heading);
     font-size: clamp(2.4rem, 6vw, 4.8rem);
     font-weight: 800;
     line-height: 0.95;
     letter-spacing: -0.03em;
   }
   .t-h1 {
     font-family: var(--font-heading);
     font-size: clamp(1.9rem, 4vw, 3.2rem);
     font-weight: 700;
     line-height: 1.05;
     letter-spacing: -0.025em;
   }
   .t-h2 {
     font-family: var(--font-heading);
     font-size: clamp(1.5rem, 3vw, 2.4rem);
     font-weight: 700;
     line-height: 1.1;
     letter-spacing: -0.02em;
   }
   .t-h3 {
     font-family: var(--font-heading);
     font-size: clamp(1.1rem, 2vw, 1.55rem);
     font-weight: 600;
     line-height: 1.2;
     letter-spacing: -0.015em;
   }
   /* Sub-headings — DM Sans Bold */
   .t-lead {
     font-family: var(--font-sub);
     font-size: clamp(1rem, 1.6vw, 1.15rem);
     font-weight: 400;
     line-height: 1.65;
   }
   .t-sub {
     font-family: var(--font-sub);
     font-size: 1rem;
     font-weight: 600;
     line-height: 1.5;
   }
   /* Body — DM Sans Regular */
   .t-body  { font-family: var(--font-body); font-size: 1rem;    line-height: 1.7; font-weight: 400; }
   .t-small { font-family: var(--font-body); font-size: 0.875rem; line-height: 1.55; }
   .t-label {
     font-family: var(--font-heading);
     font-size: 0.68rem;
     font-weight: 700;
     letter-spacing: 0.18em;
     text-transform: uppercase;
   }
   
   /* ── Layout Utilities ───────────────────────────────────── */
   .container {
     max-width: var(--max-w);
     margin: 0 auto;
     padding: 0 var(--gutter);
   }
   .section    { padding: clamp(56px, 9vw, 120px) 0; }
   .section-sm { padding: clamp(36px, 5vw, 64px) 0; }
   .grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
   .grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px, 3vw, 40px); }
   .grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(16px, 2.5vw, 32px); }
   .flex         { display: flex; }
   .flex-center  { display: flex; align-items: center; justify-content: center; }
   .flex-between { display: flex; align-items: center; justify-content: space-between; }
   
   /* ── Buttons ────────────────────────────────────────────── */
   .btn {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-family: var(--font-heading);
     font-size: 0.82rem;
     font-weight: 700;
     letter-spacing: 0.04em;
     text-transform: uppercase;
     padding: 13px 26px;
     border-radius: var(--radius-full);
     transition:
       transform 0.22s var(--ease-out-expo),
       box-shadow 0.22s var(--ease-out-expo),
       background 0.2s ease,
       color 0.2s ease,
       border-color 0.2s ease;
     position: relative;
     overflow: hidden;
     white-space: nowrap;
   }
   .btn::after {
     content: '';
     position: absolute;
     inset: 0;
     background: rgba(255,255,255,0.12);
     opacity: 0;
     transition: opacity 0.2s ease;
   }
   .btn:hover::after  { opacity: 1; }
   .btn:hover         { transform: translateY(-2px); }
   .btn:active        { transform: translateY(0); }
   
   .btn-primary {
     background: var(--terracotta);
     color: var(--white);
     box-shadow: 0 3px 14px rgba(198,93,59,0.28);
   }
   .btn-primary:hover { box-shadow: 0 6px 24px rgba(198,93,59,0.38); }
   
   .btn-outline {
     background: transparent;
     color: var(--dark);
     border: 2px solid var(--dark);
   }
   .btn-outline:hover { background: var(--dark); color: var(--white); }
   
   .btn-outline-white {
     background: transparent;
     color: var(--white);
     border: 2px solid rgba(255,255,255,0.5);
   }
   .btn-outline-white:hover { background: var(--white); color: var(--dark); }
   
   .btn-blue {
     background: var(--blue);
     color: var(--white);
     box-shadow: 0 3px 14px rgba(47,91,255,0.28);
   }
   .btn-blue:hover { box-shadow: 0 6px 24px rgba(47,91,255,0.4); }
   
   .btn-lg { padding: 16px 36px; font-size: 0.88rem; }
   .btn-sm { padding: 9px 18px;  font-size: 0.74rem; }
   
   /* ── Eyebrow label ──────────────────────────────────────── */
   .eyebrow {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     font-family: var(--font-heading);
     font-size: 0.65rem;
     font-weight: 700;
     letter-spacing: 0.2em;
     text-transform: uppercase;
     color: var(--terracotta);
     margin-bottom: 14px;
   }
   .eyebrow::before {
     content: '';
     width: 20px;
     height: 2px;
     background: var(--terracotta);
     flex-shrink: 0;
   }
   
   /* ── Cards ──────────────────────────────────────────────── */
   .card {
     background: var(--white);
     border-radius: var(--radius-lg);
     padding: clamp(20px, 3vw, 36px);
     box-shadow: var(--shadow-sm);
     transition:
       transform 0.3s var(--ease-out-expo),
       box-shadow 0.3s var(--ease-out-expo);
   }
   .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
   
   /* ── Tags / Pills ───────────────────────────────────────── */
   .tag {
     display: inline-flex;
     align-items: center;
     padding: 3px 12px;
     border-radius: var(--radius-full);
     font-family: var(--font-heading);
     font-size: 0.62rem;
     font-weight: 700;
     letter-spacing: 0.1em;
     text-transform: uppercase;
   }
   .tag-terra { background: var(--terracotta-pale); color: var(--terracotta); }
   .tag-blue  { background: var(--blue-pale);       color: var(--blue); }
   .tag-dark  { background: rgba(43,43,43,0.1);     color: var(--dark); }
   .tag-cream { background: var(--cream-deep);       color: var(--dark-soft); }
   
   /* ── Navigation ─────────────────────────────────────────── */
   .nav {
     position: fixed;
     top: 0; left: 0; right: 0;
     z-index: 1000;
     height: var(--nav-h);
     transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
   }
   .nav.scrolled {
     background: rgba(244,239,234,0.94);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     box-shadow: 0 1px 0 rgba(43,43,43,0.07);
   }
   .nav-inner {
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 var(--gutter);
     max-width: var(--max-w);
     margin: 0 auto;
   }
   .nav-logo img { height: 76px; width: auto; }
   .logo-img { height: 76px; width: auto; display: block; }
   .footer-logo-img { height: 68px; width: auto; display: block; }
   .logo-invert { filter: invert(1) brightness(2); }
   .nav-links {
     display: flex;
     align-items: center;
     gap: 32px;
   }
   .nav-links a {
     font-family: var(--font-heading);
     font-size: 0.72rem;
     font-weight: 600;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     color: var(--dark);
     position: relative;
     transition: color 0.2s ease;
   }
   .nav-links a::after {
     content: '';
     position: absolute;
     bottom: -3px; left: 0;
     width: 0; height: 2px;
     background: var(--terracotta);
     transition: width 0.3s var(--ease-out-expo);
     border-radius: 2px;
   }
   .nav-links a:hover       { color: var(--terracotta); }
   .nav-links a:hover::after{ width: 100%; }
   .nav-links a.active      { color: var(--terracotta); }
   .nav-links a.active::after{ width: 100%; }
   .nav-cta { margin-left: 8px; }
   
   .nav-hamburger {
     display: none;
     flex-direction: column;
     gap: 5px;
     padding: 8px;
   }
   .nav-hamburger span {
     display: block;
     width: 22px;
     height: 2px;
     background: var(--dark);
     border-radius: 2px;
     transition: transform 0.3s ease, opacity 0.3s ease;
   }
   .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
   .nav-hamburger.open span:nth-child(2) { opacity: 0; }
   .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
   
   .nav-mobile {
     position: fixed;
     top: var(--nav-h); left: 0; right: 0;
     background: var(--cream);
     padding: 28px var(--gutter) 40px;
     transform: translateY(-108%);
     opacity: 0;
     transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
     z-index: 999;
     border-bottom: 1px solid var(--cream-deeper);
     box-shadow: var(--shadow-md);
   }
   .nav-mobile.open { transform: translateY(0); opacity: 1; }
   .nav-mobile a {
     display: block;
     font-family: var(--font-heading);
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--dark);
     padding: 13px 0;
     border-bottom: 1px solid var(--cream-deeper);
     transition: color 0.2s ease, padding-left 0.2s ease;
     letter-spacing: -0.01em;
   }
   .nav-mobile a:hover { color: var(--terracotta); padding-left: 8px; }
   .nav-mobile .btn { margin-top: 20px; width: 100%; justify-content: center; }
   
   /* ── Footer ─────────────────────────────────────────────── */
   .footer {
     background: var(--dark);
     color: var(--cream);
     padding: clamp(56px, 8vw, 96px) 0 36px;
   }
   .footer-grid {
     display: grid;
     grid-template-columns: 2fr 1fr 1fr 1fr;
     gap: clamp(28px, 4vw, 56px);
     padding-bottom: clamp(44px, 6vw, 72px);
     border-bottom: 1px solid rgba(244,239,234,0.1);
   }
   .footer-brand img { height: 52px; filter: invert(1) brightness(2); margin-bottom: 18px; }
   .footer-brand p { font-size: 0.875rem; line-height: 1.7; opacity: 0.55; max-width: 260px; }
   .footer-col h4 {
     font-family: var(--font-heading);
     font-size: 0.62rem;
     font-weight: 700;
     letter-spacing: 0.18em;
     text-transform: uppercase;
     opacity: 0.4;
     margin-bottom: 18px;
   }
   .footer-col a {
     display: block;
     font-size: 0.875rem;
     opacity: 0.65;
     margin-bottom: 11px;
     transition: opacity 0.2s ease, padding-left 0.2s ease;
   }
   .footer-col a:hover { opacity: 1; padding-left: 5px; }
   .footer-bottom {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding-top: 28px;
     font-size: 0.775rem;
     opacity: 0.38;
   }
   .footer-social { display: flex; gap: 14px; margin-top: 20px; }
   .footer-social a {
     width: 34px; height: 34px;
     border-radius: 50%;
     border: 1px solid rgba(244,239,234,0.15);
     display: flex; align-items: center; justify-content: center;
     opacity: 0.55;
     transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
     font-size: 0.82rem;
   }
   .footer-social a:hover { opacity: 1; border-color: var(--terracotta); transform: translateY(-2px); }
   
   /* ── Scroll Reveal ──────────────────────────────────────── */
   .reveal {
     opacity: 0;
     transform: translateY(28px);
     transition:
       opacity 0.7s var(--ease-out-expo),
       transform 0.7s var(--ease-out-expo);
   }
   .reveal.visible { opacity: 1; transform: translateY(0); }
   
   .reveal-left {
     opacity: 0;
     transform: translateX(-36px);
     transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
   }
   .reveal-left.visible { opacity: 1; transform: translateX(0); }
   
   .reveal-right {
     opacity: 0;
     transform: translateX(36px);
     transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
   }
   .reveal-right.visible { opacity: 1; transform: translateX(0); }
   
   .reveal-scale {
     opacity: 0;
     transform: scale(0.93);
     transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
   }
   .reveal-scale.visible { opacity: 1; transform: scale(1); }
   
   /* Stagger delays */
   .stagger > *:nth-child(1) { transition-delay: 0.00s; }
   .stagger > *:nth-child(2) { transition-delay: 0.07s; }
   .stagger > *:nth-child(3) { transition-delay: 0.14s; }
   .stagger > *:nth-child(4) { transition-delay: 0.21s; }
   .stagger > *:nth-child(5) { transition-delay: 0.28s; }
   .stagger > *:nth-child(6) { transition-delay: 0.35s; }
   .stagger > *:nth-child(7) { transition-delay: 0.42s; }
   .stagger > *:nth-child(8) { transition-delay: 0.49s; }
   
   /* ── Illustration utility ────────────────────────────────── */
   .illus {
     pointer-events: none;
     user-select: none;
     position: absolute;
   }
   .illus img { width: 100%; height: 100%; object-fit: contain; }
   
   /* ── Accordion ──────────────────────────────────────────── */
   .accordion-item { border-bottom: 1px solid var(--cream-deeper); }
   .accordion-trigger {
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 22px 0;
     font-family: var(--font-heading);
     font-size: 0.95rem;
     font-weight: 600;
     color: var(--dark);
     text-align: left;
     gap: 16px;
     transition: color 0.2s ease;
   }
   .accordion-trigger:hover { color: var(--terracotta); }
   .accordion-icon {
     font-size: 1.3rem;
     font-weight: 300;
     color: var(--terracotta);
     flex-shrink: 0;
     transition: transform 0.3s var(--ease-out-expo);
     line-height: 1;
   }
   .accordion-body {
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.4s var(--ease-out-expo);
   }
   .accordion-body p {
     padding-bottom: 22px;
     font-size: 0.925rem;
     color: var(--dark-mid);
     line-height: 1.7;
   }
   
   /* ── Form elements ──────────────────────────────────────── */
   .form-group {
     display: flex;
     flex-direction: column;
     gap: 6px;
     margin-bottom: 18px;
   }
   .form-group label {
     font-family: var(--font-heading);
     font-size: 0.65rem;
     font-weight: 700;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--dark-mid);
   }
   .form-group input,
   .form-group textarea,
   .form-group select {
     padding: 11px 15px;
     border: 2px solid var(--cream-deeper);
     border-radius: var(--radius-md);
     font-size: 0.925rem;
     background: var(--white);
     color: var(--dark);
     transition: border-color 0.2s ease, box-shadow 0.2s ease;
     outline: none;
   }
   .form-group input:focus,
   .form-group textarea:focus,
   .form-group select:focus {
     border-color: var(--terracotta);
     box-shadow: 0 0 0 3px rgba(198,93,59,0.1);
   }
   .form-group textarea { resize: vertical; min-height: 100px; }
   .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
   
   /* ── Misc helpers ───────────────────────────────────────── */
   .text-center   { text-align: center; }
   .text-cream    { color: var(--cream); }
   .text-terra    { color: var(--terracotta); }
   .text-blue     { color: var(--blue); }
   .text-muted    { color: var(--dark-mid); }
   .bg-cream      { background: var(--cream); }
   .bg-dark       { background: var(--dark); }
   .bg-terra      { background: var(--terracotta); }
   .bg-white      { background: var(--white); }
   
   .mb-8  { margin-bottom: 8px; }
   .mb-12 { margin-bottom: 12px; }
   .mb-16 { margin-bottom: 16px; }
   .mb-20 { margin-bottom: 20px; }
   .mb-24 { margin-bottom: 24px; }
   .mb-32 { margin-bottom: 32px; }
   .mb-40 { margin-bottom: 40px; }
   .mb-48 { margin-bottom: 48px; }
   .mb-56 { margin-bottom: 56px; }
   .mb-64 { margin-bottom: 64px; }
   
   /* ── Divider ────────────────────────────────────────────── */
   .divider { width: 40px; height: 3px; background: var(--terracotta); border-radius: 2px; margin-bottom: 20px; }
   .divider-center { margin-left: auto; margin-right: auto; }
   
   /* ── Reduced motion ─────────────────────────────────────── */
   @media (prefers-reduced-motion: reduce) {
     *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
     .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
   }
   
   /* ── Responsive ─────────────────────────────────────────── */
   @media (max-width: 1024px) {
     .grid-4 { grid-template-columns: repeat(2,1fr); }
     .footer-grid { grid-template-columns: 1fr 1fr; }
   }
   @media (max-width: 768px) {
     :root { --nav-h: 72px; }
     .grid-2, .grid-3 { grid-template-columns: 1fr; }
     .grid-4 { grid-template-columns: 1fr 1fr; }
     .nav-links, .nav-cta { display: none; }
     .nav-hamburger { display: flex; }
     .footer-grid { grid-template-columns: 1fr; gap: 36px; }
     .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
     .form-row { grid-template-columns: 1fr; }
   }
   @media (max-width: 480px) {
     .grid-4 { grid-template-columns: 1fr; }
     .btn-lg { padding: 14px 24px; font-size: 0.82rem; }
   }
   
   /* ── Nav mobile — ensure full coverage ──────────────────── */
   @media (max-width: 768px) {
     .nav-inner { padding: 0 clamp(16px, 4vw, 32px); }
     .nav-logo img { height: 62px; }
     .logo-img { height: 62px; }
     .footer-logo-img { height: 56px; }
     .nav-mobile { padding: 24px clamp(16px,4vw,32px) 36px; }
     .nav-mobile a { font-size: 1.1rem; padding: 12px 0; }
     
     /* Footer mobile */
     .footer-grid { grid-template-columns: 1fr; gap: 32px; }
     .footer-brand p { max-width: 100%; }
     .footer-bottom { flex-direction: column; gap: 12px; text-align: center; font-size: 0.72rem; }
     
     /* Section spacing on mobile */
     .section    { padding: clamp(44px, 10vw, 80px) 0; }
     .section-sm { padding: clamp(28px, 6vw, 48px) 0; }
     .mb-64 { margin-bottom: clamp(36px, 6vw, 56px); }
     .mb-56 { margin-bottom: clamp(28px, 5vw, 44px); }
     .mb-48 { margin-bottom: clamp(24px, 4vw, 36px); }
   }
   
   @media (max-width: 480px) {
     :root { --gutter: 18px; }
     .tag { font-size: 0.58rem; padding: 2px 10px; }
     .eyebrow { font-size: 0.6rem; letter-spacing: 0.16em; }
     .t-h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
     .t-h2 { font-size: clamp(1.35rem, 5.5vw, 2rem); }
     .t-h3 { font-size: clamp(1rem, 3.5vw, 1.35rem); }
     .t-lead { font-size: 0.95rem; }
     .btn    { font-size: 0.76rem; padding: 11px 20px; }
     .btn-lg { font-size: 0.82rem; padding: 14px 24px; }
     .btn-sm { font-size: 0.68rem; padding: 8px 14px; }
   }
   
   
   /* ============================================================
      MOBILE RESPONSIVENESS PATCH v2
      Fixes: squeezed text, overflow layouts, nav hamburger,
      inline grid styles on events/membership/about/playcare,
      footer, forms, all screen sizes
      ============================================================ */
   
   /* ── Better hamburger button ─────────────────────────────── */
   .nav-hamburger {
     /* display: none set in base styles — display:flex enabled at 768px media query */
     width: 42px;
     height: 42px;
     border-radius: 50%;
     background: var(--white);
     border: 1.5px solid var(--cream-deeper);
     box-shadow: var(--shadow-sm);
     align-items: center;
     justify-content: center;
     flex-direction: column;
     gap: 5px;
     padding: 0;
     transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
     flex-shrink: 0;
   }
   .nav-hamburger:hover {
     background: var(--terracotta-pale);
     border-color: var(--terracotta);
     transform: scale(1.05);
   }
   .nav-hamburger span {
     display: block;
     width: 18px;
     height: 2px;
     background: var(--dark);
     border-radius: 2px;
     transition: transform 0.32s var(--ease-out-expo), opacity 0.2s ease, background 0.2s ease;
   }
   .nav-hamburger.open {
     background: var(--terracotta);
     border-color: var(--terracotta);
     box-shadow: 0 4px 16px rgba(198,93,59,0.3);
   }
   .nav-hamburger.open span { background: var(--white); }
   .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
   .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
   .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
   
   /* ── Better mobile nav panel ─────────────────────────────── */
   .nav-mobile {
     position: fixed;
     top: var(--nav-h);
     left: 0; right: 0;
     background: var(--cream);
     padding: 0 clamp(16px, 5vw, 32px) 32px;
     transform: translateY(-108%);
     opacity: 0;
     transition: transform 0.42s var(--ease-out-expo), opacity 0.3s ease;
     z-index: 999;
     box-shadow: 0 24px 48px rgba(43,43,43,0.14);
     max-height: calc(100svh - var(--nav-h));
     overflow-y: auto;
   }
   .nav-mobile.open { transform: translateY(0); opacity: 1; }
   
   .nav-mobile a {
     display: flex;
     align-items: center;
     justify-content: space-between;
     font-family: var(--font-heading);
     font-size: clamp(1.05rem, 4.5vw, 1.3rem);
     font-weight: 700;
     color: var(--dark);
     padding: 15px 0;
     border-bottom: 1px solid rgba(43,43,43,0.08);
     transition: color 0.2s ease, padding-left 0.2s ease;
     letter-spacing: -0.01em;
   }
   .nav-mobile a::after {
     content: '→';
     font-size: 0.85em;
     opacity: 0;
     transform: translateX(-6px);
     transition: opacity 0.2s ease, transform 0.2s ease;
   }
   .nav-mobile a:hover { color: var(--terracotta); padding-left: 6px; }
   .nav-mobile a:hover::after { opacity: 1; transform: translateX(0); }
   .nav-mobile a:first-child { padding-top: 20px; }
   .nav-mobile .btn {
     margin-top: 22px;
     width: 100%;
     justify-content: center;
     padding: 15px 28px;
     font-size: 0.84rem;
   }
   
   /* ── Prevent inline grid styles breaking on mobile ───────── */
   /* These override hard-coded style="display:grid;grid-template-columns:1fr 1fr" */
   @media (max-width: 768px) {
     /* Ensure hamburger is visible — belt and suspenders */
     .nav-hamburger { display: flex !important; }
     .nav-links, .nav-cta { display: none !important; }
   
     [style*="grid-template-columns: 1fr 1fr"],
     [style*="grid-template-columns:1fr 1fr"] {
       grid-template-columns: 1fr !important;
     }
     [style*="grid-template-columns: 2fr 1fr"],
     [style*="grid-template-columns:2fr 1fr"],
     [style*="grid-template-columns: 1fr 2fr"],
     [style*="grid-template-columns:1fr 2fr"] {
       grid-template-columns: 1fr !important;
     }
   }
   
   /* ── About page — story section text overflow ────────────── */
   @media (max-width: 768px) {
     .about-story-grid,
     [style*="grid-template-columns"][style*="3fr"],
     [style*="grid-template-columns"][style*="2fr"] {
       grid-template-columns: 1fr !important;
       gap: 32px !important;
     }
     /* Fix: body text on about page getting squeezed next to floating image */
     .about-content-col { width: 100%; }
     .about-photo-col   { width: 100%; max-width: 360px; margin: 0 auto; }
   }
   
   /* ── Membership page mobile ───────────────────────────────── */
   @media (max-width: 768px) {
     .mem-grid-4 { grid-template-columns: 1fr; gap: 16px; }
     .mem-card-featured-v2 { transform: none; }
     .compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
     .compare-table { min-width: 540px; }
     /* Founding families section — stacked on mobile */
     .founding-inner { grid-template-columns: 1fr !important; gap: 28px !important; }
   }
   
   /* ── Events page — RSVP form fix ─────────────────────────── */
   @media (max-width: 768px) {
     .events-section-grid {
       grid-template-columns: 1fr !important;
       gap: 32px !important;
     }
     /* The inline grid on events.html sign-up section */
     #event-rsvp-form [style*="grid-template-columns: 1fr 1fr"],
     #event-rsvp-form [style*="grid-template-columns:1fr 1fr"] {
       grid-template-columns: 1fr !important;
       gap: 12px !important;
     }
     .event-signup-card { margin-top: 0 !important; }
   }
   
   /* ── Playcare how-it-works steps ─────────────────────────── */
   @media (max-width: 768px) {
     .playcare-steps-grid {
       grid-template-columns: 1fr !important;
     }
     .step-item { padding: clamp(16px, 4vw, 24px); }
     .step-body h3 { font-size: 1rem; }
     /* Image stacks next to step text — hide on very small screens */
     .playcare-photos-col { display: none; }
   }
   @media (max-width: 480px) {
     .step-item { flex-direction: row; align-items: flex-start; gap: 14px; }
     .step-num  { width: 38px; height: 38px; font-size: 0.78rem; flex-shrink: 0; }
   }
   
   /* ── Playcare "how it works" text squeezed fix ───────────── */
   @media (max-width: 768px) {
     .playcare-hiw-inner {
       grid-template-columns: 1fr !important;
       gap: 32px !important;
     }
   }
   
   /* ── Contact page layout ──────────────────────────────────── */
   @media (max-width: 768px) {
     .contact-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
     .contact-form-card { padding: 24px 18px; border-radius: var(--radius-lg); }
     .form-type-tabs { gap: 4px; }
     .form-type-tab  { font-size: 0.65rem; padding: 8px 6px; letter-spacing: 0.04em; }
   }
   
   /* ── Family guide page ────────────────────────────────────── */
   @media (max-width: 768px) {
     .biz-grid { grid-template-columns: 1fr; gap: 18px; }
     .filter-bar { gap: 6px; justify-content: flex-start; }
     .filter-btn { font-size: 0.68rem; padding: 7px 14px; }
   }
   
   /* ── Campaign page ────────────────────────────────────────── */
   @media (max-width: 768px) {
     .campaign-stats-bar {
       flex-direction: column;
       border-radius: var(--radius-lg);
       padding: 20px 24px;
       gap: 0;
       width: 100%;
       max-width: 340px;
       margin: 0 auto;
     }
     .c-stat-sep { width: 100%; height: 1px; margin: 4px 0; }
     .c-stat { padding: 10px 0; width: 100%; display: flex; align-items: center; justify-content: space-between; }
     .c-stat-val, .c-stat-label { display: inline; }
     .c-stat-label { font-size: 0.62rem; }
     .camp-hero-inner { gap: 24px !important; }
   }
   
   /* ── FAQ page ─────────────────────────────────────────────── */
   @media (max-width: 768px) {
     .faq-inner { grid-template-columns: 1fr !important; gap: 0 !important; }
     .faq-sidebar { position: static !important; top: auto !important; }
     .accordion-trigger { font-size: 0.9rem; padding: 18px 0; }
   }
   
   /* ── Page hero on mobile ──────────────────────────────────── */
   @media (max-width: 768px) {
     .page-hero { min-height: clamp(260px, 60vw, 380px); padding-bottom: clamp(32px, 6vw, 48px); }
     .ph-content h1 { margin-bottom: 10px; }
     .ph-content .t-lead { font-size: 0.9rem; max-width: 100%; }
     .ph-orb-b, .ph-orb-c { display: none; }
     .ph-orb-a { width: clamp(72px, 14vw, 110px); height: clamp(72px, 14vw, 110px); top: 10%; right: 5%; }
   }
   
   /* ── Membership founding section ─────────────────────────── */
   @media (max-width: 768px) {
     .founding-benefits-grid { grid-template-columns: 1fr !important; }
     .founding-perks-list { padding: 0; }
     /* "Become a Founding Family" duplicate heading fix */
     .mem-founding-duplicate { display: none !important; }
   }
   
   /* ── Stack pill / photo overlapping text fix ─────────────── */
   @media (max-width: 768px) {
     .photo-stack { margin-bottom: 24px; }
     .stack-pill { font-size: 0.6rem; padding: 7px 14px; right: -6px; top: 14px; }
     .stack-secondary { display: none; }
   }
   
   /* ── Body text line length — prevent extremely narrow columns */
   @media (max-width: 480px) {
     .ph-content h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
     p, .t-lead, .t-body {
       /* Ensure body text wraps naturally, never overflows */
       overflow-wrap: break-word;
       word-break: normal;
       hyphens: none;
     }
     .section { padding: clamp(36px, 9vw, 64px) 0; }
     .container { padding: 0 clamp(16px, 5vw, 24px); }
   }
   
   /* ── Marquee on small screens ────────────────────────────── */
   @media (max-width: 480px) {
     .inner-marquee .marquee-item { font-size: 0.64rem; padding: 0 16px; gap: 10px; }
     .marquee-item { font-size: 0.64rem !important; padding: 0 16px !important; }
   }
   
   /* ── Footer mobile ────────────────────────────────────────── */
   @media (max-width: 480px) {
     .footer { padding: clamp(40px, 8vw, 64px) 0 28px; }
     .footer-grid { grid-template-columns: 1fr; gap: 28px; }
     .footer-col h4 { margin-bottom: 12px; }
     .footer-col a { margin-bottom: 8px; font-size: 0.875rem; }
     .footer-bottom { flex-direction: column; gap: 10px; text-align: center; font-size: 0.7rem; }
     .footer-brand p { font-size: 0.85rem; }
   }
   
   /* ── General: prevent horizontal scroll ──────────────────── */
   html, body { overflow-x: hidden; max-width: 100%; }
   .nav-mobile, .nav { max-width: 100vw; }