/* =============================================
   NIAGARA GENTS HOCKEY — DESIGN SYSTEM CSS
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  --navy:        #16324F;
  --ice-blue:    #DCEEF8;
  --white-rink:  #F8FBFD;
  --gray-steel:  #5C6B73;
  --gold:        #C89B3C;
  --gold-dark:   #B5892E;
  --slate:       #3E5F7D;
  --sand:        #E8DFD0;
  --white:       #FFFFFF;

  --font-serif:  'Lora', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    32px;
  --space-lg:    64px;
  --space-xl:    96px;

  --max-width:        1100px;
  --max-width-narrow: 720px;

  --radius:      8px;
  --radius-sm:   4px;

  --shadow-sm:   0 2px 16px rgba(22, 50, 79, 0.08);
  --shadow-md:   0 6px 24px rgba(22, 50, 79, 0.14);

  --nav-height:  64px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-steel);
  background: var(--white-rink);
  -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 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; }
h4, h5, h6 { font-family: var(--font-sans); color: var(--navy); line-height: 1.3; }

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-steel);
  margin-bottom: 0.6rem;
}

.eyebrow-light { color: var(--ice-blue); }

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* --- Layout Containers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* --- Sections --- */
.section {
  padding: var(--space-lg) 0;
}

.section-white  { background: var(--white); }
.section-rink   { background: var(--white-rink); }
.section-ice    { background: var(--ice-blue); }
.section-navy   { background: var(--navy); }
.section-gold   { background: var(--gold); }

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

/* --- Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 1.2rem auto 2rem;
  border-radius: 2px;
}
.divider-left { margin-left: 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

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

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

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

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* =============================================
   NAVIGATION
   ============================================= */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--white);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: box-shadow 0.3s ease;
  overflow: visible;
}

nav.scrolled {
  box-shadow: 0 2px 16px rgba(22, 50, 79, 0.12);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo {
  flex-shrink: 0;
}
.nav-logo strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.nav-logo span {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-steel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: block;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-steel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.78rem;
}

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

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 50, 79, 0.70);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-content .hero-sub {
  color: var(--ice-blue);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* =============================================
   CARDS
   ============================================= */

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-accent {
  border-top: 4px solid var(--navy);
}

.card-tag {
  display: inline-block;
  background: var(--ice-blue);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}

/* --- Division Cards grid --- */
.division-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* --- Step Cards grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--navy);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

/* =============================================
   TESTIMONIALS
   ============================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.testimonial-card {
  background: var(--slate);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 28px 28px 32px;
}

.testimonial-card blockquote {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ice-blue);
}

/* =============================================
   CTA BAND
   ============================================= */

.cta-band {
  background: var(--gold);
  padding: var(--space-lg) 0;
  text-align: center;
}

.cta-band h2 { color: var(--navy); margin-bottom: 0.8rem; }
.cta-band p { color: var(--navy); margin-bottom: 1.6rem; opacity: 0.85; max-width: 520px; margin-left: auto; margin-right: auto; }

/* =============================================
   FAQ
   ============================================= */

.faq-list { margin-top: var(--space-md); }

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--sand);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { color: var(--navy); margin-bottom: 0.5rem; }
.faq-item p { margin: 0; font-size: 0.97rem; }

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--navy);
  padding: var(--space-lg) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.footer-brand p {
  color: var(--ice-blue);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.footer-brand .tagline {
  color: var(--gray-steel);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-blue);
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 0.8rem;
  color: var(--gray-steel);
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */

.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  text-align: center;
}

.page-hero .eyebrow { color: var(--ice-blue); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p {
  color: var(--ice-blue);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   SCROLL FADE-UP ANIMATION
   ============================================= */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   UTILITY
   ============================================= */

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .division-grid,
  .steps-grid,
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  :root { --nav-height: 56px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    color: var(--white);
    font-size: 1.1rem;
  }
  .nav-links a::after { background: var(--gold); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; z-index: 1001; }

  .hero { min-height: 400px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }

  .division-grid,
  .steps-grid,
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 var(--space-sm); }
  .section { padding: var(--space-md) 0; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}
