/* =============================================
   14th West Lothian Scout Group – Stylesheet
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ===== Variables ===== */
:root {
  --purple:       #7413DC;
  --purple-dark:  #5A0FB0;
  --purple-light: #9B45F0;
  --teal:         #00A794;
  --teal-dark:    #007A6E;
  --navy:         #001F5B;

  /* Section colours */
  --squirrel: #E31B23;
  --beaver:   #009FE3;
  --cub:      #8DC63F;
  --scout:    #007A6E;
  --explorer: #26235B;
  --network:  #6D6E70;

  --white:      #ffffff;
  --light-grey: #f8f9fa;
  --mid-grey:   #e9ecef;
  --dark-grey:  #6c757d;
  --text-dark:  #1a1a2e;
  --text-mid:   #495057;

  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.14);
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   all 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--purple);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .fleur { font-size: 2rem; display: flex; }
.nav-logo .fleur img { height: 2rem; width: auto; display: block; }
.nav-logo-text { line-height: 1.15; }
.nav-logo-text .group-name { display: block; font-size: 1rem; font-weight: 900; color: var(--purple); }
.nav-logo-text .group-sub  { display: block; font-size: 0.72rem; font-weight: 600; color: var(--dark-grey); letter-spacing: 0.3px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  background: rgba(116,19,220,0.07);
}
.nav-links .nav-cta {
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 9px 20px !important;
  margin-left: 8px;
}
.nav-links .nav-cta:hover {
  background: var(--purple-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}
.nav-links .nav-cta.active {
  background: var(--purple) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  letter-spacing: 0.2px;
  font-family: inherit;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(116,19,220,0.35); }
.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,167,148,0.35); }
.btn-outline-white { background: transparent; color: var(--white); border: 2.5px solid rgba(255,255,255,0.8); }
.btn-outline-white:hover { background: var(--white); color: var(--purple); }
.btn-outline-purple { background: transparent; color: var(--purple); border: 2.5px solid var(--purple); }
.btn-outline-purple:hover { background: var(--purple); color: var(--white); }
.btn-sm { padding: 9px 22px; font-size: 0.9rem; }

/* ===== Utility ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-heading p {
  color: var(--dark-grey);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}
.page-header .tag { background: rgba(255,255,255,0.2); color: var(--white); }
.tag {
  display: inline-block;
  background: rgba(116,19,220,0.1);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.tag-teal { background: rgba(0,167,148,0.1); color: var(--teal-dark); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, #4A0EA0 45%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  padding: 90px 24px 130px;
  text-align: center;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(0,167,148,0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
/* Decorative circles */
.hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .highlight { color: #7FFFD4; }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-journey {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}
.hero-journey-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: 2px;
}
.hero-journey-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-section-pill {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.hero-section-pill em {
  font-style: normal;
  opacity: 0.75;
  font-size: 0.78rem;
  margin-left: 3px;
}
.hero-section-pill:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.journey-arrow {
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
}
.journey-row-connector {
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1;
}
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; fill: var(--white); }

/* ===== Stats Bar ===== */
.stats {
  padding: 56px 24px;
  background: var(--white);
}
.stats-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--dark-grey);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Sections Overview ===== */
.sections-overview {
  background: var(--light-grey);
  padding: 72px 24px;
}
.sections-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
}
.section-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
/* Centre the Explorers card on its own row below the top four */
.sections-grid .section-card:nth-child(5) { grid-column: 2 / 4; }
/* Values grid: top 3 each span 2 cols; bottom 2 centred in the middle 4 cols */
.values-grid .value-item:nth-child(1),
.values-grid .value-item:nth-child(2),
.values-grid .value-item:nth-child(3) { grid-column: span 2; }
.values-grid .value-item:nth-child(4) { grid-column: 2 / 4; }
.values-grid .value-item:nth-child(5) { grid-column: 4 / 6; }
.section-card-top {
  height: 6px;
}
.section-card-body {
  padding: 28px 24px 20px;
  flex: 1;
}
.section-emoji { margin-bottom: 1.2px; height: 90px; display: flex; align-items: center; justify-content: center; }
.section-emoji img { max-width: 160px; max-height: 80px; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; }
.sc-cub .section-emoji img { max-width: 128px; max-height: 64px; }
.sc-squirrel .section-emoji img { max-width: 230px; max-height: 115px; }
.sc-scout .section-emoji img { max-width: 360px; max-height: 180px; }
.sc-explorer .section-emoji img { max-width: 240px; max-height: 90px; }
.section-card-body h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; }
.section-age {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-card-body p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.6;
}
.section-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--mid-grey);
  font-size: 0.87rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-card-footer .arrow { font-size: 1.1rem; }

