/* ==========================================================================
   1st Croydon Hills Scout Group — Website Styles v2
   Branding: Scouts Australia / Scouts Victoria official colours
   Primary Purple: #252561 (verified from scoutsvictoria.com.au CSS)
   Scouts.com.au also uses #222D65 — splitting difference at #252561
   Font: Nunito Sans (Google Fonts)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Scouts Australia official brand colours ---- */
  --purple:       #252561;   /* Primary brand navy-purple (verified from SCV CSS) */
  --purple-dark:  #16163D;   /* Deeper shade for gradients */
  --purple-mid:   #353580;   /* Mid tone for hover states */
  --purple-light: #5050A0;   /* Lighter purple for accents */
  --purple-tint:  #EEEEF8;   /* Very light tint for backgrounds */

  /* ---- Section colours (Scouts Australia standard) ---- */
  --joeys:        #FFD100;   /* Joey Scouts — Yellow */
  --joeys-dark:   #C9A200;
  --joeys-text:   #5A4200;

  --cubs:         #E07020;   /* Cub Scouts — Orange */
  --cubs-dark:    #B85A10;
  --cubs-text:    #5A2800;

  --scouts:       #00A551;   /* Scouts — Green */
  --scouts-dark:  #007A3D;
  --scouts-text:  #003D1E;

  --venturers:    #004F8B;   /* Venturer Scouts — Navy Blue */
  --venturers-dark: #003260;
  --venturers-text: #001830;

  --rovers:       #BF1E2D;   /* Rover Scouts — Red */
  --rovers-dark:  #8B1520;
  --rovers-text:  #500010;

  /* ---- Neutrals ---- */
  --white:        #FFFFFF;
  --off-white:    #F6F5FC;
  --grey-50:      #FAFAFA;
  --grey-100:     #F0EDF6;
  --grey-200:     #E0DCE8;
  --grey-400:     #9E9CB0;
  --grey-600:     #5E5C72;
  --grey-800:     #2E2C44;
  --grey-900:     #1A1930;

  /* ---- Utility ---- */
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(37,37,97,.08);
  --shadow:       0 4px 24px rgba(37,37,97,.10);
  --shadow-lg:    0 12px 48px rgba(37,37,97,.16);
  --transition:   .22s ease;
  --transition-slow: .4s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-mid); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: var(--grey-600); max-width: 640px; line-height: 1.7; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple-light);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px; background: var(--purple-light);
}
.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 800;
  font-size: .92rem; cursor: pointer; transition: all var(--transition);
  border: 2.5px solid transparent; line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-mid); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,37,97,.3); }
