:root {
  /* Soft Modern Palette - Pastels & Neutrals */
  --mint: #e8f5e9;
  --peach: #fff3e0;
  --lavender: #f3e5f5;
  --blue-pastel: #a2d2ff;
  --primary: #4db6ac;
  --primary-hover: #26a69a;
  --text-dark: #2b2d42;
  --text-light: #64748b;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --error: #ef4444;

  /* Spacing Scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 40px;
  --sp-7: 64px;

  /* Shadows (Micro-shadows) */
  --shadow-sm: 0 2px 8px rgba(43, 45, 66, 0.04);
  --shadow-md: 0 4px 24px rgba(43, 45, 66, 0.06);
  --shadow-lg: 0 12px 32px rgba(43, 45, 66, 0.08);

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, a, .brand {
  overflow-wrap: anywhere;
}

h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: var(--sp-4); }
h2 { font-size: 2rem; line-height: 1.3; margin-bottom: var(--sp-4); margin-top: var(--sp-6); }
h3 { font-size: 1.5rem; line-height: 1.4; margin-bottom: var(--sp-3); margin-top: var(--sp-5); }
p { margin-bottom: var(--sp-4); }

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

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

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--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;
  }
}

/* Header & Nav */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--sp-5);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

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

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--sp-5);
}

.nav-list a {
  color: var(--text-dark);
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: var(--sp-2);
}

/* Buttons */
.btn-primary, .btn-outline, .btn-compact {
  display: inline-block;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-compact {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  background: var(--primary);
  color: var(--white);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover, .btn-compact:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  background: #f1f5f9;
}

.w-full {
  width: 100%;
}

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

.section-spacing {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-7);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--mint) 0%, var(--blue-pastel) 100%);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-top: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-dark);
}

.hero-content h1 {
  color: var(--text-dark);
}

/* Cards (Glass Overlay Style) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-6);
  min-width: 0;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 400px;
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

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

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

.card-overlay {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  z-index: 2;
  color: var(--text-dark);
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.card h3 {
  margin-top: 0;
  margin-bottom: var(--sp-2);
  color: var(--text-dark);
  font-size: 1.25rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Page Layout */
.page-container {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--sp-5);
}

.hero-image-wrapper {
  margin-bottom: var(--sp-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.content-wrapper .lead-text {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: var(--sp-6);
}

.content-list {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-5);
}

.content-list li {
  margin-bottom: var(--sp-2);
}

/* Soft Panel */
.soft-panel {
  background: var(--white);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Stats Row */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  margin-top: var(--sp-3);
  font-weight: 500;
  color: var(--text-light);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--sp-5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.content-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: var(--white);
}

.content-table th, .content-table td {
  padding: var(--sp-4);
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.content-table th {
  background: #f8fafc;
  font-weight: 600;
}

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

.map-block {
  margin-top: var(--sp-6);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

input.is-invalid, select.is-invalid, textarea.is-invalid {
  border-color: var(--error);
  background: #fef2f2;
}

.error-message {
  color: var(--error);
  font-size: 0.875rem;
}

[hidden] {
  display: none !important;
}

.form-success {
  background: var(--mint);
  color: var(--text-dark);
  padding: var(--sp-4);
  border-radius: var(--radius-sm);
  margin-top: var(--sp-4);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--white);
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
}

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

.footer-col p {
  color: var(--text-light);
  font-size: 0.875rem;
}

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

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

.footer-links a {
  color: var(--text-light);
  font-size: 0.875rem;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: var(--sp-6) auto 0;
  padding-top: var(--sp-5);
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: var(--sp-5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cookie-content h4 {
  margin-bottom: var(--sp-2);
}

.cookie-content p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

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

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

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

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: var(--sp-5);
    box-shadow: var(--shadow-md);
    z-index: 100;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .btn-compact {
    width: 100%;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-overlay {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }
}

@media (max-width: 400px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .card { min-height: 300px; }
  .hero { padding: var(--sp-5) var(--sp-4); border-radius: 0; }
  .soft-panel { padding: var(--sp-4); }
  .cookie-actions button { width: 100%; }
}