/* =============================================
   Scouts UK official brand variables
   ============================================= */
:root {
  --scout-purple: #7413dc;
  --scout-purple-dark: #4d0c91;
  --scout-teal: #00a794;
  --scout-teal-dark: #007a6c;
  --scout-yellow: #ffe627;
  --scout-red: #e22e12;
  --scout-pink: #ce0093;
  --scout-blue: #006ddf;
  --scout-navy: #003982;
  --scout-green: #25d366;

  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --paper-warm: #faf7f2;
  --hairline: #e5e5e7;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(20, 0, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(116, 19, 220, 0.12);
  --shadow-lg: 0 20px 50px rgba(116, 19, 220, 0.18);

  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--scout-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* =============================================
   Promo bar (Try 4 sessions for free)
   ============================================= */
.promo-bar {
  background: var(--scout-yellow);
  color: var(--ink);
  text-align: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
}
.promo-bar a {
  color: var(--scout-purple);
  text-decoration: underline;
}

/* =============================================
   Header / Navigation
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 44px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .brand img { height: 36px; }
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--scout-purple); }

.nav-cta {
  background: var(--scout-purple);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-cta:hover {
  background: var(--scout-purple-dark);
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--scout-purple);
}

.nav-overlay { display: none; }

@media (max-width: 820px) {
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    width: 100%;
  }
  .nav-links .nav-cta {
    width: auto;
    margin: 8px 24px;
    text-align: center;
  }
  .nav-toggle { display: block; }
}

/* =============================================
   Hero
   ============================================= */
.hero {
  position: relative;
  background: var(--scout-purple);
  color: var(--paper);
  padding: 96px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 480px; height: 480px;
  background: var(--scout-teal);
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(20px);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -150px; left: -150px;
  width: 400px; height: 400px;
  background: var(--scout-yellow);
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(30px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--scout-yellow);
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 540px;
  opacity: 0.92;
  margin-bottom: 32px;
}

.hashtag {
  font-weight: 800;
  color: var(--scout-yellow);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 0;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--scout-yellow);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: #ffec5c; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--paper); }

/* Hero card / sections panel */
.hero-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero-card h3 {
  font-size: 1.1rem;
  color: var(--scout-purple);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--paper);
}
.pill.squirrels { background: var(--scout-red); }
.pill.beavers   { background: #00b6f0; }
.pill.cubs      { background: var(--scout-yellow); color: var(--ink); }
.pill.scouts    { background: var(--scout-green); }
.pill.explorers { background: var(--scout-pink); }

@media (max-width: 820px) {
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { transform: none; }
}

/* =============================================
   Section base
   ============================================= */
section { padding: 88px 0; }

.section-eyebrow {
  color: var(--scout-teal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.section-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}

/* =============================================
   About strip
   ============================================= */
.about {
  background: var(--paper);
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat {
  padding: 24px;
}
.stat .num {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--scout-purple);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

/* =============================================
   Location
   ============================================= */
.location {
  background: var(--paper-warm);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.address-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
}
.address-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--scout-purple);
}
.address-lines {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.address-lines strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  margin-top: 16px;
}
.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--scout-teal);
  display: grid;
  place-items: center;
  color: var(--paper);
  flex-shrink: 0;
}
.icon-circle svg { width: 18px; height: 18px; }

@media (max-width: 820px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 280px; }
}

/* =============================================
   Meeting times
   ============================================= */
.meetings {
  background: var(--paper);
}

.meeting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.meeting-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.meeting-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.meeting-card .age {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.meeting-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.meeting-card .time {
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.18);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  align-self: flex-start;
}
.meeting-card .deco {
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.card-squirrels { background: var(--scout-red); }
.card-beavers   { background: #00b6f0; }
.card-cubs      { background: var(--scout-yellow); color: var(--ink); }
.card-cubs .time { background: rgba(0,0,0,0.1); }
.card-cubs .deco { background: rgba(0,0,0,0.06); }
.card-scouts    { background: var(--scout-green); }
.card-explorers { background: var(--scout-pink); }

/* =============================================
   Waiting list
   ============================================= */
.waiting {
  background: var(--scout-teal);
  color: var(--paper);
  padding: 72px 0;
}
.waiting-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.waiting-text { flex: 1 1 360px; }
.waiting h2 {
  color: var(--paper);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.waiting p {
  opacity: 0.95;
  max-width: 520px;
  font-size: 1.05rem;
}
.btn-waiting {
  background: var(--paper);
  color: var(--scout-teal-dark);
  padding: 16px 28px;
  font-size: 16px;
}
.btn-waiting:hover { background: var(--scout-yellow); color: var(--ink); }

/* =============================================
   Contact
   ============================================= */
.contact { background: var(--paper-warm); }

.contact-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-card .icon-circle {
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
  background: var(--scout-purple);
}
.contact-card .icon-circle svg { width: 26px; height: 26px; }
.contact-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.contact-card p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.contact-email {
  display: inline-block;
  background: var(--scout-purple);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  word-break: break-all;
}
.contact-email:hover {
  background: var(--scout-purple-dark);
  color: var(--paper);
  text-decoration: none;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--scout-purple);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.social-btn:hover {
  background: var(--scout-purple);
  color: var(--paper);
  transform: translateY(-2px);
  text-decoration: none;
}
.social-btn svg { width: 20px; height: 20px; }

/* =============================================
   Resources / Links
   ============================================= */
.resources { background: var(--paper); }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--paper-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--scout-purple);
  text-decoration: none;
}

.resource-card .icon-circle {
  background: var(--scout-purple);
  width: 44px;
  height: 44px;
}
.resource-card .icon-circle svg { width: 20px; height: 20px; }
.resource-card h3 {
  font-size: 1.15rem;
  color: var(--scout-purple);
}
.resource-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}
.resource-card .arrow {
  font-weight: 800;
  color: var(--scout-purple);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.resource-card:hover .arrow { gap: 10px; }

/* =============================================
   Footer
   ============================================= */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 32px;
}
footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer h4 {
  color: var(--paper);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
footer p, footer li, footer a { font-size: 0.95rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: rgba(255,255,255,0.85); }
footer a:hover { color: var(--scout-yellow); }

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.footer-brand img {
  height: 56px;
  width: auto;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.85); }

@media (max-width: 820px) {
  footer .container { grid-template-columns: 1fr; gap: 32px; }
}

/* =============================================
   Subtle entry animations
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-up.in {
    opacity: 1;
    transform: translateY(0);
  }
}
