/* ============================================
   AlpineVillageGathering.com — Global Styles
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  /* Primary — Forest Green */
  --p900: #0F2006;
  --p800: #1E3D0D;
  --p700: #2D5A14;
  --p600: #3D7A1C;
  --p500: #4E9B24;
  --p400: #6BBF3E;
  --p300: #93D46A;
  --p200: #BFE9A0;
  --p100: #E6F7D8;
  --p50:  #F3FCE9;

  /* Earth — Warm Wood/Stone */
  --e900: #2A1506;
  --e800: #5C3218;
  --e700: #7E4B28;
  --e600: #A06438;
  --e500: #C4884E;
  --e400: #D9A878;
  --e300: #EAC9A5;
  --e200: #F3E1C8;
  --e100: #FAF0E6;

  /* Gold — Alpine Highlights */
  --g700: #7A5510;
  --g600: #A67318;
  --g500: #D49420;
  --g400: #F0B030;
  --g300: #F7C957;
  --g200: #FBE099;
  --g100: #FDF4D6;

  /* Sky Blue */
  --s700: #1E4870;
  --s600: #2C6499;
  --s500: #4080C0;
  --s400: #6EA0D8;
  --s300: #9ABFE8;
  --s200: #C4DAF3;
  --s100: #E8F2FC;

  /* Neutral */
  --n900: #121212;
  --n800: #232323;
  --n700: #3A3A3A;
  --n600: #545454;
  --n500: #717171;
  --n400: #909090;
  --n300: #B5B5B5;
  --n200: #D4D4D4;
  --n100: #EDEDED;
  --n50:  #F8F8F8;
  --white: #FFFFFF;
  --snow: #FAF7F2;

  /* Semantic */
  --success: #27AE60;
  --warning: #E67E22;
  --error:   #C0392B;

  /* Spacing (8px base) */
  --sp1: 8px;
  --sp2: 16px;
  --sp3: 24px;
  --sp4: 32px;
  --sp5: 40px;
  --sp6: 48px;
  --sp8: 64px;
  --sp10: 80px;
  --sp12: 96px;
  --sp16: 128px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Radius */
  --r1: 4px;
  --r2: 8px;
  --r3: 12px;
  --r4: 16px;
  --r6: 24px;
  --r8: 32px;
  --round: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.08);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t1: 150ms var(--ease);
  --t2: 250ms var(--ease);
  --t3: 350ms var(--ease);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--n800);
  background: var(--snow);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--p800);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { line-height: 1.7; color: var(--n600); }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp3); }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--sp3); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--sp2) 0;
  background: transparent;
  transition: background var(--t2), box-shadow var(--t2), padding var(--t2);
}
.site-nav.scrolled {
  background: rgba(18, 45, 8, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: var(--sp1) 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--sp3);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp3);
}
.nav-logo {
  display: flex; align-items: center; gap: var(--sp1);
  text-decoration: none;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--p500), var(--p300));
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo-tagline {
  font-size: 0.65rem; color: var(--g300);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: var(--sp2);
}
.nav-link {
  font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px; border-radius: var(--round);
  transition: color var(--t1), background var(--t1);
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta {
  background: linear-gradient(135deg, var(--g500), var(--g400));
  color: var(--p900) !important;
  padding: 8px 20px !important;
  border-radius: var(--round) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(212,148,32,0.4);
  transition: transform var(--t1), box-shadow var(--t1) !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,148,32,0.5) !important; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform var(--t2), opacity var(--t2);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none; flex-direction: column; gap: var(--sp1);
  background: rgba(18,45,8,0.98); backdrop-filter: blur(12px);
  padding: var(--sp2) var(--sp3) var(--sp3);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 10px var(--sp2); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--p900);
  color: rgba(255,255,255,0.75);
  padding: var(--sp10) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp8);
  padding-bottom: var(--sp8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand {}
.footer-logo-wrap {
  display: flex; align-items: center; gap: var(--sp1); margin-bottom: var(--sp2);
}
.footer-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--p500), var(--p300));
  border-radius: var(--r2); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem;
}
.footer-logo-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; color: var(--white);
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; max-width: 320px; margin-bottom: var(--sp2); }
.footer-age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(192,57,43,0.2); border: 1px solid rgba(192,57,43,0.4);
  color: #F07070; border-radius: var(--round);
  padding: 4px 12px; font-size: 0.8rem; font-weight: 700;
}
.footer-contact {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: var(--sp2);
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.4;
}
.footer-contact-item a {
  color: rgba(255,255,255,0.7); transition: color var(--t1);
}
.footer-contact-item a:hover { color: var(--white); }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--g300); margin-bottom: var(--sp2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem; color: rgba(255,255,255,0.65);
  transition: color var(--t1);
}
.footer-col a:hover { color: var(--white); }
.footer-disclaimer {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r3); padding: var(--sp3);
  margin: var(--sp6) 0;
  font-size: 0.8rem; line-height: 1.6;
  color: rgba(255,255,255,0.5);
}
.footer-disclaimer strong { color: rgba(255,255,255,0.75); }
.footer-disclaimer a {
  color: var(--s300); text-decoration: underline; text-underline-offset: 2px;
}
.footer-disclaimer a:hover { color: var(--s200); }
.footer-bottom {
  padding: var(--sp3) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp2);
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color var(--t1); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font-body); font-weight: 700;
  border: none; border-radius: var(--round);
  cursor: pointer; transition: transform var(--t1), box-shadow var(--t1), background var(--t1);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, var(--p600), var(--p500));
  color: var(--white);
  box-shadow: 0 3px 12px rgba(77,155,36,0.4);
}
.btn--primary:hover { box-shadow: 0 6px 20px rgba(77,155,36,0.5); }
.btn--gold {
  background: linear-gradient(135deg, var(--g600), var(--g400));
  color: var(--p900);
  box-shadow: 0 3px 12px rgba(212,148,32,0.4);
}
.btn--gold:hover { box-shadow: 0 6px 20px rgba(212,148,32,0.5); }
.btn--outline {
  background: transparent; border: 2px solid currentColor;
  color: var(--p600);
}
.btn--outline:hover { background: var(--p50); }
.btn--outline-white { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: var(--white); }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); }
.btn--sm { font-size: 0.85rem; padding: 8px 18px; }
.btn--md { font-size: 0.95rem; padding: 12px 28px; }
.btn--lg { font-size: 1.05rem; padding: 16px 36px; }
.btn--xl { font-size: 1.15rem; padding: 18px 44px; }