/* Section colour theming */
.sc-squirrel .section-card-top { background: var(--squirrel); }
.sc-squirrel .section-age { background: rgba(227,27,35,0.1); color: var(--squirrel); }
.sc-squirrel .section-card-footer { color: var(--squirrel); }
.sc-beaver .section-card-top { background: var(--beaver); }
.sc-beaver .section-age { background: rgba(0,159,227,0.1); color: var(--beaver); }
.sc-beaver .section-card-footer { color: var(--beaver); }
.sc-cub .section-card-top { background: var(--cub); }
.sc-cub .section-age { background: rgba(141,198,63,0.15); color: #5a8000; }
.sc-cub .section-card-footer { color: #5a8000; }
.sc-scout .section-card-top { background: var(--scout); }
.sc-scout .section-age { background: rgba(0,122,110,0.1); color: var(--scout); }
.sc-scout .section-card-footer { color: var(--scout); }
.sc-explorer .section-card-top { background: var(--explorer); }
.sc-explorer .section-age { background: rgba(38,35,91,0.1); color: var(--explorer); }
.sc-explorer .section-card-footer { color: var(--explorer); }
.sc-network .section-card-top { background: var(--network); }
.sc-network .section-age { background: rgba(109,110,112,0.12); color: var(--network); }
.sc-network .section-card-footer { color: var(--network); }

/* ===== Highlights ===== */
.highlights {
  padding: 72px 24px;
  background: var(--white);
}
.highlights-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.highlight-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--white);
}
.highlight-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.hc-header {
  padding: 28px 24px 20px;
  color: var(--white);
}
.hc-header.purple-grad { background: linear-gradient(135deg, var(--purple), #4A0EA0); }
.hc-header.teal-grad   { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.hc-header.navy-grad   { background: linear-gradient(135deg, var(--navy), #003080); }
.hc-header.explorer-grad { background: linear-gradient(135deg, var(--explorer), #4A4580); }
.hc-emoji { font-size: 2.4rem; margin-bottom: 12px; }
.hc-header h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 4px; }
.hc-header .hc-sub { font-size: 0.82rem; opacity: 0.8; }
.hc-body { padding: 20px 24px; }
.hc-body p { color: var(--text-mid); font-size: 0.93rem; line-height: 1.6; }

/* ===== Values strip ===== */
.values {
  background: var(--light-grey);
  padding: 64px 24px;
}
.values-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.value-item {
  text-align: center;
  padding: 24px 16px;
}
.value-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.value-item h4 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text-dark); }
.value-item p { font-size: 0.88rem; color: var(--dark-grey); }

/* ===== CTA Strip ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 72px 24px;
  text-align: center;
  color: var(--white);
}
.cta-strip h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 14px; }
.cta-strip .cta-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Get Involved cards ===== */
.get-involved {
  padding: 72px 24px;
  background: var(--white);
}
.gi-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.gi-card {
  background: var(--light-grey);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gi-card:hover { border-color: var(--purple); background: var(--white); box-shadow: var(--shadow-hover); }
.gi-card .gi-icon { font-size: 3.5rem; margin-bottom: 16px; }
.gi-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; }
.gi-card p { color: var(--text-mid); margin-bottom: 24px; font-size: 0.95rem; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px 28px;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .footer-logo .fleur { font-size: 2rem; display: flex; }
.footer-brand .footer-logo .fleur img { height: 2rem; width: auto; display: block; }
.footer-brand .footer-logo span { font-weight: 900; font-size: 1.1rem; }
.footer-brand p { opacity: 0.65; font-size: 0.88rem; line-height: 1.7; margin-bottom: 16px; max-width: 280px; }
.footer-brand .charity-reg { font-size: 0.78rem; opacity: 0.45; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--purple); }
.footer-col { text-align: left; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.45;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links { list-style: none; }
.footer-links a {
  display: block;
  padding: 0;
  font-size: 0.88rem;
  opacity: 0.7;
  transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--teal); }
.footer-section-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; margin-bottom: 2px; }
.footer-links a[href="squirrels.html"] .footer-section-logo { height: 56px; margin-left: -15px; margin-top: -10px; margin-bottom: -8px; }
.footer-links a[href="scouts.html"] .footer-section-logo { height: 112px; margin-left: -8px; margin-top: -38px; margin-bottom: -36px; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  opacity: 0.45;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--purple) 0%, var(--navy) 100%);
  padding: 64px 24px 72px;
  text-align: center;
  color: var(--white);
  position: relative;
}
.page-header-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.page-header-wave svg { display: block; width: 100%; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  opacity: 0.65;
  margin-bottom: 16px;
}
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 12px; line-height: 1.1; }
.page-header .page-sub { font-size: 1.05rem; opacity: 0.85; max-width: 580px; margin: 0 auto; }

