/* GameAway — shared styles (muted red & white theme)
   Red is used as an accent; large blocks use deep charcoal-reds so the page isn't too bright. */
:root {
  --red-950: #1c1314;   /* charcoal with a hint of red */
  --red-900: #2b1b1d;
  --red-800: #3d2225;
  --red-700: #8f2a2e;   /* buttons, links */
  --red-600: #a83236;   /* main accent */
  --red-300: #d99a9c;
  --red-200: #ead0d1;
  --red-100: #f3e4e4;
  --red-50:  #faf4f4;
  --ink: #1f1a1a;
  --muted: #6b5f5f;
  --line: #f1e3e3;
  --bg: #ffffff;
  --bg-soft: #fdf7f7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(127, 29, 29, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--red-700); }
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: 84px 0; }
@media (max-width: 640px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--red-900); color: #fff; }
.section.dark p { color: var(--red-100); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red-600); margin-bottom: .8em;
}
.section.dark .eyebrow, .hero .eyebrow { color: var(--red-200); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons: red on white backgrounds, white on red backgrounds */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease; cursor: pointer;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 6px 18px rgba(143,42,46,.22); }
.btn-primary:hover { background: var(--red-700); }
.hero .btn-primary, .cta-band .btn-primary, .audience .btn-primary {
  background: #fff; color: var(--red-700); box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.hero .btn-primary:hover, .cta-band .btn-primary:hover, .audience .btn-primary:hover { background: var(--red-50); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--red-900); color: #fff; }
.btn-dark:hover { background: var(--red-950); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; font-size: 1.35rem; font-family: "Poppins", sans-serif; }
.logo img { width: 42px; height: 42px; }
.logo span { letter-spacing: -.01em; color: #1e293b; font-weight: 700; }
.logo span b { color: var(--red-600); font-weight: 800; }
.site-footer .logo span { color: #fff; }
.site-footer .logo span b { color: var(--red-300); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--red-600); }
.nav-links .btn, .nav-links .btn:hover { padding: 10px 20px; color: #fff; }

/* Sports dropdown */
.has-menu { position: relative; }
.has-menu > a::after { content: " ▾"; font-size: .8em; }
.submenu {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 230px; list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease;
}
.submenu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 8px; }
.submenu a:hover { background: var(--red-50); }
.submenu .soon { color: var(--muted); font-weight: 500; font-size: .88rem; padding: 6px 12px; }
@media (max-width: 860px) {
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 6px 0 0 8px; min-width: 0; }
  .submenu::before { display: none; }
}

.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--red-700); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 20px 16px 28px; gap: 18px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 120%, rgba(168,50,54,.45) 0%, transparent 60%),
    linear-gradient(135deg, var(--red-950) 0%, var(--red-900) 50%, var(--red-800) 100%);
}
.hero::before { /* stadium floodlight glow */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.16), transparent 25%),
    radial-gradient(circle at 88% 8%, rgba(255,255,255,.12), transparent 22%);
}
.hero::after { /* field oval */
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; bottom: -560px;
  border: 2px solid rgba(255,255,255,.14); border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; padding: 110px 0 120px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero p.lead { color: var(--red-100); max-width: 560px; }
.hero h1 .accent { color: var(--red-300); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(6px);
}
.hero-card h3 { margin-bottom: 16px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.hero-card li::before { content: "✓"; color: var(--red-200); font-weight: 800; }
.page-hero .container { grid-template-columns: 1fr; padding: 80px 0 84px; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; padding: 64px 0 72px; gap: 36px; } }
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-card { padding: 22px; }
}

/* Stats strip */
.stats { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; text-align: center; }
.stats strong { display: block; font-size: 1.8rem; font-family: "Poppins", sans-serif; color: var(--red-600); }
.stats span { font-weight: 600; font-size: .92rem; color: var(--muted); }
@media (max-width: 700px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; padding: 24px 0; }
  .stats strong { font-size: 1.3rem; }
  .stats span { font-size: .82rem; }
}

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid { gap: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 .card { padding: 20px; }
  .grid-4 .card h3 { font-size: 1.02rem; }
  .grid-4 .card p { font-size: .9rem; }
}
@media (max-width: 360px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--red-200); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--red-50); color: var(--red-700);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}
.card p { color: var(--muted); margin: 0; }