.btn-outline { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-outline:hover { background: var(--purple); color: var(--white); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--purple); }
.btn-white:hover { background: var(--off-white); color: var(--purple); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-white-outline { border-color: rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn-white-outline:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-donate { background: #E8560A; color: var(--white); }
.btn-donate:hover { background: #C44500; color: var(--white); }
.btn-sm { padding: 9px 20px; font-size: .83rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: 0 1px 0 rgba(37,37,97,.06);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; color: var(--purple); }
.logo:hover { color: var(--purple-mid); }
.logo img { height: 44px; }
.logo span { line-height: 1.25; }
.logo small { display: block; font-weight: 400; font-size: .72rem; color: var(--grey-600); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: .875rem;
  color: var(--grey-800); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--purple-tint); color: var(--purple); }
.nav-links .btn { padding: 9px 20px; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--grey-900); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ======================================================
   HERO — Home Page
   ====================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 75vh;
  display: flex; align-items: center;
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-dark) 70%, #0D0D28 100%);
  color: var(--white);
  padding: 80px 0 100px;
}
.hero::after {
  /* Diagonal cut at bottom */
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero .container { position: relative; z-index: 2; }

/* Hero 2-column layout: logo left, content right */
.hero-layout {
  display: flex; align-items: center; gap: 64px;
}
.hero-logo-col { flex: 0 0 auto; }
.hero-logo-big {
  width: 260px; height: auto; display: block;
  mix-blend-mode: screen;
  filter: brightness(1.15) contrast(1.05);
  border-radius: 12px;
}
.hero-content-col { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .hero-layout { flex-direction: column; gap: 32px; align-items: flex-start; }
  .hero-logo-big { width: 160px; }
}

/* Decorative SVG pattern background */
.hero-pattern {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 10l4 12h12l-9.5 7 4 12L40 34 29.5 41l4-12L24 22h12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: .5;
}

/* Large decorative fleur-de-lis on right */
.hero-deco {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 480px; height: 480px; opacity: .06;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px; padding: 8px 18px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.9); margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-badge::before { content: '⚜️'; font-size: 1rem; }

.hero h1 { margin-bottom: 16px; color: var(--white); }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 36px; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

/* Hero stat counters */
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { text-align: left; }
.hero-stat .stat-number {
  font-size: 2.2rem; font-weight: 800; line-height: 1;
  color: var(--white); display: block;
}
.hero-stat .stat-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  display: block; margin-top: 4px;
}

/* Section-specific hero colours */
.hero-inner { min-height: 50vh; padding: 70px 0 90px; }
.hero-joeys     { background: linear-gradient(150deg, #C9A200 0%, #8A6D00 100%); }
.hero-cubs      { background: linear-gradient(150deg, var(--cubs) 0%, var(--cubs-dark) 100%); }
.hero-scouts    { background: linear-gradient(150deg, var(--scouts) 0%, var(--scouts-dark) 100%); }
.hero-venturers { background: linear-gradient(150deg, var(--venturers) 0%, var(--venturers-dark) 100%); }
.hero-rovers    { background: linear-gradient(150deg, var(--rovers) 0%, var(--rovers-dark) 100%); }

.hero-section-emoji {
  font-size: 5rem; display: block; margin-bottom: 16px; line-height: 1;
}
.hero-section-name {
  font-size: .75rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
  margin-bottom: 8px; display: block;
}

/* ======================================================
   SECTIONS GRID — "Our Sections" (5-column enforced)
   ====================================================== */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* EXPLICIT 5 — no auto-fit */
  gap: 20px;
  margin-top: 40px;
}

.section-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  position: relative;
}
.section-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
/* Hover colour accent line grows */
.section-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--purple));
  transform: scaleX(0); transform-origin: center;
  transition: transform var(--transition-slow);
}
.section-card:hover::after { transform: scaleX(1); }

.section-card[data-section="joeys"]     { --card-accent: var(--joeys); }
.section-card[data-section="cubs"]      { --card-accent: var(--cubs); }
.section-card[data-section="scouts"]    { --card-accent: var(--scouts); }
.section-card[data-section="venturers"] { --card-accent: var(--venturers); }
.section-card[data-section="rovers"]    { --card-accent: var(--rovers); }

.card-color { height: 16px; flex-shrink: 0; }

