:root {
  /* Soft Modern Aesthetic */
  --bg-color: #fcfcfd;
  --surface-color: #ffffff;
  --text-main: #2c3e50;
  --text-muted: #576574;
  --accent-color: #74b9ff;
  --accent-hover: #0984e3;
  --pastel-purple: #a29bfe;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-micro: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.06);
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --header-height-desktop: 64px;
  --header-height-mobile: 52px;
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

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

h1, h2, h3, h4, .brand-name {
  overflow-wrap: anywhere;
  margin-top: 0;
  color: #1a1a1a;
  line-height: 1.2;
}

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

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

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

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

/* Accessibility & Focus */
:focus-visible {
  outline: 3px solid var(--accent-color);
  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: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  min-width: 0;
}

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

/* Header */
.site-header {
  height: var(--header-height-desktop);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  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(--space-8);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

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

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

.nav-links a:hover {
  color: var(--text-main);
}

.header-cta {
  background: var(--pastel-purple);
  color: #fff;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
}
.header-cta:hover {
  background: #8e84fa;
  color: #fff;
}

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

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-main);
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-24);
}

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

/* Card Style 3: Glass Overlay */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-40);
}

.glass-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-soft);
  display: block;
  isolation: isolate;
}

.glass-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: 1;
}

.glass-card:hover img {
  transform: scale(1.05);
}

.glass-panel {
  position: absolute;
  bottom: var(--space-16);
  left: var(--space-16);
  right: var(--space-16);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover .glass-panel {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
}

.glass-panel h3 {
  margin: 0 0 var(--space-8);
  font-size: 1.2rem;
  color: var(--text-main);
}

.glass-panel p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.glass-panel .cta-text {
  display: inline-block;
  margin-top: var(--space-16);
  font-weight: 600;
  color: var(--accent-hover);
}

/* Content Pages */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-64) var(--space-24);
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
  margin-top: var(--space-40);
  margin-bottom: var(--space-40);
}

.content-page h2 {
  margin-top: var(--space-40);
  border-bottom: 2px solid #f1f2f6;
  padding-bottom: var(--space-8);
}

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

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

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

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

th, td {
  padding: var(--space-16);
  text-align: left;
  border-bottom: 1px solid #f1f2f6;
}

th {
  background: #f8f9fa;
  font-weight: 600;
  color: var(--text-main);
}

/* Forms */
.contact-form {
  display: grid;
  gap: var(--space-24);
}

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

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.2);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  display: none;
}
.error-message.is-visible {
  display: block;
}

.btn-submit {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn-submit:hover {
  background: var(--accent-hover);
}

/* Map Block */
.static-map {
  background: #f1f2f6;
  border-radius: var(--radius-md);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-24);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-24);
  border: 2px dashed #dcdde1;
}

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

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

.footer-col h4 {
  margin-bottom: var(--space-16);
}

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

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

.footer-col a {
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid #f1f2f6;
  padding-top: var(--space-24);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  background: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-24);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #f1f2f6;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text {
  font-size: 0.95rem;
}

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

.cookie-btn {
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-accept {
  background: var(--pastel-purple);
  color: #fff;
}
.btn-accept:hover { background: #8e84fa; }

.btn-reject {
  background: #f1f2f6;
  color: var(--text-main);
}
.btn-reject:hover { background: #e1e2e6; }

.btn-pref {
  background: transparent;
  border: 1px solid #dcdde1;
  color: var(--text-main);
}
.btn-pref:hover { background: #f8f9fa; }

/* Responsive */
@media (max-width: 767px) {
  .site-header {
    height: var(--header-height-mobile);
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    background: var(--surface-color);
    flex-direction: column;
    padding: var(--space-24);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid #f1f2f6;
  }

  .nav-links.is-open {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  .glass-card {
    height: 320px;
  }
}

@media (max-width: 399px) {
  .container {
    padding: 0 var(--space-16);
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--space-40) 0;
  }
}