/* ========================================
   RockyMaplePlay — Core Design System
   Theme: Canadian wilderness, maple & rock
   Palette: Deep forest green, maple red,
            warm amber, stone grey, cream
======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;500;600&family=Oswald:wght@500;600&display=swap');

/* ── TOKENS ── */
:root {
  /* Primary */
  --clr-maple:       #C0392B;
  --clr-maple-light: #E74C3C;
  --clr-maple-dark:  #922B21;

  /* Forest green */
  --clr-forest:      #1E4A2D;
  --clr-forest-mid:  #27643C;
  --clr-forest-light:#2E7D4F;

  /* Amber / Gold */
  --clr-amber:       #D4891A;
  --clr-amber-light: #F0A500;
  --clr-amber-pale:  #FDE8B5;

  /* Stone / Neutral */
  --clr-stone-900:   #1A1A18;
  --clr-stone-800:   #2C2C28;
  --clr-stone-700:   #3D3D38;
  --clr-stone-600:   #5A5A54;
  --clr-stone-400:   #8A8A82;
  --clr-stone-200:   #C8C8BF;
  --clr-stone-100:   #EDEEE8;
  --clr-stone-50:    #F7F7F3;

  /* Semantic */
  --clr-success:     #2E8B57;
  --clr-warning:     #D4891A;
  --clr-error:       #C0392B;
  --clr-info:        #2166A8;

  /* Backgrounds */
  --bg-dark:         #111210;
  --bg-card:         #1C1E1A;
  --bg-surface:      #232520;

  /* Text */
  --text-primary:    #F0F0EC;
  --text-secondary:  #B0B0A8;
  --text-muted:      #6E6E66;
  --text-on-maple:   #FFFFFF;
  --text-on-amber:   #1A1A18;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-accent:  'Oswald', 'Arial Narrow', sans-serif;

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

  /* Radius */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 32px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.35);
  --shadow-md:  0 6px 24px rgba(0,0,0,.45);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.55);
  --shadow-maple: 0 8px 32px rgba(192,57,43,.35);
  --shadow-amber: 0 8px 32px rgba(212,137,26,.30);

  /* Transitions */
  --tr-fast:   150ms ease;
  --tr-base:   250ms ease;
  --tr-slow:   400ms ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul { list-style: none; }
input, textarea, select { font-family: var(--font-body); }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h4, h5, h6 { font-family: var(--font-accent); line-height: 1.3; letter-spacing: .04em; }

.display-xl { font-size: clamp(2.8rem, 6vw, 5.5rem); font-family: var(--font-display); font-weight: 700; }
.display-lg { font-size: clamp(2rem, 4vw, 3.5rem); font-family: var(--font-display); font-weight: 700; }
.display-md { font-size: clamp(1.5rem, 3vw, 2.5rem); font-family: var(--font-display); font-weight: 500; }
.headline    { font-size: clamp(1.2rem, 2vw, 1.8rem); font-family: var(--font-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.body-lg     { font-size: 1.125rem; line-height: 1.7; }
.body-sm     { font-size: 0.875rem; line-height: 1.6; }
.caption     { font-size: 0.75rem; letter-spacing: .05em; color: var(--text-muted); }

/* ── COLORS ── */
.text-maple  { color: var(--clr-maple-light); }
.text-amber  { color: var(--clr-amber-light); }
.text-forest { color: var(--clr-forest-light); }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-2) var(--sp-5);
  background: transparent;
  transition: background var(--tr-base), backdrop-filter var(--tr-base), box-shadow var(--tr-base);
}
.nav.scrolled {
  background: rgba(17,18,16,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary);
}
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--clr-maple);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.nav-logo span.accent { color: var(--clr-maple-light); }
.nav-links {
  display: flex; align-items: center; gap: var(--sp-4);
}
.nav-links a {
  font-size: .875rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--tr-fast);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--clr-maple-light);
  transform: scaleX(0); transition: transform var(--tr-base);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--clr-maple);
  color: #fff; padding: 10px 22px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: .875rem;
  transition: background var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
}
.nav-cta:hover {
  background: var(--clr-maple-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-maple);
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--text-primary);
  transition: transform var(--tr-base), opacity var(--tr-base);
}
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 850;
  background: rgba(17,18,16,.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-4);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display); font-size: 1.8rem;
  color: var(--text-secondary);
  transition: color var(--tr-fast);
}
.nav-mobile a:hover { color: var(--clr-maple-light); }
.nav-mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 1.5rem; color: var(--text-secondary); cursor: pointer;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--clr-maple); color: #fff;
  box-shadow: var(--shadow-maple);
}
.btn-primary:hover { background: var(--clr-maple-light); box-shadow: 0 12px 36px rgba(192,57,43,.5); }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 2px solid rgba(255,255,255,.2);
}
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-amber {
  background: var(--clr-amber); color: var(--text-on-amber);
  box-shadow: var(--shadow-amber);
}
.btn-amber:hover { background: var(--clr-amber-light); }
.btn-forest {
  background: var(--clr-forest-mid); color: #fff;
}
.btn-forest:hover { background: var(--clr-forest-light); }
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192,57,43,.25);
}
.card-surface {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-md);
}

