/* =====================================================
   IceRiverClub.com — Design System
   Color Palette: Arctic Blue, Ice White, Deep Navy, Frost
   ===================================================== */

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

:root {
  /* Primary palette */
  --ice-100: #e8f4fd;
  --ice-200: #c9e8f9;
  --ice-300: #93d0f2;
  --ice-400: #4fb8e8;
  --ice-500: #1a9dd6;
  --ice-600: #1280b5;
  --ice-700: #0e6594;

  /* Deep Navy */
  --navy-900: #050d1a;
  --navy-800: #091629;
  --navy-700: #0d2240;
  --navy-600: #133057;
  --navy-500: #1a4070;

  /* Arctic Frost */
  --frost-100: #f0f8ff;
  --frost-200: #ddf0fc;
  --frost-300: #b8e2f7;
  --frost-400: #7dcaee;

  /* Accent — Glacier Teal */
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Typography */
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.3);
  --shadow-ice: 0 0 30px rgba(79, 184, 232, 0.25);
  --shadow-teal: 0 0 30px rgba(45, 212, 191, 0.3);

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { line-height: 1.7; color: var(--frost-300); }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ice-500), var(--ice-400));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 157, 214, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 157, 214, 0.55);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--ice-400);
  color: var(--ice-400);
}
.btn-secondary:hover {
  background: rgba(79, 184, 232, 0.1);
  transform: translateY(-2px);
}
.btn-teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.4);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.55);
}
.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-icon { padding: 12px; border-radius: var(--radius-md); }

/* ---- Cards ---- */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition);
}
.card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(79, 184, 232, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-ice);
}
.card-glass {
  background: rgba(13, 34, 64, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(79, 184, 232, 0.15);
  border-radius: var(--radius-lg);
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-ice {
  background: rgba(79, 184, 232, 0.15);
  color: var(--ice-400);
  border: 1px solid rgba(79, 184, 232, 0.3);
}
.badge-teal {
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal-400);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

/* ---- Section Title ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
}
.section-title {
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--white) 0%, var(--frost-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  font-size: 1.05rem;
  max-width: 600px;
  color: var(--gray-400);
  margin-bottom: var(--space-12);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(79, 184, 232, 0.12);
  padding: var(--space-3) 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--ice-500), var(--teal-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}
.nav-logo-text span { color: var(--ice-400); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--ice-400);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(5, 13, 26, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-200);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--ice-400); }
.mobile-nav-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: 1.5rem;
  color: var(--gray-300);
  cursor: pointer;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer-brand p {
  margin: var(--space-4) 0 var(--space-6);
  font-size: 0.9rem;
  color: var(--gray-500);
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--ice-400); }
.footer-disclaimer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.footer-disclaimer p {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer a {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-disclaimer a:hover { color: var(--gray-300); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
  color: var(--gray-600);
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}
.footer-bottom-links a { color: var(--gray-600); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--gray-400); }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.5px;
}

/* ---- Age Gate Modal ---- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 13, 26, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.age-gate.hidden { display: none; }
.age-gate-card {
  max-width: 480px;
  width: 100%;
  background: var(--navy-700);
  border: 1px solid rgba(79, 184, 232, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
}
.age-gate-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(26,157,214,0.2), rgba(45,212,191,0.2));
  border: 1px solid rgba(79, 184, 232, 0.3);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 2rem;
}
.age-gate h2 { margin-bottom: var(--space-3); font-size: 1.8rem; }
.age-gate p { margin-bottom: var(--space-6); font-size: 0.95rem; }
.age-gate-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: left;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.age-gate-check label {
  font-size: 0.88rem;
  color: var(--gray-300);
  cursor: pointer;
  line-height: 1.5;
}
.age-gate-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--ice-500);
  cursor: pointer;
}
.age-gate-actions { display: flex; gap: var(--space-3); }
.age-gate-actions .btn { flex: 1; justify-content: center; }
#age-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Cookie Consent ---- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  z-index: 1000;
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy-600);
  border: 1px solid rgba(79, 184, 232, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; font-size: 0.85rem; color: var(--gray-300); }
.cookie-text a { color: var(--ice-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }

/* ---- Gradient text ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--ice-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-ice { color: var(--ice-400); }
.text-teal { color: var(--teal-400); }
.text-muted { color: var(--gray-500); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,184,232,0.3), transparent);
  margin: var(--space-12) 0;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 120px 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(26,157,214,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero p {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  color: var(--gray-400);
}

/* ---- Content page ---- */
.content-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-20);
}
.content-section h2 {
  font-size: 1.5rem;
  margin: var(--space-10) 0 var(--space-4);
  color: var(--white);
}
.content-section h3 {
  font-size: 1.15rem;
  margin: var(--space-6) 0 var(--space-3);
  color: var(--ice-300);
}
.content-section p {
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
  color: var(--gray-400);
}
.content-section ul, .content-section ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.content-section li {
  margin-bottom: var(--space-2);
  color: var(--gray-400);
  font-size: 0.95rem;
  list-style: disc;
}
.content-section ol li { list-style: decimal; }

/* ---- Glow effects ---- */
.glow-ice {
  box-shadow: 0 0 40px rgba(26, 157, 214, 0.2);
}
.glow-teal {
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.2);
}

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ---- Flex helpers ---- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ---- Frost animated background ---- */
.frost-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.frost-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.frost-orb-1 {
  width: 500px; height: 500px;
  background: var(--ice-500);
  top: -100px; right: -100px;
  animation: floatOrb 12s ease-in-out infinite;
}
.frost-orb-2 {
  width: 400px; height: 400px;
  background: var(--teal-500);
  bottom: -80px; left: -80px;
  animation: floatOrb 16s ease-in-out infinite reverse;
}
.frost-orb-3 {
  width: 300px; height: 300px;
  background: var(--ice-400);
  top: 40%; left: 40%;
  animation: floatOrb 20s ease-in-out infinite 4s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn:not(.btn-sm) { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-actions { width: 100%; justify-content: center; }
  .age-gate-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  h1 { font-size: 2rem; }
  .age-gate-card { padding: var(--space-8); }
}
