/* ============================================================================
   Road to Worlds — SHARED page (neutral Team USA theme)
   Navy + red + white + gold, with pink (Spirit) & purple (Captivators) accents.
   ========================================================================== */
:root {
  --navy: #0a2a5e;
  --navy-deep: #071d42;
  --red: #b31942;
  --gold: #d4af37;
  --gold-bright: #f0d879;
  --spirit: #ec3d96;   /* Spirit Baton pink */
  --capt: #5a3a8c;     /* Captivators purple */
  --ink: #14203a;
  --ink-soft: #51617f;
  --paper: #f6f8fc;
  --paper-2: #eaeef7;
  --line: #dbe3f0;
  --card: #ffffff;
  --on-dark: #eaf0fb;
  --on-dark-soft: #b6c4de;

  --shadow-sm: 0 2px 10px rgba(10, 30, 70, .08);
  --shadow-md: 0 16px 40px rgba(10, 30, 70, .16);
  --shadow-lg: 0 28px 64px rgba(10, 30, 70, .24);
  --radius: 16px;
  --maxw: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: linear-gradient(180deg, #fff, var(--paper-2)); }
.center { text-align: center; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--red); margin: 0 0 .8rem; }
.eyebrow--light { color: var(--gold); }
.section-head { max-width: 720px; margin: 0 auto 2.4rem; text-align: center; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }

.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: .9rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; line-height: 1; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--donate { background: var(--gold); color: #2a1f05; box-shadow: var(--shadow-md); }
.btn--donate:hover { background: var(--gold-bright); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.brand .flag { font-size: 1.3rem; }
.nav-teams { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-teams a { font-weight: 600; font-size: .9rem; padding: .4rem .8rem; border-radius: 999px; color: var(--ink); }
.nav-teams a.spirit:hover { color: var(--spirit); background: #fdeaf4; text-decoration: none; }
.nav-teams a.capt:hover { color: var(--capt); background: #efe9f7; text-decoration: none; }
.nav-teams .sep { color: var(--line); }
.nav .btn { margin-left: .4rem; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 45%, var(--red) 130%); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 88% 12%, rgba(212,175,55,.20), transparent 60%), repeating-linear-gradient(180deg, rgba(255,255,255,.04) 0 8px, transparent 8px 42px); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--spirit), #fff 50%, var(--capt)); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(112deg, rgba(7,29,66,.95) 0%, rgba(10,42,94,.86) 46%, rgba(179,25,66,.55) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); margin: .5rem 0 .7rem; }
.hero .lead { color: rgba(255,255,255,.92); max-width: 42ch; }
.hero .event-line { color: #fff; font-weight: 600; margin-top: .3rem; }

/* Story with championships photo */
.story-split { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: center; max-width: 940px; margin: 0 auto; }
.story-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid #fff; aspect-ratio: 4/5; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.story-photo figcaption { background: var(--navy); color: #fff; font-size: .82rem; text-align: center; padding: .5rem; }
@media (max-width: 820px) { .story-split { grid-template-columns: 1fr; text-align: center; } .story-photo { max-width: 360px; margin: 0 auto; } }
.flag-chip { display: inline-flex; align-items: center; gap: .5rem; background: rgba(212,175,55,.16); border: 1px solid rgba(212,175,55,.5); color: var(--gold-bright); font-weight: 600; font-size: .85rem; padding: .45rem 1rem; border-radius: 999px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; aspect-ratio: 3/4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Countdown */
.countdown { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.4rem 0; }
.count-unit { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: .8rem 1.1rem; min-width: 78px; text-align: center; }
.count-unit b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.count-unit span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.5rem .6rem; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); line-height: 1; }
.stat span { font-size: .9rem; color: var(--ink-soft); }

/* Goal thermometer */
.goal { max-width: 640px; margin: 0 auto; }
.goal-bar { height: 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.goal-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.goal-meta { display: flex; justify-content: space-between; margin-top: .6rem; font-weight: 700; }
.goal-meta .raised { color: var(--red); }

/* Roster */
.roster-photo { max-width: 460px; margin: 0 auto 1.2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.name-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.name-pills li { background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* Team USA photo wall */
.wall-label { text-align: center; margin: 2.6rem 0 0; font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.team-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; margin-top: 1.1rem; }
.team-wall figure { margin: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--card); cursor: zoom-in; }
.team-wall img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.team-wall figure:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .team-wall { grid-template-columns: 1fr 1fr; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,18,40,.93); display: flex; align-items: center; justify-content: center; padding: 1.5rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(96vw, 860px); max-height: 90vh; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox .lb-close { position: absolute; top: 1rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox .lb-close:hover { background: rgba(255,255,255,.28); }

/* Use cards */
.use-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.use-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); text-align: center; }
.use-card .ico { font-size: 1.9rem; }

/* Two teams (route back) */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.team-card { position: relative; border-radius: var(--radius); padding: 2rem; color: #fff; overflow: hidden; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; display: block; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.team-card.spirit { background: linear-gradient(135deg, #ec3d96, #b5379b); }
.team-card.capt { background: linear-gradient(135deg, #5a3a8c, #2a1a45); }
.team-card h3 { color: #fff; font-size: 1.6rem; }
.team-card p { color: rgba(255,255,255,.9); margin-bottom: 1.2rem; }
.team-card .go { font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: .4rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-dark); padding: 3rem 0 2rem; border-top: 4px solid var(--gold); }
.site-footer a { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--on-dark); opacity: .9; font-weight: 500; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.6rem; padding-top: 1.3rem; font-size: .85rem; opacity: .75; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 360px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .use-cards { grid-template-columns: 1fr; }
  .teams { grid-template-columns: 1fr; }
  .nav-teams { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .count-unit { min-width: 64px; padding: .65rem .8rem; }
  .hero-inner, .hero-cta { justify-content: center; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .countdown { justify-content: center; }
}
