/* ==========================================================================
   Bundlesjivaro — Stylesheet
   Style: Botanical Fluid Glass
   Aesthetic: Soft Modern (rounded corners, soft blur, micro-shadows)
   Card Style: Glass Overlay (full-bleed media with translucent overlay panel)
   Palette: Sage, Sand, Terracotta, Warm White
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  /* Colors */
  --color-sage: #5A6F5A;
  --color-sage-dark: #3E4E3E;
  --color-sage-light: #7E9680;
  --color-sand: #EAE5DF;
  --color-sand-light: #F4EFEA;
  --color-terracotta: #C16B47;
  --color-terracotta-dark: #A05232;
  --color-warm-white: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-text-main: #232B23;
  --color-text-muted: #556255;
  --color-border: #DCD5CD;
  --color-border-subtle: rgba(90, 111, 90, 0.15);

  /* Glassmorphism Tokens */
  --glass-bg: rgba(250, 248, 245, 0.82);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: blur(14px);
  --glass-shadow: 0 10px 30px rgba(46, 56, 46, 0.08);

  /* Spacing Scale (4, 8, 16, 24, 40, 64px) */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --trans-speed: 0.25s;
  --trans-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: var(--color-warm-white);
  color: var(--color-text-main);
  font-family: var(--font-family);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-warm-white);
  color: var(--color-text-main);
}

main {
  flex: 1 0 auto;
}

/* Safe word break for responsive resilience */
h1, h2, h3, h4, h5, h6,
.brand-title,
.brand-link,
nav a {
  overflow-wrap: anywhere;
  min-width: 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-16);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
}

h4 {
  font-size: 1rem;
}

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

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--color-text-main);
}

/* Base Accessibility: Visible Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 2px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  min-width: 0;
}

/* Section Margins */
.content-section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.bg-surface {
  background-color: var(--color-sand);
  color: var(--color-text-main);
}

/* Links */
.text-link {
  color: var(--color-terracotta-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans-speed) var(--trans-ease);
}

.text-link:hover {
  color: var(--color-terracotta);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--trans-speed) var(--trans-ease),
              color var(--trans-speed) var(--trans-ease),
              border-color var(--trans-speed) var(--trans-ease),
              transform var(--trans-speed) var(--trans-ease),
              box-shadow var(--trans-speed) var(--trans-ease);
  min-width: 0;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: #FFFFFF;
  border-color: var(--color-terracotta);
  box-shadow: 0 4px 12px rgba(193, 107, 71, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  color: #FFFFFF;
  border-color: var(--color-terracotta-dark);
  box-shadow: 0 6px 16px rgba(193, 107, 71, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-sage-dark);
  border-color: var(--color-sage);
}

.btn-outline:hover {
  background-color: var(--color-sage);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-main);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-sand);
  color: var(--color-text-main);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Badges & Pills */
.section-badge,
.hero-kicker,
.card-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.section-badge,
.hero-kicker {
  background-color: rgba(90, 111, 90, 0.12);
  color: var(--color-sage-dark);
  margin-bottom: var(--space-16);
}

.card-pill {
  background-color: var(--color-sand);
  color: var(--color-sage-dark);
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   Header (Desktop 56-64px, Mobile 48-52px, not sticky)
   ========================================================================== */
.site-header {
  position: relative;
  background-color: var(--color-warm-white);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
  display: flex;
  align-items: center;
  color: var(--color-text-main);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-24);
  align-items: center;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--trans-speed) var(--trans-ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-terracotta);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--color-text-main);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text-main);
  transition: transform var(--trans-speed) var(--trans-ease),
              opacity var(--trans-speed) var(--trans-ease);
}

