/* MARKER_2026_06_07_CTFT_SITE — Cape Town Firearm Training Academy
   Brand family: shares the FLPSA gold/green/dark palette + SA flag stripe,
   so the academy site and the app read as one family. */

:root {
  --ink: #0c0f0c;
  --card: #111a11;
  --panel: #16201600;
  --gold: #ffb81c;
  --goldsoft: #e8d5a3;
  --green: #007749;
  --greenlight: #12a86a;
  --red: #de3831;
  --blue: #002395;
  --text: #ffffff;
  --muted: rgba(255,255,255,.66);
  --faint: rgba(255,255,255,.38);
  --border: #1e2a1e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}
h1, h2, h3, .links, .btn, .pill, .brand span, .cards, .foot {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* flag stripe */
.flagstripe { display: flex; height: 4px; }
.flagstripe span { flex: 1; }
.flagstripe .g { background: var(--green); }
.flagstripe .y { background: var(--gold); }
.flagstripe .r { background: var(--red); }
.flagstripe .b { background: var(--blue); }

/* ── nav ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,12,10,.97); }
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
/* MARKER — brand prominence: Douw's REAL logo (black artwork) rendered
   white on the dark theme via inversion; the nav and hero both lead with it. */
.invert { filter: invert(1) brightness(1.05); }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { height: 58px; width: auto; }
/* MARKER — overall page guard: never let any element cause sideways scroll */
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; }
.links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.links a { color: var(--muted); font-size: 13.5px; }
.links a:hover { color: var(--gold); text-decoration: none; }
.links .cta {
  color: #fff; background: var(--green); padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 13px;
}
.links .cta:hover { background: var(--greenlight); }

/* ── hero ────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1100px 480px at 75% -10%, rgba(255,184,28,.16), transparent 60%),
    radial-gradient(900px 420px at 15% 110%, rgba(0,119,73,.25), transparent 60%),
    linear-gradient(135deg, #0a1f14, #11140a 55%, #1a1206);
  padding: 84px 20px 72px;
  text-align: center;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,184,28,.5); background: rgba(255,184,28,.12);
  color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
}
.hero-logo {
  display: block; margin: 30px auto 6px;
  width: min(560px, 86vw); height: auto;
}
.hero h1 {
  margin: 14px 0 14px; font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08; font-weight: 800; color: #fff;
}
.hero .sub { max-width: 620px; margin: 0 auto 28px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 12px;
  font-weight: 700; font-size: 15px; letter-spacing: .3px;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.green { background: var(--green); color: #fff; }
.btn.gold { background: var(--gold); color: #131006; }
.btn.outline { border: 1.5px solid var(--gold); color: var(--gold); }
.accred { margin-top: 26px; color: var(--faint); font-size: 12px; }

/* ── bands / sections ───────────────────────────────── */
.band { padding: 64px 20px; }
.band.alt { background: #0e120e; }
.wrap { max-width: 1080px; margin: 0 auto; }
.band h2 { font-size: clamp(24px, 3.6vw, 34px); color: var(--gold); margin-bottom: 18px; font-weight: 800; }
.lead { color: var(--muted); margin-bottom: 22px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
#aboutText { color: var(--muted); font-size: 16.5px; white-space: pre-line; }
.why {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px;
}
.why h3 { color: var(--goldsoft); margin-bottom: 12px; font-size: 17px; }
.why ul { list-style: none; }
.why li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); font-size: 14.5px; }
.why li::before { content: '✓'; position: absolute; left: 0; color: var(--greenlight); font-weight: 700; }

/* ── cards (courses / events / specials) ────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,184,28,.45); }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card .body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.card .meta { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 13.5px; flex: 1; white-space: pre-line; }
.card .price {
  margin-top: 14px; font-size: 20px; font-weight: 800; color: var(--gold);
  font-family: 'Segoe UI', Roboto, sans-serif;
}
.card .price small { color: var(--faint); font-size: 12px; font-weight: 400; }
.loading, .empty { color: var(--faint); font-size: 14px; }

/* specials band */
.band.specials { background: linear-gradient(120deg, rgba(222,56,49,.16), rgba(255,184,28,.10)); border-top: 1px solid rgba(255,184,28,.25); border-bottom: 1px solid rgba(255,184,28,.25); }
.band.specials h2 { color: #fff; }
.band.specials .card { border-color: rgba(255,184,28,.5); }

/* gallery */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grid figure {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--card);
  border: 1px solid var(--border);
}
.grid img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .25s ease; }
.grid figure:hover img { transform: scale(1.04); }
.grid figcaption { padding: 8px 12px; color: var(--muted); font-size: 12.5px; font-family: 'Segoe UI', Roboto, sans-serif; }

/* flpsa band */
.band.flpsa {
  background: linear-gradient(120deg, rgba(0,119,73,.30), rgba(255,184,28,.14));
  border-top: 1px solid rgba(0,119,73,.45); border-bottom: 1px solid rgba(0,119,73,.45);
}
.band.flpsa h2 { color: #fff; }
.band.flpsa p { color: var(--muted); }
.flpsa-cta { text-align: center; align-self: center; }
.flpsa-cta .small { margin-top: 10px; color: var(--faint); font-size: 12.5px; }

/* SEO sections */
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.seo-grid h3 { color: var(--goldsoft); font-size: 16px; margin-bottom: 6px; }
.seo-grid p { color: var(--muted); font-size: 14px; }
.areas { color: var(--muted); font-size: 15px; line-height: 2; }
.faq { display: grid; gap: 18px; }
.faq h3 { color: var(--gold); font-size: 16px; margin-bottom: 6px; }
.faq p { color: var(--muted); font-size: 14.5px; }

/* contact */
.contact-line { color: var(--muted); font-size: 15.5px; padding: 4px 0; white-space: pre-line; }

/* footer */
footer { background: #080a08; margin-top: 20px; }
.foot { padding: 30px 20px 40px; text-align: center; color: var(--muted); font-size: 13.5px; }
.foot .small { color: var(--faint); font-size: 11.5px; margin-top: 6px; }
