:root {
  /* Soft Modern Palette */
  --bg: #f9f7f4;
  --surface: #ffffff;
  --surface-blur: rgba(255, 255, 255, 0.75);
  --text-main: #2b332e;
  --text-light: #59655d;
  --accent: #789982;
  --accent-hover: #5d7a66;
  --accent-light: #dbe5de;
  --border: #e3ded6;
  --error: #d96c6c;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* 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-md: 16px;
  --radius-lg: 24px;
  --shadow-micro: 0 4px 20px rgba(43, 51, 46, 0.06);
  --shadow-hover: 0 8px 32px rgba(43, 51, 46, 0.12);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  min-width: 280px;
}

/* Accessibility & Utilities */
h1, h2, h3, h4, h5, h6, .brand-name, .nav-links {
  overflow-wrap: anywhere;
}

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  background: var(--surface);
  height: 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

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

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

.logo svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--border);
  color: var(--text-main);
}

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

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

/* Hero Section */
.hero {
  padding: var(--sp-64) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: var(--sp-24);
  color: var(--text-main);
}

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

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

.glass-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-micro);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--surface);
  min-width: 0;
}

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

.glass-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-24);
  background: var(--surface-blur);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.glass-overlay h3 {
  color: var(--text-main);
  font-size: 1.25rem;
  margin: 0;
}

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

/* Content Pages */
.page-header {
  padding: var(--sp-64) 0 var(--sp-40);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--sp-16);
}

.content-area {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-64);
  box-shadow: var(--shadow-micro);
  margin-bottom: var(--sp-64);
}

.content-area h2 {
  font-size: 1.75rem;
  margin: var(--sp-40) 0 var(--sp-16);
  color: var(--text-main);
}

.content-area h3 {
  font-size: 1.35rem;
  margin: var(--sp-24) 0 var(--sp-16);
  color: var(--text-main);
}

.content-area p {
  margin-bottom: var(--sp-16);
  color: var(--text-light);
}

.content-area ul {
  margin-bottom: var(--sp-24);
  padding-left: var(--sp-24);
  color: var(--text-light);
}

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

.content-area table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-24) 0;
}

.content-area th, .content-area td {
  border: 1px solid var(--border);
  padding: var(--sp-12) var(--sp-16);
  text-align: left;
}

.content-area th {
  background: var(--bg);
  font-weight: 600;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--sp-24);
}

/* Contact Form & Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
}

.form-group {
  margin-bottom: var(--sp-24);
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: var(--sp-8);
}

.form-control {
  padding: var(--sp-12);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-main);
  transition: border-color 0.2s ease;
}

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

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

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

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

.static-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom right, #e2e8f0, #cbd5e1);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-24);
}

.pin {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
}

.pin::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact-info p {
  margin-bottom: var(--sp-8);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

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

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

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

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

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

.footer-col a {
  color: var(--text-light);
}

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  padding: var(--sp-24);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-text {
  flex: 1 1 300px;
  font-size: 0.95rem;
  color: var(--text-light);
}

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

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    height: 52px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: var(--sp-24);
    gap: var(--sp-16);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-micro);
    display: none;
  }
  
  .nav-links.is-visible {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .content-area {
    padding: var(--sp-24);
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .glass-card {
    border-radius: var(--radius-sm);
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-actions .btn {
    width: 100%;
  }
}

@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;
  }
}