/* ============================================================
   CanadianWildTrail.com — Global Stylesheet
   Theme: Canadian Wilderness | Social Gaming Platform
   ============================================================ */

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

/* ---- Design Tokens ---- */
:root {
  --forest-darkest: #071810;
  --forest-dark: #0F2A1E;
  --forest-deep: #1B4332;
  --forest-mid:  #2D6A4F;
  --forest-light: #40916C;
  --moss:        #52B788;
  --mint:        #74C69D;
  --sage:        #95D5B2;

  --amber:       #C4920A;
  --amber-mid:   #D4A017;
  --amber-light: #F0C040;
  --amber-pale:  #FDE68A;

  --bark-dark:   #4A2C17;
  --bark:        #6B4226;
  --bark-light:  #8B5E3C;

  --snow:        #F8FAF8;
  --mist:        #EDF2EE;
  --mist-dark:   #D4DDD5;
  --neutral-300: #B0BAB2;
  --neutral-500: #6C7A6E;
  --neutral-700: #3A4A3C;
  --neutral-900: #1C2B1E;

  --success: #2E7D52;
  --warning: #B45309;
  --error:   #B91C1C;
  --info:    #1E6B8C;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(7,24,16,.12), 0 1px 2px rgba(7,24,16,.08);
  --shadow-md:  0 4px 12px rgba(7,24,16,.15), 0 2px 6px rgba(7,24,16,.10);
  --shadow-lg:  0 10px 30px rgba(7,24,16,.20), 0 4px 12px rgba(7,24,16,.12);
  --shadow-xl:  0 20px 60px rgba(7,24,16,.25), 0 8px 24px rgba(7,24,16,.15);

  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--neutral-700);
  background: var(--snow);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }
p  { line-height: 1.7; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest-mid);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--forest-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-amber {
  background: var(--amber-mid);
  color: var(--forest-darkest);
  box-shadow: var(--shadow-sm);
}
.btn-amber:hover {
  background: var(--amber-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  border: 2px solid var(--forest-mid);
  color: var(--forest-mid);
  background: transparent;
}
.btn-outline:hover {
  background: var(--forest-mid);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}
.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}
.btn-sm {
  padding: 8px 20px;
  font-size: .8rem;
}

/* ---- Header / Nav ---- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,24,16,.0);
  backdrop-filter: blur(0px);
  transition: background var(--transition-slow), box-shadow var(--transition-slow), backdrop-filter var(--transition-slow);
}
#site-header.scrolled {
  background: rgba(7,24,16,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--forest-mid);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: .65rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--sage);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--amber-mid);
  transition: width var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  color: var(--amber-light);
  font-size: .85rem;
  font-weight: 600;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Nav ---- */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(7,24,16,.98);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.nav-mobile a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-mobile-divider { height: 1px; background: rgba(255,255,255,.08); margin: 8px 0; }

/* ---- Footer ---- */
#site-footer {
  background: var(--forest-darkest);
  color: rgba(255,255,255,.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--amber-light); }
.footer-disclaimer {
  margin: 32px 0 0;
  padding: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}
.footer-disclaimer strong { color: rgba(255,255,255,.75); }
.footer-disclaimer a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer a:hover { color: var(--mint); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-badge {
  padding: 4px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-full);
  font-size: .72rem;
  color: rgba(255,255,255,.5);
}

/* ---- Age Gate Modal ---- */
.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7,24,16,.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity .4s ease;
}
.age-overlay.hidden { opacity: 0; pointer-events: none; }
.age-box {
  background: var(--forest-dark);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.age-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}
.age-box h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.age-box p {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.age-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.age-checkbox-row:hover { background: rgba(255,255,255,.08); border-color: var(--moss); }
.age-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--forest-light);
  margin-top: 2px;
  cursor: pointer;
}
.age-checkbox-row label {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  cursor: pointer;
}
.age-confirm-btn {
  width: 100%;
  padding: 14px;
  background: var(--forest-mid);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  opacity: .4;
  pointer-events: none;
}
.age-confirm-btn.active {
  opacity: 1;
  pointer-events: all;
}
.age-confirm-btn.active:hover {
  background: var(--forest-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.age-disclaimer {
  margin-top: 16px;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8888;
  width: calc(100% - 48px);
  max-width: 780px;
  background: var(--forest-dark);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-xl);
  transition: all .4s ease;
  flex-wrap: wrap;
}
.cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: .83rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.cookie-text a { color: var(--moss); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  padding: 10px 22px;
  background: var(--forest-mid);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.cookie-accept:hover { background: var(--forest-light); }
.cookie-decline {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.cookie-decline:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---- Section Commons ---- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 16px;
}
.section-label::before, .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--forest-light);
}
.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--neutral-500);
  max-width: 540px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ---- Cards ---- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-body { padding: 28px; }

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
}
.badge-green { background: rgba(82,183,136,.15); color: var(--forest-mid); }
.badge-amber { background: rgba(212,160,23,.15); color: var(--amber); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--mist-dark);
  margin: 48px 0;
}

/* ---- Inner Page Hero ---- */
.inner-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-deep) 60%, var(--forest-mid) 100%);
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2352B788' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.inner-hero-content { position: relative; z-index: 1; }
.inner-hero h1 { color: #fff; margin-bottom: 16px; }
.inner-hero p  { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; line-height: 1.7; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.breadcrumb a { color: var(--moss); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb-sep { color: rgba(255,255,255,.25); }

/* ---- Coin Display ---- */
.coin-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.3);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--amber-mid);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-muted { color: var(--neutral-500); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* ---- Green background sections ---- */
.bg-forest { background: var(--forest-deep); color: #fff; }
.bg-forest h1,.bg-forest h2,.bg-forest h3,.bg-forest h4 { color: #fff; }
.bg-mist { background: var(--mist); }
.bg-dark { background: var(--forest-darkest); color: #fff; }
.bg-dark h1,.bg-dark h2,.bg-dark h3,.bg-dark h4 { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-banner { flex-direction: column; gap: 12px; padding: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .age-box { padding: 36px 24px; }
}

/* ---- Scroll animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ---- Game Cards ---- */
.game-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.game-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.game-card-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.game-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.game-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 8px;
}
.game-card-desc {
  font-size: .88rem;
  color: var(--neutral-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.game-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.game-card-tag {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--mist);
  color: var(--neutral-500);
  border-radius: var(--radius-full);
}
