/* Buckshaw ROF Scouts — brochure site
   Design language inspired by scouts.org.uk: Nunito Sans, bold 900-weight
   headlines, purple/blue/green/navy section colours, yellow accent, angular
   decorative shapes. Content is Buckshaw ROF Scouts' own. */

:root {
  --purple: #7413dc;
  --purple-dark: #590fa9;
  --purple-tint: #e6d4fa;
  --blue: #006ddf;
  --blue-dark: #004b9b;
  --green: #205b41;
  --green-dark: #163f2d;
  --navy: #27455c;
  --navy-dark: #1a2f40;
  --yellow: #ffe627;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --border: #e6e3dd;
  --radius: 14px;
  --max: 1120px;
  --font: "Nunito Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

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

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

a { color: inherit; }

h1, h2, h3 {
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }

p { color: var(--ink-soft); margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--yellow);
  color: var(--navy-dark);
}
.btn-solid:hover { background: #fff03d; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-dark {
  background: var(--purple);
  color: #fff;
}
.btn-dark:hover { background: var(--purple-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand .logo-img { height: 68px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text .top {
  font-weight: 900;
  font-size: 20px;
  color: var(--purple);
  display: block;
}
.brand-text .bottom {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  border-radius: 999px;
}
.main-nav a:hover { background: var(--bg-alt); }
.main-nav .nav-cta {
  background: var(--purple);
  color: #fff;
  margin-left: 6px;
}
.main-nav .nav-cta:hover { background: var(--purple-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative;
  background: var(--purple);
  color: #fff;
  padding: 72px 0 96px;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); color: #fff; }
.hero .lede {
  font-size: 19px;
  color: rgba(255,255,255,0.92);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.badge-tile {
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 18px;
}
.badge-tile svg { width: 30px; height: 30px; margin-bottom: 10px; }
.badge-tile .name { font-weight: 900; font-size: 17px; display: block; }
.badge-tile .age { font-size: 13px; color: rgba(255,255,255,0.85); }
.badge-tile .wordmark-chip { display: flex; margin-bottom: 10px; }
.badge-tile .wordmark-chip img { height: 18px; }
.badge-tile .wordmark-chip--lg img { height: 23px; }
.badge-tile .wordmark-chip--fill { display: block; width: 100%; }
.badge-tile .wordmark-chip--fill img { width: 100%; height: auto; }

/* Wordmark chips — no fill, so the card/panel colour shows through
   behind the Beavers/Cubs/Scouts logo art */
.wordmark-chip {
  display: inline-flex;
  align-items: center;
}
.wordmark-chip img {
  display: block;
  width: auto;
  filter:
    drop-shadow(1.5px 0 0 #fff)
    drop-shadow(-1.5px 0 0 #fff)
    drop-shadow(0 1.5px 0 #fff)
    drop-shadow(0 -1.5px 0 #fff);
}

/* Section shells */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* What we do cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  border-radius: var(--radius);
  padding: 26px 22px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: transform 0.15s ease;
}
.card:hover { transform: translateY(-4px); }
.card svg { width: 34px; height: 34px; margin-bottom: 14px; }
.card .name { font-weight: 900; font-size: 22px; margin-bottom: 4px; }
.card .age { font-weight: 700; font-size: 13px; opacity: 0.85; margin-bottom: 10px; }
.card .wordmark-chip { margin-bottom: 12px; }
.card .wordmark-chip img { height: 24px; }
.card .wordmark-chip--lg img { height: 31px; }
.card .wordmark-chip--fill { display: block; width: 100%; }
.card .wordmark-chip--fill img { width: 100%; height: auto; }
.card .blurb { font-size: 14.5px; color: rgba(255,255,255,0.92); flex-grow: 1; }
.card .go { font-weight: 800; font-size: 14px; margin-top: 14px; }

.card-beavers { background: var(--blue); }
.card-cubs { background: var(--green); }
.card-scouts { background: var(--navy); }
.card-volunteers { background: var(--purple); }

/* Section detail blocks */
.detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.detail-icon {
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
}
.detail-icon svg { width: 48px; height: 48px; margin-bottom: 18px; }
.detail-icon .wordmark-chip { margin-bottom: 16px; padding: 10px 0; }
.detail-icon .wordmark-chip img { height: 34px; }
.detail-icon .wordmark-chip--lg img { height: 44px; }
.detail-icon .wordmark-chip--fill { display: block; width: 100%; padding: 0; }
.detail-icon .wordmark-chip--fill img { width: 100%; height: auto; }
.detail-icon .meet {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.3);
  font-weight: 800;
  font-size: 14.5px;
}
.detail-icon .meet span { display: block; font-weight: 700; opacity: 0.85; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

.detail ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.detail ul li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-soft);
}
.detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--accent, var(--purple));
}

.bg-beavers { background: var(--blue); }
#beavers .detail ul li::before { background: var(--blue); }
.bg-cubs { background: var(--green); }
#cubs .detail ul li::before { background: var(--green); }
.bg-scouts { background: var(--navy); }
#scouts .detail ul li::before { background: var(--navy); }
.bg-volunteers { background: var(--purple); }
#volunteers .detail ul li::before { background: var(--purple); }

.section-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}
.contact-card h3 { color: #fff; }
.contact-card p { color: rgba(255,255,255,0.85); }
.contact-card .btn-solid { margin-top: 8px; border: none; cursor: pointer; }

.hp-field { display: none; }
.form-row { margin-bottom: 16px; text-align: left; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.85);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
.form-row textarea { resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}
.form-row select option { color: var(--ink); }
.form-row .h-captcha { transform-origin: left top; }
.form-note {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  margin: -6px 0 16px;
}
.form-note a { color: var(--yellow); text-decoration: underline; }
.form-status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.form-status.error { color: var(--yellow); }

.social-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.social-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.social-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.social-list a:hover { border-color: var(--purple); color: var(--purple); }
.social-list svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 34px; height: 34px; }
.footer-fleur { height: 34px; width: auto; }
.footer-brand .top { font-weight: 900; color: #fff; font-size: 18px; display: block; }
.footer-brand .bottom { font-size: 13px; display: block; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 700; font-size: 14.5px; color: rgba(255,255,255,0.85); }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { background: var(--purple); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
}

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-badges { order: -1; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  #volunteers .detail .btn { display: flex; width: fit-content; margin: 0 auto; }
}

@media (max-width: 900px) {
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 2px; }
  .site-header.nav-open .main-nav a { display: block; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
}
