/* =========================================
   509 OUTFITTERS - IMPROVED STYLESHEET
   ========================================= */

/* === CSS VARIABLES === */
:root {
  /* Colors - Primary Palette */
  --color-forest-dark: #0a1f12;
  --color-forest: #1a3a2a;
  --color-forest-medium: #2d5a3d;
  --color-forest-border: #2d6a4f;
  --color-forest-light: #4a7c59;
  
  /* Colors - Accent */
  --color-gold: #f0c040;
  --color-gold-dark: #d4a835;
  
  /* Colors - Neutrals */
  --color-white: #ffffff;
  --color-bg-light: #f7faf8;
  --color-text-dark: #1a202c;
  --color-text-gray: #4a5568;
  --color-text-light: #718096;
  
  /* Colors - Brand */
  --color-green-light: #a8d5b5;
  --color-green-pale: #d4e8d0;
  
  /* Spacing System */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 0.75rem;   /* 12px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 2.5rem;   /* 40px */
  --space-3xl: 3rem;     /* 48px */
  
  /* Typography */
  --font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.6875rem;  /* 11px */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.9375rem; /* 15px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.375rem;   /* 22px */
  --font-size-2xl: 1.625rem;  /* 26px */
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  
  /* Border Radius */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 900;
  --z-toast: 1000;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease-out;
  --transition-slow: 300ms ease-out;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === FOCUS STYLES (Accessibility) === */
*:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* === SOCIAL BAR === */
.social-bar {
  background: var(--color-forest-dark);
  padding: var(--space-xs) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.social-bar-left {
  font-size: var(--font-size-xs);
  color: var(--color-forest-light);
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform var(--transition-base), opacity var(--transition-base);
  opacity: 0.85;
}

.social-icon:hover {
  transform: scale(1.15);
  opacity: 1;
}

.social-fb { background: #1877f2; }
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-tw { background: #000; }

/* === NAVIGATION === */
nav {
  background: var(--color-forest);
  padding: 0 var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  color: var(--color-gold);
  font-size: var(--font-size-xl);
  font-weight: 800;
  letter-spacing: 0.0625rem;
}

.nav-logo span {
  color: var(--color-white);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--color-green-pale);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
  transition: color var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-cta {
  background: var(--color-gold);
  color: var(--color-forest);
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.nav-cta:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
}

/* === WEATHER BAR === */
.weather-bar {
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-medium) 100%);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  color: var(--color-green-light);
  font-size: var(--font-size-sm);
}

.weather-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.weather-item strong {
  color: var(--color-white);
  font-weight: 600;
}

/* === HERO SECTION === */
.hero-fluid {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-light);
  text-align: center;
  padding: var(--space-xl);
}

.hero-fluid h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-lg);
  font-weight: 800;
}

.hero-fluid p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 43.75rem;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
  opacity: 0.95;
}

.cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--color-forest-medium);
  color: var(--color-white);
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: bold;
  cursor: pointer;
  min-width: 12.5rem;
  min-height: 3rem;
  display: inline-block;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.btn-hero-primary:hover {
  background: var(--color-forest);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  padding: 1.2rem 2.5rem;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: bold;
  min-width: 12.5rem;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* === BADGE BAR === */
.badge-bar {
  background: var(--color-bg-light);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-gray);
  box-shadow: var(--shadow-sm);
}

.badge span {
  font-size: var(--font-size-lg);
}

/* === SECTIONS === */
.section {
  padding: var(--space-3xl) var(--space-2xl);
  max-width: 75rem;
  margin: 0 auto;
}

.section-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  color: var(--color-forest-light);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
  text-align: center;
  line-height: var(--line-height-tight);
}

.section-sub {
  font-size: var(--font-size-base);
  color: var(--color-text-gray);
  text-align: center;
  max-width: 50rem;
  margin: 0 auto var(--space-xl);
  line-height: var(--line-height-relaxed);
}

/* === ACTION CARDS (Gear Categories) === */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.action-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: var(--shadow-md);
  background: var(--color-forest);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.action-card-img {
  width: 100%;
  height: 12.5rem;
  background-size: cover;
  background-position: center;
  background-color: var(--color-forest-medium);
}

.action-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  pointer-events: none;
}

.action-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  color: var(--color-white);
}

.action-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.action-card-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.action-card-desc {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.action-card-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--color-forest);
  background: var(--color-gold);
  padding: 0.75rem var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: var(--font-size-sm);
  transition: background var(--transition-base);
}

.action-card-btn:hover {
  background: var(--color-gold-dark);
}

