/* 309 Birmingham Scouts (309 GLM Scouts) — shared styles
   Palette and type modelled on scouts.org.uk (national brand) */

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

  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", 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(--white);
  line-height: 1.5;
}

/* scouts.org.uk sets headings in a very heavy weight (900) — noticeably heavier
   than a browser's default bold, and part of what makes their type feel "Scouts" */
h1, h2, h3, h4 {
  font-weight: 900;
}

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

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

a:hover {
  text-decoration: underline;
}

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

/* Header / nav */
header.site-header {
  border-bottom: 1px solid var(--light);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--purple);
}

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

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);
}

.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 (Contact, Cubs, Beavers
   etc. all use this darker navy with a plain white heading; the lighter blue + yellow
   heading combination on their site is a homepage-only treatment). */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
}

.hero h1 {
  font-size: 2.5rem;
  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) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 22px;
}

.age-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  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) */
.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: var(--gray-light);
}

.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: 12px;
  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: 12px;
  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) */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 28px;
}

.info-strip .item {
  line-height: 1.6;
}

.info-strip .item strong {
  display: block;
  color: var(--yellow);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* Safety callout */
.safety-callout {
  background: #fdf1ea;
  border: 1px solid var(--orange);
  border-radius: 12px;
  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: 12px;
  border: 1px solid var(--gray-light);
}

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

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