:root {
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --color-bg: #fcfcfd;
  --color-surface: #ffffff;
  --color-text: #2d3436;
  --color-text-muted: #636e72;
  --color-text-light: #b2bec3;
  --color-accent: #a3d8f4;
  --color-accent-dark: #0984e3;
  --color-accent-hover: #74b9ff;
  --color-border: #dfe6e9;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  
  --font-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-height-desk: 64px;
  --header-height-mob: 52px;
}

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

html {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--space-16);
  color: var(--color-text);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; }

p {
  margin-top: 0;
  margin-bottom: var(--space-24);
}

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

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 2px;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

.brand-name {
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  min-width: 0;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height-desk);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  z-index: 102;
}

.brand svg {
  width: 24px;
  height: 24px;
}

.nav-toggle {
  display: none;
  padding: var(--space-8);
  z-index: 102;
  color: var(--color-text);
}

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

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}

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

.header-cta {
  background-color: var(--color-accent-dark);
  color: var(--color-surface);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
  z-index: 102;
}

.header-cta:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-surface);
}

/* Hero Section */
.hero {
  padding: var(--space-64) 0;
  text-align: center;
  background: radial-gradient(circle at 50% -20%, var(--color-accent), var(--color-bg) 70%);
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-40);
}

/* Layout Utilities */
.section-space {
  padding: var(--space-64) 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-40);
  min-width: 0;
}

/* Card Style: Glass Overlay */
.glass-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  background-color: var(--color-surface);
}

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

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

.glass-card-overlay {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  margin: var(--space-16);
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

.glass-card:hover .glass-card-overlay {
  background: rgba(255, 255, 255, 0.9);
}

.glass-card-title {
  color: var(--color-text);
  margin-bottom: var(--space-8);
  font-size: 1.25rem;
}

.glass-card-desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Content Pages */
.page-header {
  padding: var(--space-64) 0 var(--space-40);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-64);
}

.content-body {
  max-width: 800px;
  margin: 0 auto var(--space-64);
  padding: 0 var(--space-24);
}

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

.content-body ul, .content-body ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

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

.stat-block {
  display: flex;
  align-items: baseline;
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-24);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-right: var(--space-12);
}

.stat-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  margin-bottom: var(--space-64);
}

.form-group {
  margin-bottom: var(--space-24);
}

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

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

.form-control:focus {
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.15);
  outline: none;
}

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

.btn-submit {
  background-color: var(--color-accent-dark);
  color: var(--color-surface);
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
}

.btn-submit:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-surface);
}

.contact-info {
  background: var(--color-surface);
  padding: var(--space-40);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.map-placeholder {
  width: 100%;
  height: 240px;
  background-color: #e9ecef;
  background-image: repeating-linear-gradient(45deg, #e9ecef 25%, transparent 25%, transparent 75%, #e9ecef 75%, #e9ecef), repeating-linear-gradient(45deg, #e9ecef 25%, #f8f9fa 25%, #f8f9fa 75%, #e9ecef 75%, #e9ecef);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-weight: 500;
  border: 1px solid var(--color-border);
}

.form-success {
  display: none;
  background-color: #d1ced1;
  background: #e3fcef;
  color: #00b894;
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-24);
  font-weight: 500;
}
.form-success.is-visible { display: block; }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-24);
}

.data-table th, .data-table td {
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

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

.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-64) 0 var(--space-24);
}

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

.footer-col h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-16);
}

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

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

.footer-list a {
  color: var(--color-text-muted);
}

.footer-list a:hover {
  color: var(--color-accent-dark);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-24);
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: var(--space-16);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-surface);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: var(--space-24);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner[hidden] {
  display: block;
  transform: translateY(120%);
  pointer-events: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  align-items: center;
  justify-content: space-between;
}

.cookie-text {
  flex: 1 1 300px;
  margin: 0;
  font-size: 0.9375rem;
}

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

.btn-cookie {
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-surface);
}

.btn-cookie[data-cookie-choice="accept"] {
  background: var(--color-accent-dark);
  color: var(--color-surface);
  border-color: var(--color-accent-dark);
}

.btn-cookie:hover {
  background: var(--color-border);
}

.btn-cookie[data-cookie-choice="accept"]:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Responsive */
@media (max-width: 767px) {
  .site-header {
    height: var(--header-height-mob);
  }
  
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: var(--header-height-mob);
    left: 0;
    width: 100%;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-24);
    box-shadow: var(--shadow-md);
    gap: var(--space-16);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease;
    visibility: hidden;
  }
  
  .main-nav.is-visible {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 399px) {
  :root {
    --space-64: 40px;
    --space-40: 24px;
  }
  
  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-cookie {
    width: 100%;
  }
}

/* Accessibility - Reduced Motion */
@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;
  }
}