/* === GUIDE CARDS === */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.guide-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  /* KEY FIX: Use flexbox to align button to bottom */
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guide-avatar {
  font-size: 3rem;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.guide-name {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.guide-spec {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.guide-bio {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
  /* KEY FIX: Let bio grow to push button down */
  flex-grow: 1;
}

.guide-rating {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.btn-guide-book {
  background: var(--color-forest);
  color: var(--color-gold);
  border: none;
  padding: 0.75rem var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  /* KEY FIX: Button stays at bottom */
  margin-top: auto;
}

.btn-guide-book:hover {
  background: var(--color-forest-medium);
  transform: translateY(-1px);
}

.btn-apply-guide {
  background: var(--color-gold);
  color: var(--color-forest);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.btn-apply-guide:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
}

/* === FAQ SECTION === */
.faq-section {
  background: var(--color-bg-light);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-base);
}

.faq-item summary:hover {
  background: var(--color-bg-light);
}

.faq-item summary::after {
  content: '+';
  font-size: var(--font-size-xl);
  color: var(--color-gold);
  font-weight: 700;
  transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--font-size-base);
  color: var(--color-text-gray);
  line-height: var(--line-height-relaxed);
}

/* === TESTIMONIALS === */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testi-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.testi-card:hover {
  box-shadow: var(--shadow-md);
}

.testi-stars {
  color: var(--color-gold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.testi-text {
  font-size: var(--font-size-base);
  font-style: italic;
  color: var(--color-text-dark);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.testi-author {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: 600;
}

/* === CTA SECTION === */
.cta-section {
  background: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta-section p {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  line-height: var(--line-height-relaxed);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-forest);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: var(--font-size-md);
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
}

/* === SUBSCRIBE BAR === */
.subscribe-bar {
  background: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
}

.subscribe-bar h2 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.subscribe-bar p {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  line-height: var(--line-height-relaxed);
  max-width: 37.5rem;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: flex;
  gap: var(--space-md);
  max-width: 40rem;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form input,
.subscribe-form select {
  padding: 0.875rem var(--space-md);
  border-radius: var(--radius-md);
  border: none;
  font-size: var(--font-size-base);
  font-family: var(--font-base);
  flex: 1;
  min-width: 12rem;
}

.subscribe-form input:focus,
.subscribe-form select:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.subscribe-form button {
  background: var(--color-gold);
  color: var(--color-forest);
  border: none;
  padding: 0.875rem var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.subscribe-form button:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
}

/* === FOOTER === */
footer {
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  background: var(--color-forest);
  color: var(--color-gold);
  font-family: var(--font-base);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-xl);
  max-width: 68.75rem;
  margin: 0 auto var(--space-2xl);
}

.footer-logo {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-gold);
  letter-spacing: -0.03125rem;
  margin-bottom: var(--space-md);
}

.footer-heading {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09375rem;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--color-green-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer-social a {
  font-size: var(--font-size-lg);
  text-decoration: none;
  transition: transform var(--transition-base);
}

.footer-social a:hover {
  transform: scale(1.2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--color-green-light);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-contact-item {
  color: var(--color-green-light);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.footer-badge {
  background: var(--color-forest);
  color: var(--color-green-light);
  border: 1px solid var(--color-forest-border);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: inline-block;
  margin-top: var(--space-sm);
}

.footer-bottom {
  max-width: 68.75rem;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(168, 213, 180, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--font-size-xs);
  color: var(--color-green-light);
}

.footer-bottom-right {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.footer-bottom-right a {
  color: var(--color-green-light);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-bottom-right a:hover {
  color: var(--color-gold);
}

/* === MODALS === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: fadeIn var(--transition-base);
}

.modal-overlay.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal,
.guide-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 31.25rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--transition-slow);
}

.guide-modal {
  max-width: 35rem;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-text-light);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-base), color var(--transition-base);
}

.modal-close:hover {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* === FORMS === */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem var(--space-md);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: var(--font-base);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.1);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* === FORM BUTTONS === */
.btn-submit-guide {
  width: 100%;
  background: var(--color-forest);
  color: var(--color-gold);
  border: none;
  padding: 1rem var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  margin-top: var(--space-md);
}

.btn-submit-guide:hover:not(:disabled) {
  background: var(--color-forest-medium);
  transform: translateY(-1px);
}

.btn-submit-guide:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit-guide.loading {
  position: relative;
  color: transparent;
}

.btn-submit-guide.loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 50%;
  left: 50%;
  margin-left: -0.625rem;
  margin-top: -0.625rem;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-full);
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === SUCCESS/ERROR MESSAGES === */
.success-msg,
.error-msg {
  text-align: center;
  padding: var(--space-xl);
  animation: slideUp var(--transition-slow);
}

.success-msg .icon,
.error-msg .icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  animation: scaleIn var(--transition-slow);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-msg h3 {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.success-msg p {
  color: var(--color-text-gray);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
}

.error-msg {
  color: #c53030;
}

.error-msg .icon {
  color: #c53030;
}

/* === FORM VALIDATION === */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #fc8181;
  background-color: #fff5f5;
}

.form-group.error label {
  color: #c53030;
}

.form-error {
  color: #c53030;
  font-size: var(--font-size-xs);
  margin-top: var(--space-xs);
  display: none;
}

.form-group.error .form-error {
  display: block;
  animation: slideDown 0.2s ease-out;
}

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

/* === CHAT WIDGET === */
#chat-widget {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-modal);
}

#chat-window {
  display: none;
  flex-direction: column;
  width: 22rem;
  max-width: calc(100vw - 2rem);
  height: 28rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

#chat-window.open {
  display: flex;
}

#chat-header {
  background: var(--color-forest);
  color: var(--color-gold);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

#chat-header button {
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: var(--font-size-lg);
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
}

#chat-messages {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-bg-light);
}

.msg {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  max-width: 80%;
}

.msg.bot {
  background: var(--color-white);
  color: var(--color-text-dark);
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.msg.user {
  background: var(--color-forest);
  color: var(--color-white);
  align-self: flex-end;
}

#chat-input-area {
  padding: var(--space-md);
  display: flex;
  gap: var(--space-xs);
  border-top: 1px solid #e2e8f0;
  background: var(--color-white);
}

#chat-input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-family: var(--font-base);
}

#chat-input:focus {
  border-color: var(--color-gold);
  outline: none;
}

#chat-send {
  background: var(--color-gold);
  color: var(--color-forest);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition-base);
}