/* Audience split */
.audience { border-radius: var(--radius); padding: 36px 40px 40px; color: #fff; position: relative; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; }
.audience h3 { font-size: 1.5rem; margin-top: 28px; }
@media (max-width: 640px) { .audience { padding: 28px 24px 32px; min-height: 0; } }
.audience.teams { background: linear-gradient(160deg, #7a2a2e, var(--red-900)); }
.audience.fans { background: linear-gradient(160deg, var(--red-900), var(--red-950)); }
.audience .tag { align-self: flex-start; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 7px 16px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.audience p { color: rgba(255,255,255,.88); }
.audience ul { padding-left: 18px; margin: 0 0 22px; color: rgba(255,255,255,.92); }
.audience ul li + li { margin-top: 4px; }
.audience .btn { align-self: flex-start; margin-top: auto; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: "Poppins", sans-serif; font-weight: 800;
  font-size: 2.6rem; color: var(--red-300);
}
.section.dark .step h3 { color: #fff; }

/* Sport tiles (home) */
.sport-tile {
  position: relative; border-radius: var(--radius); padding: 28px; color: #fff; text-decoration: none; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.sport-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sport-tile .emoji { position: absolute; top: 18px; right: 22px; font-size: 3rem; opacity: .95; }
.sport-tile h3 { font-size: 1.4rem; margin-bottom: 6px; }
.sport-tile p { color: rgba(255,255,255,.88); margin: 0 0 12px; font-size: .95rem; }
.sport-tile .go { font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.sport-tile.soon { background: var(--bg-soft); color: var(--ink); border: 2px dashed var(--red-200); }
.sport-tile.soon p { color: var(--muted); }
.sport-tile.soon .go { color: var(--red-700); }
.sport-tile .plus { position: absolute; top: 22px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--red-100); color: var(--red-700); display: grid; place-items: center; font-size: 1.8rem; font-weight: 600; line-height: 1; }
@media (max-width: 640px) { .sport-tile { min-height: 200px; padding: 24px; } }

/* Per-sport shades of red (tiles + page heroes) */
.s-cricket  { background: linear-gradient(150deg, #7a2a2e, #24171a); }
.s-soccer   { background: linear-gradient(150deg, #5e2a2d, #1c1314); }
.s-football { background: linear-gradient(150deg, #8a3a34, #2b1b1d); }
.s-baseball { background: linear-gradient(150deg, #4a2427, #161011); }
.s-softball { background: linear-gradient(150deg, #93413f, #3d2225); }

/* ---------- Photos ----------
   Add classes "photo" and "ph-<name>" to the element, e.g. class="hero photo ph-cricket-hero".
   Each ph-<name> class (defined at the bottom of this file) points at assets/img/<name>.jpg.
   A dark overlay keeps text readable on top of any photo. */
.hero.photo {
  background:
    linear-gradient(100deg, rgba(22,14,15,.94) 0%, rgba(35,21,23,.82) 42%, rgba(43,27,29,.45) 100%),
    var(--photo) center / cover no-repeat;
}
.hero.photo::before, .hero.photo::after { display: none; }
@media (max-width: 860px) {
  .hero.photo { background: linear-gradient(180deg, rgba(22,14,15,.80), rgba(22,14,15,.92)), var(--photo) center / cover no-repeat; }
}
.sport-tile.photo {
  background:
    linear-gradient(180deg, rgba(22,14,15,.10) 0%, rgba(22,14,15,.55) 45%, rgba(22,14,15,.92) 100%),
    var(--photo) center / cover no-repeat;
}
.sport-tile.photo { min-height: 280px; }
.sport-tile.photo h3, .sport-tile.photo p { text-shadow: 0 1px 8px rgba(0,0,0,.35); }
/* Audience cards: photo across the top, text on a solid panel below for readability */
.audience.photo { --card-bg: var(--red-900); background: var(--card-bg); padding-top: 236px; min-height: 0; }
.audience.photo.fans { --card-bg: var(--red-950); }
.audience.photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 212px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, var(--card-bg) 100%), var(--photo) center / cover no-repeat;
}
.audience.photo .tag { position: absolute; top: 20px; left: 24px; background: rgba(22,14,15,.55); backdrop-filter: blur(4px); }
.audience.photo h3 { margin-top: 0; }
@media (max-width: 640px) { .audience.photo { padding-top: 196px; } .audience.photo::before { height: 176px; } }

/* Photo with an overlapping info panel (home "Why GameAway") */
.media-stack { position: relative; padding-bottom: 170px; }
.media-stack .media { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 30% center; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-stack .panel { position: absolute; left: -32px; right: 56px; bottom: 0; padding: 28px 32px; }
@media (max-width: 860px) {
  .media-stack { padding-bottom: 0; }
  .media-stack .panel { position: relative; inset: auto; z-index: 1; margin-top: -48px; margin-inline: 16px; }
}

/* Image strip (sport pages) */
.photo-band { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.photo-band img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) {
  .photo-band { grid-template-columns: 1fr 1fr; }
  .photo-band img:first-child { grid-column: 1 / -1; }
  .photo-band img { height: 200px; }
}

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red-100); color: var(--red-700); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.panel { background: var(--red-900); color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.panel h3 { color: #fff; margin-bottom: 20px; }
@media (max-width: 640px) { .panel { padding: 26px 22px; } .panel dl { gap: 8px 14px; } }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.panel dt { font-weight: 700; color: #fff; }
.panel dd { margin: 0; color: var(--red-100); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; background: #fff; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--red-600); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red-800), var(--red-950)); color: #fff; border-radius: 20px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band p { color: var(--red-100); margin: 0; max-width: 560px; }
@media (max-width: 640px) { .cta-band { padding: 36px 24px; } }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
form.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } form.quote { padding: 22px; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  color: var(--ink); height: 48px; width: 100%;
}
.field textarea { height: auto; min-height: 120px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238f2a2e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
form.quote .btn { margin-top: 4px; }
.form-note { margin: 14px 0 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red-600); border-color: transparent; background: #fff; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; background: var(--red-50); color: var(--red-900); border: 1px solid var(--red-200); padding: 16px; border-radius: 10px; font-weight: 600; margin-top: 12px; }

/* Footer */
.site-footer { background: #161011; color: #d9c9ca; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.site-footer h4 { margin-bottom: 14px; }
.site-footer p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d9c9ca; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Photo classes: one per background photo. Paths are relative to this stylesheet.
   Kept here (not in HTML style attributes) so hosting post-processing cannot alter them. */
.ph-baseball-ballpark { --photo: url("img/baseball-ballpark.jpg"); }
.ph-baseball-hero { --photo: url("img/baseball-hero.jpg"); }
.ph-cricket-hero { --photo: url("img/cricket-hero.jpg"); }
.ph-cricket-stadium { --photo: url("img/cricket-stadium.jpg"); }
.ph-fans-cheering { --photo: url("img/fans-cheering.jpg"); }
.ph-football-action { --photo: url("img/football-action.jpg"); }
.ph-football-hero { --photo: url("img/football-hero.jpg"); }
.ph-plane-wing { --photo: url("img/plane-wing.jpg"); }
.ph-soccer-hero { --photo: url("img/soccer-hero.jpg"); }
.ph-soccer-youth-match { --photo: url("img/soccer-youth-match.jpg"); }
.ph-softball-hero { --photo: url("img/softball-hero.jpg"); }
.ph-softball-pitcher { --photo: url("img/softball-pitcher.jpg"); }
.ph-stadium-night { --photo: url("img/stadium-night.jpg"); }
.ph-team-huddle { --photo: url("img/team-huddle.jpg"); }
