:root {
  /* Soft Modern Palette */
  --bg-color: #faf9f8;
  --surface-color: #ffffff;
  --primary-accent: #8a94e6;
  --primary-accent-hover: #737cce;
  --secondary-accent: #a3d8c1;
  --text-primary: #2c303a;
  --text-secondary: #5b6275;
  --text-light: #80889c;
  --border-color: #e8e6e1;
  --focus-outline: #2c303a;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --line-height-body: 1.6;
  --line-height-heading: 1.2;
  
  /* Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-micro: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 30px rgba(138, 148, 230, 0.15);
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: var(--line-height-body);
  font-size: 16px;
}

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

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

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

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

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

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

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 4px;
  border-radius: 2px;
}

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

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

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

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

.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.125rem;
  color: var(--text-primary);
}

.brand-mark {
  width: 24px;
  height: 24px;
  fill: var(--primary-accent);
}

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

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.header-cta {
  background-color: var(--primary-accent);
  color: #fff;
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.header-cta:hover {
  background-color: var(--primary-accent-hover);
  color: #fff;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #eef0fa 0%, #f7f9fc 100%);
  padding: var(--sp-64) 0;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: var(--sp-64);
}

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

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--sp-24);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-40);
}

/* Cards (Horizontal Split) */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
  margin-bottom: var(--sp-64);
}

.card--horizontal {
  display: flex;
  flex-direction: row;
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.card-media {
  flex: 1;
  min-width: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  flex: 2;
  padding: var(--sp-40);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

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

.card-tag {
  background-color: #f0f2fa;
  color: var(--primary-accent);
  padding: 4px var(--sp-12);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.card-cta {
  margin-top: var(--sp-24);
  align-self: flex-start;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

/* Content Pages */
.page-header {
  margin-bottom: var(--sp-40);
  padding-bottom: var(--sp-24);
  border-bottom: 1px solid var(--border-color);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--surface-color);
  padding: var(--sp-40);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
}

.page-content h2 {
  margin-top: var(--sp-40);
}

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

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

/* Data Table */
.data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--sp-24);
}

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

.data-table th, .data-table td {
  padding: var(--sp-16);
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.form-control {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background-color: var(--bg-color);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(138, 148, 230, 0.2);
}

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

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

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

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

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

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: #eef0fa;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-40);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
}

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

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

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

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

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

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

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-24);
  left: var(--sp-24);
  right: var(--sp-24);
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--sp-24);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  z-index: 9999;
  transform: translateY(150%);
  transition: transform 0.4s ease;
}

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

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

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

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

.cookie-btn-primary {
  background-color: var(--primary-accent);
  color: #fff;
}
.cookie-btn-primary:hover {
  background-color: var(--primary-accent-hover);
}

.cookie-btn-secondary {
  background-color: var(--bg-color);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.cookie-btn-secondary:hover {
  background-color: #eae8e3;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--sp-24);
  box-shadow: var(--shadow-micro);
  z-index: 1000;
}

.mobile-nav-overlay.is-visible {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    height: 52px;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .card--horizontal {
    flex-direction: column;
  }
  
  .card-content {
    padding: var(--sp-24);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .mobile-nav-overlay {
    top: 52px;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}