/* ============================================
   AGE VERIFICATION MODAL
   ============================================ */
.age-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, rgba(15,32,6,0.97), rgba(30,61,13,0.97));
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp3);
  backdrop-filter: blur(8px);
}
.age-overlay.hidden { display: none; }
.age-modal {
  background: var(--white);
  border-radius: var(--r6); padding: var(--sp6);
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}
.age-modal-icon {
  width: 72px; height: 72px; margin: 0 auto var(--sp3);
  background: linear-gradient(135deg, var(--p100), var(--p200));
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 2.2rem;
}
.age-modal h2 { color: var(--p800); margin-bottom: var(--sp1); font-size: 1.75rem; }
.age-modal p { color: var(--n600); font-size: 0.95rem; margin-bottom: var(--sp3); }
.age-modal-check {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--p50); border-radius: var(--r3);
  padding: var(--sp2); margin-bottom: var(--sp3);
  text-align: left; cursor: pointer;
}
.age-modal-check input[type="checkbox"] {
  width: 20px; height: 20px; cursor: pointer;
  accent-color: var(--p600); flex-shrink: 0; margin-top: 2px;
}
.age-modal-check span { font-size: 0.9rem; color: var(--n700); line-height: 1.5; }
.age-confirm-btn {
  width: 100%; padding: 14px; border-radius: var(--round);
  font-size: 1rem; font-weight: 700; font-family: var(--font-body);
  background: linear-gradient(135deg, var(--p600), var(--p500));
  color: var(--white); border: none; cursor: pointer;
  transition: all var(--t2); opacity: 0.4; pointer-events: none;
  box-shadow: 0 3px 12px rgba(77,155,36,0.3);
}
.age-confirm-btn.ready { opacity: 1; pointer-events: auto; }
.age-confirm-btn.ready:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(77,155,36,0.5); }
.age-warning {
  font-size: 0.78rem; color: var(--n400); margin-top: var(--sp2);
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-banner {
  position: fixed; bottom: var(--sp3); left: var(--sp3); right: var(--sp3);
  z-index: 9000;
  background: var(--p900);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r4);
  padding: var(--sp3);
  display: flex; align-items: center; gap: var(--sp3); flex-wrap: wrap;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s var(--ease-out);
  max-width: 1200px; margin: 0 auto;
}
.cookie-banner.hidden { display: none; }
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text p { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin: 0; }
.cookie-banner-text a { color: var(--s300); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: var(--sp1); flex-shrink: 0; flex-wrap: wrap; }
.cookie-accept {
  background: linear-gradient(135deg, var(--p600), var(--p500));
  color: var(--white); padding: 10px 24px; border-radius: var(--round);
  font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer;
  transition: all var(--t1);
}
.cookie-accept:hover { transform: translateY(-1px); }
.cookie-decline {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7); padding: 10px 24px; border-radius: var(--round);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all var(--t1);
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section { padding: var(--sp12) 0; }
.section--sm { padding: var(--sp8) 0; }
.section--lg { padding: var(--sp16) 0; }
.section--alt { background: var(--white); }
.section--dark {
  background: linear-gradient(135deg, var(--p900), var(--p800));
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--white);
}
.section--dark p { color: rgba(255,255,255,0.75); }

.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--p100); color: var(--p700);
  border-radius: var(--round); padding: 5px 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: var(--sp2);
}
.section-badge--gold { background: var(--g100); color: var(--g700); }
.section-badge--sky { background: var(--s100); color: var(--s700); }

.section-header { max-width: 680px; margin: 0 auto var(--sp8); text-align: center; }
.section-header h2 { margin-bottom: var(--sp2); }
.section-header p { font-size: 1.05rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white); border-radius: var(--r4);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--t2), box-shadow var(--t2);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

/* ============================================
   HERO (shared base)
   ============================================ */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, var(--p900) 0%, var(--p700) 60%, var(--p500) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(78,155,36,0.2) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 20%, rgba(15,32,6,0.5) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; text-align: center; }
.page-hero h1 { color: var(--white); margin-bottom: var(--sp2); }
.page-hero .lead { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ============================================
   COINS DISPLAY
   ============================================ */
.coins-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--g600), var(--g400));
  color: var(--p900); border-radius: var(--round);
  padding: 6px 14px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(212,148,32,0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50%       { transform: translateY(-12px); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp5); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp4); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; }
  .cookie-banner-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}