/* ===== Sections Detail Page ===== */
.section-content { padding: 64px 24px; }
.section-block {
  max-width: 1100px;
  margin: 0 auto 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--mid-grey);
}
.section-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.section-block-inner {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 48px;
  align-items: start;
}
.section-block-inner.reverse { direction: rtl; }
.section-block-inner.reverse > * { direction: ltr; }
.section-sidebar-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.ssb-header {
  padding: 32px 24px;
  color: var(--white);
}
.ssb-header.sq { background: var(--squirrel); }
.ssb-header.bv { background: var(--beaver); }
.ssb-header.cu { background: var(--cub); }
.ssb-header.sc { background: var(--scout); }
.ssb-header.ex { background: var(--explorer); }
.ssb-header.nw { background: var(--network); }
.ssb-header .ssb-emoji { font-size: 4rem; margin-bottom: 12px; }
.ssb-header h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 4px; }
.ssb-header .ssb-age { font-size: 0.9rem; opacity: 0.85; font-weight: 700; }
.ssb-body { background: var(--white); padding: 20px 24px; }
.ssb-body .info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--mid-grey); font-size: 0.87rem; }
.ssb-body .info-row:last-child { border-bottom: none; }
.ssb-body .info-row .label { color: var(--dark-grey); font-weight: 600; }
.ssb-body .info-row .value { font-weight: 800; }
.section-main h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 14px; line-height: 1.15; }
.section-main > p { color: var(--text-mid); margin-bottom: 16px; line-height: 1.7; font-size: 0.97rem; }
.activity-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.pill {
  background: var(--light-grey);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-mid);
}
.achievement-list { margin: 16px 0; }
.achievement-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mid-grey);
  font-size: 0.93rem;
}
.achievement-list li:last-child { border-bottom: none; }
.achievement-list li .ach-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* ===== Get Involved Page ===== */
.gi-hero-cards {
  padding: 0 24px 72px;
  max-width: 1240px;
  margin: 0 auto;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.gi-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.gi-hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-hover);
  text-align: center;
}
.gi-hero-card .ghc-icon { font-size: 3.5rem; margin-bottom: 16px; }
.gi-hero-card h3 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.gi-hero-card p { color: var(--text-mid); margin-bottom: 24px; font-size: 0.95rem; }

.volunteer-roles {
  padding: 72px 24px;
  background: var(--light-grey);
}
.roles-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.role-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.role-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.role-card .role-icon { font-size: 2.2rem; margin-bottom: 12px; }
.role-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.role-card p { font-size: 0.85rem; color: var(--dark-grey); }

