/* Base styles: reset, layout, buttons, header, footer, responsive.
   Always loaded — covers every page, not just the homepage. */

/* ============================================================
   ELITESTREAM HOMEPAGE — MERGED STYLESHEET
   Combines: hero file + categories/leagues/pricing file + devices/reviews/faq/cta/footer file
   Conflict fixes applied: unified .container, renamed device-mockup .tv/.phone/.box -> .dm-*,
   renamed CTA banner .cta-row -> .cta-banner-row, scoped .cta button colors.
   ============================================================ */

/* ================== RESET & BASE ================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  background: #f6f8fc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

:root {
  color-scheme: light only;
  --primary: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-gradient: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --section-bg: #f6f8fc;
  --border: #e2e8f0;
  --check: #16a34a;

  /* Dedicated button tokens — match the original HTML's hardcoded
     .btn-primary/.btn-outline colors exactly (#3b82f6 -> #2563eb).
     Kept separate from --primary (#1d4ed8) on purpose: the original
     design used --primary only for .plan-price text, while buttons
     used a slightly different hardcoded blue. Overriding these (via
     the Customizer's Button color control) never touches --primary,
     so .plan-price stays exactly as designed even when buttons are
     recolored. */
  --btn-color: #2563eb;
  --btn-color-light: #3b82f6;

  --navy: #0a1738;
  --navy-2: #0b1d52;
  --blue: #2c5cff;
  --blue-2: #1a4cff;
  --green: #00b67a;
  --text: #0e1631;
  --muted: #6b7280;
  --line: #e5e7eb;
}

/* ================== SHARED LAYOUT ================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ================== BUTTONS (global) ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(180deg, var(--btn-color-light) 0%, var(--btn-color) 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(37, 99, 235, 0.8); }
.btn-outline {
  background: #ffffff;
  color: var(--btn-color);
  border-color: var(--btn-color);
}
.btn-outline:hover { background: rgba(37, 99, 235, 0.06); }
.btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}
.btn-ghost:hover { border-color: #cbd5e1; }

/* ================== HEADER ================== */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.logo-image img {
  height: 32px;
  width: auto;
  display: block;
}

.primary-nav { display: flex; gap: 28px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link:hover { color: #2563eb; }
.nav-link.is-active { color: #2563eb; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.wa-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.wa-btn:hover { background: rgba(34, 197, 94, 0.08); }

/* ================== FOOTER ================== */
footer { background: linear-gradient(180deg,#070e29,#04081c); color: #c9d3f0; padding: 56px 0 24px; }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 14px; letter-spacing: .02em; }
.brand-image img { height: 34px; width: auto; display: block; }
.foot-blurb { font-size: 13.5px; color: #8b95b8; max-width: 260px; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: #0e1635; display: flex; align-items: center; justify-content: center; color: #c9d3f0; transition: background .2s, color .2s; }
.socials a:hover { background: #2c5cff; color: #fff; }
.socials svg { width: 14px; height: 14px; fill: currentColor; }
.foot-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: #9aa6cf; }
.foot-col a:hover { color: #fff; }
.touch { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.touch .row { display: flex; align-items: center; gap: 10px; color: #c9d3f0; }
.touch .icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.touch .icon.wa { background: #25d366; }
.touch .icon.mail { background: var(--blue); }
.touch .icon.chat { background: #5b8cff; }
.touch .icon svg { width: 12px; height: 12px; fill: currentColor; }

.foot-bottom { border-top: 1px solid rgba(255,255,255,.06); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.copy { font-size: 13px; color: #6f7aa0; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay { background: #0e1635; color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; min-width: 50px; justify-content: center; height: 30px; }
.pay.visa { background: #1a1f71; color: #fff; }
.pay.mc { background: #0e1635; }
.pay.mc .red { color: #eb001b; }
.pay.mc .yel { color: #f79e1b; }
.pay.pp { background: #003087; color: #fff; font-style: italic; }
.pay.apay { background: #000; color: #fff; }
.pay.gpay { background: #0e1635; color: #fff; }

/* ================== RESPONSIVE (header/footer/nav only —
   homepage section responsive rules live in homepage.css so they
   correctly cascade AFTER the unconditional desktop rules there;
   see homepage.css's own RESPONSIVE block) ================== */
@media (max-width: 1080px) {
  .primary-nav { display: none; }
}
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-row { flex-wrap: wrap; }
  .nav-actions { flex-wrap: wrap; }
  .btn-ghost { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .logo-image img { height: 26px; }
  .logo-wrap img { max-height: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }
}
