/* America Plays Cricket — brand tokens matched to the live americaplayscricket.org
   site: cream #FFFAEB, dark ink #1F242E, hot pink #EE2B6C, blue #0D80F2, gold #F9C31F. */

:root {
  --navy: #1F242E;
  --navy-deep: #14171D;
  --navy-tint: #4A5568;
  --green: #0D80F2;
  --green-deep: #0A66C2;
  --green-tint: #6FB6F5;
  --green-pale: #E8F3FE;
  --orange: #EE2B6C;
  --orange-tint: #F25A8C;
  --yellow: #F9C31F;
  --yellow-deep: #D9A400;
  --yellow-pale: #FDF0CE;
  --pink: #EE2B6C;
  --pink-tint: #F25A8C;
  --blue: #0D80F2;
  --blue-deep: #0A66C2;
  --gold: #F9C31F;
  --gold-tint: #FAC938;
  --ink: #1F242E;
  --slate: #57606B;
  --slate-soft: #7C868F;
  --paper: #FFFAEB;
  --paper-tint: #FFF6E0;
  --line: #EDE6D0;
  --white: #FFFFFF;

  --serif: 'Fredoka', 'Baloo 2', var(--sans);
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(31, 36, 46, 0.3);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 16px; color: var(--navy); }
.section-subhead { font-size: 18px; color: var(--pink); margin: -8px 0 14px; }
.hl-orange, .hl-green {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hl-orange { background-image: linear-gradient(135deg, var(--pink) 0%, var(--pink-tint) 100%); }
.hl-green { background-image: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }
.eyebrow {
  display: inline-block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  .eyebrow { font-size: 21px; }
}
.lede { font-size: 19px; color: var(--slate); max-width: 640px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-tint) 100%);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(238, 43, 108, 0.55);
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 13px 28px; }

/* ---- photo ticker ------------------------------------------------------ */
.photo-ticker {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--navy-deep);
  position: relative;
}
.photo-ticker::before, .photo-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.photo-ticker::before { left: 0; background: linear-gradient(90deg, var(--navy-deep), transparent); }
.photo-ticker::after { right: 0; background: linear-gradient(270deg, var(--navy-deep), transparent); }
.ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: ticker-scroll 48s linear infinite;
}
.photo-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track img {
  height: 160px;
  width: 240px;
  object-fit: cover;
  flex: none;
  border-right: 2px solid var(--navy-deep);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* Face-safe crop positions, keyed by filename so the same bias applies
   everywhere a photo is object-fit:cover'd (ticker, about, gallery, hero). */
img[src*="hero-portrait"]   { object-position: center 22%; }
img[src*="coach-player"]    { object-position: center 18%; }
img[src*="kids-bats"]       { object-position: center 12%; }
img[src*="action-fielding"] { object-position: center 20%; }
img[src*="action-batting"]  { object-position: center 24%; }
img[src*="team-group-1"]    { object-position: center 22%; }
img[src*="team-group-2"]    { object-position: center 33%; }
img[src*="team-group-3"]    { object-position: center 27%; }
img[src*="coach-action"]    { object-position: center 22%; }
img[src*="coach-portrait"]  { object-position: center 25%; }
img[src*="coach-back"]      { object-position: center 25%; }
img[src*="coach-bat"]       { object-position: center 20%; }
img[src*="coach-back2"]     { object-position: center 25%; }
img[src*="player-braces"]   { object-position: center 20%; }
img[src*="player-spartan"]  { object-position: center 22%; }
img[src*="players-stretch"] { object-position: center 32%; }
@media (max-width: 640px) {
  .photo-ticker { height: 100px; }
  .ticker-track img { height: 100px; width: 150px; }
}

/* ---- header / nav ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 252, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
}
.donate-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  border: 1.5px solid var(--pink);
  border-radius: 999px;
  padding: 8px 16px;
}
.donate-link:hover { background: var(--pink); color: #fff; }
.icon-only { display: none; }

/* ---- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 68px 0 120px;
  background: var(--gold);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 70px;
  left: 54px;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.8),
    150px 36px 0 4px rgba(238, 43, 108, 0.75),
    226px 144px 0 4px rgba(13, 128, 242, 0.65),
    36px 168px 0 3px rgba(31, 36, 46, 0.35),
    246px 390px 0 4px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 1;
  animation: float-dots 4s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
@keyframes float-dots {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--pink);
  border: 1.5px solid var(--pink);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 96px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  color: var(--navy);
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo-frame {
  position: relative;
  border-radius: 24px 120px 24px 24px;
  overflow: hidden;
  border: 3px solid var(--pink);
  box-shadow: var(--shadow);
}
.hero-photo-frame img { width: 100%; height: 560px; object-fit: cover; }
.hero-photo-badge {
  position: absolute;
  top: -16px;
  right: 24px;
  background: #fff;
  color: var(--blue);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 3;
}
.hero-photo-badge span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--slate-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-photo-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(9, 42, 76, 0.85);
  color: #fff;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
/* ---- about / mission ---------------------------------------------------- */
.about { background: var(--white); }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 420px; object-fit: cover; }
.about-stats { display: flex; gap: 32px; margin-top: 28px; }
.stat-num { font-family: var(--serif); font-size: 34px; color: var(--orange); font-weight: 700; }
.stat-label { font-size: 13px; color: var(--slate-soft); text-transform: uppercase; letter-spacing: 1px; }