/* ── SECTION LAYOUT ── */
.section { padding: var(--sp-12) 0; }
.section-lg { padding: 120px 0; }
.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-sm { max-width: 800px; }
.container-lg { max-width: 1440px; }

.section-label {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--font-accent); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--clr-maple-light);
  margin-bottom: var(--sp-2);
}
.section-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--clr-maple-light);
}

/* ── DIVIDERS & ORNAMENTS ── */
.divider {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  margin: var(--sp-6) 0;
}

/* ── BADGE ── */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 100px; font-size: .75rem; font-weight: 600;
  font-family: var(--font-accent); letter-spacing: .06em; text-transform: uppercase;
}
.badge-maple { background: rgba(192,57,43,.2); color: var(--clr-maple-light); border: 1px solid rgba(192,57,43,.3); }
.badge-amber { background: rgba(212,137,26,.2); color: var(--clr-amber-light); border: 1px solid rgba(212,137,26,.3); }
.badge-forest { background: rgba(30,74,45,.4); color: #5DBF85; border: 1px solid rgba(46,125,79,.3); }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.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(--sp-2); }
.gap-3 { gap: var(--sp-3); }

/* ── FOOTER ── */
.footer {
  background: var(--clr-stone-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: var(--sp-10) 0 var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.footer-brand p {
  color: var(--text-muted); font-size: .875rem; line-height: 1.7;
  margin-top: var(--sp-2);
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-accent); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .875rem; color: var(--text-muted);
  transition: color var(--tr-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-contact {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: var(--sp-2) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-bottom: var(--sp-3);
}
.footer-contact-item { font-size: .85rem; color: var(--text-muted); }
.footer-contact-item a { color: var(--text-secondary); transition: color var(--tr-fast); }
.footer-contact-item a:hover { color: var(--text-primary); }
.footer-contact-sep { color: var(--text-muted); }

.footer-disclaimer {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.footer-disclaimer p {
  font-size: .78rem; line-height: 1.65;
  color: var(--text-muted);
}
.footer-disclaimer a {
  color: var(--clr-amber-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-disclaimer a:hover { color: var(--clr-amber); }
.footer-disclaimer strong { color: var(--text-secondary); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }
.footer-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--text-muted);
  font-family: var(--font-accent); font-size: .75rem; font-weight: 600;
  color: var(--text-muted);
}

/* ── AGE GATE MODAL ── */
.age-gate-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(11,12,10,.97);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-3);
  backdrop-filter: blur(8px);
}
.age-gate-overlay.hidden { display: none; }
.age-gate-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.age-gate-leaf {
  font-size: 3.5rem; margin-bottom: var(--sp-2);
  animation: sway 3s ease-in-out infinite;
}
@keyframes sway {
  0%,100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}
.age-gate-box h2 {
  font-size: 1.8rem; margin-bottom: var(--sp-1);
}
.age-gate-box p {
  font-size: .9rem; color: var(--text-secondary);
  margin-bottom: var(--sp-3); line-height: 1.65;
}
.age-gate-checkbox {
  display: flex; align-items: flex-start; gap: var(--sp-1);
  margin-bottom: var(--sp-3);
  text-align: left;
}
.age-gate-checkbox input[type="checkbox"] {
  width: 20px; height: 20px; min-width: 20px;
  accent-color: var(--clr-maple); cursor: pointer;
  margin-top: 2px;
}
.age-gate-checkbox label {
  font-size: .85rem; color: var(--text-secondary);
  cursor: pointer; line-height: 1.5;
}
.age-gate-confirm {
  width: 100%; padding: 14px;
  background: var(--clr-maple); color: #fff;
  border-radius: var(--r-sm); font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background var(--tr-fast), opacity var(--tr-fast), transform var(--tr-fast);
}
.age-gate-confirm:disabled {
  opacity: .4; cursor: not-allowed; transform: none !important;
}
.age-gate-confirm:not(:disabled):hover {
  background: var(--clr-maple-light);
  transform: translateY(-2px);
}
.age-gate-note {
  font-size: .75rem; color: var(--text-muted);
  margin-top: var(--sp-2); line-height: 1.5;
}

/* ── COOKIE CONSENT ── */
.cookie-banner {
  position: fixed; bottom: var(--sp-3); left: 50%; transform: translateX(-50%);
  z-index: 800;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  max-width: 640px; width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--sp-3);
  animation: slideUpCookie .4s ease;
}
.cookie-banner.hidden { display: none; }
@keyframes slideUpCookie {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner p {
  font-size: .82rem; color: var(--text-secondary); line-height: 1.5;
  flex: 1;
}
.cookie-banner a { color: var(--clr-amber-light); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: var(--sp-1); }
.cookie-accept {
  background: var(--clr-maple); color: #fff;
  padding: 8px 18px; border-radius: var(--r-sm);
  font-size: .8rem; font-weight: 600;
  transition: background var(--tr-fast);
  white-space: nowrap;
}
.cookie-accept:hover { background: var(--clr-maple-light); }
.cookie-decline {
  background: rgba(255,255,255,.06); color: var(--text-muted);
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: .8rem; font-weight: 500;
  transition: background var(--tr-fast);
  white-space: nowrap;
}
.cookie-decline:hover { background: rgba(255,255,255,.1); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 0 var(--sp-10);
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,74,45,.4) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,57,43,.3), transparent);
}
.page-hero .breadcrumb {
  font-size: .8rem; color: var(--text-muted); margin-bottom: var(--sp-2);
}
.page-hero .breadcrumb a { color: var(--clr-maple-light); }
.page-hero h1 { margin-bottom: var(--sp-2); }
.page-hero p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ── PROSE ── */
.prose h2 { font-size: 1.5rem; margin: var(--sp-6) 0 var(--sp-2); color: var(--text-primary); }
.prose h3 { font-size: 1.2rem; margin: var(--sp-4) 0 var(--sp-1); color: var(--text-secondary); font-family: var(--font-accent); }
.prose p  { color: var(--text-secondary); margin-bottom: var(--sp-2); line-height: 1.75; }
.prose ul { padding-left: var(--sp-3); margin-bottom: var(--sp-2); }
.prose ul li { color: var(--text-secondary); margin-bottom: 8px; list-style: disc; }
.prose strong { color: var(--text-primary); }
.prose a { color: var(--clr-amber-light); text-decoration: underline; text-underline-offset: 3px; }

/* ── TABS ── */
.tabs { display: flex; gap: 2px; background: var(--bg-card); border-radius: var(--r-sm); padding: 4px; }
.tab-btn {
  flex: 1; padding: 10px 16px; border-radius: 6px;
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--tr-base);
}
.tab-btn.active {
  background: var(--clr-maple); color: #fff;
}
.tab-btn:hover:not(.active) { color: var(--text-primary); }

/* ── STAT CHIPS ── */
.stat-chip {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md);
}
.stat-chip .stat-value {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--clr-amber-light);
}
.stat-chip .stat-label {
  font-size: .75rem; color: var(--text-muted); letter-spacing: .05em;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--clr-stone-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-stone-600); }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
  .cookie-banner { flex-direction: column; }
  .container { padding: 0 var(--sp-2); }
  .section { padding: var(--sp-8) 0; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .age-gate-box { padding: var(--sp-5) var(--sp-3); }
  .display-xl { font-size: 2.4rem; }
}

/* ── UTILITIES ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
