:root {
  /* Soft Modern Palette (Pastels + Neutrals) */
  --bg-color: #fcfcfd;
  --surface-color: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.75);
  --text-primary: #2c3e50;
  --text-secondary: #596a7a;
  --accent-primary: #a3c4f3; /* Soft pastel blue */
  --accent-secondary: #f1c0e8; /* Soft pastel pink */
  --accent-tertiary: #b9fbc0; /* Soft pastel green */
  
  /* Utilities */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.09);
  
  /* Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
  
  /* Header heights */
  --header-desktop: 64px;
  --header-mobile: 52px;
}

/* Global Resets & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6, .brand-name {
  color: var(--text-primary);
  overflow-wrap: anywhere;
  line-height: 1.2;
}

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

p { margin-bottom: var(--sp-16); }

a {
  color: #1a56db;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e40af;
}

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

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

@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;
  }
}

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

.section {
  padding: var(--sp-64) 0;
}

.main-content {
  flex: 1;
}

.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 { margin-top: var(--sp-40); }
.prose h3 { margin-top: var(--sp-24); }
.prose ul, .prose ol { margin-bottom: var(--sp-16); padding-left: var(--sp-24); }
.prose li { margin-bottom: var(--sp-8); }

/* Header & Nav */
.site-header {
  height: var(--header-desktop);
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  min-width: 0; /* Allow shrinking */
}

.brand-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--accent-primary);
}

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

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--text-primary);
}

.nav-cta {
  background-color: var(--accent-primary);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover {
  background-color: #8bb4e7;
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-4);
  color: var(--text-primary);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-color) 0%, #e0eaf5 100%);
  padding: calc(var(--sp-64) * 1.5) 0;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
}

/* Glass Overlay Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-40);
  margin-top: var(--sp-40);
}

.glass-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--surface-color);
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
}

.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-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--sp-24);
  background: var(--surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.glass-card-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary);
}

.glass-card-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: var(--sp-12);
  align-items: center;
}

.glass-card-tags {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.glass-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a56db;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Feature Section */
.feature-section {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-40);
  box-shadow: var(--shadow-sm);
  margin-top: var(--sp-64);
}

/* Stats Block */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-24);
  margin: var(--sp-40) 0;
}

.stat-item {
  text-align: center;
  background: var(--bg-color);
  padding: var(--sp-24);
  border-radius: var(--radius-md);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: var(--sp-12);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--sp-24) 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

th, td {
  padding: var(--sp-16);
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

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

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

.form-control {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  background-color: var(--surface-color);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(163, 196, 243, 0.3);
}

.form-control.is-invalid {
  border-color: #dc2626;
}

.error-message {
  display: none;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: var(--sp-4);
}

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

.btn {
  display: inline-block;
  background-color: var(--text-primary);
  color: var(--surface-color);
  border: none;
  padding: var(--sp-12) var(--sp-24);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1rem;
}

.btn:hover {
  background-color: #1a252f;
  color: var(--surface-color);
}

/* Contact Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
}

.static-map {
  width: 100%;
  height: 300px;
  background-color: #e5e7eb;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--sp-24);
  position: relative;
  overflow: hidden;
}

.static-map::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.05) 100%);
  background-size: 20px 20px;
  background-image: linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
}

.map-marker {
  width: 32px;
  height: 32px;
  fill: #dc2626;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.2));
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-40);
  margin-bottom: var(--sp-40);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--sp-16);
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: var(--sp-24);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: var(--sp-24);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255,255,255,0.5);
}

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

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

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

.cookie-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.cookie-btn-primary {
  background: var(--text-primary);
  color: var(--surface-color);
}

.cookie-btn-secondary {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    height: var(--header-mobile);
  }

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

  .nav-menu.is-visible {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-40);
  }
}

@media (max-width: 400px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .glass-card-overlay {
    padding: var(--sp-16);
  }
  
  .section {
    padding: var(--sp-40) 0;
  }
}

/* Helper to allow shrinking inside flex/grid */
.min-w-0 {
  min-width: 0;
}