:root {
  --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-light: #555555;
  --color-border: #e0e0e0;
  --color-accent: #d92323;
  --color-accent-text: #ffffff;
  --color-banner-bg: #111111;
  --color-banner-text: #ffffff;

  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
  --sp-128: 128px;

  --radius-sm: 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;
  }
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1, h2, h3, h4, .brand {
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: var(--sp-24); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: var(--sp-24); }
h3 { font-size: 1.5rem; margin-bottom: var(--sp-16); }

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

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-24);
  min-width: 0;
}

.col-12 { grid-column: span 12; min-width: 0; }
.col-8 { grid-column: span 8; min-width: 0; }
.col-6 { grid-column: span 6; min-width: 0; }
.col-4 { grid-column: span 4; min-width: 0; }

@media (min-width: 768px) {
  .offset-md-2 { grid-column-start: 3; }
  .offset-md-4 { grid-column-start: 5; }
  .offset-md-6 { grid-column-start: 7; }
}

@media (max-width: 767px) {
  .grid { grid-template-columns: 1fr; }
  .col-8, .col-6, .col-4 { grid-column: span 1; }
}

/* Header */
.site-header {
  height: 64px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  background-color: var(--color-bg);
}

@media (max-width: 767px) {
  .site-header { height: 52px; }
}

.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.25rem;
  letter-spacing: -0.05em;
}

.brand-icon {
  width: 24px;
  height: 24px;
}

.site-nav {
  display: flex;
  gap: var(--sp-24);
  overflow-wrap: anywhere;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-compact {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
  border: 1px solid var(--color-text);
}

.btn-compact:hover {
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  border-color: var(--color-accent);
}

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

.menu-icon-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  
  .site-nav.is-visible {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--sp-24);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
}

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

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

/* Article Styling */
.article-header {
  padding: var(--sp-64) 0 var(--sp-40) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-40);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: var(--sp-64);
  margin-bottom: var(--sp-24);
}

.article-content h3 {
  margin-top: var(--sp-40);
  margin-bottom: var(--sp-16);
}

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

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

/* Horizontal Split Card */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
}

.card {
  display: flex;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  transition: border-color 0.3s;
  min-width: 0;
}

.card:hover {
  border-color: var(--color-text);
}

.card-media {
  flex: 0 0 40%;
  border-right: 1px solid var(--color-border);
  min-width: 0;
}

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

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

.card-title {
  font-size: 1.75rem;
  margin-bottom: var(--sp-16);
}

.card-excerpt {
  color: var(--color-text-light);
  margin-bottom: var(--sp-24);
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-24);
  border-top: 1px solid var(--color-border);
}

.card-tags {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.card-cta {
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .card { flex-direction: column; }
  .card-media { border-right: none; border-bottom: 1px solid var(--color-border); flex: 0 0 auto; height: 200px; }
  .card-body { padding: var(--sp-24); }
}

/* Stats / Info Block */
.stat-block {
  margin: var(--sp-40) 0;
  padding: var(--sp-24);
  border: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-24);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--sp-8);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-text);
}

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

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

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

.btn-submit {
  display: inline-block;
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.form-success {
  display: none;
  padding: var(--sp-24);
  background-color: #f4f4f4;
  border-left: 4px solid #111;
  margin-bottom: var(--sp-24);
}

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

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

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

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

th {
  font-weight: 700;
  background-color: #f9f9f9;
}

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: repeating-linear-gradient(
    45deg,
    #f4f4f4,
    #f4f4f4 10px,
    #ffffff 10px,
    #ffffff 20px
  );
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-24);
}

.map-marker {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding: var(--sp-8) var(--sp-16);
  font-weight: 700;
  font-size: 0.875rem;
}

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

.footer-section {
  margin-bottom: var(--sp-40);
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--sp-16);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

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

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

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-banner-bg);
  color: var(--color-banner-text);
  padding: var(--sp-24);
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

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

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.875rem;
  flex: 1;
}

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

.btn-cookie {
  background-color: transparent;
  color: var(--color-banner-text);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cookie[data-cookie-choice="accept"] {
  background-color: var(--color-banner-text);
  color: var(--color-banner-bg);
  border-color: var(--color-banner-text);
}

.btn-cookie:hover {
  opacity: 0.8;
}