/* 309 Birmingham Scouts (309 GLM Scouts) — shared styles
   Palette modelled on scouts.org.uk (national brand); 2026-10-07 refresh:
   warmer paper background, Archivo headings, dashed "trail" motif, flatter cards. */

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

:root {
  --purple: #590fa9;
  --purple-dark: #490499;
  --blue: #006ddf;
  --navy: #003982;
  --yellow: #ffe627;
  --green: #008a1c;
  --dark-green: #205b41;
  --teal: #088486;
  --orange: #ff912a;
  --gray-black: #221b2e;
  --gray-dark: #6e6e6e;
  --gray: #999;
  --gray-light: #ccc;
  --light: #f1ede6;
  --white: #fff;
  --paper: #faf9f6;

  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-head: "Archivo", "Nunito Sans", sans-serif;

  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-black);
  background: var(--paper);
  line-height: 1.5;
}

/* Archivo at a heavy weight is the page's one structural flourish — used only
   for headings, never for body copy, so it reads as intentional rather than
   "the whole page is now a different font." */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.01em;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav — sticky with a blurred paper backdrop, so it stays legible
   over whatever scrolls underneath without needing a hard drop shadow. */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

/* flex-basis:100% makes the logo claim the whole header row by itself, so
   nav + the two buttons (the container's other flex children) wrap onto
   their own line below it — a masthead row above the nav, no markup change. */
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-basis: 100%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--purple);
}

.site-logo .fleur {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

/* Groups the two header buttons so the row's space-between splits nav vs.
   buttons, not all three items apart from each other. */
.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.site-nav a {
  color: var(--gray-black);
  font-weight: 600;
}

nav.site-nav a.active,
nav.site-nav a:hover {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--navy);
  text-decoration: none;
}

.btn.btn-secondary {
  background: var(--purple);
}

.btn.btn-secondary:hover {
  background: var(--purple-dark);
}

.btn.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
}

/* Hero — navy, matching scouts.org.uk's standard inner-page hero. A thin
   dashed line along the bottom edge — the one deliberate motion moment on
   the site — nods at a trail without needing new markup; it animates once
   on load and is skipped entirely for reduced-motion. */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 10px,
    transparent 10px 26px
  );
  background-size: 200% 100%;
  animation: trail-flow 1.8s ease-out 1 both;
}

