/* Ignite Motorsport Club */
:root {
  --ink: #07100c;
  --ink-2: #0c1913;
  --ink-3: #132a20;
  --line: rgba(255,255,255,.10);
  --text: #eef5f1;
  --muted: #a3b8ad;
  --green: #22d28f;
  --green-2: #15a46e;
  --green-3: #0f7a52;
  --mint: #c9f4e1;
  --radius: 14px;
  --head: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --checker: repeating-conic-gradient(#0f1f18 0 25%, #16302a 0 50%) 0 0 / 36px 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; font-style: italic; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--green); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 800 italic 1rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); background: linear-gradient(100deg, var(--green), #5ee6b0);
  padding: .95em 1.5em; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 8px 24px -10px rgba(34,210,143,.7);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-lg { font-size: 1.1rem; padding: 1.05em 1.8em; }
.btn-sm { font-size: .85rem; padding: .7em 1.1em; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--green); }
.btn-dark { background: var(--ink); color: var(--text); box-shadow: none; }
.btn[aria-disabled="true"] { background: var(--ink-3); color: var(--muted); box-shadow: none; cursor: default; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,16,12,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--head); font-style: italic; line-height: 1; }
.brand-text strong { font-size: 1.35rem; font-weight: 900; letter-spacing: .02em; }
.brand-text small { font-size: .62rem; font-weight: 700; color: var(--green); letter-spacing: .12em; margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; }
.site-nav a:not(.btn):hover { opacity: 1; color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--text); position: relative; transition: .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { top: 0; transform: rotate(45deg); }
.nav-open .bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 80% 20%, #1b5a40 0%, var(--ink) 60%), var(--ink); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,16,12,.92) 0%, rgba(7,16,12,.65) 45%, rgba(7,16,12,.15) 100%),
              linear-gradient(0deg, var(--ink) 0%, rgba(7,16,12,0) 40%);
}
.hero-inner { padding: 120px 0 64px; }
.eyebrow { display: inline-block; font: 700 .8rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); background: rgba(34,210,143,.12); border: 1px solid rgba(34,210,143,.35); padding: .6em 1em; border-radius: 999px; }
.eyebrow span { color: var(--green); margin: 0 .3em; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 900; font-style: italic; text-transform: uppercase; margin: .35em 0 .3em; }
.hero h1 em { color: var(--green); font-style: italic; background: linear-gradient(100deg, var(--green), #8ff0c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: #d8e6df; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 44px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); max-width: 720px; }
.hero-facts li { flex: 1 1 180px; padding: 18px 24px 0 0; }
.hero-facts strong { display: block; font: 800 italic 1.4rem/1 var(--head); text-transform: uppercase; color: var(--text); }
.hero-facts span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }
.kicker { font: 700 .82rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--green); transform: skewX(-25deg); }

