:root {
  /* Soft Modern Aesthetic */
  --primary: #5c7cfa; /* Soft Indigo */
  --primary-hover: #4c6ef5;
  --primary-light: #edf2ff;
  --accent: #20c997; /* Soft Teal */
  --text-dark: #212529;
  --text-body: #495057;
  --text-muted: #868e96;
  --bg-page: #f8f9fa;
  --bg-surface: #ffffff;
  --border: #e9ecef;
  
  /* Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  /* Shadows (Micro-shadows) */
  --shadow-sm: 0 2px 8px rgba(33, 37, 41, 0.04);
  --shadow-md: 0 8px 24px rgba(33, 37, 41, 0.06);
  --shadow-lg: 0 16px 40px rgba(33, 37, 41, 0.08);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

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

ul[role="list"], ol[role="list"] {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-page);
}

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

a, button, input, textarea, select {
  &:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
  }
}
a:not(:focus-visible), button:not(:focus-visible), input:not(:focus-visible), textarea:not(:focus-visible), select:not(:focus-visible) {
  outline: none;
}

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

a:hover {
  color: var(--primary-hover);
}

/* Typography Constraints */
h1, h2, h3, h4, .brand-name {
  color: var(--text-dark);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--text-dark);
}
.brand-name svg {
  flex-shrink: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: var(--space-24); }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-16); }

/* Layout Base */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}
@media (max-width: 399px) {
  .container { padding: 0 var(--space-16); }
}

.content-wrapper {
  min-width: 0;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary-light);
}

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

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

.nav-desktop {
  display: flex;
  gap: var(--space-24);
  align-items: center;
}
.nav-desktop a {
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-desktop a:hover {
  color: var(--primary);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-8);
  cursor: pointer;
  color: var(--text-dark);
}

/* Mobile Nav */
.nav-mobile {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-24);
  display: none;
  flex-direction: column;
  gap: var(--space-16);
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.nav-mobile.is-open {
  display: flex;
}
.nav-mobile a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  padding: var(--space-8) 0;
}

@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: block; }
}

/* Hero Section */
.hero {
  padding: var(--space-64) 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-page) 100%);
  text-align: center;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-body);
  margin-top: var(--space-24);
  margin-bottom: var(--space-40);
}

/* Cards Grid (Border Accent Style) */
.section {
  padding: var(--space-64) 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-24);
  min-width: 0;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-img-wrapper {
  margin: calc(var(--space-24) * -1) calc(var(--space-24) * -1) var(--space-24) calc(var(--space-24) * -1);
  overflow: hidden;
}
.card-img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-12);
  color: var(--text-dark);
}
.card-excerpt {
  color: var(--text-muted);
  margin-bottom: var(--space-24);
  flex-grow: 1;
}
.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: auto;
}

/* Article / Subpage Styles */
.article-header {
  padding: var(--space-64) 0 var(--space-40) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-40);
}
.article-header h1 {
  margin-bottom: var(--space-16);
}
.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h2 {
  margin-top: var(--space-64);
  margin-bottom: var(--space-24);
}
.article-content h3 {
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
}
.article-content p {
  margin-bottom: var(--space-16);
  font-size: 1.125rem;
}
.article-content ul, .article-content ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}
.article-content li {
  margin-bottom: var(--space-8);
  font-size: 1.125rem;
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-24) 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-24) 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-content th, .article-content td {
  padding: var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-content th {
  background-color: var(--primary-light);
  color: var(--text-dark);
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-24) 0;
}

/* Stats Block */
.stat-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Contact Form */
.form-group {
  margin-bottom: var(--space-24);
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-8);
  color: var(--text-dark);
}
.form-control {
  width: 100%;
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-surface);
  color: var(--text-dark);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}
.form-control.is-invalid {
  border-color: #fa5252;
}
.error-message {
  display: none;
  color: #fa5252;
  font-size: 0.875rem;
  margin-top: var(--space-4);
}
.is-invalid + .error-message {
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: var(--space-24);
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-64) 0 var(--space-40) 0;
  margin-top: var(--space-64);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}
.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-16);
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: var(--space-8);
}
.footer-links a {
  color: var(--text-body);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-24);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}
.cookie-text {
  flex: 1 1 300px;
  font-size: 0.9rem;
}
.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}