/* ============================================================
   Jaypee Sports — Quality Par Excellence
   Light, minimalist black & white · liquid glass · subtle grain
   ============================================================ */

:root {
  --bg: #fafafa;
  --bg-soft: #f1f1f4;
  --text: #0c0c0e;
  --muted: #63636e;
  --line: rgba(12, 12, 20, 0.09);
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.5);
  --radius: 20px;
  --nav-h: 64px;
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Style Script", "Brush Script MT", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #0c0c0e; color: #fff; }

/* ---------- Grain (very subtle film noise) ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Soft monochrome orbs (depth, no drama) ---------- */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb-a {
  width: 60vmax; height: 60vmax; top: -25vmax; right: -20vmax;
  background: radial-gradient(circle at center, rgba(12, 12, 20, 0.05), transparent 70%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.orb-b {
  width: 55vmax; height: 55vmax; bottom: -28vmax; left: -22vmax;
  background: radial-gradient(circle at center, rgba(12, 12, 20, 0.045), transparent 72%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.orb-c {
  width: 34vmax; height: 34vmax; top: 45%; left: 55%;
  background: radial-gradient(circle at center, rgba(12, 12, 20, 0.03), transparent 65%);
  animation: drift-c 40s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-8vmax, 10vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(10vmax, -8vmax) scale(1.06); } }
@keyframes drift-c { to { transform: translate(-12vmax, -10vmax); } }

/* ---------- Liquid glass (light) ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 40px rgba(12, 12, 20, 0.06);
}

/* ---------- Typography helpers ---------- */
.script { font-family: var(--font-script); font-weight: 400; }
.grad-text {
  background: linear-gradient(100deg, #0c0c0e 30%, #6f6f7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.placeholder-note { color: var(--muted); font-size: 0.85rem; font-style: italic; }

h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: 600 0.95rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff;
  background: #0c0c0e;
  box-shadow: 0 8px 22px rgba(12, 12, 20, 0.18);
}
.btn-primary:hover { background: #2a2a30; box-shadow: 0 10px 26px rgba(12, 12, 20, 0.24); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: #fff; border-color: rgba(12, 12, 20, 0.2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  height: var(--nav-h);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 14px 0 22px;
  border-radius: 999px;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.nav-logo { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(12, 12, 20, 0.05); }
.nav-cta { padding: 10px 18px; font-size: 0.85rem; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 64px) 20px 70px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  min-height: 92vh;
}
.hero-wordmark {
  display: block;
  width: min(430px, 100%);
  height: auto;
}
.hero-line {
  display: block;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 14px;
  color: var(--muted);
}
.tagline { margin-top: 16px; }
.tagline-img {
  display: block;
  width: min(380px, 88%);
  height: auto;
}
.lede { margin-top: 16px; color: var(--muted); max-width: 46ch; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats {
  display: flex; gap: 30px; list-style: none; margin-top: 38px; flex-wrap: wrap;
}
.hero-stats li { display: grid; }
.hero-stats strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.hero-stats span { color: var(--muted); font-size: 0.8rem; }

/* ---------- Keep-up game ---------- */
.hero-game { padding: 18px; display: grid; gap: 10px; }
.game-head { display: flex; justify-content: space-between; align-items: baseline; }
.game-title { font-weight: 700; font-size: 0.95rem; }
.game-best { color: var(--muted); font-size: 0.8rem; }
#gameCanvas {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(12, 12, 20, 0.05), transparent 60%),
    #f3f3f6;
  touch-action: manipulation;
  cursor: pointer;
  display: block;
}
.game-hint { text-align: center; color: var(--muted); font-size: 0.78rem; }

/* ---------- Sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 70px 20px; }
.section-head { max-width: 640px; margin-bottom: 38px; display: grid; gap: 10px; }
.section-sub { color: var(--muted); }

.card { padding: 26px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
.about-card { display: grid; gap: 14px; font-size: 1.02rem; }
.about-card em { color: var(--text); font-style: normal; font-weight: 700; }
.about-points { display: grid; gap: 14px; }
.point { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 20px 22px; }
.point h3 { grid-column: 2; }
.point p { grid-column: 2; color: var(--muted); font-size: 0.92rem; }
.point-ico, .product-ico, .step-num, .loc-pin {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.15rem; grid-row: span 2;
}
/* monochrome icon tiles — alternating black / soft grey / outlined */
.grad-a { background: #0c0c0e; color: #fff; }
.grad-b { background: #ececef; color: #0c0c0e; }
.grad-c { background: #fff; color: #0c0c0e; border: 1px solid var(--line); }

/* ---------- Client logo strip (horizontal, ElevenLabs-style) ---------- */
.logo-strip {
  padding: 26px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logo-row {
  list-style: none;
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-x 42s linear infinite;
}
.logo-strip:hover .logo-row { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 64px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.logo-item img {
  width: auto;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply; /* hides the logos' white boxes on the glass */
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logo-item img:hover { filter: none; opacity: 1; }
.logo-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: #0c0c0e; color: #fff;
  font-weight: 700; font-size: 0.72rem;
}

/* ---------- Gallery placeholders ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-duo { grid-template-columns: repeat(2, 1fr); margin: 26px 0 40px; }
.gallery-tile {
  aspect-ratio: 4 / 3;
  display: grid;
  align-items: end;
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.gallery-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-tile figcaption { display: grid; position: relative; }
.gallery-tile figcaption span { color: var(--muted); font-size: 0.8rem; }
.shimmer::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(12, 12, 20, 0.05) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: shimmer 3.2s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -90% 0; } }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { display: grid; gap: 6px; align-content: start; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 18px 44px rgba(12, 12, 20, 0.1); }
.product-ico { margin-bottom: 10px; }
.product p { color: var(--muted); font-size: 0.92rem; }
.product-wide { grid-column: span 2; }
.product-cta .btn { margin-top: 12px; justify-self: start; padding: 9px 16px; font-size: 0.85rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

/* ---------- Fields & forms ---------- */
.field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: 500 0.95rem var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus { border-color: #0c0c0e; box-shadow: 0 0 0 3px rgba(12, 12, 20, 0.1); }
.field::placeholder { color: rgba(99, 99, 110, 0.6); }
select.field { appearance: none; }

/* ---------- Teamwear steps & enquiry ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { display: grid; gap: 6px; padding: 22px; }
.step-num { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.88rem; }

.enquiry { padding: 34px; display: grid; gap: 16px; max-width: 760px; }
.enquiry-sub { color: var(--muted); margin-top: -8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enquiry label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.form-full { grid-column: 1 / -1; }
.enquiry .btn { justify-self: start; }
.enquiry-fine { color: var(--muted); font-size: 0.78rem; }

/* ---------- Coming soon ---------- */
.coming-soon {
  padding: 56px 34px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.coming-soon h2 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.notify { display: flex; gap: 10px; margin-top: 10px; width: min(420px, 100%); }
.notify .field { flex: 1; }

/* ---------- Locations & contact ---------- */
.loc-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.loc, .contact-card { display: grid; gap: 6px; justify-items: start; }
.loc-pin { margin-bottom: 8px; }
.loc-addr { color: var(--muted); font-size: 0.92rem; }
.loc-map {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.loc-map:hover { border-color: var(--text); }
.contact-card { text-decoration: none; color: var(--text); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 18px 44px rgba(12, 12, 20, 0.1); }
.contact-card .point-ico { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 110px;
  display: grid;
  gap: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  justify-items: center;
}
.footer-logo { height: 52px; width: auto; display: block; margin: 0 auto; }
.footer-tagline { height: 15px; width: auto; display: block; margin: 10px auto 0; opacity: 0.75; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.footer-fine { color: var(--muted); font-size: 0.78rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 20;
  border-radius: 999px;
  background: #0c0c0e;
  color: #fff;
  border: none;
  box-shadow: 0 14px 36px rgba(12, 12, 20, 0.3);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .logo-row, .shimmer::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Mobile — most customers visit on phones, this must be perfect
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: calc(var(--nav-h) + 44px); }
  .about-grid, .product-grid, .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-wide { grid-column: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 18px; }
  .logo-item { margin-right: 44px; }

  /* mobile nav */
  .nav { padding: 0 10px 0 18px; gap: 10px; }
  .nav-cta { display: none; }
  .nav-burger {
    display: grid;
    gap: 5px;
    margin-left: auto;
    width: 44px; height: 44px;
    place-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 10px);
    left: 0; right: 0;
    flex-direction: column;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(12, 12, 20, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .notify { flex-direction: column; }
  .hero-stats { gap: 20px; }
}