.card-body {
  padding: 20px 18px 22px;
  display: flex; flex-direction: column; flex: 1;
}
.card-emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 10px; display: block; }
.card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 2px; }
.card-age {
  display: inline-block;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; padding: 3px 10px;
  border-radius: 50px; margin-bottom: 10px;
  background: var(--age-bg, var(--grey-100));
  color: var(--age-text, var(--grey-600));
}
.section-card[data-section="joeys"]     .card-age { background: #FFF3CC; color: var(--joeys-text); }
.section-card[data-section="cubs"]      .card-age { background: #FFF0E0; color: var(--cubs-text); }
.section-card[data-section="scouts"]    .card-age { background: #E0F5EC; color: var(--scouts-text); }
.section-card[data-section="venturers"] .card-age { background: #E0EAF5; color: var(--venturers-text); }
.section-card[data-section="rovers"]    .card-age { background: #FAE8EA; color: var(--rovers-text); }

.card-desc {
  font-size: .84rem; color: var(--grey-600);
  margin-bottom: 12px; line-height: 1.5; flex: 1;
}
.card-meeting {
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  color: var(--grey-800); margin-bottom: 14px;
}
.card-meeting svg { flex-shrink: 0; opacity: .5; }

/* ======================================================
   "WHY SCOUTS" — 4-column feature cards
   ====================================================== */
.why-scouts-section {
  padding: 80px 0;
  background: var(--off-white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* EXPLICIT 4 */
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--f-color-a, var(--purple)), var(--f-color-b, var(--purple-mid))) 1;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  font-size: 2.8rem; display: block; margin: 0 auto 16px;
  width: 72px; height: 72px; line-height: 72px;
  border-radius: 20px;
  background: var(--f-bg, var(--purple-tint));
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--grey-900); }
.feature-card p { font-size: .88rem; color: var(--grey-600); line-height: 1.6; margin: 0; }

/* Specific feature card colour themes */
.feature-card:nth-child(1) { --f-color-a: var(--scouts); --f-color-b: #00D068; --f-bg: #E8F8F0; }
.feature-card:nth-child(2) { --f-color-a: var(--purple); --f-color-b: var(--purple-mid); --f-bg: var(--purple-tint); }
.feature-card:nth-child(3) { --f-color-a: var(--cubs); --f-color-b: #FFAA40; --f-bg: #FFF4E5; }
.feature-card:nth-child(4) { --f-color-a: var(--venturers); --f-color-b: #0070CC; --f-bg: #E5EEF8; }

/* ======================================================
   PULL QUOTE / TESTIMONIAL
   ====================================================== */
.quote-section {
  background: var(--purple);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '"';
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  font-size: 30rem; font-weight: 900; line-height: 1;
  color: rgba(255,255,255,.04);
  pointer-events: none;
  font-family: Georgia, serif;
}
.quote-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 2; }
.quote-mark { font-size: 4rem; color: rgba(255,255,255,.25); font-family: Georgia, serif; line-height: .8; display: block; margin-bottom: 8px; }
.quote-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--white);
  line-height: 1.35; letter-spacing: -.01em;
  margin-bottom: 24px;
}
.quote-attribution {
  font-size: .88rem; font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em; text-transform: uppercase;
}
.quote-attribution::before { content: '— '; }

/* ======================================================
   EVENTS STRIP — "Next Events"
   ====================================================== */
.events-strip {
  background: var(--grey-900);
  padding: 40px 0;
}
.events-strip-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.events-strip-label {
  font-size: .75rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  flex-shrink: 0; white-space: nowrap;
}
.events-list {
  display: flex; gap: 12px; flex-wrap: wrap; flex: 1;
}
.event-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 8px 18px;
  transition: background var(--transition);
}
.event-chip:hover { background: rgba(255,255,255,.12); }
.event-chip-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.event-chip-title {
  font-size: .85rem; font-weight: 700; color: var(--white); white-space: nowrap;
}
.event-chip-date {
  font-size: .75rem; color: rgba(255,255,255,.45); white-space: nowrap;
}

/* ======================================================
   JOIN CTA — Dual cards
   ====================================================== */
.join-cta-section {
  padding: 80px 0;
  background: var(--off-white);
}
.join-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.join-cta-card {
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.join-cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.join-cta-card.families {
  background: linear-gradient(145deg, var(--scouts) 0%, var(--scouts-dark) 100%);
  color: var(--white);
}
.join-cta-card.leaders {
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
}
.join-cta-card .cta-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.join-cta-card h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 10px; }
.join-cta-card p { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 24px; line-height: 1.6; }
/* Decorative circle */
.join-cta-card::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

/* ======================================================
   INFO SECTIONS
   ====================================================== */
.info-section { padding: 80px 0; }
.info-section.bg-light { background: var(--off-white); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.info-grid.reverse { direction: rtl; }
.info-grid.reverse > * { direction: ltr; }
.info-text h2 { margin-bottom: 16px; }
.info-text p { margin-bottom: 16px; color: var(--grey-600); }
.info-text ul { margin-bottom: 24px; }
.info-text li {
  padding: 7px 0 7px 32px; position: relative; color: var(--grey-600);
  font-size: .95rem;
}
.info-text li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  opacity: .2;
}
.info-text li::after {
  content: '✓'; position: absolute; left: 3px; top: 7px;
  font-size: .65rem; font-weight: 900; color: var(--purple);
  line-height: 1.8;
}

.info-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-100);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-600); font-size: .9rem; text-align: center;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.info-image-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: .55;
}
.info-image-icon { font-size: 4rem; display: block; }