/* ---- skills grid ------------------------------------------------------- */
.skills { background: var(--paper-tint); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .lede { margin: 0 auto; }
.season-callout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  background: var(--yellow-pale);
  color: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}
.season-callout strong { color: var(--pink); }
.season-callout-hero {
  margin-top: 0;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  border: none;
  font-size: 22px;
  font-weight: 700;
  padding: 14px 28px;
  box-shadow: 0 12px 24px -10px rgba(10, 102, 194, 0.55);
  animation: gentle-bounce 2.2s ease-in-out infinite;
}
@keyframes gentle-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  65% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .season-callout-hero { animation: none; }
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.skill-icon { font-size: 34px; margin-bottom: 14px; display: inline-block; }
.skill-ball {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a75, #c81e1e 70%);
  box-shadow: 0 4px 8px -3px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: skill-ball-bounce 1.9s ease-in-out infinite;
}
.skill-ball::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(-50%);
  border-radius: 2px;
}
@keyframes skill-ball-bounce {
  0%   { transform: translateY(0) scale(1, 1); }
  15%  { transform: translateY(-10px) scale(1, 1.04); }
  30%  { transform: translateY(-12px) scale(1, 1); }
  50%  { transform: translateY(-4px) scale(1, 0.97); }
  65%  { transform: translateY(0) scale(1.06, 0.9); }
  80%  { transform: translateY(-3px) scale(0.98, 1.02); }
  100% { transform: translateY(0) scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-ball { animation: none; }
}
.skill-card:hover .skill-icon { animation: icon-wiggle 0.5s ease; }
@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-12deg) scale(1.1); }
  50% { transform: rotate(10deg) scale(1.1); }
  75% { transform: rotate(-6deg) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-card:hover .skill-icon { animation: none; }
}
.skill-card h3 { font-size: 16px; margin-bottom: 6px; }
.skill-card p { font-size: 14px; color: var(--slate-soft); margin: 0; }

/* ---- gallery ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---- coaches ------------------------------------------------------------ */
.coaches { background: var(--paper-tint); }
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.coach-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.coach-card img { width: 100%; height: 300px; object-fit: cover; }

