/* =============================================
   HOCKEY CENTRAL — STYLE.CSS
   Responsive · Parallax · Netlify-ready
   Flyers palette: Orange #F74902, Black #000, White #FFF, Navy #002F6C
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:    #F74902;
  --orange-dk: #C93B00;
  --navy:      #002F6C;
  --navy-lt:   #0A3D8F;
  --black:     #0D0D0D;
  --dark:      #111827;
  --mid:       #1F2937;
  --light:     #F9FAFB;
  --white:     #FFFFFF;
  --text:      #E5E7EB;
  --text-muted:#9CA3AF;
  --gold:      #F5A623;

  --font-head: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --max-w: 1200px;
  --section-pad: 100px 24px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ===== UTILITY ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-eyebrow {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
  margin-top: 12px;
}
.btn-primary:hover { background: var(--orange-dk); color: var(--white); transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-head);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 28px;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
  margin-top: 12px;
}
.btn-secondary:hover { background: var(--orange); color: var(--white); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,13,13,0);
  backdrop-filter: blur(0px);
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
  padding: 0 24px;
}
#navbar.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  user-select: none;
}
.logo-flyers { color: var(--white); }
.logo-hc { color: var(--orange); }
.logo-central { color: var(--white); margin-left: 4px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.parallax-break--celebrity {
  height: 700px;
  align-items: flex-start; /* push quote toward top so jerseys show below */
  padding-top: 60px;
}
.parallax-break--celebrity .parallax-bg {
  background-position: center 35%; /* faces in upper half, jerseys in lower half */
  inset: -35%; /* generous room for parallax travel */
  background-size: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.82) 0%,
    rgba(0,47,108,0.55) 50%,
    rgba(247,73,2,0.18) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 24px;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s .2s forwards;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .9s .4s forwards;
}
.hero-title .accent { color: var(--orange); }
.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s .6s forwards;
}
.hero-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 20px auto 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s .8s forwards;
}
.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s 1s forwards;
}
.hero-mission {
  margin-top: 24px;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s 1.2s forwards;
}
.hero-mission strong {
  color: var(--orange);
  font-style: normal;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

/* ===== STAT BAR ===== */
.stat-bar {
  background: var(--orange);
  padding: 0;
}
.stat-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.3);
  align-self: stretch;
  margin: 16px 0;
}

/* ===== STORY SECTION ===== */
.section-story {
  padding: var(--section-pad);
  background: var(--dark);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}
.story-text p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.05rem;
}
.story-image-wrap {
  position: sticky;
  top: 100px;
}
.story-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid rgba(247,73,2,0.3);
}
.story-img-caption {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ===== PARALLAX BREAK ===== */
.parallax-break {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}
.parallax-break--dark .parallax-break-overlay {
  background: rgba(0,0,0,0.72);
}
.parallax-break-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 32px;
}
.parallax-break-content blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  font-style: italic;
  border: none;
  padding: 0;
}
.parallax-break-content cite {
  display: block;
  margin-top: 16px;
  font-size: .9rem;
  color: var(--orange);
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.parallax-break-content cite.cite-secondary {
  margin-top: 10px;
  font-size: .78rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: .04em;
  text-transform: none;
  font-style: italic;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== PROGRAMS ===== */
.section-programs {
  padding: var(--section-pad);
  background: var(--mid);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.program-card {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(255,255,255,0.06);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.program-img-wrap {
  height: 220px;
  overflow: hidden;
}
.program-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.program-card:hover .program-img-wrap img { transform: scale(1.05); }
.pepsi-card-img { background: #fff; display: flex; align-items: center; justify-content: center; }
.pepsi-card-img img { object-fit: contain; padding: 20px; }
.program-body { padding: 24px; }
.program-year {
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.program-body h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.program-body p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== TIMELINE ===== */
.section-timeline {
  padding: var(--section-pad);
  background: var(--dark);
}
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--navy-lt), var(--orange));
}
.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 56px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .6s, transform .6s;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }

.timeline-marker {
  flex-shrink: 0;
  width: 144px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 20px;
  position: relative;
}
.timeline-marker::after {
  content: '';
  position: absolute;
  right: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
  border: 3px solid var(--dark);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-year {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.timeline-content {
  flex: 1;
  padding-bottom: 8px;
}
.timeline-tag {
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.timeline-content h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.timeline-content p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.timeline-highlight {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(247,73,2,0.12);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: var(--text);
  font-style: italic;
}
.timeline-quote {
  margin-top: 16px;
  padding: 16px 20px;
  background: rgba(0,47,108,0.3);
  border-left: 3px solid var(--navy-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
  color: var(--text);
  font-style: italic;
}
.timeline-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .06em;
}
.timeline-item--featured .timeline-marker::after {
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(245,166,35,0.5);
}

/* ===== LEGACY ===== */
.section-legacy {
  padding: var(--section-pad);
  background: var(--mid);
}
.legacy-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
.legacy-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--text);
}
.legacy-closer { font-size: 1.1rem !important; }
.legacy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.legacy-stat-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(247,73,2,0.2);
  transition: border-color .2s, transform .2s;
}
.legacy-stat-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.legacy-stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.legacy-stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.4;
}

/* ===== VIDEOS ===== */
.section-videos {
  padding: var(--section-pad);
  background: var(--dark);
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.video-card {
  background: var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .25s;
}
.video-card:hover { transform: translateY(-4px); }
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-drive-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.video-drive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-drive-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-drive-overlay svg {
  width: 56px;
  height: 56px;
  color: var(--white);
  opacity: .85;
}
.video-body { padding: 20px 24px 24px; }
.video-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.video-body p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--black);
  padding: 60px 24px;
  text-align: center;
  border-top: 3px solid var(--orange);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-tagline {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--orange);
  margin: 0 auto 20px;
}
.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-image-wrap { position: static; max-width: 480px; margin: 0 auto; }
  .legacy-grid { grid-template-columns: 1fr; }
  .legacy-stats { max-width: 480px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 72px 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(13,13,13,0.97);
    padding: 20px 24px 28px;
    gap: 20px;
    border-bottom: 2px solid var(--orange);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(3rem, 12vw, 5rem); }

  .stat-bar-inner { flex-direction: column; }
  .stat-divider { width: 60px; height: 1px; margin: 0 auto; }

  .programs-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 16px; }
  .timeline-item { flex-direction: column; gap: 12px; padding-left: 44px; }
  .timeline-marker {
    width: auto;
    flex-direction: row;
    align-items: center;
    padding-right: 0;
    gap: 12px;
    position: absolute;
    left: 0;
    top: 0;
  }
  .timeline-marker::after { right: auto; left: -28px; top: 3px; }
  .timeline-year { font-size: 1.2rem; }

  .parallax-break { height: 300px; }
  .parallax-break--celebrity { height: 420px; }
  .parallax-break-content blockquote { font-size: 1.1rem; }

  .legacy-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.5rem, 14vw, 4rem); }
  .legacy-stats { grid-template-columns: 1fr; }
  .stat-item { padding: 20px 16px; }
}
