:root {
  --navy: #002776;
  --teal: #75bdd3;
  --olive: #b6b632;
  --gold: #fabd2e;
  --gray: #f1f1f1;
  --text: #333;
  --muted: #666;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Montserrat, Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 { font-family: "Josefin Sans", sans-serif; letter-spacing: .04em; margin: 0 0 .4em; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 40; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.logo img { height: 86px; width: auto; }
.logo picture { display: block; line-height: 0; }
.header-contact { display: flex; gap: 28px; flex-wrap: wrap; }
.header-contact a { display: flex; flex-direction: column; font-size: 14px; color: var(--text); }
.header-contact .label { color: var(--navy); font-weight: 700; font-size: 12px; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; font-size: 22px; padding: 8px 12px; border-radius: 6px; cursor: pointer; }

.main-nav { background: var(--navy); }
.main-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; color: #fff; padding: 14px 16px; font-family: "Josefin Sans", sans-serif; font-size: 14px; letter-spacing: .06em; }
.main-nav a:hover, .main-nav a.is-active { background: #001c54; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  color: #fff;
}
.btn-navy { background: var(--navy); }
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-olive { background: var(--olive); }
.btn-teal { background: var(--teal); color: #083344; }
.btn-full { width: 100%; }
.btn + .btn { margin-left: 10px; }

.hero { position: relative; color: var(--navy); overflow: hidden; }
.hero-slide {
  min-height: min(72vh, 720px);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: none;
  align-items: center;
  padding: 80px 70px;
}
.hero-slide.is-active { display: flex; }
.hero-card {
  background: rgba(255,255,255,.82);
  padding: 28px 32px;
  max-width: 620px;
  border-radius: 4px;
}
.hero-card-center { margin: 0 auto; text-align: center; }
.hero-card h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.class-card-body .btn { margin-left: 0; }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-arrow:hover { background: var(--gold); }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }

.slider-dots { display: flex; gap: 8px; justify-content: center; }
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #cfcfcf;
  cursor: pointer;
  padding: 0;
}
.hero-dots button { background: #fff; opacity: .55; }
.slider-dots button.is-active { opacity: 1; background: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.split-photo { background-size: cover; background-position: left center; min-height: 320px; }
.split-copy { background: var(--teal); color: #fff; padding: 56px 48px; }
.split-copy h2 { color: #fff; }
.tabs {
  display: flex;
  gap: 6px;
  margin: 28px 0 16px;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(255,255,255,.35);
  padding-bottom: 0;
}
.tabs button {
  background: rgba(0,39,118,.18);
  border: 0;
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: .08em;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.tabs button:hover { background: rgba(255,255,255,.28); }
.tabs button.is-active { background: #fff; color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.page-hero { padding: 48px 0 18px; }
.page-hero .crumb { color: var(--muted); font-size: 13px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); }

.prose { padding: 10px 0 50px; max-width: 980px; }
.prose p, .prose li { margin: 0 0 1em; }
.narrow { max-width: 820px; }
.form-intro { padding-bottom: 16px; }
.form-box h2 { text-align: left; margin: 0 0 18px; font-size: 28px; }

.classes-band {
  background-image: url('../img/classes-bg.jpg');
  background-image: image-set(
    url('../img/classes-bg.webp') type('image/webp'),
    url('../img/classes-bg.jpg') type('image/jpeg')
  );
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 70px 40px 70px 0;
  min-height: 640px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.class-cards {
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: flex-end;
  margin-right: max(20px, calc((100vw - 1180px) / 2));
}
.class-card {
  background: #fff;
  box-shadow: 0 0 30px rgba(0,0,0,.25);
  flex: 0 0 230px;
  width: 230px;
  max-width: 230px;
  display: flex;
  flex-direction: column;
}
.class-card header { color: #fff; padding: 14px 12px; text-align: center; }
.class-card header span { font-size: 11px; letter-spacing: .08em; }
.class-card h3 { margin: 4px 0 0; font-size: 22px; color: #fff; }
.class-card-body { padding: 14px 12px 16px; flex: 1; display: flex; flex-direction: column; text-align: center; }
.class-card-body p { margin: .3em 0; font-size: 13px; }
.class-card-body hr { border: 0; border-top: 1px solid #ddd; margin: 12px 0; }
.class-card-body .btn { width: 100%; margin-top: auto; margin-left: 0; padding: 10px 12px; font-size: 13px; }
.pick-note { font-style: italic; color: var(--muted); }
.price-dates { padding: 16px 12px 8px; }
.class-card, .price-card, .class-card-body { overflow: visible; }

.soccer-calendar-root {
  font-family: sans-serif;
  max-width: 400px;
  margin: 20px auto;
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.calendar-header {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  text-align: center;
  position: relative;
}
.day-name {
  font-size: 12px;
  font-weight: bold;
  padding: 6px 0;
  color: #333;
}
.day {
  border: 1px solid #eee;
  height: 60px;
  padding: 4px;
  box-sizing: border-box;
  position: relative;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.day-number {
  font-size: 15px;
  line-height: 1;
  margin-top: 4px;
  color: black;
}
.soccer-icon {
  width: 16px;
  height: 16px;
  background-image: url('../img/blue_soccer.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 4px;
  flex-shrink: 0;
}
.tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.75em;
  z-index: 1000;
}
.day.class-day:hover .tooltip,
.day.class-day.clicked .tooltip {
  display: block;
}

.price-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
  padding: 10px 0 60px;
}
.price-grid .price-card { flex: 1 1 0; min-width: 0; }
.price-card { text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.08); background: #fff; padding-bottom: 28px; }
.price-card header { background: var(--navy); color: #fff; padding: 28px 12px; }
.price-card header span { font-size: 12px; letter-spacing: .1em; }
.price-card h2 { font-size: 48px; margin: 6px 0 0; color: #fff; }
.price-card ul { list-style: none; padding: 22px 16px; margin: 0; }
.price-card li { padding: 8px 0; border-bottom: 1px solid #eee; }

.section-title { text-align: center; padding: 28px 0 8px; font-size: 36px; }

.testimonials { padding: 20px 0 70px; }
.quote-slider { max-width: 820px; margin: 0 auto; min-height: 220px; }
.quote-slider blockquote {
  display: none;
  margin: 0;
  font-style: italic;
  text-align: center;
  font-size: 17px;
  min-height: 180px;
}
.quote-slider blockquote.is-active { display: block; }
blockquote cite { display: block; margin-top: 16px; font-style: normal; font-family: "Josefin Sans", sans-serif; color: var(--navy); }
.quote-dots { margin-top: 24px; }

.guidance {
  background-color: #0c1426;
  background-image:
    linear-gradient(rgba(12, 20, 38, .68), rgba(12, 20, 38, .68)),
    url('../img/guidance-bg.jpg');
  background-image:
    linear-gradient(rgba(12, 20, 38, .68), rgba(12, 20, 38, .68)),
    image-set(
      url('../img/guidance-bg.webp') type('image/webp'),
      url('../img/guidance-bg.jpg') type('image/jpeg')
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 70px 0;
}
.guidance-inner { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; }
.guidance img { width: 260px; border-radius: 8px; }
.guidance h2 { color: var(--gold); }

.find-us { background: var(--gray); padding: 50px 0; }
.find-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; }
.find-card { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.find-card h3 { background: #5ba8fd; color: #fff; margin: 0; padding: 16px 20px; }
.find-card .pad { padding: 8px 22px 22px; }
.contact-item { padding: 12px 0; }
.contact-item h4 { margin: 0; }

.form-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.form-photo { background-size: cover; background-position: center; min-height: 320px; }
.form-box { padding: 36px; border: 1px solid #e5e5e5; text-align: left; }
form label { display: block; font-weight: 600; margin: 12px 0 6px; }
form input[type=text], form input[type=email], form input[type=tel], form input[type=date], form select, form textarea {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  box-sizing: border-box;
}
form textarea { height: auto; min-height: 140px; }
form input[readonly] { background: #f4f4f4; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 6px; margin: 16px 0; }
.alert-ok { background: #e8f6ee; color: #146c2e; }
.alert-err { background: #fde8e8; color: #8a1f1f; }
.notice { font-size: 14px; color: var(--muted); }
.signup-pay { font-size: 18px; }
.signup-pay .venmo-note {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.signup-pay .total-row {
  font-size: 32px;
  font-weight: 500;
  font-family: inherit;
  margin: 16px 0;
}
.signup-pay .venmo-help {
  font-size: 18px;
  color: var(--text);
}
.signup-pay .btn { font-size: 18px; }
.total-row { font-size: 22px; font-family: "Josefin Sans", sans-serif; margin: 16px 0; }
#qrcode {
  margin-top: 12px;
  display: none;
  width: 256px;
  height: 256px;
  background: #fff;
}
#qrcode img,
#qrcode canvas {
  display: block;
  max-width: none;
  width: 256px;
  height: 256px;
}
.date-list { display: grid; gap: 8px; margin: 8px 0 16px; }
.date-list label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }

.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 30px 0 60px; }
.info-row h4 { color: var(--navy); }

.privacy { padding: 20px 0 70px; max-width: 900px; }
.privacy h2 { margin-top: 1.4em; }

.site-footer { background: var(--gray); padding: 40px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand {
  border-top: 2px solid var(--navy);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-brand img { margin: 0 auto; }
.footer-brand picture { display: block; line-height: 0; }
.footer-grid > div:nth-child(2) { border-top: 2px solid var(--teal); padding-top: 18px; }
.footer-grid > div:nth-child(3) { border-top: 2px solid var(--olive); padding-top: 18px; }
.footer-spacer { border-top: 2px solid transparent; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #ddd; margin-top: 24px; padding-top: 16px; opacity: .7; font-size: 14px; }

.coach-hero {
  background-color: #0c1426;
  background-image:
    linear-gradient(rgba(12, 20, 38, .68), rgba(12, 20, 38, .68)),
    url('../img/guidance-bg.jpg');
  background-image:
    linear-gradient(rgba(12, 20, 38, .68), rgba(12, 20, 38, .68)),
    image-set(
      url('../img/guidance-bg.webp') type('image/webp'),
      url('../img/guidance-bg.jpg') type('image/jpeg')
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 0;
}
.coach-hero-inner { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.coach-hero img { width: 220px; border-radius: 8px; }
.coach-hero h1 { color: var(--gold); font-size: 42px; }
.bio { padding: 48px 0 20px; max-width: 980px; }

@media (max-width: 900px) {
  .logo img { height: 64px; }
  .header-contact { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .split, .form-split, .find-grid, .guidance-inner, .coach-hero-inner, .info-row, .footer-grid { grid-template-columns: 1fr; }

  .hero { height: 620px; }
  .hero-slide {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    padding: 40px 48px 56px;
    opacity: 0;
    pointer-events: none;
  }
  .hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
  }
  .hero-card { margin: 0 8px; }
  .hero-card .btn {
    display: flex;
    width: 100%;
    margin: 0 0 12px;
  }
  .hero-card .btn + .btn { margin-left: 0; }

  .split-copy { padding: 36px 16px; }
  .tabs {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .tabs button {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 4px;
    font-size: 12px;
    letter-spacing: .03em;
    white-space: nowrap;
  }

  .classes-band {
    padding: 40px 20px;
    justify-content: center;
    min-height: 0;
    background-position: center;
  }
  .class-cards, .price-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .class-cards {
    margin: 0 auto;
    padding: 0;
    width: 100%;
  }
  .class-card,
  .price-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .guidance-inner,
  .coach-hero-inner {
    justify-items: center;
    text-align: center;
  }
  .guidance img,
  .coach-hero img {
    margin: 0 auto;
  }

  form input[type=text],
  form input[type=email],
  form input[type=tel],
  form input[type=date],
  form select,
  form textarea {
    max-width: 100%;
    min-width: 0;
  }
  form input[type=date] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    height: 44px;
    line-height: 22px;
  }
  .form-box { padding: 24px 16px; overflow-x: hidden; }

  .footer-spacer { display: none; }
  .footer-bottom {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }
  .footer-bottom p,
  .footer-bottom a {
    font-size: 11px;
    white-space: nowrap;
  }
}