/* ---- location ------------------------------------------------------------ */
.location { background: var(--white); }
.location .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.location-card {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-tint) 50%, var(--pink) 100%);
  color: var(--navy);
  border-radius: 20px;
  padding: 40px;
}
.location-card h3 { color: var(--navy); }
.location-card a.btn { margin-top: 20px; }
.location-details { display: flex; flex-direction: column; gap: 18px; }
.location-details div { display: flex; gap: 14px; align-items: flex-start; }
.location-details .ico { font-size: 20px; }

/* ---- registration form -------------------------------------------------- */
.register { background: var(--paper-tint); }
.register-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.register-steps {
  display: flex;
  justify-content: space-between;
  padding: 24px 32px 0;
}
.step-dot {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-soft);
  position: relative;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--line);
}
.step-dot.active { color: var(--green); border-color: var(--green); }
.step-dot.done { color: var(--navy); border-color: var(--navy); }
.form-step { display: none; padding: 36px 40px; }
.form-step.active { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
.field input:focus, .field select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.choice-group { display: flex; gap: 12px; flex-wrap: wrap; }
.choice-pill {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
}
.choice-pill input { position: absolute; opacity: 0; }
.choice-pill.selected { border-color: var(--green); background: var(--green-pale); color: var(--green-deep); }
.choice-pill.disabled { opacity: 0.45; cursor: not-allowed; }
.choice-pill .sub { display: block; font-weight: 400; font-size: 12px; color: var(--slate-soft); margin-top: 2px; }
.waiver-box {
  background: var(--paper-tint);
  border-radius: 12px;
  padding: 18px;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 20px;
  max-height: 140px;
  overflow-y: auto;
}
.waiver-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.pay-card {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.pay-card img { height: 44px; width: auto; margin: 0 auto 12px; }
.pay-card h4 { margin: 0 0 6px; font-size: 15px; }
.pay-card p { font-size: 13px; color: var(--slate-soft); margin: 0; }
.pay-card-alt {
  text-align: center;
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 20px;
}
.pay-card-alt a { color: var(--pink); font-weight: 700; text-decoration: none; }
.pay-card-alt a:hover { text-decoration: underline; }
.due-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 700;
}
.form-nav { display: flex; justify-content: space-between; padding: 0 40px 36px; }
.form-msg { padding: 0 40px 24px; font-size: 14px; }
.form-msg.error { color: #b3261e; }
.form-msg.success { color: var(--green-deep); }
.sold-out-tag {
  background: #ffe1e1;
  color: #b3261e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* ---- footer -------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #c8d2e0; padding: 56px 0 30px; }
.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #c8d2e0; text-decoration: none; font-size: 14px; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer .foot-brand img { height: 40px; }
.site-footer .foot-brand span { font-family: var(--serif); color: #fff; font-size: 17px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8fa6be;
}
.foot-bottom span { color: #8fa6be; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
  /* the confetti dots are positioned for the two-column layout's left gutter;
     once it collapses to one column they'd land on top of the text instead */
  .hero::before { display: none; }
  .hero .container, .about .container, .location .container { grid-template-columns: 1fr; }
  .hero-photo-frame img { height: 380px; }
  .about-photo img { height: 320px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .coaches-grid { grid-template-columns: repeat(2, 1fr); }
  .coach-card img { height: 300px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero h1 { font-size: 32px; }
  .season-callout-hero { font-size: 15px; padding: 12px 20px; white-space: nowrap; }
  .site-header .container { height: 64px; }
  .header-actions { gap: 10px; }
  .icon-only { display: inline-flex; align-items: center; justify-content: center; }
  .full-label { display: none; }
  .phone-link, .donate-link {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    font-size: 24px;
    background: none;
    border: none;
  }
  .brand img { height: 34px; }
  .brand-name { display: none; }
  .header-actions .btn { padding: 10px 18px; font-size: 13px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .coaches-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-step { padding: 28px 20px; }
  .form-nav, .form-msg { padding-left: 20px; padding-right: 20px; }
  .register-steps { padding: 20px 20px 0; }
  .pay-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