@keyframes trail-flow {
  from {
    background-position: -100% 0;
    opacity: 0;
  }
  to {
    background-position: 0 0;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
    opacity: 1;
    background-position: 0 0;
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 16px;
  color: var(--white);
}

.hero p {
  font-size: 1.25rem;
  max-width: 620px;
  margin: 0 0 28px;
}

.hero .cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* On a navy hero, a solid blue .btn would lack contrast — flip it to a white pill */
.hero .btn:not(.btn-outline) {
  background: var(--white);
  color: var(--navy);
}

.hero .btn:not(.btn-outline):hover {
  background: var(--yellow);
  color: var(--gray-black);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.section .lede {
  color: var(--gray-dark);
  margin: 0 0 32px;
  max-width: 640px;
}

.section.alt {
  background: var(--light);
}

/* Cards grid (age sections) — flat, with a single colour bar standing in for
   the border-and-shadow kit, so the badge logo and copy carry the weight. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: none;
  border-top: 4px solid var(--navy);
  border-radius: 2px;
  padding: 22px;
}

.age-badge {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--gray-light);
  color: var(--gray-black);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  color: var(--gray-dark);
  margin: 0 0 12px;
}

/* Official scouts.org.uk per-section wordmark logos (Squirrels/Beavers/Cubs/Scouts/
   Explorers), used in place of a plain text heading wherever a section is introduced */
.section-logo {
  height: 28px;
  width: auto;
  margin: 0 0 10px;
}

.section-logo-lg {
  height: 40px;
  width: auto;
  margin: 0 0 12px;
}

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

/* Org chart (leadership team) — the connecting lines are dashed to echo the
   hero's trail motif instead of a plain solid rule. */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-tier {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  padding-top: 32px;
}

.org-tier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 32px;
  background-image: repeating-linear-gradient(
    180deg,
    var(--gray-light) 0 6px,
    transparent 6px 14px
  );
}

.org-tier-1 {
  padding-top: 0;
}

.org-tier-1::before {
  display: none;
}

.org-box {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 18px 22px;
  text-align: center;
  min-width: 200px;
}

.org-box-top {
  background: var(--navy);
  border-color: var(--navy);
}

/* Keeps the Scouts + Explorers team-lead boxes together on one row rather than
   wrapping in with the younger sections above them */
.org-tier-nowrap {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.org-box-small {
  min-width: 160px;
  padding: 14px 16px;
}

.org-box h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.org-box p {
  color: var(--gray-dark);
  margin: 0;
  font-size: 0.85rem;
}

/* Leadership boxes: navy for Chairperson/Group Leads, each section's own
   official brand colour (from its scouts.org.uk logo) for its Team Lead(s).
   Selectors use .org-box + variant together so they always beat the plain
   ".org-box p" rule above regardless of source order. */
.org-box.org-box-top h3,
.org-box.org-box-top p,
.org-box.org-box-navy h3,
.org-box.org-box-navy p {
  color: var(--white);
}

.org-box-navy {
  background: var(--navy);
  border-color: var(--navy);
}

.org-box-squirrels {
  background: #ed3f23;
  border-color: #ed3f23;
}

.org-box.org-box-squirrels h3,
.org-box.org-box-squirrels p {
  color: var(--white);
}

.org-box-beavers {
  background: #006ddf;
  border-color: #006ddf;
}

.org-box.org-box-beavers h3,
.org-box.org-box-beavers p {
  color: var(--white);
}

.org-box-cubs {
  background: #25b755;
  border-color: #25b755;
}

.org-box.org-box-cubs h3,
.org-box.org-box-cubs p {
  color: var(--white);
}

.org-box-scouts {
  background: #205b41;
  border-color: #205b41;
}

.org-box.org-box-scouts h3,
.org-box.org-box-scouts p {
  color: var(--white);
}

.org-box-explorers {
  background: #00425e;
  border-color: #00425e;
}

.org-box.org-box-explorers h3,
.org-box.org-box-explorers p {
  color: var(--white);
}

@media (max-width: 680px) {
  .org-tier {
    flex-direction: column;
    align-items: center;
  }
  .org-tier-nowrap {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* Split groups (Boys / Girls sessions within one section) */
.split-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.split-group h3 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: var(--navy);
}

/* Network placeholder note */
.network-note {
  background: var(--light);
  border: 1px dashed var(--gray-light);
  border-radius: 4px;
  padding: 24px;
}

.network-note strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.network-note p {
  color: var(--gray-dark);
  margin: 0;
}

/* Info strip (meeting times / quick facts) — trail markers instead of one
   solid colour block: a dashed top rule with dashed dividers between items,
   so colour stays a marker rather than wallpaper on every page that uses it. */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px dashed var(--gray-light);
  background: none;
  color: var(--gray-black);
  border-radius: 0;
  padding: 0;
}

.info-strip .item {
  line-height: 1.6;
  padding: 22px 24px;
  border-right: 1px dashed var(--gray-light);
}

.info-strip .item:last-child {
  border-right: none;
}

.info-strip .item strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 6px;
}

/* Safety callout */
.safety-callout {
  background: #fdf1ea;
  border: 1px solid var(--orange);
  border-radius: 4px;
  padding: 24px;
}

.safety-callout h2 {
  color: var(--dark-green);
  margin-top: 0;
}

/* Footer — purple, matching scouts.org.uk's footer. This is purple's one big
   "signature" block on the page, rather than the colour being spread everywhere. */
footer.site-footer {
  background: var(--purple);
  color: var(--light);
  padding: 44px 0 24px;
  margin-top: 40px;
}

footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

footer.site-footer h4 {
  color: var(--white);
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

footer.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site-footer li {
  margin-bottom: 8px;
}

footer.site-footer a {
  color: var(--gray-light);
}

footer.site-footer .fine-print {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--gray-light);
}

.gallery-empty {
  background: var(--light);
  border: 1px dashed var(--gray-light);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  color: var(--gray-dark);
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: 2rem;
  }
  nav.site-nav ul {
    gap: 14px;
  }
}
