:root {
  /* Soft Modern Aesthetic - Pastels, gentle surfaces */
  --bg-color: #f7f9fa;
  --surface-color: #ffffff;
  --primary-color: #7b9e87;
  --primary-hover: #6a8c76;
  --accent-color: #f4c27f;
  --text-main: #2b3a42;
  --text-light: #5c6b73;
  --border-light: #e2e8f0;
  --error-color: #e76f51;
  --focus-ring: #7b9e87;
  
  /* Spacing Scale: 4, 8, 16, 24, 40, 64px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  
  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  
  /* Micro-shadows */
  --shadow-sm: 0 2px 8px rgba(43, 58, 66, 0.04);
  --shadow-md: 0 8px 24px rgba(43, 58, 66, 0.06), 0 2px 6px rgba(43, 58, 66, 0.03);
  
  /* Radii */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* Typography & Wrapping Rules */
h1, h2, h3, h4, h5, h6, .brand-name, .nav-links a {
  overflow-wrap: anywhere;
  color: var(--text-main);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: var(--space-4); color: #1f2a30; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: var(--space-4); margin-top: var(--space-5); }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-3); margin-top: var(--space-4); }
p { margin-bottom: var(--space-3); }

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

/* Focus & Accessibility */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
}

@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 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  min-width: 0;
}

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

/* Header */
.site-header {
  height: 52px; /* Mobile height */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: relative; /* Not sticky */
  z-index: 100;
}
@media (min-width: 768px) {
  .site-header { height: 64px; } /* Desktop height */
}

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

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

.brand-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
}

/* Navigation */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-menu {
  display: none;
  list-style: none;
}
.nav-menu.is-visible {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface-color);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: var(--space-4);
    align-items: center;
  }
}

.nav-menu a {
  color: var(--text-main);
  font-weight: 500;
}
.nav-menu a:hover {
  color: var(--primary-color);
}

.header-cta {
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.header-cta:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  .header-cta { display: none; }
  .nav-menu .header-cta {
    display: inline-block;
    text-align: center;
    margin-top: var(--space-3);
  }
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--space-6) 0;
}

.hero {
  text-align: center;
  margin-bottom: var(--space-6);
  padding: var(--space-6) var(--space-4);
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Card Style: Horizontal Split */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .card {
    flex-direction: row;
    height: 280px;
  }
}

.card-media {
  flex: 0 0 40%;
  min-width: 0;
  background: var(--bg-color);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.card-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.tag {
  background: var(--bg-color);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.card-excerpt {
  color: var(--text-light);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.card-cta {
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
}
.card-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.card:hover .card-cta svg {
  transform: translateX(4px);
}

/* Single Page Article Formatting */
.article-header {
  margin-bottom: var(--space-5);
}
.article-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: var(--space-3);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.article-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.content-block {
  background: var(--surface-color);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}
.content-block h2 {
  margin-top: 0;
}
.content-block ul, .content-block ol {
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
}
.content-block li {
  margin-bottom: var(--space-2);
}

/* Statistics Block Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.stat-box {
  background: var(--bg-color);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px; /* 12px strictly enforced by prompt */
  display: block;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Tables for Content & Legal */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  padding: var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
th {
  background: var(--bg-color);
  font-weight: 600;
}
tr:last-child td { border-bottom: none; }

/* Contact Forms */
.form-group {
  margin-bottom: var(--space-4);
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.form-control {
  width: 100%;
  padding: 12px var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  background: var(--bg-color);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--focus-ring);
  background: var(--surface-color);
}
.form-control.is-invalid {
  border-color: var(--error-color);
}
.form-error {
  display: none;
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: var(--space-1);
}
.form-control.is-invalid + .form-error {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-secondary {
  background: #e2e8f0;
  color: #1a202c;
}
.btn-secondary:hover {
  background: #cbd5e1;
  color: #1a202c;
  transform: translateY(-2px);
}

.form-success {
  display: none;
  background: #d1e7dd;
  color: #0f5132;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.form-success.is-visible { display: block; }

/* Styled Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: 
    linear-gradient(rgba(247, 249, 250, 0.9), rgba(247, 249, 250, 0.9)),
    url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0z" fill="%23e2e8f0"/><path d="M0 0h39v39H0z" fill="%23f7f9fa"/></svg>');
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: var(--space-5);
}
.map-pin {
  width: 48px;
  height: 48px;
  fill: var(--error-color);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Contact Grid */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.site-footer {
  background: var(--surface-color);
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.footer-col h4 {
  margin-bottom: var(--space-3);
  font-size: 1.125rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: var(--space-2);
}
.footer-links a {
  color: var(--text-light);
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-4);
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-color);
  padding: var(--space-4);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-content p {
  margin-bottom: 0;
  font-size: 0.875rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.cookie-actions button {
  font-size: 0.875rem;
  padding: 8px 16px;
}
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-content { flex: 1; margin-right: var(--space-4); }
}