/* ============================================================
   Sixit — landing page styles (Direction A · Statement)
   Polished production design built from the approved wireframe.
   ============================================================ */

:root {
  /* Dark brand palette — from sixitcricket.com */
  --bg: #0a0e16;            /* page background (near-black, blue-tinted) */
  --bg-alt: #121826;        /* alternating sections */
  --card: #151c2a;          /* cards */
  --card-2: #1a2233;        /* hover / nested */
  --border: #28324a;        /* card / divider borders */
  --border-hover: #3a4661;  /* card / chip hover border */

  --text: #eef2f8;          /* primary text */
  --muted: #93a0b5;         /* secondary text */

  --blue: #2563eb;          /* PRIMARY accent (interactive / actions) */
  --blue-dark: #1d4fd0;
  --blue-light: #6ea0ff;    /* active / hover state of blue links */
  --red: #e1342a;           /* secondary accent (brand expression) */
  --red-dark: #c12a21;

  /* Type */
  --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* Visible keyboard focus (shown only for keyboard nav, not mouse clicks) */
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .cat-chip:focus-visible { outline-offset: 3px; }

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

/* ---------- Logo ---------- */
.logo { height: 34px; width: auto; display: block; flex: none; }
.footer-brand { align-items: flex-start; }
.footer-brand .logo { height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary actions (incl. "Shop on Sportsal" + product CTAs) = electric blue */
.btn-primary, .btn-dark { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--blue-dark); }

.btn-light { background: #fff; color: var(--bg); }
.btn-light:hover { background: #e9eef6; }

.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--text); }

.btn-lg { font-size: 17px; padding: 15px 28px; }
.btn-block { width: 100%; margin-top: 4px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
/* Logo stays left; nav links + actions group on the right */
.nav > a { margin-right: auto; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); display: block; }

/* ---------- Shared section bits ---------- */
.section { padding-block: 72px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg); color: var(--text); }

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.eyebrow-light { color: var(--red); }

.section-head { margin-bottom: 28px; }
.section-title { font-size: 32px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.section-title-light { color: #fff; }
.rule { display: block; width: 64px; height: 5px; background: var(--red); border-radius: 4px; margin-top: 10px; }

.display {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.92;
  letter-spacing: .5px;
  margin: 0;
  text-transform: uppercase;
}
.display .accent, .accent { color: var(--red); }
.display-sm { font-size: clamp(32px, 5vw, 48px); line-height: 1; }

/* ---------- Category filter bar (pills above the products grid) ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.cat-chip {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.cat-chip:hover { color: #fff; border-color: var(--border-hover); }
.cat-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Media placeholder slots ---------- */
.media-slot {
  background: linear-gradient(135deg, #1b2334 0%, #0f1521 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6c82;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: center;
}
.media-slot-dark {
  background: linear-gradient(135deg, #161d2b 0%, #0c111b 100%);
  color: #5f6c82;
}

/* CMS-injected images fill their card slot identically to the placeholders.
   These slots keep their aspect-ratio (.product-media/.athlete-media etc.),
   and the <img> covers them edge to edge. */
.athlete-media > img,
.story-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Hero ---------- */
.hero { padding-block: 80px 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 460px;
  margin: 22px 0 28px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
/* Hero image is a transparent player cutout — show it whole, no card frame. */
.hero-media { position: relative; display: flex; align-items: flex-end; justify-content: center; }
/* Warm glow emanating from the ball in his hand — light from the focal point. */
.hero-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 64%;
  top: 27%;
  width: 78%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(225, 52, 42, 0.26),
    rgba(225, 52, 42, 0.10) 42%,
    transparent 70%);
  pointer-events: none;
}
.hero-img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.55));
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-athletes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-reviews { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- Product cards ---------- */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-hover); }
/* Product images are white-bg photos — sit them on a clean light tile so they
   read as premium product shots, with a soft contact shadow underneath. */
.product-media {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 32%, #ffffff, #eef1f5 68%, #e2e7ee 100%);
  overflow: hidden;
}
.product-media > img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}
.product-media::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 7%;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 50%, rgba(0, 0, 0, 0.22), transparent 72%);
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-type { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.product-name { font-size: 16px; font-weight: 700; line-height: 1.2; margin: 0; }
.product-price { font-size: 18px; font-weight: 800; margin: 4px 0 10px; }
.product-body .btn-block { margin-top: auto; }

/* ---------- Athlete cards ---------- */
.athlete-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.athlete-media { aspect-ratio: 3 / 4; }
.athlete-body { padding: 14px; }
.athlete-name { font-size: 16px; font-weight: 700; margin: 0; color: #fff; }
.athlete-role { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.section-dark .eyebrow-light + .section-title-light { margin-bottom: 28px; }
.grid-athletes { margin-top: 28px; }

/* ---------- Brand story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.story-media { aspect-ratio: 2 / 1; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.story-text { font-size: 17px; color: var(--muted); max-width: 460px; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stars { color: var(--red); font-size: 18px; letter-spacing: 3px; }
.star-empty { color: #4a3a3c; }
.review-card blockquote { margin: 0; font-size: 16px; color: var(--text); }
.review-card figcaption { font-size: 14px; color: var(--muted); margin-top: auto; }

/* ---------- Sportsal callout ---------- */
.callout { background: var(--red); color: #fff; padding-block: 72px; text-align: center; }
.callout-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.callout-title { color: #fff; }
.callout-text { font-size: 18px; max-width: 520px; margin: 0; }

/* ---------- Signature: SiXiT marquee seam ---------- */
.marquee {
  background: var(--red);
  overflow: hidden;
  border-block: 1px solid rgba(0, 0, 0, 0.18);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  padding: 11px 22px;
  animation: marquee 30s linear infinite;
}
.marquee__logo { height: 22px; width: auto; display: block; opacity: 0.96; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--muted); padding-block: 48px 28px; border-top: 1px solid var(--border); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-tagline { font-family: var(--font-body); color: var(--red); font-weight: 600; margin: 8px 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-col h3 { color: #fff; font-size: 15px; margin: 0 0 4px; }
.footer-col a:hover { color: #fff; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .story-media { order: -1; }
}

@media (max-width: 720px) {
  .section { padding-block: 52px; }
  .hero { padding-block: 48px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-header { position: sticky; }
  .nav { position: relative; }
  .nav-toggle { display: flex; }

  .grid-products { grid-template-columns: repeat(2, 1fr); }

  /* Pros: horizontal swipe strip on mobile */
  .grid-athletes {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .grid-athletes .athlete-card {
    flex: 0 0 58%;
    scroll-snap-align: start;
  }
}

@media (max-width: 420px) {
  .grid-products { grid-template-columns: 1fr; }
}
