/* BASE VARIABLES & SETUP */
:root {
  /* Swiss Minimalist Palette */
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-muted: #555555;
  --color-accent: #0033ff;
  --color-accent-hover: #0022aa;
  --color-border: #e0e0e0;
  --color-error: #e63946;
  --color-panel: #f8f8f8;
  
  /* Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
  
  /* Typography */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  /* Header Heights */
  --header-height-desk: 64px;
  --header-height-mob: 52px;
}

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

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

html {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  font-size: 16px;
}

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

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .brand-name, .nav-link {
  overflow-wrap: anywhere;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--sp-24);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--sp-24);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: var(--sp-16);
}

p {
  margin-bottom: var(--sp-16);
  color: var(--color-text-muted);
}

.article-content p, .article-content li {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 75ch;
  color: var(--color-text);
  margin-bottom: var(--sp-24);
}

.article-content h2 { margin-top: var(--sp-64); }
.article-content h3 { margin-top: var(--sp-40); }
.article-content ul, .article-content ol {
  margin-bottom: var(--sp-24);
  padding-left: var(--sp-24);
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { color: var(--color-accent); }

/* ACCESSIBILITY & FOCUS */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
}

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

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

/* HEADER */
.site-header {
  height: var(--header-height-desk);
  border-bottom: 2px solid var(--color-text);
  background: var(--color-bg);
  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(--sp-8);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  min-width: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

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

.nav-link {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-link:hover { color: var(--color-accent); }

.nav-cta {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--sp-8) var(--sp-16);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  border: 2px solid var(--color-text);
}
.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
  position: relative;
}
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  left: 0;
}
.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { bottom: -8px; }

/* Swiss Minimalist Asymmetry Section */
.hero {
  padding: 120px 0 80px;
  border-bottom: 2px solid var(--color-text);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: end;
}
.hero-content { min-width: 0; }
.hero-desc {
  font-size: 1.5rem;
  color: var(--color-text);
  max-width: 400px;
}

/* HORIZONTAL SPLIT CARD (Style 1) */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-64);
  margin-top: var(--sp-64);
}

.card {
  display: flex;
  gap: var(--sp-24);
  min-width: 0;
  align-items: stretch;
}

.card-media {
  flex: 0 0 50%;
  min-width: 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  background: var(--color-panel);
}

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

.card-meta {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--sp-12);
  color: var(--color-text-muted);
}
.card-tags {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-24);
  flex-wrap: wrap;
}
.card-tag {
  background: var(--color-panel);
  padding: var(--sp-4) var(--sp-8);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  border-bottom: 2px solid var(--color-text);
  padding-bottom: var(--sp-4);
}
.card-cta:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* STATS GRID */
.stat-block {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--sp-24);
}
.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-12);
}
.stat-value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

/* FORMS */
.form-group {
  margin-bottom: var(--sp-24);
}
.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--sp-8);
}
.form-control {
  width: 100%;
  padding: var(--sp-16);
  border: 2px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}
.form-control:focus {
  border-color: var(--color-accent);
}
.form-control.is-invalid {
  border-color: var(--color-error);
}
.error-message {
  display: none;
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: var(--sp-8);
  font-weight: 700;
}
.is-invalid + .error-message {
  display: block;
}
.btn {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--sp-16) var(--sp-24);
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--color-text);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* TABLES (For Legal Pages) */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--sp-24);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  border: 2px solid var(--color-text);
  padding: var(--sp-16);
  text-align: left;
}
th {
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 700;
  text-transform: uppercase;
}

/* MAP BLOCK */
.map-block {
  width: 100%;
  height: 400px;
  background: var(--color-panel);
  border: 2px solid var(--color-text);
  margin-top: var(--sp-24);
}
.map-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  border-top: 2px solid var(--color-text);
  padding: var(--sp-64) 0 var(--sp-40);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-40);
  margin-bottom: var(--sp-64);
}
.footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: var(--sp-16);
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li { margin-bottom: var(--sp-8); }
.footer-links a { text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-16);
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-24);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--sp-24);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-content p {
  color: var(--color-bg);
  margin: 0;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-16);
}
.cookie-btn {
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-bg);
  padding: var(--sp-8) var(--sp-16);
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-family: inherit;
  font-size: 0.875rem;
}
.cookie-btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}
.cookie-btn.outline {
  background: transparent;
  color: var(--color-bg);
}
.cookie-btn.outline:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .site-header { height: var(--header-height-mob); }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height-mob);
    left: 0;
    width: 100%;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-text);
    flex-direction: column;
    padding: var(--sp-24);
    gap: var(--sp-24);
    z-index: 1000;
  }
  .site-nav.is-open { display: flex; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
  }
  
  .card {
    flex-direction: column;
  }
  
  .cookie-banner {
    flex-direction: column;
  }
}

@media (max-width: 399px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: var(--sp-40) 0; }
  .btn, .cookie-btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}