/* ─────────────────────────────────────────────────────────
   NORTHWIND MOTORSPORTS — styles.css
   ───────────────────────────────────────────────────────── */

:root {
  --bg:         #0f1114;
  --bg-alt:     #161a1f;
  --bg-card:    #1a1e24;
  --border:     rgba(108, 196, 255, 0.14);
  --border-hi:  rgba(108, 196, 255, 0.38);
  --text:       #f4f6f8;
  --text-soft:  #9aaab8;
  --blue:       #3fa7f5;
  --blue-light: #6cc4ff;
  --blue-deep:  #1f6fb2;
  --accent:     #6cc4ff;
  --line:       rgba(108, 196, 255, 0.35);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Helpers ────────────────────────────────────────────── */
.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section:nth-child(odd) {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.8rem;
}

.section-sub {
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 3rem;
}

/* Divider line between sections */
.section + .section {
  border-top: 1px solid var(--border);
}

/* ── Reveal animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.show { opacity: 1; transform: none; }
.reveal-delay { transition-delay: 0.18s; }

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 17, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--blue) !important;
  color: #061018 !important;
  padding: 0.45rem 1rem;
  font-weight: 700 !important;
  transition: background 0.2s ease !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; color: var(--text) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay,
.hero-scanline {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    url("images/ready-for-new-season.png") center/cover;
  transform: scale(1.01);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(15, 17, 20, 0.72), rgba(15, 17, 20, 0.9));
}

.hero-scanline {
  opacity: 0.15;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px,
    transparent 1px, transparent 5px
  );
  animation: scan 14s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.8rem;
}

.hero-logo {
  width: min(500px, 88%);
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.6));
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hstat { display: flex; flex-direction: column; }
.hstat-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hstat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.2rem;
}
.hstat-div {
  width: 1px;
  height: 2rem;
  background: var(--line);
}

.hero-accent {
  width: min(540px, 100%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-light) 30%, var(--blue) 55%, var(--blue-light) 75%, transparent);
  background-size: 200% 100%;
  animation: flow 4s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(108, 196, 255, 0.55);
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.about-lead h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  position: sticky;
  top: 84px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-body p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
  margin-top: 1rem;
}

.pillar {
  background: var(--bg-card);
  padding: 1.6rem 1.3rem;
}

.pillar-icon {
  display: block;
  font-size: 1.1rem;
  color: var(--blue-light);
  margin-bottom: 0.65rem;
}

.pillar h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ── LIVERIES ───────────────────────────────────────────── */
.livery-slider {
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.livery-slider-media {
  position: relative;
  min-height: 620px;
}

.livery-slide {
  display: none;
  position: relative;
}

.livery-slide.is-active {
  display: block;
}

.livery-slide img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.livery-slide-meta {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  max-width: min(460px, calc(100% - 3rem));
  background: rgba(15, 17, 20, 0.84);
  border: 1px solid var(--border-hi);
  padding: 1.2rem 1.25rem;
}

.livery-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.livery-slide-meta h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.livery-slide-meta p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.livery-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.livery-control {
  min-width: 112px;
  padding: 0.7rem 1rem;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.livery-control:hover {
  border-color: var(--blue);
  background: rgba(63, 167, 245, 0.08);
  color: var(--blue-light);
}

.livery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.livery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.livery-dot.is-active {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.05);
}

/* ── LEAGUES ────────────────────────────────────────────── */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.league-card {
  background: var(--bg-card);
  padding: 2rem 1.8rem;
  transition: background 0.25s ease;
  position: relative;
}

.league-card:hover { background: #1e2329; }

.league-badge {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--blue);
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.league-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.league-card > p {
  color: var(--text-soft);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.league-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.league-card li {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding-left: 1rem;
  position: relative;
}

.league-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ── RESULTS ────────────────────────────────────────────── */
.results-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.result-block {
  background: var(--bg-card);
  padding: 1.8rem 1.6rem;
  border-left: 3px solid var(--blue);
}

.result-value {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--text);
}

.result-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.35rem;
}

.accolades {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.accolade {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  padding: 1.4rem 1.6rem;
}

.accolade-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 48px;
}

.accolade h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.accolade p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ── SPONSORS ───────────────────────────────────────────── */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.sponsors-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.sponsor-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.6rem;
  text-align: left;
  transition: border-color 0.25s ease;
}

.sponsor-card:hover {
  border-color: var(--blue);
}

.sponsor-logo {
  width: 100px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.sponsor-text h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.sponsor-text p {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.4;
}

.sponsor-placeholder {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.sponsor-note {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.sponsor-note a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── SOCIALS ────────────────────────────────────────────── */
.socials-section { background: var(--bg); }

.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.social-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.social-icon {
  width: 44px;
  height: 44px;
  color: var(--blue-light);
}

.social-icon svg { width: 100%; height: 100%; }

.social-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.discord-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  padding: 0.72rem 1.25rem;
  background: var(--blue);
  color: #061018;
  border: 1px solid transparent;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.discord-join-btn:hover {
  background: var(--blue-deep);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 111, 178, 0.35);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #0b0d10;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-logo img {
  height: 42px;
  width: auto;
  margin-inline: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.82rem;
  color: #5a6470;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scan {
  from { transform: translateY(-25%); }
  to   { transform: translateY(25%); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-lead h2 { position: static; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .livery-slider-media { min-height: 520px; }
  .livery-slide img { height: 520px; }
  .results-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(15, 17, 20, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
  .nav-cta { margin: 0.5rem 1.5rem 0.5rem; }
  .nav-toggle { display: flex; }

  .hero { min-height: 62vh; }

  .hero-content {
    padding: 1.6rem 0 1.2rem;
    gap: 1.2rem;
  }

  .hero-logo { width: min(400px, 100%); }

  .livery-slider-controls {
    flex-direction: column;
  }

  .livery-control {
    width: 100%;
  }

  .leagues-grid,
  .sponsors-grid,
  .socials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3.8rem 0; }
  .pillars,
  .results-row { grid-template-columns: 1fr; }
  .hero { min-height: 54vh; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hstat-div { display: none; }
  .livery-slider-media { min-height: 360px; }
  .livery-slide img { height: 360px; }
  .livery-slide-meta {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    padding: 1rem;
  }
}
