/* ============================================================
   KENT SCHOOL BOAT CLUB — Global Stylesheet
   Colors: Kent Navy #002147, Red #C41230, Cream #F8F6F0
   Fonts: Playfair Display (headings) + Inter (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #002147;
  --navy-dark:   #001630;
  --navy-mid:    #003075;
  --navy-light:  #0a3d6b;
  --gold:        #C41230;
  --gold-light:  #a50f27;
  --cream:       #F8F6F0;
  --gray-100:    #F2F1EE;
  --gray-200:    #E4E2DC;
  --gray-500:    #9B9890;
  --gray-700:    #4A4845;
  --text:        #1C1C1A;
  --white:       #FFFFFF;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --max-width:   1160px;
  --radius:      4px;
  --transition:  0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1.1rem; color: var(--gray-700); font-size: 1.02rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--gray-700);
  font-weight: 300;
}

.small { font-size: 0.875rem; }
.uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.serif-italic { font-family: var(--font-serif); font-style: italic; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-white h1, .text-white h2, .text-white h3, .text-white h4,
.text-white p, .text-white .lead { color: var(--white); }
.text-gold { color: var(--gold); }

.bg-navy  { background-color: var(--navy); }
.bg-cream { background-color: var(--cream); }
.bg-gray  { background-color: var(--gray-100); }
.bg-white { background-color: var(--white); }

/* --- Gold Rule Divider --- */
.gold-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 1.25rem 0 1.75rem;
  display: block;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* --- Eyebrow Label --- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

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

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.site-nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.site-nav.solid {
  background: var(--navy);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.9rem;
  text-align: center;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-links .nav-give {
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  margin-left: 0.5rem;
}
.nav-links .nav-give:hover {
  background: var(--gold-light);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: 2rem;
  gap: 0.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .nav-give {
  color: var(--gold);
  font-weight: 700;
  border-bottom: none;
  margin-top: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,33,71,0.85) 0%, rgba(0,33,71,0.5) 60%, rgba(0,33,71,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10rem 2rem 5rem;
  width: 100%;
}

.hero-content .eyebrow { color: var(--gold); }

.hero-content h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.25rem;
}

.hero-content .lead {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  background-color: var(--navy);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.4;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,33,71,0.95) 0%, rgba(0,33,71,0.5) 60%, rgba(0,33,71,0.2) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
}
.page-hero-content .eyebrow { color: var(--gold); }
.page-hero-content h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy-mid);
  padding: 2.5rem 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ============================================================
   PULLQUOTE / MISSION STRIP
   ============================================================ */
.pullquote {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}
.pullquote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--white);
  max-width: 760px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.pullquote cite {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-200);
}
.card-img-placeholder {
  width: 100%;
  height: 220px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-body { padding: 1.5rem; }
.card-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.card-body h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }
.card-body p { font-size: 0.92rem; margin-bottom: 1rem; }
.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.card-link:hover { gap: 0.55rem; }
.card-link::after { content: '→'; }

/* Coach card */
.coach-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.coach-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--gray-200);
  background: var(--navy);
}
.coach-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coach-photo-placeholder svg { opacity: 0.3; }
.coach-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.2rem; }
.coach-title { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.timeline-item:nth-child(odd) .timeline-content { margin-right: 2rem; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 2rem; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  z-index: 1;
}

.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.timeline-content h3, .timeline-content h4 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1.1rem; }
.timeline-content p { font-size: 0.92rem; margin-bottom: 0; }

.timeline-spacer { flex: 1; }

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.event-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.event-item:first-child { border-top: 1px solid var(--gray-200); }
.event-date {
  min-width: 64px;
  text-align: center;
  padding: 0.6rem 0.5rem;
  background: var(--navy);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.event-date .month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}
.event-date .day {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.event-info h3, .event-info h4 { color: var(--navy); margin-bottom: 0.25rem; font-size: 1.1rem; font-family: var(--font-serif); font-weight: 600; }
.event-info p { font-size: 0.9rem; margin-bottom: 0; color: var(--gray-500); }
.event-info .event-location {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: 0.2rem;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.72); max-width: 540px; margin: 0 auto 2rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section { background: var(--cream); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,33,71,0.08);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand .logo-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
  display: block;
}
.footer-brand p { font-size: 0.87rem; line-height: 1.65; color: rgba(255,255,255,0.7); }
.footer-col h2, .footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; margin: 0; color: rgba(255,255,255,0.65); }
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover {
  background: var(--gold);
  color: var(--white);
}

/* ============================================================
   ENDOWMENT PAGE — PROGRESS BAR
   ============================================================ */
.progress-wrap { background: var(--gray-200); border-radius: 100px; height: 10px; overflow: hidden; margin: 0.75rem 0 0.25rem; }
.progress-bar { height: 100%; background: var(--gold); border-radius: 100px; transition: width 1.2s ease; }

/* ============================================================
   SECTION INTRO (centered header block)
   ============================================================ */
.section-intro { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-intro h2 { margin-bottom: 0; }
.section-intro p { margin-top: 1rem; }

/* ============================================================
   SPLIT SECTION (text + image side by side)
   ============================================================ */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 480px; }
.split-image { background: var(--navy); overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.split-text {
  padding: 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================================
   ACCORDION (for FAQ / program details)
   ============================================================ */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  gap: 1rem;
}
.accordion-icon { font-size: 1.25rem; color: var(--gold); transition: transform var(--transition); flex-shrink: 0; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { display: none; padding-bottom: 1.25rem; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body p { font-size: 0.95rem; }

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--gold);
  padding: 0.6rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}
.announcement a { text-decoration: underline; color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .timeline::before { left: 20px; }
  .timeline-item { flex-direction: column !important; padding-left: 3rem; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { margin: 0; }
  .timeline-dot { left: 20px; }
  .timeline-spacer { display: none; }
  .split-section { grid-template-columns: 1fr; }
  .split-image { height: 300px; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }
  .hero-content { padding: 8rem 1.5rem 3.5rem; }
  .split-text { padding: 2.5rem 1.5rem; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .btn-group { flex-direction: column; align-items: flex-start; }
  /* Allow page-hero to grow to fit content on small screens */
  .page-hero { height: auto; min-height: 200px; padding-top: 5rem; }
  .page-hero-content { padding-bottom: 2rem; }
}

@media (max-width: 600px) {
  /* Giving tiers: single column on small phones */
  .grid-4 { grid-template-columns: 1fr; }
  /* Race schedule table: minimum readable font size on mobile */
  table { font-size: 0.875rem; }
  /* Ensure inline flex forms stack vertically */
  form[style*="flex"] { flex-direction: column !important; }
}

@media (max-width: 480px) {
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1.25rem; }
}

/* ============================================================
   ACCESSIBILITY — Focus visibility & skip nav
   ============================================================ */

/* Skip-to-content link */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-nav:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Visible focus rings for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Ensure buttons meet 44px minimum touch target */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Visually hidden — accessible to screen readers but not visible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
