/* =========================================================
   SAWKINS ELITE SKATING ACADEMY — Global Styles
   ========================================================= */

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

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0D1B3E;
  --baby-blue:  #5BAADC;
  --light-blue: #A8D4F0;
  --ice:        #EAF6FF;
  --white:      #FFFFFF;
  --dark:       #060D1F;
  --muted:      #4A6080;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --shadow-glow: 0 16px 40px rgba(91, 170, 220, 0.20);
  --shadow-soft: 0 4px 24px rgba(13, 27, 62, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--baby-blue);
  margin-bottom: 14px;
}

.divider {
  width: 64px;
  height: 3px;
  background: var(--baby-blue);
  border-radius: 2px;
  margin: 0 auto 28px;
}
.divider.left { margin-left: 0; }

/* ─── NOISE / GRAIN OVERLAY ─────────────────────────────── */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
  min-height: 48px;
  line-height: 1.2;
  text-align: center;
}
.btn-primary {
  background: var(--baby-blue);
  color: var(--dark);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(91, 170, 220, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  transform: translateY(-2px) scale(1.02);
}

/* ─── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 13, 31, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(6, 13, 31, 0.92);
  padding: 12px 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 48px;
  width: auto;
  transition: height 0.3s ease;
}
.nav.scrolled .nav-logo img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--baby-blue);
}
.nav-cta {
  background: var(--baby-blue);
  color: var(--dark);
  padding: 10px 22px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.nav-right-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-burger { display: flex; }
  .nav-right-desktop { display: none; }
  .nav-drawer {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(6, 13, 31, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px 28px 36px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    border-bottom: 1px solid rgba(91, 170, 220, 0.15);
  }
  .nav-drawer.open { transform: translateY(0); }
  .nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .nav-drawer a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    display: block;
    padding: 6px 0;
  }
  .nav-drawer .nav-cta {
    margin-top: 14px;
    display: inline-block;
  }
}
@media (min-width: 921px) {
  .nav-drawer { display: none; }
}

/* ─── HERO (shared base) ────────────────────────────────── */
.page-hero {
  position: relative;
  padding: 180px 24px 96px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(91, 170, 220, 0.15) 0%, transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--navy) 60%, #142a5a 100%);
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: 18px;
}
.page-hero h1 .accent { color: var(--baby-blue); }
.page-hero p.lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(168, 212, 240, 0.85);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── SECTIONS / LAYOUT ─────────────────────────────────── */
section { padding: 96px 24px; position: relative; }
.container { max-width: 1140px; margin: 0 auto; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--white);
}
.section-title h2 .accent { color: var(--baby-blue); }
.section-title p {
  color: rgba(168, 212, 240, 0.78);
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 1rem;
  line-height: 1.85;
}

.section-dark   { background: var(--dark); }
.section-navy   { background: var(--navy); }
.section-ice    { background: var(--ice); color: var(--dark); }
.section-ice h2, .section-ice h3, .section-ice .section-title h2 { color: var(--navy); }
.section-ice .section-title p { color: var(--muted); }
.section-ice .eyebrow { color: var(--baby-blue); }