/* ==========================================================================
   Hero Section with Layered Balcony Depth & Botanical Fluid Glass
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: #ECE7E1;
  color: var(--color-text-main);
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-depth-sky {
  background: radial-gradient(circle at 75% 20%, #F5F1EB 0%, #DDE4DB 70%, #CAD8CA 100%);
  opacity: 0.9;
}

.hero-depth-architecture {
  background: repeating-linear-gradient(
    90deg,
    rgba(90, 111, 90, 0.04) 0px,
    rgba(90, 111, 90, 0.04) 2px,
    transparent 2px,
    transparent 80px
  );
}

.hero-depth-foliage {
  overflow: hidden;
}

.breeze-leaf {
  position: absolute;
  pointer-events: none;
}

.leaf-1 {
  width: 140px;
  height: 140px;
  top: 15%;
  right: 8%;
  animation: swayGentle 6s ease-in-out infinite alternate;
}

.leaf-2 {
  width: 190px;
  height: 190px;
  bottom: 8%;
  right: 4%;
  animation: swayGentle 8s ease-in-out infinite alternate-reverse;
}

.leaf-3 {
  width: 100px;
  height: 100px;
  top: 48%;
  right: 22%;
  animation: swayGentle 7s ease-in-out infinite alternate;
}

@keyframes swayGentle {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(4deg) translate3d(6px, -4px, 0);
  }
  100% {
    transform: rotate(-3deg) translate3d(-4px, 6px, 0);
  }
}

.hero-depth-balustrade {
  bottom: 0;
  height: 40px;
  top: auto;
  background: repeating-linear-gradient(
    90deg,
    rgba(62, 78, 62, 0.12) 0px,
    rgba(62, 78, 62, 0.12) 6px,
    transparent 6px,
    transparent 36px
  );
  border-top: 2px solid rgba(90, 111, 90, 0.2);
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
}

.hero-card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  max-width: 680px;
  box-shadow: var(--glass-shadow);
  color: var(--color-text-main);
}

.hero-heading {
  font-size: 2.5rem;
  margin-bottom: var(--space-16);
  color: var(--color-text-main);
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-24);
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-bottom: var(--space-40);
}

.hero-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-24);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  margin-bottom: 12px; /* rule: 12px between statistic and label */
}

.metric-caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   Page Hero (Sub-pages)
   ========================================================================== */
.page-hero-section {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
  background: linear-gradient(135deg, #ECE7E1 0%, #DDE5DC 100%);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.page-hero-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-40);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-main);
}

.page-hero-heading {
  font-size: 2.15rem;
  margin-bottom: var(--space-16);
}

.page-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 820px;
}

/* ==========================================================================
   Selected Card Style: Glass Overlay
   Commitment: Glass overlay — full-bleed image with a translucent panel over it
   ========================================================================== */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-40);
}

.section-title {
  margin-bottom: var(--space-8);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-40);
}

.glass-overlay-card {
  position: relative;
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  box-shadow: 0 4px 20px rgba(46, 56, 46, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform var(--trans-speed) var(--trans-ease),
              box-shadow var(--trans-speed) var(--trans-ease);
}

.glass-overlay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46, 56, 46, 0.12);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.card-overlay-panel {
  position: relative;
  z-index: 2;
  margin: var(--space-16);
  padding: var(--space-24); /* rule: min 24px between distinct elements */
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.card-title-link {
  color: var(--color-text-main);
  text-decoration: none;
  transition: color var(--trans-speed) var(--trans-ease);
}

.card-title-link:hover {
  color: var(--color-terracotta);
}

.card-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.card-footer-action {
  margin-top: var(--space-8);
}

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-terracotta-dark);
  text-decoration: none;
  transition: color var(--trans-speed) var(--trans-ease);
}

.card-cta-btn:hover {
  color: var(--color-terracotta);
}

/* ==========================================================================
   Editorial Split & Feature Layout
   ========================================================================== */
.editorial-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-40);
  align-items: start;
}

.split-text-column p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-checklist {
  list-style: none;
  margin-top: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.feature-checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.feature-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-terracotta);
  opacity: 0.9;
}

.split-glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-main);
}

.callout-heading {
  font-size: 1.2rem;
  margin-bottom: var(--space-24);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-8);
}

.callout-step {
  display: flex;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.callout-step:last-child {
  margin-bottom: 0;
}

.step-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-sage);
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ==========================================================================
   Article Layout (Sub-pages)
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-40);
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-figure {
  margin-bottom: var(--space-40);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-sand);
}

.article-image {
  width: 100%;
  height: auto;
  display: block;
}

figcaption {
  padding: var(--space-8) var(--space-16);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background-color: var(--color-sand);
}

.article-body h2 {
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  font-size: 1.5rem;
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: var(--space-24);
}

.article-bullet-list {
  margin-left: var(--space-24);
  margin-bottom: var(--space-24);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Comparison Specs Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-24);
  margin-bottom: var(--space-40);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

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

.specs-table th {
  background-color: var(--color-sand);
  color: var(--color-text-main);
  font-weight: 700;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Sidebar Cards */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.sidebar-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-main);
}

.sidebar-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  font-size: 0.9rem;
  margin-bottom: var(--space-24);
}

.sidebar-meta-list dt {
  font-weight: 600;
  color: var(--color-text-main);
}

