:root {
  --navy: #00335d;
  --navy-2: #222d64;
  --blue: #007bc3;
  --blue-2: #005495;
  --sky: #2ea3f2;
  --ink: #13213a;
  --muted: #51607a;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #dbe3ee;
  /* Section colours */
  --joeys: #9b5a2a;
  --cubs: #ffc72c;
  --scouts: #00a651;
  --venturers: #8a1538;
  --rovers: #e4002b;
  /* Badge petals */
  --p-red: #e4002b;
  --p-yellow: #ffc72c;
  --p-green: #00a651;
  --p-orange: #f7941d;
  --p-purple: #6d2077;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(4,20,40,.55), rgba(4,20,40,0));
  color: #c9d6e8;
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.topbar .brand { display: block; line-height: 0; }
.topbar .brand img { height: 52px; width: auto; display: block; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 6px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.14); }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}
.camo { position: absolute; inset: -10% -10% 0 -10%; z-index: -2; width: 120%; height: 115%; }
.camo path { transform-box: fill-box; transform-origin: center; }
.camo .d1 { animation: drift 18s ease-in-out infinite alternate; }
.camo .d2 { animation: drift 23s ease-in-out infinite alternate-reverse; }
.camo .d3 { animation: drift 29s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-2%, 1%) scale(1); } to { transform: translate(3%, -2%) scale(1.06); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 72% 45%, rgba(46,163,242,.35), transparent 70%),
              linear-gradient(180deg, rgba(0,51,93,0) 60%, rgba(0,51,93,.65));
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 32px;
  padding-top: 132px;
  padding-bottom: 120px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--scouts); box-shadow: 0 0 0 4px rgba(0,166,81,.3); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0,166,81,0); } }