/* Events */
.events { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.event-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.event {
  position: relative; display: flex; flex-direction: column; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; overflow: hidden;
}
.event::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green), transparent); }
.event-open { border-color: rgba(34,210,143,.5); box-shadow: 0 20px 50px -30px rgba(34,210,143,.6); }
.event-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.event-date { font-family: var(--head); line-height: 1; }
.event-date .d { display: block; font-size: 3rem; font-weight: 900; font-style: italic; }
.event-date .m { display: block; font-size: .95rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.event-date .tbc { font-size: 1.3rem; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--muted); }
.badge { font: 700 .72rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; padding: .55em .8em; border-radius: 999px; white-space: nowrap; }
.badge-open { background: var(--green); color: var(--ink); }
.badge-soon { background: rgba(255,255,255,.08); color: var(--mint); }
.badge-full { background: #f2b33d; color: var(--ink); }
.badge-closed { background: rgba(255,255,255,.06); color: var(--muted); }
.event h3 { font-size: 1.9rem; font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: .25em; }
.event .where { color: var(--muted); margin-bottom: .6em; }
.event .note { font-size: .92rem; color: var(--mint); }
.event .btn { margin-top: auto; align-self: flex-start; }
.event-spacer { flex: 1; min-height: 12px; }
.empty { color: var(--muted); }
.past { margin-top: 44px; color: var(--muted); }
.past h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.past ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.past li { border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; font-size: .9rem; }

/* Why */
.why { background: var(--ink-2); }
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-copy p { color: #cfdfd7; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font: 900 italic clamp(2.2rem, 4vw, 3rem)/1 var(--head); color: var(--green); margin-bottom: 8px; }
.stat span { font-size: .93rem; color: var(--muted); }
.stat-big { grid-column: 1 / -1; background: linear-gradient(120deg, var(--green-3), var(--ink) 75%); border-color: rgba(34,210,143,.4); }
.stat-big strong { font-size: clamp(3.4rem, 7vw, 5rem); color: var(--text); }
.stat-big span { color: var(--mint); font-size: 1rem; }

.quote { margin: clamp(56px, 8vw, 96px) auto 0; position: relative; padding-left: clamp(24px, 4vw, 48px); border-left: 4px solid var(--green); }
.quote blockquote { margin: 0 0 16px; font: 700 italic clamp(1.4rem, 3vw, 2.2rem)/1.25 var(--head); max-width: 32ch; }
.quote figcaption { color: var(--muted); }
.quote figcaption strong { color: var(--text); display: block; }

/* Involved */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(56px, 8vw, 96px); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-num { display: block; font: 900 italic 2.4rem/1 var(--head); color: transparent; -webkit-text-stroke: 0; background: linear-gradient(180deg, var(--green), var(--green-3)); -webkit-background-clip: text; background-clip: text; margin-bottom: 18px; }
.card p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--checker); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h3 { font-size: 1.6rem; font-style: italic; text-transform: uppercase; margin-top: 1.2em; }
.split-copy h3:first-child { margin-top: 0; }
.split-copy p { color: #cfdfd7; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 10px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.small { font-size: .88rem; color: var(--muted) !important; }

/* Gallery */
.gallery { background: var(--ink-2); }
.grid-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 12px; }
.g { margin: 0; border-radius: 10px; overflow: hidden; background: var(--checker); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g:hover img { transform: scale(1.04); }
.missing { position: relative; }
.missing::after { content: "Photo"; position: absolute; inset: auto 12px 12px auto; font: 700 .7rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* More */
.more-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.more-inner p { color: #cfdfd7; }
.quote-inline { margin: 0; }
.quote-inline blockquote { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }

/* CTA band */
.cta-band { background: linear-gradient(100deg, var(--green-2), var(--green) 60%, #6ae9b8); color: var(--ink); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 320px; background: repeating-conic-gradient(rgba(7,16,12,.9) 0 25%, transparent 0 50%) 0 0 / 40px 40px; transform: skewX(-18deg); opacity: .25; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 56px 0; position: relative; z-index: 1; }
.cta-inner h2 { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card > p { color: var(--muted); }
.contact-card ul { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-card li { margin-bottom: 6px; }
.contact-card a { text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.socials { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; font-size: .92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.footer-inner img { width: 160px; height: auto; margin-bottom: 12px; }
.fine { font-size: .82rem; opacity: .8; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-120%); transition: transform .25s ease; visibility: hidden;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
  .why-grid, .split, .more-inner, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .grid-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-inner { padding-top: 96px; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .grid-gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 420px) {
  .eyebrow { font-size: .68rem; letter-spacing: .1em; }
}

/* ===== Brighter palette: more green ===== */
.site-header { border-bottom: 3px solid var(--green); }

.hero-media { background: radial-gradient(110% 90% at 85% 15%, #2bd896 0%, #12704c 30%, var(--ink) 68%), var(--ink); }
.hero-media::after {
  background: linear-gradient(90deg, rgba(7,16,12,.9) 0%, rgba(8,48,32,.6) 50%, rgba(34,210,143,.18) 100%),
              linear-gradient(0deg, rgba(7,16,12,.85) 0%, rgba(7,16,12,0) 35%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: repeating-conic-gradient(var(--green) 0 25%, var(--ink) 0 50%) 0 0 / 18px 18px;
}
.eyebrow { background: var(--green); color: var(--ink); border-color: var(--green); }
.eyebrow span { color: var(--ink); opacity: .6; }
.hero h1 em { background: linear-gradient(100deg, #2ef0a3, #b4ffdd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-facts { border-top: 2px solid var(--green); }
.hero-facts strong { color: var(--green); }

/* Green section */
.tone-green { background: linear-gradient(135deg, #2ee39d 0%, var(--green) 45%, #12a46d 100%); color: var(--ink); position: relative; }
.tone-green .kicker, .tone-green h2 { color: var(--ink); }
.tone-green .kicker::before { background: var(--ink); }
.tone-green .section-head p:last-child { color: #0b3a27; }
.tone-green .event { background: var(--ink); color: var(--text); border-color: transparent; box-shadow: 0 24px 50px -28px rgba(4,30,19,.8); }
.tone-green .event::before { height: 6px; background: repeating-conic-gradient(var(--green) 0 25%, #0c1913 0 50%) 0 0 / 12px 12px; }
.tone-green .event-open { outline: 3px solid #fff; outline-offset: -3px; }
.tone-green .past { color: #0b3a27; }
.tone-green .past li { border-color: rgba(7,16,12,.3); }

/* Light mint sections */
.tone-light { background: #eafbf3; color: #0b1f16; }
.tone-light .kicker { color: #0d8a5b; }
.tone-light .kicker::before { background: #0d8a5b; }
.tone-light .card { background: #fff; border: 0; border-top: 5px solid var(--green); box-shadow: 0 14px 40px -24px rgba(9,60,40,.45); }
.tone-light .card p, .tone-light .small { color: #3f5f50 !important; }
.tone-light .split-copy p, .tone-light .more-inner p { color: #26443a; }
.tone-light .split-media, .tone-light .missing { background: repeating-conic-gradient(#cdeedd 0 25%, #e2f7ec 0 50%) 0 0 / 36px 36px; }
.tone-light .missing::after { color: #3f5f50; }
.tone-light .quote { border-left-color: var(--green); }
.tone-light .quote figcaption { color: #3f5f50; }
.tone-light .quote figcaption strong { color: #0b1f16; }
.tone-light a { color: #0d8a5b; }

/* Stats glow green */
.stat { background: rgba(34,210,143,.08); border-color: rgba(34,210,143,.35); }
.stat-big { background: linear-gradient(120deg, var(--green), #13a26c); border: 0; }
.stat-big strong { color: var(--ink); }
.stat-big span { color: #06331f; font-weight: 500; }

/* Gallery and contact accents */
.gallery .g { outline: 2px solid transparent; transition: outline-color .2s; }
.gallery .g:hover { outline-color: var(--green); }
.contact-card { border-top: 4px solid var(--green); }
.site-footer { border-top: 3px solid var(--green); }
.gallery { background: var(--ink); }
