/* =============================================
   SportsRouting – Shared Stylesheet
   Corporate colors: Navy #132248 · Blue #1769C6
   ============================================= */

:root {
  --navy:        #132248;
  --navy-deep:   #0C1730;
  --navy-mid:    #1B2E5C;
  --blue:        #0E50A0;
  --blue-hover:  #0B3E7D;
  --orange:      #FF6745;
  --orange-hover:#DE5739;
  --blue-light:  #EEF4FD;
  --grass:       #1C6335;
  --white:       #FFFFFF;
  --paper:       #F4F7FB;
  --ink:         #132248;
  --muted:       #4E6278;
  --line:        #D0DCEA;
  --navy-line:   rgba(255,255,255,.14);
  --radius:      12px;
  --maxw:        1160px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ---- Util ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Barlow', 'Inter', system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-orange  { background: var(--orange); color: var(--white); }
.btn-orange:hover  { background: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,103,69,.35); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9); transform: translateY(-2px); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(19,34,72,.3); }
.btn-outline { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-outline:hover { background: rgba(19,34,72,.05); transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--navy-deep); }


/* ================= NAV ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-inner > a { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 32px; width: auto; }
.nav-cta { padding: 10px 20px; font-size: .88rem; }

.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px;
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: border-color .15s;
}
.lang-btn:hover { border-color: var(--blue); }
.lang-btn img { width: 18px; height: auto; border-radius: 2px; }
.lang-btn svg { transition: transform .2s; }
.lang-switch.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 160px;
  z-index: 100;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: background .15s;
}
.lang-menu a:hover { background: var(--paper); }
.lang-menu a.active { color: var(--blue); font-weight: 700; }
.lang-menu img { width: 20px; height: auto; border-radius: 2px; }

/* Burger */
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Mobile nav */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav-logo img { height: 26px; }
  .nav-right { gap: 10px; }
  .nav-cta { padding: 8px 12px; font-size: .8rem; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-cta-mobile { display: flex !important; }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: saturate(.55);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12,23,48,.35) 0%,
    rgba(19,34,72,.50) 60%,
    rgba(12,23,48,.70) 100%
  );
}
/* Subtle grass-line pattern for football feel */
.hero-fieldlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.012) 0px, rgba(255,255,255,.012) 1px,
      transparent 1px, transparent 120px
    );
}
.hero-fieldlines canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0; /* Faded in via JS once rendering starts */
  transition: opacity 1s ease-in-out;
}
.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 80px 24px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(23,105,198,.25);
  border: 1px solid rgba(23,105,198,.45);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}
.hero-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900; max-width: 16ch;
  font-family: 'Barlow', 'Inter', system-ui, sans-serif;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 52ch;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Stats bar */
.hero-stats {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 0 24px;
  margin-top: 12px;
}
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--navy-line);
}
.stat { padding: 18px 24px 32px; border-left: 1px solid var(--navy-line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: 'Barlow', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.03em;
}
.stat-title { font-weight: 700; margin-top: 4px; font-size: .98rem; }
.stat-desc { font-size: .88rem; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ================= PARTNERS ================= */
.partners {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.partners-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3.5vw, 40px);
  flex-wrap: nowrap; /* Never wrap to a second line */
}
.partners-row img {
  height: clamp(40px, 7vw, 110px);
  width: auto;
  max-width: 17%;
  object-fit: contain;
  filter: none;
  opacity: .85;
  transition: opacity .2s, transform .2s;
}
.partners-row img:hover { opacity: 1; transform: translateY(-3px); }
.partners-row img.tall {
  height: clamp(55px, 10vw, 150px);
  max-width: 15%;
}

/* ================= GENERIC SECTION ================= */
.section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

.section-paper { background: var(--paper); }

/* ================= QUOTE ================= */
.quote-section { background: var(--navy); color: var(--white); padding: 72px 0; }
.quote-card { max-width: 860px; margin: 0 auto; text-align: center; padding: 0 24px; }
.quote-glyph {
  font-family: 'Barlow', Georgia, serif;
  font-size: 7rem; font-weight: 900;
  color: var(--blue); line-height: .5;
  display: block; margin-bottom: 28px;
}
.quote-text {
  font-family: 'Barlow', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.5; letter-spacing: -.01em;
}
.quote-attr {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255,255,255,.75);
}
.quote-attr img { height: 36px; width: auto; filter: none; opacity: 1; }
.quote-attr strong { color: var(--white); }

