:root {
  /* Soft Modern Palette */
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text-main: #292524;
  --color-text-muted: #57534e;
  --color-accent: #a3b18a; /* Soft sage green */
  --color-accent-dark: #588157;
  --color-accent-light: #dad7cd;
  --color-border: #e7e5e4;
  --color-error: #e57373;
  --color-focus: #3b82f6;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Spacing Scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 40px;
  --sp-7: 64px;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  lang: en;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessibility & Interaction */
a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-text-main);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.brand-text, h1, h2, h3, h4, .nav-link {
  overflow-wrap: anywhere;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.main-content {
  flex: 1;
  padding: var(--sp-7) 0;
}

.grid {
  display: grid;
  gap: var(--sp-6);
  min-width: 0;
}

.grid-cols-2 {
  grid-template-columns: 1fr;
}

.grid-cols-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Typography specifics */
h1 { font-size: 2.5rem; line-height: 1.1; margin: 0 0 var(--sp-5) 0; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin: var(--sp-6) 0 var(--sp-4) 0; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; margin: var(--sp-5) 0 var(--sp-3) 0; font-weight: 600; }
p { margin: 0 0 var(--sp-4) 0; }
ul, ol { margin: 0 0 var(--sp-4) 0; padding-left: var(--sp-5); }
li { margin-bottom: var(--sp-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-5);
  background-color: var(--color-accent-dark);
  color: var(--color-surface);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  background-color: var(--color-text-main);
  color: var(--color-surface);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-border);
  color: var(--color-text-main);
}

/* Header */
.site-header {
  background-color: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

@media (min-width: 768px) {
  .header-inner { height: 64px; }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-main);
  text-decoration: none;
  max-width: 60%;
}

.logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--color-accent-dark);
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: var(--sp-5);
    align-items: center;
  }
  .nav-link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
  }
  .nav-link:hover {
    color: var(--color-text-main);
  }
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: var(--color-text-main);
  padding: var(--sp-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex-direction: column;
  gap: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

.mobile-nav-overlay.is-visible {
  display: flex;
}

/* Glass Overlay Card (Card Style 3) */
.glass-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-accent-light);
}

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

.glass-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.glass-card-content {
  position: relative;
  z-index: 2;
  margin-top: auto; /* Pushes content to bottom */
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.4);
  color: var(--color-text-main);
}

.glass-card-title {
  margin: 0 0 var(--sp-2) 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.glass-card-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Article Styles (Sub-pages) */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--sp-6) auto;
}

.article-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--sp-4);
  display: block;
}

.article-hero-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-soft);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body h2 {
  position: relative;
  padding-bottom: var(--sp-2);
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* Stat Blocks */
.stat-block {
  background-color: var(--color-surface);
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  text-align: center;
  margin: var(--sp-5) 0;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: var(--sp-3);
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--sp-5) 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-surface);
  min-width: 600px;
}

th, td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-bg);
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-surface);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

.form-message {
  display: none;
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-radius: var(--radius-sm);
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.form-message.is-visible {
  display: block;
}

/* Map Block (Static CSS Placeholder) */
.static-map {
  width: 100%;
  height: 300px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

.static-map::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px) 0 0 / 20px 20px;
}

.map-marker {
  position: relative;
  color: var(--color-accent-dark);
  z-index: 2;
  text-align: center;
  background: var(--color-surface);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-7) 0 var(--sp-5) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: var(--sp-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--sp-2);
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-accent-dark);
}

.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--sp-4);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none; /* Handled by JS */
}

.cookie-banner.is-visible {
  display: block;
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
}

.cookie-text p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* Reduced Motion */
@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;
  }
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}