.sidebar-meta-list dd {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.sidebar-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.sidebar-link-list a {
  color: var(--color-terracotta-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--trans-speed) var(--trans-ease);
}

.sidebar-link-list a:hover {
  color: var(--color-terracotta);
  text-decoration: underline;
}

/* ==========================================================================
   Contact Page Elements
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-40);
  align-items: start;
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-40);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-main);
}

.contact-card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-8);
}

.contact-card-lead {
  margin-bottom: var(--space-24);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.req {
  color: var(--color-terracotta);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--trans-speed) var(--trans-ease),
              box-shadow var(--trans-speed) var(--trans-ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-sage);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #D32F2F;
  background-color: #FFF9F9;
}

.field-error {
  font-size: 0.8rem;
  color: #D32F2F;
  min-height: 18px;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-8);
}

.checkbox-label {
  display: flex;
  gap: var(--space-8);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-checkbox {
  margin-top: 3px;
  accent-color: var(--color-sage);
}

.form-feedback {
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-16);
}

.form-feedback.is-success {
  background-color: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

.form-feedback.is-error {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.contact-meta-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
  font-size: 0.92rem;
}

.meta-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-8);
}

.meta-label {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 0.85rem;
}

.meta-value {
  color: var(--color-text-muted);
  margin-top: 2px;
}

.map-heading {
  font-size: 1.15rem;
  margin-top: var(--space-16);
  margin-bottom: var(--space-8);
}

.static-map-wrapper {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-bottom: var(--space-8);
  background-color: var(--color-sand);
}

.static-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Legal Card Layout (Privacy, Terms, Cookie)
   ========================================================================== */
.legal-card-layout {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-40);
  box-shadow: var(--glass-shadow);
  color: var(--color-text-main);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.legal-card-layout h2 {
  font-size: 1.4rem;
  margin-top: var(--space-40);
  margin-bottom: var(--space-16);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

.legal-card-layout h2:first-of-type {
  margin-top: 0;
}

.legal-card-layout p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-16);
}

.cookie-reset-block {
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
  padding: var(--space-24);
  background-color: var(--color-sand);
  border-radius: var(--radius-sm);
}

.caption-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-8);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #242E24;
  color: #F4EFEA;
  padding-top: var(--space-64);
  padding-bottom: var(--space-40);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  color: #C6D0C6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-40);
  min-width: 0;
}

.footer-brand-col .brand-link {
  color: #FFFFFF;
  margin-bottom: var(--space-16);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.footer-legal-copy {
  font-size: 0.8rem;
  color: #A3B2A3;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-16);
  letter-spacing: -0.01em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-link {
  color: #C6D0C6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--trans-speed) var(--trans-ease);
}

.footer-link:hover {
  color: var(--color-terracotta);
}

.footer-meta {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: var(--space-8);
}

.footer-meta strong {
  color: #FFFFFF;
}

/* ==========================================================================
   Cookie Banner (Fixed Bottom)
   ========================================================================== */
.cookie-banner-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(36, 46, 36, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: var(--space-16) 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner-wrap[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.cookie-banner-copy {
  flex: 1 1 340px;
}

.cookie-banner-title {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cookie-banner-text {
  font-size: 0.85rem;
  color: #D3DDD3;
  margin-bottom: 0;
  line-height: 1.4;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cookie-banner-actions .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.cookie-banner-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.cookie-banner-actions .btn-ghost {
  color: #D3DDD3;
}

.cookie-banner-actions .btn-ghost:hover {
  color: #FFFFFF;
  background-color: transparent;
}

/* ==========================================================================
   Responsive Adaptations
   Down to 320px with breakpoint below 400px
   ========================================================================== */
@media (max-width: 992px) {
  .hero-metric-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .editorial-split-layout,
  .article-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .header-cta-wrap {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-warm-white);
    color: var(--color-text-main);
    flex-direction: column;
    padding: var(--space-24);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--trans-speed) var(--trans-ease),
                opacity var(--trans-speed) var(--trans-ease);
    z-index: 100;
    overflow-y: auto;
  }

  .nav-menu.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: var(--space-16);
  }

  .nav-link {
    font-size: 1.15rem;
    padding: var(--space-8) 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .hero-heading {
    font-size: 1.85rem;
  }

  .hero-card-glass,
  .page-hero-glass,
  .contact-card,
  .legal-card-layout {
    padding: var(--space-24);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32, 32px);
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }
}

/* Breakpoint below 400px (e.g., 380px and down to 320px) */
@media (max-width: 380px) {
  .site-header {
    height: 48px;
  }

  .brand-title {
    font-size: 1rem;
  }

  h1, .hero-heading {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .hero-card-glass,
  .page-hero-glass,
  .contact-card,
  .legal-card-layout {
    padding: var(--space-16);
  }

  .card-overlay-panel {
    margin: var(--space-8);
    padding: var(--space-16);
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion Preference
   Rule: Disable transitions and animations only. Never blanket-disable transform.
   ========================================================================== */
@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;
  }
}