h1 {
  margin: 18px 0 14px;
  font-weight: 900;
  font-size: clamp(2.8rem, 7.4vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
h1 .line2 {
  display: block;
  background: linear-gradient(90deg, var(--p-yellow), var(--p-orange), #ff6b6b, var(--sky), #4cd787, var(--p-yellow));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 34ch; color: #dce8f6; margin: 0 0 28px; }
.lede b { color: #fff; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 900; font-size: 1.05rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.go { background: var(--scouts); color: #fff; box-shadow: 0 8px 24px rgba(0,166,81,.35); }
.btn.go:hover { box-shadow: 0 12px 28px rgba(0,166,81,.5); }
.btn.ghost { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn.ghost:hover { background: rgba(255,255,255,.2); }
.btn svg { width: 18px; height: 18px; }

/* The sign: a spinning badge with the fleur-de-lis */
.sign { position: relative; justify-self: center; width: min(400px, 80vw); aspect-ratio: 1; }
.sign .glow {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--p-red), var(--p-orange), var(--p-yellow), var(--p-green), var(--sky), var(--p-purple), var(--p-red));
  filter: blur(28px); opacity: .55;
  animation: spin 14s linear infinite;
}
.sign .ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.sign .ring text { font: 900 15.5px "Nunito Sans", sans-serif; letter-spacing: .32em; fill: #fff; text-transform: uppercase; }
.sign .face {
  position: absolute; inset: 17%;
  border-radius: 50%;
  background: #262662;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 0 0 6px var(--blue), 0 0 0 9px rgba(255,255,255,.4), 0 30px 60px rgba(0,0,0,.45), inset 0 -10px 30px rgba(0,0,0,.35);
  display: grid; place-items: center;
  transition: transform .4s cubic-bezier(.2,1.6,.4,1);
}
.sign:hover .face { transform: scale(1.04) rotate(-4deg); }
.emblem { width: 84%; height: 84%; object-fit: contain; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) scale(1.02); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--p-yellow); box-shadow: 0 0 12px 4px rgba(255,199,44,.7); animation: twinkle 3s ease-in-out infinite; }
.spark.s2 { background: #fff; box-shadow: 0 0 10px 3px rgba(255,255,255,.8); animation-delay: -1s; }
.spark.s3 { background: var(--sky); box-shadow: 0 0 12px 4px rgba(46,163,242,.8); animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }

/* ---------------------------------------------------------------- sections */
main { padding: 28px 0 72px; }
h2 {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05;
  margin: 0 0 8px; color: var(--navy);
}
.sub { color: var(--muted); margin: 0 0 28px; font-size: 1.1rem; }
.sections { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sec {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  padding: 0 18px 20px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(0,51,93,.05);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sec:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,51,93,.14); }
.sec .band { height: 10px; margin: 0 -18px 16px; background: var(--c); }
.sec .name { margin: 0; font-weight: 900; font-size: 1.2rem; text-transform: uppercase; line-height: 1.1; color: var(--navy); }
.sec .age { display: inline-block; margin: 6px 0 14px; font-weight: 700; font-size: .85rem; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 70%, black); }
.sec .when { font-weight: 700; color: var(--muted); }
.sec .when small { display: block; font-weight: 400; font-size: .9rem; }

.sec.live {
  grid-column: span 2;
  background: linear-gradient(140deg, #00a651, #007a3d);
  color: #fff;
  border: 0;
  box-shadow: 0 18px 40px rgba(0,166,81,.35);
}
.sec.live .band { background: repeating-linear-gradient(-45deg, var(--p-yellow) 0 14px, #ffdd73 14px 28px); }
.sec.live .name { color: #fff; font-size: 1.9rem; }
.sec.live .age { background: rgba(255,255,255,.2); color: #fff; }
.sec.live .when { color: #fff; font-size: 1.5rem; font-weight: 900; line-height: 1.2; }
.sec.live .when small { color: #e3f7ec; font-size: 1rem; font-weight: 700; margin-top: 4px; }
.sec.live .btn { margin-top: 18px; background: #fff; color: #00703a; padding: 10px 16px; font-size: .98rem; }
.sec.live .fdl-bg { position: absolute; right: -30px; bottom: -40px; width: 200px; opacity: .16; transform: rotate(-12deg); filter: brightness(0) invert(1); pointer-events: none; }
.tag { position: absolute; top: 22px; right: 16px; background: var(--p-yellow); color: #3a2b00; font-weight: 900; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; transform: rotate(3deg); }

/* ---------------------------------------------------------------- adventure strip */
.adventure { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--line);
  font-weight: 700; color: var(--navy);
  transition: border-color .15s ease, transform .15s ease;
}
.chip:hover { border-color: var(--sky); transform: translateY(-2px); }
.chip span { font-size: 1.2rem; line-height: 1; }

.find {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.find::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,163,242,.5), transparent 70%);
}
.find h2 { color: #fff; font-size: 1.7rem; }
.find address { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin: 6px 0 20px; position: relative; }
.find address b { display: block; font-size: 1.35rem; }
.find .links { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.find .btn { padding: 11px 16px; font-size: .98rem; }
.find .btn.go { background: var(--sky); box-shadow: none; }

/* ---------------------------------------------------------------- footer */
footer { background: #091830; color: #b8c6da; padding: 36px 0; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer .motto { font-weight: 900; color: #fff; letter-spacing: .14em; text-transform: uppercase; }
footer a { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1060px) {
  .sections { grid-template-columns: repeat(4, 1fr); }
  .sec.live { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 960px) {
  .sections { grid-template-columns: repeat(2, 1fr); }
  .sec.live { grid-column: 1 / -1; }
  .adventure { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 124px; padding-bottom: 100px; text-align: center; }
  .hero .sign { order: -1; width: min(300px, 76vw); }
  .lede { margin-left: auto; margin-right: auto; }
  .ctas { justify-content: center; }
}
@media (max-width: 440px) {
  .sections { grid-template-columns: 1fr; }
  .sign .ring text { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- about page */
.hero.short .wrap { grid-template-columns: 1fr auto; padding-top: 120px; padding-bottom: 104px; }
.hero.short h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.hero.short .mini { width: 170px; aspect-ratio: 1; border-radius: 50%; background: #262662; border: 5px solid #fff;
  box-shadow: 0 0 0 5px var(--blue), 0 24px 50px rgba(0,0,0,.4); display: grid; place-items: center; }
.hero.short .mini img { width: 84%; }
.story { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.story article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; position: relative; overflow: hidden; }
.story article::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c, var(--blue)); }
.story h2 { font-size: 1.5rem; margin-bottom: 10px; }
.story p { margin: 0; color: var(--ink); }
.story .wide { grid-column: 1 / -1; }
.story .trees { background: linear-gradient(140deg, #0b6b3a, #00a651); color: #fff; border: 0; }
.story .trees::before { display: none; }
.story .trees h2, .story .trees p { color: #fff; }
.story .trees .btn { margin-top: 18px; background: #fff; color: #0b6b3a; }
.story .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.story .btn.ghost { color: var(--navy); border-color: var(--line); background: transparent; }
@media (max-width: 760px) {
  .hero.short .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero.short .mini { order: -1; justify-self: center; width: 130px; }
  .story { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Christmas tree fundraiser */
.nav .xmas-link { background: #0b6b3a; }
.nav .xmas-link:hover { background: #0e8247; }
.xmas {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  margin: 0 0 56px; padding: 30px 32px 28px;
  border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, #138a4c, #0a5a31 60%, #07432a);
  color: #fff;
  box-shadow: 0 18px 40px rgba(7,67,42,.35);
}
.xmas::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, #e4002b 0 14px, #fff 14px 28px);
}
.xmas::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.3) 1.2px, transparent 1.6px), radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1.4px);
  background-size: 46px 46px, 31px 31px; background-position: 0 0, 17px 11px;
  animation: snow 14s linear infinite;
}
@keyframes snow { to { background-position: 0 460px, 17px 321px; } }
.xmas > * { position: relative; z-index: 1; }
.xmas-tree { font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); animation: bob 3.5s ease-in-out infinite; }
.xmas-kicker { display: inline-block; background: var(--p-yellow); color: #3a2b00; font-weight: 900; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; }
.xmas h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 10px 0 8px; }
.xmas p { margin: 0 0 14px; color: #e3f4ea; max-width: 60ch; }
.xmas-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.xmas-dates li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 14px; font-weight: 900; }
.xmas small { display: block; margin-top: 8px; color: #cfe9da; font-weight: 700; }
.xmas-btn { background: #e4002b; color: #fff; box-shadow: 0 8px 24px rgba(228,0,43,.4); white-space: nowrap; }
.xmas-btn:hover { box-shadow: 0 12px 28px rgba(228,0,43,.55); }
.hero.short .lede { max-width: 46ch; }
@media (max-width: 760px) {
  .xmas { grid-template-columns: 1fr; text-align: center; padding: 30px 20px 24px; gap: 14px; }
  .xmas-tree { font-size: 60px; }
  .xmas p { margin-left: auto; margin-right: auto; }
  .xmas-dates { justify-content: center; }
  .xmas-btn { justify-self: center; }
}
@media (max-width: 440px) {
  .nav a { padding: 6px 8px; font-size: 14px; }
}

/* ---------------------------------------------------------------- local text and FAQ */
.local { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: start; }
.local p { margin: 0 0 14px; }
.local .more { font-weight: 900; color: var(--blue); text-decoration: none; }
.local .more:hover { text-decoration: underline; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 900; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink); }
.faq a { color: var(--blue); font-weight: 700; }
@media (max-width: 960px) { .local { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .topbar .wrap { justify-content: center; padding-top: 10px; }
  .topbar .brand img { height: 44px; }
  .hero.short .wrap { padding-top: 124px; }
}