/* Diagonal section dividers */
.diag-top    { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
.diag-bottom { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(91, 170, 220, 0.12);
  border-radius: 10px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(91, 170, 220, 0.4);
}
.card-light {
  background: var(--white);
  border: 1px solid rgba(13, 27, 62, 0.08);
  color: var(--dark);
}
.card-light:hover {
  box-shadow: 0 16px 40px rgba(13, 27, 62, 0.15);
  border-color: var(--baby-blue);
}

/* ─── STATS BAR ─────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 56px 24px;
  border-top: 1px solid rgba(91, 170, 220, 0.12);
  border-bottom: 1px solid rgba(91, 170, 220, 0.12);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  color: var(--baby-blue);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 10px;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(91, 170, 220, 0.12);
  padding: 64px 24px 28px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand img { height: 60px; margin-bottom: 18px; }
.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(168, 212, 240, 0.7);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--baby-blue); }
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(91, 170, 220, 0.25);
  color: rgba(168, 212, 240, 0.85);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-socials a:hover {
  background: var(--baby-blue);
  color: var(--dark);
  border-color: var(--baby-blue);
}
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(91, 170, 220, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── PAGE FADE-IN / REVEAL ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up    { animation: fadeUp 0.9s ease both; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
.fade-up.d5 { animation-delay: 0.7s; }

/* IntersectionObserver-controlled reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ICE PARTICLES (CSS only) ──────────────────────────── */
.ice-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ice-particles span {
  position: absolute;
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(168, 212, 240, 0.55);
  box-shadow: 0 0 6px rgba(91, 170, 220, 0.6);
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0);   opacity: 0; }
  10%  { opacity: 0.8; }
  100% { transform: translateY(-120vh) translateX(20px); opacity: 0; }
}

/* ─── SCROLL PROGRESS BAR ───────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--baby-blue), var(--light-blue));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
  box-shadow: 0 0 12px rgba(91, 170, 220, 0.6);
}

/* ─── SVG ICON SYSTEM ───────────────────────────────────── */
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 170, 220, 0.1);
  border: 1px solid rgba(91, 170, 220, 0.28);
  color: var(--baby-blue);
  margin-bottom: 18px;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.icon-badge svg { width: 26px; height: 26px; }
.card:hover .icon-badge,
.who-card:hover .icon-badge,
.gain-card:hover .icon-badge,
.cred-card:hover .icon-badge {
  background: var(--baby-blue);
  color: var(--dark);
  border-color: var(--baby-blue);
}
.icon-badge.round { border-radius: 50%; }
.section-ice .icon-badge { background: rgba(91, 170, 220, 0.12); }

.icon-inline {
  width: 18px; height: 18px;
  vertical-align: -3px;
  color: var(--baby-blue);
}

/* ─── CAROUSEL ──────────────────────────────────────────── */
.carousel {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
  padding: 8px 4px 12px;
}
.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-track > * { flex: 0 0 100%; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}
.carousel-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(91, 170, 220, 0.4);
  background: rgba(91, 170, 220, 0.06);
  color: var(--baby-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.carousel-arrow:hover {
  background: var(--baby-blue);
  color: var(--dark);
  transform: scale(1.06);
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}
.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(91, 170, 220, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease, transform 0.25s ease;
}
.carousel-dot.active {
  background: var(--baby-blue);
  width: 26px;
  border-radius: 6px;
}
.section-ice .carousel-dot { background: rgba(13, 27, 62, 0.2); }
.section-ice .carousel-dot.active { background: var(--baby-blue); }

/* ─── TABS ──────────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.tab-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 40px;
  border: 1px solid rgba(91, 170, 220, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.tab-btn svg { width: 17px; height: 17px; }
.tab-btn:hover { color: var(--white); border-color: var(--baby-blue); }
.tab-btn.active {
  background: var(--baby-blue);
  color: var(--dark);
  border-color: var(--baby-blue);
}
.section-ice .tab-btn { color: var(--muted); border-color: rgba(13,27,62,0.18); }
.section-ice .tab-btn:hover { color: var(--navy); border-color: var(--baby-blue); }
.section-ice .tab-btn.active { color: var(--dark); }

.tab-panels { position: relative; }
.tab-panel {
  display: none;
  animation: tabIn 0.5s ease both;
}
.tab-panel.active { display: block; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── UTILITY ───────────────────────────────────────────── */
.text-accent { color: var(--baby-blue); }
.text-light  { color: var(--light-blue); }
.text-muted  { color: var(--muted); }
.center      { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }

/* ─── RESPONSIVE TWEAKS ─────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 72px 20px; }
  .page-hero { padding: 140px 20px 72px; }
  .btn { padding: 14px 28px; font-size: 0.78rem; }
}
