/* =========================================================
   THUNDERBOLTS ACADEMY — ORIGINAL GLOBAL STYLES
   (Matches index + all subsequent pages we fixed)
   ========================================================= */

:root{
  --navGreen:#1f8a3e;
  --red:#d72638;
  --gold:#f4c20d;
  --ink:#111;
  --muted:#6b7280;
  --border:#e5e7eb;
  --greenWash: rgba(31,138,62,.06);
  --goldWash: rgba(244,194,13,.10);
  --redWash: rgba(215,38,56,.06);
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{ color:var(--ink); background:#fff; margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height:1.6; }
.container{ max-width:1100px; margin:0 auto; padding:0 16px; }

/* ---------- NAVBAR (shared across pages) ---------- */
.topbar{ position:sticky; top:0; z-index:20; background:#fff; border-bottom:1px solid var(--border); }
.topbar .header-inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:10px 0;
}
.brand{
  justify-self:start; display:flex; flex-direction:column; align-items:center;
  text-decoration:none; color:#111; margin-left:-28px;
}
.brand img{ height:68px; width:auto; display:block; }
.brand span{
  display:block; font-weight:900; text-align:center;
  letter-spacing:.5px; font-size:14px; margin-top:2px;
  text-transform:uppercase; font-family:"Poppins", Arial, sans-serif;
}

nav[aria-label="Main"] .menu,
footer .menu.footer-menu{
  display:flex; align-items:center; gap:8px; list-style:none; margin:0; padding:0;
  justify-content:center;
}
.menu a{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border-radius:10px;
  font-weight:800; color:#333; text-decoration:none;
  transition: background .18s, color .18s, transform .08s;
  white-space:nowrap; position:relative;
}
.menu a::after{
  content:""; position:absolute; left:12px; right:12px; bottom:6px;
  height:2px; background:transparent; border-radius:2px;
  transform:scaleX(0); transform-origin:left; transition:transform .18s ease, background .18s ease;
}
.menu a:hover{ background:rgba(31,138,62,.10); color:var(--navGreen); transform:translateY(-1px); }
.menu a:hover::after{ background:var(--navGreen); transform:scaleX(1); }
.menu a.active{ background:#f3f5f7; border:1px solid var(--border); color:#111; }

.nav-cta{ justify-self:end; display:flex; gap:14px; padding-left:28px; }

/* ---------- Buttons (Join / Donate etc. – original colours) ---------- */
.btn, button.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border-radius:10px;
  border:1px solid var(--border);
  background:#fff; color:#111; font-weight:800;
  text-decoration:none; cursor:pointer;
  transition: background .18s, color .18s, box-shadow .18s, transform .06s;
}
.btn:hover{ transform:translateY(-1px); }

/* Donate = solid green */
.btn.primary{
  background:var(--navGreen);
  border-color:var(--navGreen);
  color:#fff;
}
.btn.primary:hover{ filter:brightness(1.05); box-shadow:0 6px 14px rgba(31,138,62,.25); }

/* Join Us = green outline */
.btn.ghost{
  background:transparent;
  border-color:var(--navGreen);
  color:var(--navGreen);
}
.btn.ghost:hover{
  background:var(--navGreen);
  color:#fff;
  box-shadow:0 6px 14px rgba(31,138,62,.25);
}

/* ---------- Page Hero (used across pages) ---------- */
.page-hero{
  position:relative; overflow:hidden;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(215,38,56,.10), transparent 60%),
    linear-gradient(120deg, var(--greenWash), var(--goldWash)),
    #ffffff;
  border-bottom:1px solid var(--border);
}
.page-hero-inner{ min-height:40vh; display:flex; align-items:center; padding:50px 0; }
.page-hero h1{
  font-family:"Montserrat", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size:36px; font-weight:900; margin:0 0 10px 0;
}
.page-hero p{ color:#b68b00; max-width:900px; font-size:1.05rem; margin:0; }

/* ---------- Sections & Headings ---------- */
.section{ padding:44px 0; }
.section.alt-green{ background:linear-gradient(180deg, var(--greenWash), transparent 60%); }
.section.alt-gold{  background:linear-gradient(180deg, var(--goldWash),  transparent 60%); }
.section.alt-red{   background:linear-gradient(180deg, var(--redWash),   transparent 60%); }

.section h2{
  font-size:24px; margin:0 0 12px 0; font-weight:900; letter-spacing:.2px;
  position:relative; display:inline-block; padding-bottom:6px;
}
.section h2::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:4px; border-radius:3px;
  background: linear-gradient(90deg, var(--navGreen), var(--gold));
}
.sub{ color:var(--muted); margin:6px 0 20px 0; }

/* ---------- Generic Cards / Grids ---------- */
.area-grid, .clubs-grid, .grid-3, .grid-2{ display:grid; gap:14px; }
@media (min-width:900px){
  .area-grid{ grid-template-columns:repeat(3,1fr); }
  .grid-3{ grid-template-columns:repeat(3,1fr); }
  .grid-2{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:700px){
  .clubs-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1000px){
  .clubs-grid{ grid-template-columns:repeat(3,1fr); }
}

.area-card, .club-card, .card, .pub-card{
  background:#fff; border:1px solid var(--border); border-radius:14px;
  box-shadow:0 6px 14px rgba(0,0,0,.05); overflow:hidden;
  transition: transform .08s ease, box-shadow .2s ease;
}
.area-card:hover, .club-card:hover, .card:hover, .pub-card:hover{
  transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.07);
}

.area-media, .club-photo, .card-media{ height:120px; background:#f6f8fa; }
.area-media img, .club-photo img, .card-media img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

.area-body, .club-body, .card-body{ padding:12px; }
.area-body h3, .club-body h3, .card-body h3{ margin:0 0 6px 0; font-size:17px; font-weight:800; color:#111; }
.area-list, .contact-list, .card-list{ margin:0; padding-left:18px; line-height:1.6; font-size:.95rem; }
.contact-list a{ color:#1f8a3e; text-decoration:none; }
.contact-list a:hover{ text-decoration:underline; }

.club-head{ display:flex; align-items:center; gap:10px; }
.club-logo{ height:34px; width:auto; display:block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.08)); }
.club-button{
  margin-left:auto;
  display:inline-flex; align-items:center; gap:6px; justify-content:center;
  padding:6px 10px; border-radius:999px; border:1px solid var(--border);
  background:#fff; text-decoration:none; font-weight:800; color:#111; font-size:.9rem;
  transition: background .2s, color .2s, box-shadow .2s, transform .06s;
}
.club-button:hover{ background:var(--navGreen); color:#fff; box-shadow:0 8px 18px rgba(31,138,62,.25); transform:translateY(-1px); }

.club-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.mini-btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; font-weight:800; font-size:.86rem; border-radius:999px;
  border:1px solid var(--border); background:#fff; color:#111; text-decoration:none;
  transition: background .2s, color .2s, box-shadow .2s, transform .06s;
  cursor:pointer; user-select:none;
}
.mini-btn:hover{ background:var(--navGreen); color:#fff; box-shadow:0 8px 18px rgba(31,138,62,.25); transform:translateY(-1px); }

/* ---------- Snapshots (Impact) ---------- */
.snap-grid{ display:grid; gap:14px; }
@media (min-width:900px){ .snap-grid{ grid-template-columns:repeat(4,1fr); } }
.snap{
  background:#fff; border:1px solid var(--border); border-radius:14px;
  padding:16px; text-align:center; box-shadow:0 8px 20px rgba(0,0,0,.06);
}
.snap h3{ margin:0; font-size:26px; font-weight:900; color:#111; }
.snap p{ margin:6px 0 0 0; color:#444; }

/* ---------- Stories (Impact) ---------- */
.stories-grid{ display:grid; gap:16px; }
@media (min-width:900px){ .stories-grid{ grid-template-columns:1fr 1fr; } }
.story-card{
  background:#fff; border:1px solid var(--border); border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.06); overflow:hidden; position:relative;
}
.story-viewport{ position:relative; height:260px; background:#f6f8fa; }
.story-slide{ position:absolute; inset:0; display:grid; grid-template-rows:1fr auto; opacity:0; transition:opacity .25s ease; }
.story-slide.active{ opacity:1; }
.story-media img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.story-caption{
  background:rgba(255,255,255,.95); backdrop-filter:saturate(1.2) blur(2px);
  padding:10px 12px; font-size:.98rem; color:#111; border-top:1px solid var(--border);
}
.story-arrows{ position:absolute; inset:auto 8px 8px 8px; display:flex; justify-content:space-between; pointer-events:none; }
.arrow{
  pointer-events:auto; width:34px; height:34px; border-radius:999px; border:1px solid var(--border);
  background:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.08); cursor:pointer; transition: background .2s, transform .06s;
}
.arrow:hover{ background:#1f8a3e; }
.arrow:hover svg{ stroke:#fff; }
.arrow svg{ width:18px; height:18px; stroke:#1f8a3e; }

/* ---------- Floating scroll cue (used where added) ---------- */
.scroll-cue{
  position:absolute; left:50%; bottom:10px; transform:translateX(-50%);
  width:26px; height:26px; border:2px solid #1f8a3e; border-radius:50%;
  display:flex; align-items:center; justify-content:center; text-decoration:none;
  animation: bob 1.8s ease-in-out infinite;
  background:#fff; box-shadow:0 6px 16px rgba(0,0,0,.08);
}
.scroll-cue svg{ width:14px; height:14px; }
@keyframes bob { 0%,100% { transform:translate(-50%,0); } 50% { transform:translate(-50%,6px); } }

/* ---------- Footer ---------- */
footer{ background:#fff; padding:35px 0; border-top:1px solid var(--border); color:#444; }
footer .menu.footer-menu{ display:flex; justify-content:center; gap:24px; margin:16px 0; list-style:none; padding:0; }
footer .menu.footer-menu a{ color:#111; text-decoration:none; font-weight:600; transition:color .2s; }
footer .menu.footer-menu a:hover{ color:var(--navGreen); }
/* ===== Mobile nav overlay (fix pushing layout) ===== */
@media (max-width: 900px){
  .topbar{ position: sticky; top: 0; z-index: 1000; background:#fff; }

  /* Keep nav as the anchor for the toggle button */
  .topbar nav{ position: relative; }

  /* Make the menu a fixed overlay instead of inline flow */
  .topbar .menu{
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;                /* adjust to your header height */
    background: #fff;
    border-top: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
    display: grid;
    gap: 12px;
    padding: 18px 16px 22px;
    max-height: calc(100vh - 64px);
    overflow: auto;

    /* start hidden */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }

  /* When open, show it */
  body.nav-open .topbar .menu{
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* Optional: prevent background scroll when menu open */
  body.nav-open{ overflow: hidden; }

  /* Center items nicely */
  .topbar .menu li{ list-style: none; }
  .topbar .menu a{
    display: block;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 800;
  }

  /* Position the hamburger */
  .menu-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    cursor: pointer;
  }

  /* Optional: change icon color when open */
  body.nav-open .menu-toggle{ background: rgba(31,138,62,.08); }
}

/* Desktop keeps your original inline menu */
@media (min-width: 901px){
  .menu-toggle{ display: none; }
}
