:root {
  /* Soft Modern Palette - Pastels & Micro-shadows */
  --bg-page: #fbf9f6;
  --bg-card: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.75);
  --text-main: #2c302e;
  --text-muted: #5e6561;
  --accent-primary: #8ba888;
  --accent-hover: #728f6f;
  --accent-light: #e3ebe2;
  --border-light: #eae6df;
  
  /* Spacing Scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 48, 46, 0.04);
  --shadow-md: 0 8px 32px rgba(44, 48, 46, 0.06);
  --shadow-hover: 0 16px 48px rgba(44, 48, 46, 0.09);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

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

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

/* Typography Constraints */
h1, h2, h3, h4, h5, h6, .brand-name, nav, .wrap-text {
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--sp-24); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--sp-16); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: var(--sp-16); }
p { margin-bottom: var(--sp-16); }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* Accessibility Focus */
:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: -1px;
}

/* Header */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 var(--sp-24);
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: relative; /* Not sticky per rules */
  z-index: 100;
}

@media (max-width: 767px) {
  .site-header {
    height: 52px;
    padding: 0 var(--sp-16);
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

.nav-links {
  display: flex;
  gap: var(--sp-24);
  list-style: none;
}

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

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

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

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

/* Mobile Nav */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-4);
  color: var(--text-main);
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: var(--sp-24);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-visible {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: var(--sp-16);
  }
  .header-cta {
    width: 100%;
    text-align: center;
    margin-top: var(--sp-16);
  }
}

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

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

.page-main {
  flex: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: calc(var(--sp-64) + var(--sp-40)) 0 var(--sp-64);
  background: linear-gradient(to bottom, var(--accent-light) 0%, var(--bg-page) 100%);
}
.hero-subtitle {
  color: var(--accent-hover);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: var(--sp-16);
  display: block;
}
.hero p {
  max-width: 600px;
  margin: 0 auto var(--sp-24);
  color: var(--text-muted);
  font-size: 1.125rem;
}

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

.card-horizontal {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  min-width: 0; /* allows shrinking */
}

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

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

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

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

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

.tag {
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 4px var(--sp-12);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

.card-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--sp-24);
}

.card-meta strong {
  color: var(--text-main);
  margin-right: var(--sp-4);
}

.card-desc {
  color: var(--text-muted);
  margin-bottom: var(--sp-24);
}

.card-cta {
  align-self: flex-start;
  display: inline-block;
  background: transparent;
  color: var(--accent-hover);
  border: 2px solid var(--accent-hover);
  padding: var(--sp-8) var(--sp-24);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Content Pages */
.article-header {
  padding: var(--sp-64) 0 var(--sp-40);
  text-align: center;
  background: var(--accent-light);
  margin-bottom: var(--sp-64);
}
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--sp-24) var(--sp-64);
}
.article-content h2 {
  margin-top: var(--sp-40);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--sp-8);
}
.article-content h3 {
  margin-top: var(--sp-24);
}
.article-content ul, .article-content ol {
  margin-bottom: var(--sp-16);
  padding-left: var(--sp-24);
}
.article-content li {
  margin-bottom: var(--sp-8);
}

/* Stats Block / Specs */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-24);
  background: var(--bg-card);
  padding: var(--sp-24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: var(--sp-40) 0;
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}
.spec-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.spec-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Supporting Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-24);
  margin-top: var(--sp-40);
}
.feature-box {
  background: var(--bg-card);
  padding: var(--sp-24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-8);
}

/* Forms */
.form-group {
  margin-bottom: var(--sp-24);
}
.form-label {
  display: block;
  margin-bottom: var(--sp-8);
  font-weight: 600;
  color: var(--text-main);
}
.form-control {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}
.form-control.is-invalid {
  border-color: #d9534f;
}
.error-message {
  display: none;
  color: #d9534f;
  font-size: 0.875rem;
  margin-top: var(--sp-8);
}
.error-message.is-visible {
  display: block;
}
.btn-submit {
  background: var(--accent-primary);
  color: #fff;
  border: none;
  padding: var(--sp-12) var(--sp-24);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.btn-submit:hover {
  background: var(--accent-hover);
}

/* Static Map */
.static-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e0e8e1 0%, #c8d6ca 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--sp-24);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-marker {
  width: 32px;
  height: 32px;
  fill: #d9534f;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.2));
}

/* Tables for Policies */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-24);
  overflow-x: auto;
  display: block;
}
.policy-table th, .policy-table td {
  padding: var(--sp-12);
  border: 1px solid var(--border-light);
  text-align: left;
}
.policy-table th {
  background: var(--accent-light);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  padding: var(--sp-64) 0 var(--sp-24);
  border-top: 1px solid var(--border-light);
  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 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-16);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: var(--sp-8);
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-hover);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-light);
  padding-top: var(--sp-24);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: var(--sp-24);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
  border-top: 1px solid var(--border-light);
}
.cookie-banner.is-visible {
  display: block;
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-actions {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}
.btn-cookie {
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-main);
  transition: all 0.2s;
}
.btn-cookie[data-cookie-choice="accept"] {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}
.btn-cookie:hover {
  background: var(--accent-light);
  color: var(--text-main);
}
.btn-cookie[data-cookie-choice="accept"]:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Responsive Overrides */
@media (max-width: 767px) {
  .card-horizontal {
    flex-direction: column;
  }
  .card-media {
    flex: 0 0 250px;
  }
  .card-content {
    padding: var(--sp-24);
  }
}

@media (max-width: 399px) {
  :root {
    --sp-64: 40px;
    --sp-40: 24px;
  }
  .container {
    padding: 0 var(--sp-16);
  }
  .header-inner {
    flex-wrap: wrap;
  }
}

/* Motion Preferences */
@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;
  }
}