:root {
  /* Soft Modern Palette */
  --c-bg: #F7F9F8;
  --c-surface: #FFFFFF;
  --c-surface-offset: #F0F4F2;
  --c-text: #2D3748;
  --c-text-light: #4A5568;
  --c-text-muted: #718096;
  --c-accent: #3A6351; /* Dark sage, contrast 6.2:1 against white */
  --c-accent-hover: #2D4C3E;
  --c-border: #E2E8F0;
  --c-error: #E53E3E;
  --c-error-bg: #FFF5F5;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  /* Aesthetics (Soft modern) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-micro: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
}

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

html {
  font-family: var(--font-sans);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Global Typography & Rules */
h1, h2, h3, h4, .brand {
  margin: 0 0 var(--space-16) 0;
  color: var(--c-text);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-accent-hover);
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.flex-min {
  min-width: 0;
}

/* Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: 64px;
  display: flex;
  align-items: center;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-text);
  text-decoration: none;
  margin: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--c-accent);
}

.brand svg {
  width: 24px;
  height: 24px;
  fill: var(--c-accent);
}

.nav-links {
  display: flex;
  gap: var(--space-24);
  align-items: center;
}

.nav-links a {
  color: var(--c-text-light);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--c-accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-accent);
  color: #FFFFFF;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--c-accent-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  padding: var(--space-8);
  background: transparent;
  border: none;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--c-text);
}

/* Hero Section */
.hero {
  padding: var(--space-64) 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-24);
}

.hero p {
  font-size: 1.25rem;
  color: var(--c-text-light);
  max-width: 600px;
  margin: 0 auto var(--space-40) auto;
}

/* Horizontal Split Cards (Soft Modern) */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
  margin-bottom: var(--space-64);
}

.card-horizontal {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.card-media {
  width: 100%;
  height: 250px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.card-meta {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--space-12);
}

.card-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-12);
}

.card-content p {
  color: var(--c-text-light);
  margin-bottom: var(--space-24);
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
}

/* Sub-page Content */
.page-header {
  padding: var(--space-64) 0 var(--space-40) 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto var(--space-64) auto;
  background: var(--c-surface);
  padding: var(--space-40);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
}

.article-content h2 {
  margin-top: var(--space-40);
  border-bottom: 2px solid var(--c-surface-offset);
  padding-bottom: var(--space-12);
}

.article-content h3 {
  margin-top: var(--space-24);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--space-16);
  padding-left: var(--space-24);
  color: var(--c-text-light);
}

.article-content li {
  margin-bottom: var(--space-8);
}

.stat-block {
  background: var(--c-surface-offset);
  padding: var(--space-24);
  border-radius: var(--radius-md);
  margin: var(--space-24) 0;
  display: flex;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 120px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: var(--space-12);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--c-text-light);
}

/* Supporting Section */
.supporting-section {
  background-color: var(--c-surface-offset);
  padding: var(--space-64) 0;
  margin-bottom: var(--space-64);
  border-radius: var(--radius-lg);
}

.supporting-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Forms & Contact */
.contact-grid {
  display: grid;
  gap: var(--space-40);
}

.form-group {
  margin-bottom: var(--space-24);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.form-control {
  width: 100%;
  padding: var(--space-12);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--c-bg);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--c-accent);
}

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

.error-msg {
  display: none;
  color: var(--c-error);
  font-size: 0.875rem;
  margin-top: var(--space-8);
}

.error-msg.is-visible {
  display: block;
}

.form-success {
  display: none;
  background: #E6FFFA;
  color: #234E52;
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-24);
}

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

.map-block {
  background: var(--c-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 300px;
}

.map-block svg {
  width: 48px;
  height: 48px;
  fill: var(--c-accent);
  margin-bottom: var(--space-16);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--space-64) 0 var(--space-40) 0;
}

.footer-grid {
  display: grid;
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-16);
}

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

.footer-col li {
  margin-bottom: var(--space-8);
}

.footer-col a {
  color: var(--c-text-light);
}

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

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--space-24);
  font-size: 0.875rem;
  color: var(--c-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  justify-content: space-between;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 800px;
  margin: 0 auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

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

.btn-outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: transparent;
}

/* Tables (for Cookie Policy) */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--c-border);
}

th {
  background-color: var(--c-surface-offset);
  font-weight: 600;
}

/* Media Queries */
@media (min-width: 768px) {
  .site-header {
    height: 64px;
  }
  .card-horizontal {
    flex-direction: row;
  }
  .card-media {
    flex: 0 0 40%;
    height: auto;
  }
  .card-content {
    padding: var(--space-40);
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--c-surface);
    flex-direction: column;
    padding: var(--space-24);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-micro);
  }
  .nav-links.is-visible {
    display: flex;
  }
  .article-content {
    padding: var(--space-24);
  }
}

@media (max-width: 399px) {
  .hero h1 {
    font-size: 2rem;
  }
  .card-content h2 {
    font-size: 1.25rem;
  }
  .btn {
    width: 100%;
  }
}

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