:root {
  --ink: #16211f;
  --muted: #57615d;
  --paper: #fffaf0;
  --surface: #ffffff;
  --teal: #2e786d;
  --teal-dark: #1f514d;
  --green: #83b14e;
  --gold: #f4b740;
  --coral: #e26a4f;
  --purple: #6b3aa8;
  --line: #d9dfd8;
  --shadow: 0 18px 50px rgba(22, 33, 31, 0.13);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 33, 31, 0.1);
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  padding: 6px 16px;
  background: var(--green);
  color: #10170f;
  font-weight: 700;
}

.banner p {
  margin: 0;
}

.banner a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 4px 10px;
  text-decoration: none;
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: clamp(116px, 16vw, 176px);
  height: auto;
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  color: var(--teal-dark);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(46, 120, 109, 0.11);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
}

.menu-button span:not(.visually-hidden) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100svh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 7.4vw, 6.15rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.1;
}

.lede {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.volunteer-copy .button {
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
  border: 2px solid var(--teal);
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  color: var(--teal-dark);
  margin-left: 10px;
}

.button.no-margin {
  margin-left: 0;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 46px;
}

.page-hero.compact {
  padding-bottom: 24px;
}

.page-hero h1 {
  max-width: 920px;
}

.secondary-lede {
  margin-top: 16px;
}

.secondary-lede a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.content-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: start;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 12px 34px rgba(22, 33, 31, 0.08);
}

.info-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.info-card p,
.clean-list {
  color: var(--muted);
  font-size: 1.06rem;
}

.clean-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.clean-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.form-frame {
  min-height: 720px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-frame.tall {
  min-height: 860px;
}

.form-frame iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.hero-panel {
  min-height: 520px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46, 120, 109, 0.95), rgba(31, 81, 77, 0.88)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 2px, transparent 2px 18px);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 2px solid rgba(255, 250, 240, 0.42);
  border-radius: 8px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  right: -10%;
  bottom: -12%;
  background:
    radial-gradient(circle at center, transparent 0 36%, var(--gold) 37% 42%, transparent 43% 54%, var(--gold) 55% 61%, transparent 62%);
  opacity: 0.95;
}

.compass-card,
.trail-card,
.knot-card {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.compass-card {
  top: 72px;
  left: 58px;
}

.trail-card {
  right: 52px;
  top: 216px;
}

.knot-card {
  left: 54px;
  bottom: 72px;
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  font-size: 1.8rem;
  line-height: 1.05;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.about-grid,
.history {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.about-copy,
.history p,
.volunteer-copy p {
  color: var(--muted);
  font-size: 1.16rem;
}

.section-band {
  width: 100%;
  max-width: none;
  padding: 82px max(16px, calc((100% - 1180px) / 2));
  background: #edf6ef;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.section-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -42px;
  top: -42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.section-card > * {
  position: relative;
}

.section-card:hover,
.section-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(22, 33, 31, 0.18);
}

.section-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.section-card.beavers {
  background: var(--teal);
}

.section-card.cubs {
  background: var(--purple);
}

.section-card.scouts {
  background: var(--coral);
}

.age {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 900;
}

.section-card p {
  margin: 18px 0 4px;
  font-weight: 800;
}

.section-card strong {
  font-size: 1.9rem;
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 1.35fr);
  gap: 34px;
  align-items: center;
}

.journey-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.12rem;
}

.journey-embed {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(22, 33, 31, 0.08);
}

.journey-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--teal-dark);
  font-weight: 900;
}

.journey-header span {
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.journey-header strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf6ef;
  color: var(--teal-dark);
  font-size: 0.82rem;
}

.journey-embed > p {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.03rem;
}

.journey-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
  padding-top: 14px;
  border-top: 8px solid var(--gold);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-stages {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.journey-stages li {
  display: grid;
  grid-template-columns: 120px 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background: #fffdf8;
}

.journey-stages li:nth-child(2) {
  border-left-color: var(--purple);
}

.journey-stages li:nth-child(3) {
  border-left-color: var(--coral);
}

.journey-stages li:nth-child(4) {
  border-left-color: var(--green);
}

.journey-stages li:nth-child(5) {
  border-left-color: var(--gold);
}

.journey-stages li.active {
  background: #edf6ef;
}

.journey-stages strong {
  font-size: 1.08rem;
}

.journey-stages span {
  color: var(--teal-dark);
  font-weight: 900;
}

.journey-stages p {
  margin: 0;
  color: var(--muted);
}

.programme-list {
  display: grid;
  gap: 22px;
}

.programme-card {
  scroll-margin-top: 122px;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(320px, 1.35fr);
  gap: 26px;
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(22, 33, 31, 0.08);
}

.programme-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.programme-tagline {
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 800;
}

.programme-details {
  display: grid;
  gap: 12px;
}

.programme-details p {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.03rem;
}

.programme-details p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.programme-details strong {
  color: var(--ink);
}

.beavers-detail {
  border-top: 8px solid var(--teal);
}

.cubs-detail {
  border-top: 8px solid var(--purple);
}

.scouts-detail {
  border-top: 8px solid var(--coral);
}

.volunteer {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 46px;
  align-items: center;
}

.volunteer-art {
  min-height: 420px;
  position: relative;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(244, 183, 64, 0.92), rgba(226, 106, 79, 0.88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.22) 0 3px, transparent 3px 22px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.volunteer-art span {
  position: absolute;
  display: block;
  border: 3px solid rgba(255, 250, 240, 0.85);
  border-radius: 8px;
}

.volunteer-art span:nth-child(1) {
  width: 46%;
  height: 38%;
  top: 46px;
  left: 42px;
}

.volunteer-art span:nth-child(2) {
  width: 44%;
  height: 42%;
  right: 38px;
  bottom: 56px;
}

.volunteer-art span:nth-child(3) {
  width: 30%;
  height: 22%;
  left: 34%;
  top: 42%;
  background: rgba(255, 250, 240, 0.92);
}

.history {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: stretch;
}

.contact ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}

.contact li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact a {
  color: var(--teal-dark);
  font-weight: 800;
}

.map-wrap {
  min-height: 430px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 36px 16px;
  background: var(--teal-dark);
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
  }

  .hero,
  .about-grid,
  .volunteer,
  .history,
  .contact,
  .content-grid,
  .detail-grid,
  .journey-section,
  .programme-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 38px;
  }

  .hero-panel,
  .volunteer-art {
    min-height: 360px;
  }

  .section-cards {
    grid-template-columns: 1fr;
  }

  .journey-stages li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .banner {
    justify-content: space-between;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .button.secondary {
    margin-left: 0;
  }

  .hero-panel {
    min-height: 410px;
  }

  .compass-card,
  .trail-card,
  .knot-card {
    left: 24px;
    right: 24px;
    min-width: 0;
  }

  .trail-card {
    top: 176px;
  }

  .knot-card {
    bottom: 32px;
  }

  .section {
    padding: 58px 0;
  }

  .section-band {
    padding-top: 62px;
    padding-bottom: 62px;
  }
}
