:root {
  /* Soft modern color palette */
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-glass: rgba(255, 255, 255, 0.85);
  --c-text: #1e293b;
  --c-text-muted: #475569;
  --c-primary: #0ea5e9;
  --c-primary-hover: #0284c7;
  --c-primary-light: #e0f2fe;
  --c-accent: #f43f5e;
  --c-border: #e2e8f0;
  --c-error: #ef4444;
  --c-success: #10b981;
  --c-footer: #0f172a;
  --c-footer-text: #94a3b8;

  /* Spacing scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  /* Border radius (Soft modern) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows (Micro-shadows) */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3.5rem;
}

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

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

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

main {
  flex: 1;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6, .brand, .site-nav, .wrap-anywhere {
  margin-top: 0;
  margin-bottom: var(--space-16);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

h1 { font-size: var(--font-size-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
  margin-top: 0;
  margin-bottom: var(--space-24);
  color: var(--c-text-muted);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--c-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 Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

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

.grid {
  display: grid;
  gap: var(--space-40);
  grid-template-columns: 1fr;
}

.grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.grid > *, .flex > * {
  min-width: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-24);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--c-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background-color: var(--c-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--c-primary-light);
  color: var(--c-primary-hover);
}

/* Header */
.site-header {
  background-color: var(--c-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 100;
}

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

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

.brand svg {
  fill: var(--c-primary);
}

.brand:hover {
  color: var(--c-primary);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  margin-bottom: 0;
}

.site-nav a {
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: var(--space-8) 0;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--c-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-actions .btn {
  padding: var(--space-8) var(--space-16);
  font-size: var(--font-size-sm);
}

/* Hero Section */
.hero {
  padding: var(--space-64) 0;
  text-align: center;
  background: linear-gradient(to bottom, #e0f2fe 0%, var(--c-bg) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: var(--space-64);
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-24);
}

.hero p {
  max-width: 600px;
  margin: 0 auto var(--space-40);
  font-size: var(--font-size-lg);
}

/* Card Style: Glass overlay */
.card-glass {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-border);
  height: 420px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.card-glass .overlay {
  position: relative;
  z-index: 2;
  background: var(--c-surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: calc(100% - var(--space-32));
  margin: var(--space-16);
  padding: var(--space-24);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.card-glass h3 {
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
  color: var(--c-text);
}

.card-glass p {
  margin-bottom: var(--space-16);
  font-size: var(--font-size-sm);
  color: var(--c-text-muted);
}

.card-tags {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.tag {
  background: var(--c-primary-light);
  color: var(--c-primary-hover);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--c-primary);
}

/* Page Headers (Subpages) */
.page-header {
  padding: var(--space-64) 0;
  text-align: center;
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--space-64);
}

.page-header h1 {
  margin-bottom: var(--space-16);
}

/* Content Blocks */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--c-surface);
  padding: var(--space-40);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-wrapper h2 {
  margin-top: var(--space-40);
}

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

.content-wrapper ul {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
  color: var(--c-text-muted);
}

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

/* Stat blocks */
.stat-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--space-16);
  background: var(--c-bg);
  padding: var(--space-16);
  border-radius: var(--radius-sm);
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--c-primary);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--c-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tables */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-24);
}

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

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

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

td {
  color: var(--c-text-muted);
  font-size: var(--font-size-sm);
}

/* Contact Form */
.form-group {
  margin-bottom: var(--space-24);
}

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

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

.form-control:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

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

.error-message {
  display: none;
  color: var(--c-error);
  font-size: 0.75rem;
  margin-top: var(--space-4);
}

.form-control.is-invalid + .error-message {
  display: block;
}

.form-success {
  display: none;
  background-color: #d1fae5;
  color: var(--c-success);
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-24);
  font-weight: 600;
}

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

/* Static Map */
.static-map {
  width: 100%;
  height: 300px;
  background-color: #e2e8f0;
  background-image: linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker {
  width: 24px;
  height: 24px;
  background-color: var(--c-accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  box-shadow: var(--shadow-md);
}

.map-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Footer */
.site-footer {
  background-color: var(--c-footer);
  color: var(--c-footer-text);
  padding: var(--space-64) 0 var(--space-24);
  margin-top: var(--space-64);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-col h4 {
  color: #ffffff;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-16);
}

.footer-col p, .footer-col address {
  font-style: normal;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

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

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

.footer-links a {
  color: var(--c-footer-text);
  font-size: var(--font-size-sm);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  font-size: 0.75rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--c-surface);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: var(--space-24);
  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-16);
}

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

.cookie-content p {
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

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

.cookie-actions button {
  font-size: 0.75rem;
  padding: var(--space-8) var(--space-16);
}

/* Responsive */
@media (max-width: 767px) {
  .header-inner {
    height: 52px;
  }
  
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background-color: var(--c-surface);
    flex-direction: column;
    padding: var(--space-24);
    box-shadow: var(--shadow-md);
    gap: var(--space-16);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.3s ease;
  }

  .site-nav.is-open {
    clip-path: inset(0 0 0 0);
  }

  .nav-actions {
    display: none;
  }

  .content-wrapper {
    padding: var(--space-24);
  }

  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
}

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

@media (max-width: 399px) {
  :root {
    --space-40: 24px;
    --space-64: 40px;
  }
  
  .card-glass {
    height: 340px;
  }
  
  h1 { font-size: var(--font-size-2xl); }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-actions button {
    width: 100%;
  }
}