.trustee-section {
  padding: 72px 24px;
  background: var(--white);
}
.trustee-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.trustee-info h2 { font-size: 1.9rem; font-weight: 900; margin-bottom: 16px; }
.trustee-info p { color: var(--text-mid); margin-bottom: 14px; font-size: 0.95rem; }
.trustee-benefits { background: var(--light-grey); border-radius: var(--radius); padding: 32px; }
.trustee-benefits h4 { font-weight: 800; margin-bottom: 16px; font-size: 1rem; }
.benefit-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mid-grey); font-size: 0.9rem; }
.benefit-item:last-child { border-bottom: none; }
.benefit-item .bi-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ===== Contact Page ===== */
.contact-layout {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mid-grey);
}
.contact-item:last-child { border-bottom: none; }
.ci-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(116,19,220,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ci-text h4 { font-weight: 800; margin-bottom: 4px; font-size: 1rem; }
.ci-text p, .ci-text a { color: var(--text-mid); font-size: 0.92rem; }
.ci-text a:hover { color: var(--purple); }
.contact-aside { }
.social-card {
  background: linear-gradient(135deg, var(--purple), #4A0EA0);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  text-align: center;
}
.social-card .sc-icon { font-size: 3rem; margin-bottom: 12px; }
.social-card h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; }
.social-card p { opacity: 0.85; font-size: 0.92rem; margin-bottom: 20px; }
.safeguarding-box {
  background: #FFF8E1;
  border: 2px solid #FFD54F;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 14px;
}
.safeguarding-box .sb-icon { font-size: 1.8rem; flex-shrink: 0; }
.safeguarding-box h4 { font-weight: 800; margin-bottom: 6px; font-size: 0.95rem; }
.safeguarding-box p { font-size: 0.85rem; color: var(--text-mid); }
.safeguarding-box a { color: var(--purple); font-weight: 700; }

/* ===== Dropdown Nav ===== */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dropdown-toggle .caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
.has-dropdown.open .caret { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  padding: 18px 8px 8px; /* top padding bridges the gap so hover doesn't drop */
  min-width: 260px;
  z-index: 200;
  border: 1px solid var(--mid-grey);
  margin-top: 0;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1px solid var(--mid-grey);
  border-top: 1px solid var(--mid-grey);
  transform: translateX(-50%) rotate(45deg);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-dark) !important;
  background: transparent !important;
  transition: background 0.18s ease !important;
  font-weight: 700 !important;
}
.dropdown-menu li a:hover {
  background: var(--light-grey) !important;
  color: var(--purple) !important;
}
.dm-logo {
  height: 32px;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.dm-logo img { max-height: 32px; max-width: 90px; width: auto; height: auto; }

/* Scouts logo PNG has extra transparent padding baked in (same issue as
   elsewhere on the site), so it renders almost invisibly at the shared
   size - scale it up and let the fixed-size box crop it instead. */
.dropdown-menu a[href="scouts.html"] .dm-logo img { max-height: 100px; max-width: 200px; }

/* Squirrels logo also has a lot of built-in padding around the wordmark,
   so it renders visibly smaller than Beavers at the shared box size -
   scale the image up to match Beavers' visual weight. */
.dropdown-menu a[href="squirrels.html"] .dm-logo img { max-height: 54px; max-width: 135px; }

/* Explorers logo is a wide, flat wordmark, so it renders thinner than the
   others at the shared box size - scale it up closer to the rest.
   The shared .dm-logo box above is now wide enough (140px) to fit all of
   these enlarged logos plus the default ones, so every row's "Ages" label
   still lines up in one column. */
.dropdown-menu a[href="explorers.html"] .dm-logo img { max-height: 38px; max-width: 140px; }
.dm-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.dm-text em { font-size: 0.75rem; color: var(--dark-grey); font-style: normal; font-weight: 600; white-space: nowrap; }

/* ===== Section Nav Pills ===== */
.section-nav-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 24px 20px;
  background: var(--white);
}
.section-nav-pills .pill {
  background: var(--light-grey);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-mid);
  transition: var(--transition);
  text-decoration: none;
}
.section-nav-pills .pill:hover { background: var(--mid-grey); }
.squirrel-pill:hover { background: var(--squirrel) !important; color: #fff !important; }
.beaver-pill:hover   { background: var(--beaver) !important;   color: #fff !important; }
.cub-pill:hover      { background: var(--cub) !important;      color: #fff !important; }
.scout-pill:hover    { background: var(--scout) !important;    color: #fff !important; }
.explorer-pill:hover { background: var(--explorer) !important; color: #fff !important; }
.network-pill:hover  { background: var(--network) !important;  color: #fff !important; }

/* ===== Sections Detail Page ===== */
.sections-detail { padding-bottom: 48px; }
.section-detail {
  padding: 0 24px 56px;
  position: relative;
}
.section-detail + .section-detail {
  border-top: 1px solid var(--mid-grey);
  padding-top: 56px;
}
.sd-accent {
  height: 5px;
  border-radius: 0 0 4px 4px;
  margin-bottom: 36px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.sd-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: start;
}
.sd-sidebar { position: sticky; top: 88px; }
.sd-info-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 5px solid var(--section-color, var(--purple));
}
.sd-info-card .sd-emoji { font-size: 3.5rem; padding: 24px 16px 8px; }
.sd-info-card .sd-emoji img { max-width: 100%; max-height: 140px; width: auto; height: auto; display: block; margin: 0 auto; }
.sd-info-card h2 { font-size: 1.5rem; font-weight: 900; padding: 0 16px 16px; }
.sd-info-card dl {
  background: var(--light-grey);
  padding: 16px;
  text-align: left;
}
.sd-info-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dark-grey);
  font-weight: 700;
  margin-top: 10px;
}
.sd-info-card dt:first-child { margin-top: 0; }
.sd-info-card dd {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.btn-section {
  display: block;
  margin: 0;
  padding: 13px 24px;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  filter: brightness(1);
}
.btn-section:hover { filter: brightness(0.88); }
.colour-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
}
.sd-content h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 28px 0 10px;
}
.sd-content p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.sd-content a { color: var(--purple); font-weight: 700; }
.intro { font-size: 1.05rem !important; color: var(--text-dark) !important; font-weight: 600 !important; }
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.badge-strip span {
  background: rgba(116,19,220,0.08);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
}
.sd-list {
  list-style: none;
  margin: 12px 0 20px;
}
.sd-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--mid-grey);
  font-size: 0.93rem;
  color: var(--text-mid);
}
.sd-list li:last-child { border-bottom: none; }
.sd-callout {
  border-left: 4px solid;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0 0;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.sd-callout strong { display: block; margin-bottom: 4px; }

/* ===== Get Involved Page ===== */
.gi-section {
  padding: 72px 24px;
  background: var(--white);
}
.gi-section:nth-of-type(even) { background: var(--light-grey); }
.gi-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.gi-section-inner--reversed { direction: rtl; }
.gi-section-inner--reversed > * { direction: ltr; }
.gi-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; margin: 12px 0 16px; line-height: 1.15; }
.gi-text h3 { font-size: 1.2rem; font-weight: 900; margin: 12px 0 16px; }
.gi-text p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }
.gi-text a:not(.btn) { color: var(--purple); font-weight: 700; }
.gi-text .btn { margin-right: 12px; }
.gi-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gi-section-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px 12px;
  border-top: 5px solid;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gi-section-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.gi-sc-emoji { display: flex; align-items: center; justify-content: center; min-height: 70px; }
