:root {
  /* Soft Modern Aesthetic */
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-alt: #f1f5f9;
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --error-color: #ef4444;
  --focus-ring: rgba(99, 102, 241, 0.5);
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -0.01em; margin-bottom: var(--space-4); }
h3 { font-size: 1.25rem; margin-bottom: var(--space-3); }

p { margin-bottom: var(--space-3); color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

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

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

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

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

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

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

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

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

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

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

.cta-button {
  background-color: var(--primary-color);
  color: var(--surface-color);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  color: var(--surface-color);
}

.cta-button:active {
  transform: scale(0.98);
}

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

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

/* Hero Section */
.hero {
  padding: var(--space-6) 0;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero h1 { margin-bottom: var(--space-4); }
.hero p { 
  font-size: 1.125rem; 
  max-width: 600px; 
  margin: 0 auto var(--space-5) auto; 
}

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

.grid {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Glass Overlay Cards */
.glass-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  height: 360px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  min-width: 0;
  background-color: var(--surface-color);
}

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

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

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

.glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

.glass-overlay p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Styling (Sub-pages & Legal) */
.article-header {
  padding: var(--space-6) 0 var(--space-5) 0;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-5);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-6) var(--space-4);
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.article-content h2 { margin-top: var(--space-5); margin-bottom: var(--space-3); }
.article-content h3 { margin-top: var(--space-4); margin-bottom: var(--space-2); }
.article-content p { margin-bottom: var(--space-3); font-size: 1.0625rem; }
.article-content ul, .article-content ol { margin-bottom: var(--space-3); padding-left: var(--space-4); color: var(--text-muted); }
.article-content li { margin-bottom: var(--space-2); font-size: 1.0625rem; }

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

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

th { background-color: var(--surface-alt); font-weight: 600; color: var(--text-main); }
tr:last-child td { border-bottom: none; }

/* Contact Form & Map */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  min-width: 0;
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-main);
}

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

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
  background-color: var(--surface-color);
}

.form-control.is-invalid {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-error {
  display: none;
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: var(--space-1);
}

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

.map-block {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: var(--radius-lg);
  background: var(--surface-alt) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e2e8f0"/><circle cx="50" cy="40" r="15" fill="%23cbd5e1"/><path d="M50 70 L35 40 L65 40 Z" fill="%23cbd5e1"/></svg>') center/cover;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-overlay {
  background: rgba(255,255,255,0.9);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
}

.form-success {
  display: none;
  padding: var(--space-4);
  background-color: #dcfce7;
  color: #166534;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

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

/* Stats Block */
.stat-item {
  display: flex;
  flex-direction: column;
  background: var(--surface-alt);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

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

.footer-col h4 {
  margin-bottom: var(--space-3);
  font-size: 1rem;
}

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

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

.footer-link-list a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

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

.cookie-content { flex: 1; }
.cookie-content p { font-size: 0.9375rem; margin: 0; }

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

.cookie-btn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

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

.cookie-btn-secondary {
  background-color: var(--surface-alt);
  color: var(--text-main);
  border-color: var(--border-color);
}
.cookie-btn-secondary:hover { background-color: #e2e8f0; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .site-header { height: 52px; }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-menu.is-visible { display: flex; }
  
  .mobile-toggle { display: block; }
  
  .cta-button.desktop-only { display: none; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  
  .glass-card { height: 300px; }
  
  /* Reset offsets below 768px per instructions */
  .glass-overlay { 
    border-top: none; 
    border-radius: 0 0 var(--radius-lg) var(--radius-lg); 
  }
}

@media (max-width: 400px) {
  .cookie-actions { flex-direction: column; width: 100%; }
  .cookie-btn { width: 100%; text-align: center; }
  .article-content { padding: var(--space-4) var(--space-3); }
}

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