/* -------------------------------------------------------------------
  VARIABLES
------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-background: #171a13; /* deep forest/earthy dark */
  --color-surface: #22271c;
  --color-text: #f0ece3; /* off-white */
  --color-primary: #318546; /* leafy green */
  --color-success: #6bbe78; /* moss green */
  --color-warning: #e1a74c; /* sun/sand yellow */
  --color-danger: #d6523c; /* fire red */
  --color-gray-50: #f8f9f7;
  --color-gray-100: #eceeea;
  --color-gray-200: #e0e3da;
  --color-gray-300: #c7cfc0;
  --color-gray-400: #9da791;
  --color-gray-500: #7b8373;
  --color-gray-600: #5a6253;
  --color-gray-700: #393d32;
  --color-gray-800: #23281a;
  --color-gray-900: #171a13;

  /* Typography */
  --font-sans: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Merriweather', 'Georgia', serif;
  --font-mono: 'Fira Mono', monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.8rem;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --line-height-loose: 1.75;

  /* Spacing (0-96px, step 4) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 10, 0.04);
  --shadow-sm: 0 1px 4px 0 rgba(45, 52, 34, 0.08);
  --shadow-md: 0 3px 12px 0 rgba(10, 20, 8, 0.18);
  --shadow-lg: 0 6px 24px 0 rgba(20, 30, 13, 0.24);

  /* Transition */
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* -------------------------------------------------------------------
  RESET / NORMALIZE
------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img, picture, video, canvas, svg {
  border-radius: 14px;
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* -------------------------------------------------------------------
  BASE STYLES
------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background: var(--color-background);
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
  margin-bottom: var(--space-4);
  max-width: 65ch;
  line-height: var(--line-height-loose);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition);
}
a:hover,
a:focus-visible {
  color: var(--color-success);
  text-decoration-thickness: 2px;
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------
  UTILITIES
------------------------------------------------------------------- */
.container {
  max-width: 1526px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-column {
  flex-direction: column;
}
.grid {
  display: grid;
  gap: var(--space-4);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  white-space: nowrap;
}

/* -------------------------------------------------------------------
  COMPONENTS
------------------------------------------------------------------- */
.button {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--font-size-base);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  border: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.button:hover,
.button:focus-visible {
  background: var(--color-success);
  box-shadow: var(--shadow-sm);
  outline: 2px solid var(--color-success);
  outline-offset: 2px;
  transform: translateY(-2px) scale(1.03);
}
.button:disabled,
.button[aria-disabled='true'] {
  background: var(--color-gray-700);
  color: var(--color-gray-300);
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-xs);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--color-gray-800);
  color: var(--color-gray-400);
  cursor: not-allowed;
  opacity: 0.7;
}

.card {
  text-align: center;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover,
.card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: scale(1.015);
}

/* Focus styling for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------
  HEADER & FOOTER STYLES (shared across all pages)
------------------------------------------------------------------- */
.site-header {
  padding: 23px 0;
  background: rgba(34,39,28,0.83);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}
.header-nav {
  min-height: 76px;
  justify-content: center;
}
.site-title {
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-warning);
  letter-spacing:1px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  margin-left: ;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.menu-toggle .burger {
  width: 28px;
  height: 4px;
  border-radius: 3px;
  background: var(--color-warning);
  box-shadow: 0 7px 0 0 var(--color-warning), 0 14px 0 0 var(--color-warning);
  display: block;
  position: relative;
  transition: background var(--transition);
}

.main-menu {
  gap: var(--space-6);
  align-items: center;
  font-size: var(--font-size-base);
}
.main-menu a {
  color: var(--color-gray-100);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.main-menu a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--color-success);
  transition: width var(--transition);
  border-radius: var(--radius-round);
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
}
.main-menu a:hover:after,.main-menu a:focus:after {
  width: 80%;
}



@media (max-width: 987px) {

  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 18px;
    background: rgba(34, 39, 28, .98);
    min-width: 220px;
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    z-index: 99;
  }
  .main-menu.open {
    display: flex;
    width: 100%;
    top: 141px;
    right: 0;
  }
  .menu-toggle {
    display: flex;
  }

}

@media (max-width: 850px) {
  /* Header responsive: handled in home.css for hero, but menu responsiveness is header */
  /* No changes needed here for header at this breakpoint */
}
@media (max-width: 656px) {
  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 18px;
    background: rgba(34, 39, 28, .98);
    min-width: 220px;
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    z-index: 99;
  }
  .main-menu.open {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

.site-footer {
  background: var(--color-surface);
  color: var(--color-gray-100);
  padding-top: var(--space-8);
  margin-top: var(--space-12);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-8);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: var(--space-6);
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-warning);
}
.footer-nav ul, .footer-legal ul {
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-nav a, .footer-legal a {
  color: var(--color-gray-100);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-primary);
}
.footer-copyright {
  font-size: var(--font-size-xs);
  color: var(--color-gray-400);
  margin-top: var(--space-4);
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(23,26,19, 0.99);
  color: var(--color-gray-50);
  padding: var(--space-6) var(--space-4) var(--space-6) var(--space-4);
  z-index: 1000;
  box-shadow: 0 -4px 20px 0 rgba(49,133,70,0.14), 0 -2px 6px 0 rgba(221,186,84,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  transition: transform var(--transition), opacity var(--transition);
}
.cookie-consent-banner[aria-hidden="true"] {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-actions {
  display: flex;
  gap: var(--space-3);
}
.btn-reject {
  background: var(--color-danger);
}
.btn-reject:hover, .btn-reject:focus {
  background: #a7331d;
}
.btn-accept {
  background: var(--color-success);
}
.btn-accept:hover, .btn-accept:focus {
  background: #45a063;
}

@media (max-width:600px) {
  .container {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  .cookie-consent-banner, .footer-grid {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: var(--space-5);
  }
}

/* -------------------------------------------------------------------
  SURVIVAL-THEMED FLAVOR (subtle flair)
------------------------------------------------------------------- */
body {
  background-image: radial-gradient(ellipse 150% 70% at 50% 25%, rgba(49,133,70,0.10) 0%, rgba(34,39,28,0.55) 70%, transparent 100%),
                    linear-gradient(186deg, rgba(209,169,76,0.035) 25%, transparent 75%);
  background-size: cover;
  background-repeat: no-repeat;
}

.card {
  border: 1.5px solid var(--color-gray-700);
  /* Like weathered map or wood */
  background-image: linear-gradient(135deg, rgba(209,169,76,0.07) 10%, transparent 80%);
}

hr {
  border: 0;
  border-top: 1px dashed var(--color-warning);
  opacity: 0.25;
  margin: var(--space-8) 0;
}

/* -------------------------------------------------------------------
  END
------------------------------------------------------------------- */