.gi-sc-emoji img { max-width: 140px; max-height: 70px; width: auto; height: auto; display: block; margin: 0 auto; }
.gi-sc-name { font-weight: 900; font-size: 0.95rem; }
.gi-sc-age { font-size: 0.78rem; color: var(--dark-grey); font-weight: 700; }
.no-exclusion-band {
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: white;
  padding: 28px 24px;
}
.neb-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.neb-icon { font-size: 2.5rem; flex-shrink: 0; }
.neb-inner strong { font-size: 1.05rem; display: block; margin-bottom: 4px; }
.neb-inner p { font-size: 0.9rem; opacity: 0.9; margin: 0; }
.trustee-section {
  padding: 72px 24px;
  background: var(--light-grey);
}
.trustee-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.trustee-inner > p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; margin-bottom: 32px; max-width: 720px; }
.trustee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.trustee-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.trustee-card .trustee-icon { font-size: 2rem; margin-bottom: 12px; }
.trustee-card h4 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.trustee-card p { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; }
.trustee-card a { color: var(--purple); font-weight: 700; word-break: break-word; }
.trustee-cta {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trustee-cta p { flex: 1; font-size: 0.95rem; color: var(--text-mid); min-width: 200px; }
.trustee-cta strong { color: var(--text-dark); }

/* ===== Contact Page ===== */
.contact-section { padding: 64px 24px; }
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.contact-main h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 16px; }
.contact-main > p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; margin-bottom: 28px; }
.contact-cards { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.contact-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--mid-grey);
}
.contact-card:last-child { border-bottom: none; }
.cc-icon { font-size: 1.8rem; margin-bottom: 10px; }
.contact-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 6px; }
.contact-card p { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 6px; }
.contact-link {
  display: inline-block;
  color: var(--purple);
  font-weight: 800;
  font-size: 0.95rem;
  word-break: break-all;
  text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }
