/* ==========================================================================
   San Fernando Sports Center
   Design direction: white header, full-bleed photography hero with bold
   overlay type, centered fact list, image link-cards, deep navy footer.
   Matched to a reference the client approved (Soccerplex & Sports Center,
   Lake Zurich) — navy + white + photography, minimal color accents.
   ========================================================================== */
:root {
  --navy:        #12263F;
  --navy-deep:   #0A1726;
  --navy-mid:    #1C3A5C;
  --gold:        #B98A2E;
  --chalk:       #F5F4F1;
  --ink:         #12263F;
  --slate:       #4B5A68;
  --line:        #E3E2DC;
  --white:       #FFFFFF;

  --font-display: "Barlow Condensed", sans-serif;
  --font-body:    "Source Sans 3", sans-serif;

  --radius: 3px;
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { max-width: 68ch; margin: 0 0 1em; color: var(--slate); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-clay {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-clay:hover { background: var(--navy-mid); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Buttons on dark backgrounds (navy sections, hero, cta banners) need to
   invert so they don't disappear against the navy fill. */
.section-navy .btn-outline,
.hero .btn-outline,
.cta-banner .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.section-navy .btn-outline:hover,
.hero .btn-outline:hover,
.cta-banner .btn-outline:hover { background: var(--white); color: var(--navy); }

.cta-banner .btn-clay {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.cta-banner .btn-clay:hover { background: var(--chalk); }

/* ==========================================================================
   Header / Nav — white, logo left, uppercase nav right
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }

.brand-logo { height: 75px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.primary-nav a:hover { background: var(--chalk); text-decoration: none; }
.primary-nav a.is-active { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .primary-nav ul { flex-direction: column; gap: 2px; padding: 12px 0 6px; }
}

/* ==========================================================================
   Hero — full-bleed photo, bold overlay headline (homepage)
   ========================================================================== */
.photo-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: linear-gradient(0deg, rgba(10,23,38,0.55) 0%, rgba(10,23,38,0.15) 45%, rgba(10,23,38,0.35) 100%), var(--navy-mid);
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.photo-hero-headline {
  position: relative;
  z-index: 2;
  padding: 0 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.photo-hero-headline h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}
.photo-hero-headline h1 .accent { color: var(--gold); }

.photo-hero-contact {
  position: absolute;
  left: 32px;
  bottom: 22px;
  z-index: 2;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.photo-hero-contact a { color: var(--white); }
.photo-hero-contact strong { display: block; font-family: var(--font-display); letter-spacing: 0.03em; }

@media (max-width: 700px) {
  .photo-hero { min-height: 48vh; }
  .photo-hero-contact { display: none; }
}

/* ==========================================================================
   Intro block + stat list (centered, under hero)
   ========================================================================== */
.intro-block {
  text-align: center;
  padding: 56px 0 8px;
}
.intro-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.2em;
}
.intro-block .subhead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--slate);
  font-weight: 500;
}

.badge-logo {
  height: 84px;
  margin: 28px auto 24px;
}

.stat-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}
.stat-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--navy);
  padding: 4px 0;
}
.stat-list li.lead { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

/* ==========================================================================
   Link cards — two photo tiles with an icon + label overlay
   ========================================================================== */
.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 48px 0 64px;
}
@media (max-width: 700px) { .link-cards { grid-template-columns: 1fr; } }

.link-card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-mid);
  background-size: cover;
  background-position: center;
}
.link-card:hover { text-decoration: none; }
.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,23,38,0.75) 0%, rgba(10,23,38,0.05) 55%);
}
.link-card-label {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.link-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-card-icon svg { width: 18px; height: 18px; stroke: var(--white); fill: none; }
.link-card-label span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Info band — photo left, text right (or reverse), with small badge tag
   ========================================================================== */
.info-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}
@media (max-width: 780px) { .info-band { grid-template-columns: 1fr; } }

.info-band-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--navy-mid);
  background-size: cover;
  background-position: center;
}

.badge-pill {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* ==========================================================================
   Sections / generic content blocks (used across inner pages)
   ========================================================================== */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.section-alt {
  background: var(--chalk);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-navy {
  background: var(--navy);
  color: var(--chalk);
}
.section-navy h2, .section-navy h3, .section-navy h1 { color: var(--white); }
.section-navy p { color: #B9C6D3; }

/* Simple banner hero used on inner pages (rental, contact, legal, etc.) */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 64px 0 48px;
}
.hero h1 { color: var(--white); margin-bottom: 0.25em; text-transform: uppercase; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 14px;
}
.hero-sub { font-size: 1.15rem; color: #C9D3DB; max-width: 60ch; }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }

.about-media {
  background: var(--navy-mid);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
}

/* Rental area cards */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.rental-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px;
}
.rental-card h3 { margin-bottom: 8px; }
.rental-card .specs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--slate);
}
.rental-card .specs div { margin-bottom: 4px; }

.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cta-banner h3 { color: var(--white); margin: 0 0 4px; }
.cta-banner p { margin: 0; color: #C9D3DB; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Forms (Youth Programs registration)
   ========================================================================== */
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}
.form-section + .form-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form-section h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: 0.85rem; color: var(--slate); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #C6C7C9;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); }

.checkbox-group, .radio-group { display: flex; flex-wrap: wrap; gap: 16px; }
.checkbox-item, .radio-item { display: flex; align-items: flex-start; gap: 8px; }
.checkbox-item input, .radio-item input { margin-top: 4px; width: auto; }

.consent-box {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.consent-box p { font-size: 0.92rem; color: var(--slate); margin-bottom: 12px; }
.consent-box .checkbox-item label { font-weight: 500; font-size: 0.92rem; color: var(--ink); }

.form-submit { margin-top: 8px; text-align: right; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-notice {
  background: var(--chalk);
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.contact-notice, .contact-notice p { color: var(--ink); margin-bottom: 0; }

.contact-detail { margin-bottom: 18px; }
.contact-detail h4 {
  font-family: var(--font-display);
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   Legal pages (rules / privacy / terms)
   ========================================================================== */
.legal-content h2 { margin-top: 1.6em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content ol, .legal-content ul { padding-left: 1.3em; }
.legal-content li { margin-bottom: 0.6em; color: var(--slate); }
.legal-content p { max-width: 74ch; }

/* ==========================================================================
   Thank-you / simple message page
   ========================================================================== */
.message-page { text-align: center; padding: 100px 24px; }
.message-page .icon-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
  font-family: var(--font-display);
}

/* ==========================================================================
   Footer — deep navy, three columns: brand / navigation / quick links
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: #A9B7C3; }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-logo { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-tagline { color: #8494A2; font-size: 0.92rem; }

.footer-col h3 {
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p { font-size: 0.92rem; margin-bottom: 6px; color: #A9B7C3; }
.footer-col a { color: #C7D1D9; }
.footer-col a:hover { color: var(--white); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: #A9B7C3; text-decoration: underline; }
