/* ================================================
   STOCKTON STRIDERS AC — Main Stylesheet
   Palette: Black #0D0D0D | Blue #5BA3D9 | White #FFFFFF | Light #F0F6FC | Mid #2A2A2A
   Type: Barlow Condensed (display) + Inter (body)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --black:   #0D0D0D;
  --blue:    #5BA3D9;
  --blue-dk: #3A7DB5;
  --blue-lt: #D6EAFB;
  --white:   #FFFFFF;
  --off:     #F0F6FC;
  --mid:     #2A2A2A;
  --grey:    #6B7280;
  --border:  #E2EDF7;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(91,163,217,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-dk); text-decoration: none; }
a:hover { color: var(--blue); }

/* ── Typography ── */
h1, h2, h3, h4, .display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; }

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--blue {
  background: var(--blue);
  color: var(--white);
}

.section--off {
  background: var(--off);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 2px solid var(--blue);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav__logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav__logo span { color: var(--blue); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.75);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--white);
  background: rgba(91,163,217,0.15);
}

.nav__links a.active { color: var(--blue); }

.nav__cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.4rem 1rem !important;
}

.nav__cta:hover {
  background: var(--blue-dk) !important;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(13,13,13,0.78), rgba(13,13,13,0.85)),
    url('../images/club-group.jpeg');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

/* Signature element: animated pace lines */
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pace-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: paceLine 3.5s ease-in-out infinite;
  opacity: 0;
}

.pace-line:nth-child(1) { top: 25%; width: 60%; animation-delay: 0s; }
.pace-line:nth-child(2) { top: 50%; width: 80%; animation-delay: 0.6s; }
.pace-line:nth-child(3) { top: 75%; width: 45%; animation-delay: 1.2s; }

@keyframes paceLine {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { left: 110%; opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero__kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__kicker::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue);
}

.hero__title {
  color: var(--white);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero__title em {
  color: var(--blue);
  font-style: normal;
  display: block;
}

.hero__sub {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.hero__stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(91,163,217,0.2);
  padding: 2rem 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat__number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--blue);
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91,163,217,0.35);
}

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

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

.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

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

/* ── Sessions ── */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.session-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.session-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
}

.session-card__day {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--black);
  line-height: 1;
}

.session-card__time {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  margin: 0.25rem 0 1rem;
}

.session-card__info {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.6;
}

.session-card__icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  opacity: 0.15;
}

/* ── About strip ── */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}

.about-strip__text {
  background: var(--black);
  color: var(--white);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-strip__text h2 { color: var(--white); margin-bottom: 1.25rem; }
.about-strip__text p { color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 1.5rem; }

.about-strip__image {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-strip__image img {
  width: 60%;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem 1.5rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow); }

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-card__text {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ── Events preview ── */
.events-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.event-row:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.event-date {
  text-align: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  padding: 0.5rem;
}

.event-date__day {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}

.event-date__month {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-info__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.event-info__meta {
  font-size: 0.85rem;
  color: var(--grey);
}

.event-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  background: var(--blue-lt);
  color: var(--blue-dk);
  white-space: nowrap;
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--blue);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ── Footer ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 3rem 1.5rem 2rem;
}

.footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand img {
  width: 48px;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer__heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--blue); }

.footer__bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom a { color: var(--blue); }

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--black);
  padding: 6rem 1.5rem 3rem;
  text-align: center;
}

.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.6); margin-top: 0.75rem; font-size: 1.1rem; }

/* ── Section headers ── */
.section-header {
  margin-bottom: 1rem;
}

.section-header--center { text-align: center; }

/* ── Utilities ── */
.text-blue { color: var(--blue); }
.text-white { color: var(--white); }
.text-grey { color: var(--grey); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--blue);
    gap: 0.25rem;
  }

  .nav__links.open { display: flex; }
  .nav__links a { padding: 0.75rem 1rem; }
  .nav__hamburger { display: flex; }

  .hero__stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip__text { padding: 2.5rem 1.5rem; }
  .about-strip__image { min-height: 250px; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .event-row { grid-template-columns: 64px 1fr; }
  .event-row .event-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pace-line { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════════════════════
   MOBILE ENHANCEMENTS — public pages (phone-first audience)
   ════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Thumb-friendly buttons */
  .btn { min-height: 44px; padding: 0.85rem 1.5rem; }

  /* Hero scales down cleanly */
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero__actions { flex-direction: column; gap: 0.75rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Feature/membership/grid layouts stack */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Section padding tightened */
  .section { padding: 2.5rem 0; }
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* CTA banner buttons stack full width */
  .cta-banner .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 1.85rem; }
  .section { padding: 2rem 0; }
}