/* ======================================================
   VALUES GRID — 4-column
   ====================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* EXPLICIT 4 */
  gap: 20px;
  margin-top: 32px;
}
/* Additional 2-column variant for overflow */
.values-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.value-card {
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.value-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.value-card p { font-size: .87rem; color: var(--grey-600); margin: 0; }

/* ======================================================
   STATS ROW — 4 cells
   ====================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--purple);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0;
}
.stat-cell {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-size: 2.6rem; font-weight: 800; color: var(--white);
  line-height: 1; display: block;
}
.stat-cell .label {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  display: block; margin-top: 6px;
}

/* ======================================================
   MEETING BANNER
   ====================================================== */
.meeting-banner {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin: 24px 0;
}
.meeting-banner .detail { text-align: center; }
.meeting-banner .detail .label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-600); font-weight: 700; }
.meeting-banner .detail .value { font-size: 1.2rem; font-weight: 800; margin-top: 2px; }

/* Section-branded meeting banners */
.meeting-banner.mb-joeys     { background: linear-gradient(135deg, #FFF3CC 0%, #FFFAE8 100%); border-left: 8px solid var(--joeys); }
.meeting-banner.mb-cubs      { background: linear-gradient(135deg, #FFF0E0 0%, #FFF8F0 100%); border-left: 8px solid var(--cubs); }
.meeting-banner.mb-scouts    { background: linear-gradient(135deg, #E0F5EC 0%, #F0FAF5 100%); border-left: 8px solid var(--scouts); }
.meeting-banner.mb-venturers { background: linear-gradient(135deg, #E0EAF5 0%, #F0F4FA 100%); border-left: 8px solid var(--venturers); }
.meeting-banner.mb-rovers    { background: linear-gradient(135deg, #FAE8EA 0%, #FDF3F4 100%); border-left: 8px solid var(--rovers); }
.meeting-banner.mb-joeys     .detail .label { color: #8A6800; }
.meeting-banner.mb-joeys     .detail .value { color: var(--joeys-text); }
.meeting-banner.mb-cubs      .detail .label { color: #9A4A10; }
.meeting-banner.mb-cubs      .detail .value { color: var(--cubs-text); }
.meeting-banner.mb-scouts    .detail .label { color: var(--scouts-dark); }
.meeting-banner.mb-scouts    .detail .value { color: var(--scouts-text); }
.meeting-banner.mb-venturers .detail .label { color: var(--venturers-dark); }
.meeting-banner.mb-venturers .detail .value { color: var(--venturers-text); }
.meeting-banner.mb-rovers    .detail .label { color: var(--rovers-dark); }
.meeting-banner.mb-rovers    .detail .value { color: var(--rovers-text); }

/* ======================================================
   SECTION LABEL PILLS
   ====================================================== */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 50px;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 20px; border: 1.5px solid;
}

/* ======================================================
   CALENDAR PLACEHOLDER
   ====================================================== */
.calendar-placeholder {
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--grey-600);
  background: var(--off-white);
}
.calendar-placeholder h3 { color: var(--purple); margin-bottom: 8px; }

/* ======================================================
   DONATIONS
   ====================================================== */
.donate-section {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B0 100%);
  padding: 60px 0;
}
.donate-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.donate-inner h2 { color: #C24400; margin-bottom: 12px; }
.donate-inner p { color: var(--grey-600); margin-bottom: 24px; }

/* ======================================================
   FAMILY PORTAL
   ====================================================== */
.portal-section { padding: 60px 0; background: var(--purple-dark); color: var(--white); }
.portal-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.portal-inner h2 { margin-bottom: 12px; color: var(--white); }
.portal-inner p { color: rgba(255,255,255,.72); margin-bottom: 24px; }

/* ======================================================
   LOCATION
   ====================================================== */
.location-section { padding: 80px 0; background: var(--off-white); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/10; background: var(--grey-200);
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-details h3 { margin-bottom: 12px; }
.location-details p { color: var(--grey-600); margin-bottom: 8px; }
.contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ======================================================
   INFO BOX
   ====================================================== */
.info-box {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 4px solid var(--purple);
}
.info-box h3 { margin-bottom: 6px; }
.info-box p { margin: 0; color: var(--grey-600); font-size: .95rem; }

/* ======================================================
   FOOTER — 4-column
   ====================================================== */
.site-footer {
  background: var(--grey-900); color: rgba(255,255,255,.55);
  padding: 56px 0 28px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-mark { /* SVG inline */ }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); margin-bottom: 16px; font-size: .88rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid a { color: rgba(255,255,255,.55); font-size: .875rem; }
.footer-grid a:hover { color: var(--white); }
.footer-grid li { margin-bottom: 10px; }
.footer-about { font-size: .875rem; line-height: 1.75; }
.footer-brand { margin-top: 16px; font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.3); }
.footer-bottom a:hover { color: rgba(255,255,255,.6); }
.footer-sponsors { border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0 0; margin-bottom: 28px; text-align: center; }
.sponsors-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); font-weight: 700; margin-bottom: 16px; }
.sponsors-row { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.sponsor-logo img { height: 36px; width: auto; opacity: .7; filter: brightness(0) invert(1); transition: opacity .2s; }
.sponsor-logo:hover img { opacity: 1; }

/* ======================================================
   SHOP
   ====================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* EXPLICIT 4 */
  gap: 24px;
  margin-top: 40px;
}
.product-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  aspect-ratio: 1; background: var(--grey-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative;
}
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--purple); color: var(--white);
  font-size: .7rem; font-weight: 800; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 50px; text-transform: uppercase;
}
.product-badge.new  { background: var(--scouts); }
.product-badge.sale { background: var(--rovers); }
.product-body { padding: 18px; flex: 1; }
.product-name { font-weight: 800; font-size: .97rem; margin-bottom: 4px; }
.product-desc { font-size: .83rem; color: var(--grey-600); margin-bottom: 12px; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-top: 1px solid var(--grey-100);
}
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--purple); }
.product-price .was { font-size: .78rem; text-decoration: line-through; color: var(--grey-400); font-weight: 400; display: block; }

.shop-notice {
  background: #FFF9E6; border: 1px solid #FFD100;
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 28px;
  display: flex; align-items: flex-start; gap: 12px; font-size: .88rem;
}
.shop-filter {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
.filter-btn {
  padding: 7px 18px; border-radius: 50px;
  background: var(--grey-100); color: var(--grey-600);
  font-weight: 700; font-size: .83rem; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--purple); color: var(--white); }

/* ======================================================
   CONTACT PAGE
   ====================================================== */
.contact-page-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 700; font-size: .88rem;
  color: var(--grey-900); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--grey-200);
  border-radius: 10px; font-size: .92rem; font-family: inherit;
  color: var(--grey-900); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(37,37,97,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-sidebar .info-card {
  background: var(--off-white); border-radius: var(--radius); padding: 26px; margin-bottom: 18px;
}
.contact-sidebar .info-card h3 { margin-bottom: 16px; font-size: 1.05rem; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  flex-shrink: 0; width: 36px; height: 36px; background: var(--purple);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.contact-item-text .label { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-600); font-weight: 700; }
.contact-item-text .value { font-weight: 700; font-size: .92rem; }

/* ======================================================
   ABOUT PAGE — Timeline
   ====================================================== */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--purple), var(--purple-tint));
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -30px; top: 5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--purple); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--purple);
}
.timeline-item .year { font-weight: 800; color: var(--purple); font-size: 1rem; letter-spacing: .02em; }
.timeline-item p { color: var(--grey-600); font-size: .93rem; margin-top: 4px; line-height: 1.65; }