#chat-send:hover {
  background: var(--color-gold-dark);
}

#chat-cta {
  position: absolute;
  bottom: 0;
  right: 4rem;
  background: var(--color-forest);
  color: var(--color-gold);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
  display: flex;
  align-items: center;
  height: 3.5rem;
}

#chat-cta:hover {
  transform: translateX(-4px);
}

#chat-toggle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: var(--color-gold);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* === MOBILE STICKY FOOTER === */
.mobile-sticky-footer {
  display: none;
}

/* === RESPONSIVE DESIGN === */

/* Tablets and below */
@media (max-width: 768px) {
  .social-bar {
    padding: var(--space-xs) var(--space-md);
  }
  
  nav {
    padding: 0 var(--space-md);
  }
  
  .nav-links {
    gap: var(--space-md);
    flex-wrap: wrap;
    font-size: 11px;
  }
  
  /* Hide nav weather on tablets */
  .nav-links > div {
    display: none !important;
  }
  
  /* Weather bar - simpler layout on tablets */
  #weather-bar {
    padding: 12px 20px !important;
    gap: 20px !important;
  }
  
  .section {
    padding: var(--space-xl) var(--space-md);
  }
  
  /* Adventure Dashboard - 2 cards per row on tablets */
  .adventure-dashboard {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 800px !important;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .action-grid {
    grid-template-columns: 1fr;
  }
  
  .guides-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
  
  .subscribe-form input,
  .subscribe-form select {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  /* Adventure Dashboard - Stack vertically on mobile */
  .adventure-dashboard {
    grid-template-columns: 1fr !important;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .badge-bar {
    gap: var(--space-sm);
  }
  
  .weather-bar {
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
  }
  
  .hero-fluid {
    padding: var(--space-lg);
  }
  
  .mobile-sticky-footer {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(45, 90, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-md);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .mobile-sticky-footer a {
    display: block;
    background: var(--color-gold);
    color: var(--color-forest);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-weight: 900;
    font-size: var(--font-size-md);
    text-align: center;
    text-decoration: none;
    min-height: 3.25rem;
    line-height: 3.25rem;
  }
  
  /* Add bottom padding to body to account for sticky footer */
  body {
    padding-bottom: 5rem;
  }
  
  #chat-widget {
    bottom: 6rem; /* Above mobile footer */
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .action-card,
  .guide-card,
  .testi-card,
  .faq-item {
    border: 2px solid var(--color-text-dark);
  }
}

/* How It Works Section - Force 3-column card layout */
#how-it-works {
  display: block !important;
}

#how-it-works > h2 {
  display: block !important;
}

#how-it-works > div {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

#how-it-works > div > div {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 280px !important;
  max-width: 320px !important;
  min-width: 250px !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
