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

/* ============================================
   Madi's 12|12 — GLOBAL DESIGN SYSTEM
   "Craft Nacho" Brand Aesthetic — Navy + Gold (light)
   ============================================ */

:root {
  /* ========== COLOR PALETTE ========== */
  /* Brand core */
  --color-navy: #173963;        /* primary navy */
  --color-navy-deep: #0E2340;   /* footer / dark bands */
  --color-ink: #181824;         /* big display headings */
  --color-gold: #DAAB28;        /* brand gold */
  --color-gold-dark: #C2972020; /* (unused placeholder) */

  /* Surfaces & base (light theme) */
  --color-black: #0E2340;       /* remapped: dark band background */
  --color-charcoal: #173963;
  --color-charcoal-light: #1D4675;

  /* Accent Colors */
  --color-primary: #DAAB28;
  --color-primary-light: #E7C04E;
  --color-ember: #DAAB28;
  --color-flame: #C99A1A;

  /* Neutral Colors */
  --color-cream: #FFFFFF;       /* light surface */
  --color-cream-dark: #FAF9F5;  /* off-white section bg */
  --color-white: #FFFFFF;
  --color-gray: #B2BBC8;        /* muted body text on dark navy */
  --color-gray-light: #CDD4DE;

  /* Alert/Accent Color */
  --color-alert: #E0322D;

  /* Color Opacity Variants */
  --color-primary-5: rgba(218, 171, 40, 0.05);
  --color-primary-10: rgba(218, 171, 40, 0.1);
  --color-primary-15: rgba(218, 171, 40, 0.15);
  --color-primary-30: rgba(218, 171, 40, 0.3);
  --color-cream-10: rgba(23, 57, 99, 0.06);
  --color-cream-30: rgba(23, 57, 99, 0.18);
  --color-black-50: rgba(14, 35, 64, 0.5);
  --color-black-80: rgba(14, 35, 64, 0.82);

  /* ========== LEGACY VARIABLES (DEPRECATED) ==========
     Remapped to the new navy + gold palette for backward compatibility.
  */
  --primaryLight: #E7C04E;
  --primary: #DAAB28;
  --secondary: #173963;
  --secondaryLight: #1D4675;
  --headerColor: #FFFFFF;
  --bodyTextColor: #B2BBC8;
  --bodyTextColorWhite: #FFFFFF;
  --primary-color: #DAAB28;
  --primary-color-light: #E7C04E;
  --primary-color-dark: #173963;
  --text-dark: #181824;
  --text-light: #B2BBC8;
  --white: #FFFFFF;
  --main-color: #DAAB28;

  /* ========== TYPOGRAPHY ========== */
  --font-display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --font-script: 'Kaushan Script', cursive;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --heading-font: 'Jost', 'Futura', sans-serif;
  --body-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --topperFontSize: clamp(0.75rem, 1.5vw, 0.875rem);
  --headerFontSize: clamp(2rem, 4vw, 3rem);
  --bodyFontSize: 1rem;
  --fs-hero-title: clamp(3rem, 8vw, 6rem);
  --fs-section-title: clamp(2rem, 4vw, 3rem);
  --fs-card-title: clamp(1.25rem, 2vw, 1.5rem);

  /* ========== SPACING ========== */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --sectionPadding: clamp(4rem, 8vw, 6rem) 1rem;
  --max-width: 1200px;

  /* ========== TRANSITIONS ========== */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* ========== BORDERS & SHADOWS ========== */
  --border-radius-sm: 2px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  --border-radius-full: 50px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow-primary: 0 4px 30px rgba(194, 166, 109, 0.3); /* #C2A66D */
  --shadow-glow-primary-light: 0 4px 20px rgba(216, 196, 156, 0.3);   /* #C2A66D */

  /* ========== Z-INDEX LAYERS ========== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-navy-deep);
  color: #EAEDF2;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Homepage runs a light theme; everything else stays navy with light text */
body.home {
  background-color: #FFFFFF;
  color: #333333;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY CLASSES
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
}

.cs-topper,
.section-label {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1em;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
  display: block;
}

.cs-title,
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05em;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 43.75rem;
  margin: 0 auto var(--space-sm) auto;
  color: #FFFFFF;
  font-family: var(--font-display);
  text-align: center;
}

.section-title em {
  font-family: var(--font-script);
  font-style: normal;
  text-transform: none;
  color: var(--color-gold);
}

.cs-text,
.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7em;
  max-width: 40.625rem;
  margin: 0;
  color: var(--color-gray);
}

.text-accent {
  color: var(--color-primary);
}

.text-italic {
  font-style: italic;
}

.link-alert {
  color: var(--color-alert);
  font-weight: bold;
  text-decoration: underline;
}

.link-alert:hover {
  color: var(--color-ember);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sectionPadding);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .section-subtitle {
  margin: var(--space-sm) auto 0;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2.25rem;
  background: var(--color-gold);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-medium);
  box-shadow: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover,
.btn-primary:hover {
  background: var(--color-flame);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(218, 171, 40, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--color-navy);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-medium);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

.btn-ember,
.location-btn-primary {
  background: var(--color-gold);
  color: #FFFFFF;
  box-shadow: none;
}

.btn-ember:hover,
.location-btn-primary:hover {
  background: var(--color-flame);
  box-shadow: 0 10px 24px rgba(218, 171, 40, 0.35);
  transform: translateY(-2px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

@keyframes flameDance {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes scrollLine {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}