/* ================= VIDEO ================= */
.video-frame {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 64px rgba(19,34,72,.2);
  background: #000;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  background-color: var(--navy-deep);
}
.video-poster::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(12,23,48,.45); transition: background .2s;
}
.video-poster:hover::before { background: rgba(12,23,48,.2); }
.play-ring {
  position: relative; width: 82px; height: 82px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 16px rgba(23,105,198,.22);
  transition: transform .15s, box-shadow .15s;
}
.video-poster:hover .play-ring { transform: scale(1.08); box-shadow: 0 0 0 24px rgba(23,105,198,.2); }
.play-ring svg { margin-left: 5px; }

/* ================= FEATURES ================= */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: none; padding-top: 0; }
.feature-media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(19,34,72,.1);
  background: var(--white);
}
.feature-media img { width: 100%; display: block; }
.feature-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
  display: inline-block; margin-bottom: 10px;
}
.feature h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: .98rem; }
.feature:nth-child(even) .feature-media { order: 2; }

/* ================= VALUE GRID ================= */
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; gap: 1px; background: var(--line);
}
.value { background: var(--white); padding: 32px 26px; }
.value-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-icon svg { stroke: var(--blue); }
.value h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.value p { font-size: .9rem; color: var(--muted); }

/* ================= TEAM ================= */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.team-media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 56px rgba(19,34,72,.15); }
.team-media img { width: 100%; display: block; }
.team-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.team-body p { color: var(--muted); margin-bottom: 28px; font-size: 1.02rem; }
.team-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }


/* ================= CTA SECTION ================= */
.cta-section {
  position: relative; overflow: hidden;
  background: var(--navy-deep); color: var(--white);
}
.cta-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1543351611-58f69d7c1781?auto=format&fit=crop&w=1920');
  background-size: cover; background-position: center;
  opacity: .22; filter: saturate(.4);
}
.cta-inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 700px;
  margin: 0 auto; padding: 0 24px;
}
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-inner p { margin: 18px 0 34px; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================= FOOTER ================= */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo img { height: 32px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-desc { font-size: .93rem; color: rgba(255,255,255,.6); }
.footer h4 {
  font-size: .77rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.footer a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: .93rem; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.footer-social a:hover { border-color: var(--blue); background: rgba(14,80,160,.2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .83rem; color: rgba(255,255,255,.45);
}

/* ================= LEGAL PAGES ================= */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-wrap h1 { font-size: 2.2rem; margin-bottom: 10px; }
.legal-wrap .legal-subtitle { color: var(--muted); margin-bottom: 40px; }
.legal-wrap h2 { font-size: 1.25rem; margin: 36px 0 12px; color: var(--navy); }
.legal-wrap h3 { font-size: 1.05rem; margin: 28px 0 10px; color: var(--navy-mid); }
.legal-wrap p, .legal-wrap li { font-size: .98rem; color: #374151; margin-bottom: 14px; line-height: 1.75; }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap a { color: var(--blue); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-weight: 600; color: var(--blue); text-decoration: none; font-size: .95rem; }
.legal-back:hover { color: var(--blue-hover); }

/* ================= REVEAL ANIMATIONS ================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--navy-line); padding: 22px 0; }
  .stat:first-child { border-top: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 56px; }

  /* Partners grid on mobile: 2 on row 1, 3 on row 2 */
  .partners-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 8px;
    justify-items: center;
    align-items: center;
  }
  .partners-row img {
    height: auto !important;
    max-height: 48px !important;
    max-width: 100% !important;
  }
  .partners-row img.tall {
    max-height: 64px !important;
  }
  .partners-row img:nth-child(1) { grid-column: span 3; }
  .partners-row img:nth-child(2) { grid-column: span 3; }
  .partners-row img:nth-child(3) { grid-column: span 2; }
  .partners-row img:nth-child(4) { grid-column: span 2; }
  .partners-row img:nth-child(5) { grid-column: span 2; }
}