/* Leader cards */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* EXPLICIT 4 */
  gap: 20px; margin-top: 32px;
}
.leader-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-align: center; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.leader-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.leader-avatar {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.leader-body { padding: 16px; }
.leader-name { font-weight: 800; margin-bottom: 2px; font-size: .95rem; }
.leader-role { font-size: .75rem; color: var(--purple); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.leader-section { font-size: .78rem; color: var(--grey-600); margin-top: 2px; }

/* ======================================================
   PROGRAMS PAGE — Section nav
   ====================================================== */
.programs-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* EXPLICIT 5 — matches sections */
  gap: 10px;
  margin: 28px 0;
}
.prog-nav-btn {
  padding: 12px 16px; border-radius: var(--radius);
  font-weight: 800; font-size: .82rem; cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.prog-nav-btn .pnb-emoji { font-size: 1.5rem; display: block; }
.pnb-joey    { background: #FFF3CC; color: #7A5700; border-color: var(--joeys); }
.pnb-cub     { background: #FFF0E0; color: #7A3800; border-color: var(--cubs); }
.pnb-scout   { background: #E0F5EC; color: #004A25; border-color: var(--scouts); }
.pnb-vent    { background: #E0EAF5; color: #002040; border-color: var(--venturers); }
.pnb-rover   { background: #FAE8EA; color: #5A0008; border-color: var(--rovers); }
.prog-nav-btn:hover { filter: brightness(.92); }

.program-section-block { padding: 64px 0; border-bottom: 1px solid var(--grey-200); }
.program-section-block:last-child { border-bottom: none; }

/* ======================================================
   CALENDAR PAGE
   ====================================================== */
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-item {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  display: flex; overflow: hidden; transition: transform var(--transition);
}
.event-item:hover { transform: translateX(4px); }
.event-date-col {
  background: var(--purple); color: var(--white); width: 72px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 0;
}
.event-date-col .day { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.event-date-col .month { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; opacity: .75; }
.event-body { padding: 16px 20px; flex: 1; }
.event-body h4 { margin-bottom: 4px; font-size: .95rem; }
.event-body .event-meta { font-size: .82rem; color: var(--grey-600); display: flex; flex-wrap: wrap; gap: 12px; }
.event-section-tag {
  display: inline-block; padding: 2px 10px; border-radius: 50px;
  font-size: .72rem; font-weight: 800; letter-spacing: .3px;
}

/* ======================================================
   PAGE HERO (non-home pages)
   ====================================================== */
.page-hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .lead { color: rgba(255,255,255,.8); }
.page-hero .hero-pattern { opacity: .35; }

/* ======================================================
   RESPONSIVE
   ====================================================== */

/* Large tablet — collapse 5-col sections to 3 */
@media (max-width: 1100px) {
  .sections-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .leader-grid { grid-template-columns: repeat(3, 1fr); }
  .programs-nav { grid-template-columns: repeat(5, 1fr); } /* keep 5 */
}

/* Tablet */
@media (max-width: 900px) {
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid, .info-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .join-cta-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-nav { grid-template-columns: repeat(3, 1fr); }
  .contact-page-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 16px 24px;
    border-bottom: 1px solid var(--grey-200); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }

  .hero { padding: 60px 0 80px; min-height: 60vh; }
  .hero-stats { gap: 20px; }
  .hero-stat .stat-number { font-size: 1.8rem; }
  .hero-deco { display: none; }

  .sections-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .features-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .join-cta-grid { grid-template-columns: 1fr; }
  .join-cta-card { padding: 32px 28px; }
  .programs-nav { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: 1fr; }
  .events-strip-inner { flex-direction: column; align-items: flex-start; }
  .meeting-banner { flex-direction: column; text-align: center; }
}

/* Extra small */
@media (max-width: 380px) {
  .sections-grid { grid-template-columns: 1fr; }
}