.meeting-address {
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 6px 0;
  line-height: 1.6;
}
.small-note { font-size: 0.82rem !important; color: var(--dark-grey) !important; }
.social-card {
  background: linear-gradient(135deg, var(--purple), #4A0EA0);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sc-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 180px; }
.social-card .sc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  flex-shrink: 0;
}
.social-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; }
.social-card p { font-size: 0.88rem; opacity: 0.85; margin: 0; }
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-sidebar-card h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 10px; }
.contact-sidebar-card p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 14px; line-height: 1.6; }
.contact-sidebar-card a:not(.btn) { color: var(--purple); font-weight: 700; }
.meeting-list { list-style: none; margin: 0 0 8px; }
.meeting-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px solid var(--mid-grey); }
.meeting-list li:last-child { border-bottom: none; }
.section-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.safeguarding-section {
  background: #FFF8E1;
  border-top: 4px solid #FFD54F;
  border-bottom: 4px solid #FFD54F;
  padding: 56px 24px;
}
.safeguarding-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.sg-icon { font-size: 3rem; flex-shrink: 0; margin-top: 4px; }
.sg-content h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.sg-content h3 { font-size: 1.05rem; font-weight: 800; margin: 20px 0 8px; }
.sg-content p { color: var(--text-mid); font-size: 0.93rem; line-height: 1.7; margin-bottom: 10px; }
.sg-content ul { padding-left: 20px; list-style: disc; }
.sg-content ul li { font-size: 0.92rem; color: var(--text-mid); padding: 4px 0; }
.sg-content a { color: var(--purple); font-weight: 700; }

/* ===== Page Header description ===== */
.page-header-inner { position: relative; z-index: 1; }
.page-header p { font-size: 1.05rem; opacity: 0.85; max-width: 580px; margin: 8px auto 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
  .sections-grid .section-card:nth-child(5) { grid-column: auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid .value-item:nth-child(1),
  .values-grid .value-item:nth-child(2),
  .values-grid .value-item:nth-child(3),
  .values-grid .value-item:nth-child(4),
  .values-grid .value-item:nth-child(5) { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-block-inner { grid-template-columns: 1fr; }
  .section-block-inner.reverse { direction: ltr; }
  .trustee-inner { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  /* Sections detail */
  .sd-inner { grid-template-columns: 1fr; }
  .sd-sidebar { position: static; }
  /* Get Involved */
  .gi-section-inner { grid-template-columns: 1fr; }
  .gi-section-inner--reversed { direction: ltr; }
  .gi-cards { grid-template-columns: repeat(3, 1fr); }
  /* Contact */
  .contact-inner { grid-template-columns: 1fr; }
  .social-card { flex-direction: column; }
  /* Trustee */
  .trustee-cta { flex-direction: column; }
  /* Safeguarding */
  .safeguarding-inner { flex-direction: column; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 16px 24px 24px; box-shadow: 0 12px 30px rgba(0,0,0,0.1); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .gi-grid { grid-template-columns: 1fr; }
  .gi-hero-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .gi-cards { grid-template-columns: repeat(2, 1fr); }
  .neb-inner { flex-direction: column; gap: 12px; }
  /* Mobile dropdown becomes inline accordion */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--light-grey);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin: 4px 0 4px 16px;
  }
  .dropdown-menu::before { display: none; }
  .dropdown-menu li a { padding: 9px 12px !important; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gi-cards { grid-template-columns: repeat(2, 1fr); }
  .trustee-grid { grid-template-columns: 1fr; }
}
