/* ==========================================================================
   BUNDLESZESTRY — SANTA GIULIA, CORSICA
   Color Palette: Lavender + Warm Ivory + Apricot + Dark Plum
   CRITICAL: ABSOLUTELY ZERO BLUE ANYWHERE IN THE UI.
   Aesthetic: Dark glassmorphism with frosted lagoon glass & neon gradient edges
   Card Style: Horizontal Split (media left, metadata + tags + CTA right)
   ========================================================================== */

:root {
  /* COLOR SYSTEM: ZERO BLUE HUES */
  --plum-950: #190714;
  --plum-900: #230b1c;
  --plum-850: #2c0f24;
  --plum-800: #38142e;
  --plum-700: #4a1b3e;
  --plum-600: #612552;

  --lavender-300: #eedff4;
  --lavender-400: #dfb6e8;
  --lavender-500: #c896d4;
  --lavender-600: #ad74ba;

  --apricot-300: #ffd4b8;
  --apricot-400: #fca172;
  --apricot-500: #ea7e5d;
  --apricot-600: #d66442;
  --apricot-700: #ba4f30;

  --ivory-50: #fffdf9;
  --ivory-100: #fbf6ec;
  --ivory-200: #f5edd8;
  --ivory-300: #ebe0c3;

  /* GLASSMORPHISM SURFACES */
  --glass-bg-primary: rgba(44, 15, 36, 0.72);
  --glass-bg-subtle: rgba(56, 20, 46, 0.50);
  --glass-bg-card: rgba(35, 11, 28, 0.78);
  --glass-border: rgba(223, 182, 232, 0.22);
  --glass-border-hover: rgba(252, 161, 114, 0.45);
  --glass-shadow: 0 16px 40px -8px rgba(18, 4, 15, 0.65);
  --glass-shadow-hover: 0 24px 50px -6px rgba(234, 126, 93, 0.25);

  /* TYPOGRAPHY SCALE */
  --font-serif: "Georgia", "Cambria", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* SPACING SCALE (Global Rule 7: 4, 8, 16, 24, 40, 64px) */
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  /* RADII */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* DEFAULT THEME ASSIGNMENT */
  --site-bg: var(--plum-950);
  --text-main: var(--ivory-100);
  --text-muted: var(--lavender-300);
  --link-color: var(--apricot-400);
}

/* DAY MODE SURROUNDING ATMOSPHERE OVERRIDE */
body[data-theme="day"] {
  --site-bg: #1c0a18;
  --glass-bg-primary: rgba(54, 19, 44, 0.82);
  --glass-border: rgba(250, 161, 114, 0.25);
  --text-main: #fffdf9;
}

/* NIGHT MODE SURROUNDING ATMOSPHERE OVERRIDE */
body[data-theme="night"] {
  --site-bg: #12030e;
  --glass-bg-primary: rgba(30, 8, 24, 0.88);
  --glass-border: rgba(223, 182, 232, 0.20);
  --text-main: #f5eedf;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--site-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* NO overflow-x: hidden on body per Rule 5 */
}

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

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

a:hover {
  color: var(--apricot-300);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ivory-50);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere; /* Rule 5 */
}

p, li, dd {
  overflow-wrap: anywhere; /* Rule 5 */
}

/* Rule 8: Visible :focus-visible on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--apricot-400);
  outline-offset: 3px;
}

/* Flex and Grid min-width zero rule (Rule 5) */
.nav-item,
.split-card-media,
.split-card-content,
.footer-col,
.time-card,
.stat-unit,
.panel-primary,
.panel-secondary,
.contact-form-panel,
.contact-details-panel {
  min-width: 0;
}

/* ==========================================================================
   HEADER (Rule 1: NOT STICKY. 56-64px desktop, 48-52px mobile)
   ========================================================================== */

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

.header-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--ivory-50);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  overflow-wrap: anywhere;
}

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

.brand-text {
  overflow-wrap: anywhere;
}

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

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

.nav-link {
  color: var(--ivory-200);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-8) 0;
  position: relative;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--apricot-400);
}

.nav-link.is-current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--apricot-500);
}

.header-cta {
  flex-shrink: 0;
}

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

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ivory-100);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

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

.btn-apricot {
  background-color: var(--apricot-500);
  color: var(--plum-950);
  border-color: var(--apricot-400);
}

.btn-apricot:hover {
  background-color: var(--apricot-400);
  color: var(--plum-950);
  box-shadow: 0 4px 16px rgba(234, 126, 93, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--ivory-100);
  border-color: var(--glass-border);
}

.btn-outline:hover {
  background-color: rgba(223, 182, 232, 0.12);
  border-color: var(--apricot-400);
  color: var(--apricot-300);
}

.btn-ghost {
  background-color: transparent;
  color: var(--lavender-300);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--ivory-50);
  background-color: rgba(255, 255, 255, 0.06);
}

.btn-full {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
}

.badge-apricot {
  background-color: rgba(234, 126, 93, 0.22);
  color: var(--apricot-300);
  border: 1px solid rgba(234, 126, 93, 0.45);
}

.badge-lavender {
  background-color: rgba(223, 182, 232, 0.18);
  color: var(--lavender-300);
  border: 1px solid rgba(223, 182, 232, 0.35);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* ==========================================================================
   HERO SECTION & DUAL DAY / NIGHT LAGOON VISUALIZER
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: var(--plum-950);
  padding: var(--space-40) var(--space-24) var(--space-64);
}

.hero-canvas-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 640px;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  isolation: isolate;
  /* Mask without overflow-x: hidden on body */
  clip-path: inset(0 0 0 0 round var(--radius-lg));
}

/* DUAL IMAGE LAYERS */
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-backdrop {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Authentic Corsican Lagoon Palettes (NO BLUE: warm silica ivory, sunlit sea amber, lavender twilight) */
.hero-day-bg {
  background: 
    radial-gradient(ellipse at 70% 30%, rgba(252, 161, 114, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, rgba(62, 21, 52, 0.85) 0%, rgba(41, 13, 34, 0.70) 50%, rgba(26, 7, 21, 0.9) 100%),
    url("images/santa-giulia-shallow-lagoon-waters-over-sandbar-and-seagrass.png") center/cover no-repeat;
}

.hero-night-bg {
  background: 
    radial-gradient(ellipse at 80% 20%, rgba(223, 182, 232, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, rgba(25, 6, 21, 0.95) 0%, rgba(35, 11, 29, 0.85) 50%, rgba(18, 4, 15, 0.98) 100%),
    url("images/warm-afternoon-sunlight-illuminating-the-rounded-granite-roc.png") center/cover no-repeat;
}

/* Layer Revelation clip-path controlled dynamically by JavaScript */
.hero-layer-night {
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transition: clip-path 0.4s ease-out;
}

/* LIQUID LAGOON SVG ANIMATION (Hero animation requirement) */
.hero-liquid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

.liquid-waves {
  width: 100%;
  height: 100%;
}

.wave-1 {
  fill: rgba(45, 16, 38, 0.65);
  animation: waveFloat 14s ease-in-out infinite alternate;
}

.wave-2 {
  fill: rgba(30, 8, 25, 0.85);
  animation: waveFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes waveFloat {
  0% { transform: translateY(0px) scaleY(1); }
  50% { transform: translateY(12px) scaleY(1.15); }
  100% { transform: translateY(-8px) scaleY(0.9); }
}

/* HERO FROSTED GLASS CARD */
.hero-content-container {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: var(--space-40) var(--space-24);
}

.hero-glass-card {
  max-width: 680px;
  margin-left: var(--space-24);
  background: var(--glass-bg-primary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  box-shadow: 0 20px 45px rgba(22, 5, 18, 0.7);
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-16);
  color: var(--ivory-50);
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--ivory-200);
  margin-bottom: var(--space-24);
  line-height: 1.65;
}

/* DAY / NIGHT INTERACTIVE DOCK */
.hero-interactive-suite {
  background: rgba(28, 8, 23, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  margin-bottom: var(--space-24);
}

.switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

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

.switcher-label-day {
  color: var(--apricot-400);
}

.switcher-label-night {
  color: var(--lavender-300);
}

.dual-toggle-control {
  display: flex;
  background: rgba(20, 5, 16, 0.85);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  gap: 4px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--lavender-300);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-btn.is-active {
  background: var(--apricot-500);
  color: var(--plum-950);
  box-shadow: 0 2px 8px rgba(234, 126, 93, 0.4);
}

.slider-reveal-dock {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.lagoon-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--apricot-500) 0%, var(--lavender-500) 100%);
  outline: none;
}

.lagoon-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ivory-50);
  border: 3px solid var(--plum-900);
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(252, 161, 114, 0.8);
}

.lagoon-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ivory-50);
  border: 3px solid var(--plum-900);
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(252, 161, 114, 0.8);
}

.slider-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--lavender-300);
}

/* STATS ROW (Rule 7: 12px between a statistic and its label) */
.hero-meta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-24);
}

.stat-unit {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--apricot-300);
  margin-bottom: 12px; /* Rule 7 */
  line-height: 1;
}

.stat-caption {
  font-size: 0.8125rem;
  color: var(--lavender-300);
  line-height: 1.3;
}

/* ==========================================================================
   PAGE SECTIONS & LAYOUT (Rule 7: 64px between page sections)
   ========================================================================== */

.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-24) var(--space-64);
}

.section-header-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-40);
}

.section-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--apricot-400);
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-16);
  color: var(--ivory-50);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--ivory-200);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION: THE BEACH CHANGES WITH THE LIGHT (TIMELINE PHASES)
   ========================================================================== */

.timeline-phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.time-card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.time-card:hover {
  transform: translateY(-4px);
  border-color: var(--apricot-400);
  box-shadow: var(--glass-shadow-hover);
}

.time-card-header {
  margin-bottom: var(--space-16);
}

.time-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--apricot-400);
  background: rgba(234, 126, 93, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-8);
}

.time-card-title {
  font-size: 1.25rem;
  color: var(--ivory-50);
}

.time-card-body {
  font-size: 0.9375rem;
  color: var(--ivory-200);
  margin-bottom: var(--space-16);
  flex-grow: 1;
}

.time-attribute {
  font-size: 0.8125rem;
  color: var(--lavender-300);
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-16);
}

/* ==========================================================================
   CARD STYLE: HORIZONTAL SPLIT (Media left, metadata + CTA right)
   Applied consistently across all five feature cards.
   Rule 7: Minimum 24px between distinct elements inside a card.
   ========================================================================== */

.card-stack-vertical {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.split-guide-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  background: var(--glass-bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  clip-path: inset(0 0 0 0 round var(--radius-lg));
}

.split-guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--apricot-400);
  box-shadow: 0 20px 45px rgba(234, 126, 93, 0.2);
}

.split-card-media {
  position: relative;
  min-height: 280px;
  background-color: var(--plum-900);
}

.split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.split-guide-card:hover .split-card-media img {
  transform: scale(1.03);
}

.media-pill {
  position: absolute;
  top: var(--space-16);
  left: var(--space-16);
  background: rgba(28, 8, 23, 0.85);
  backdrop-filter: blur(8px);
  color: var(--apricot-300);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.split-card-content {
  padding: var(--space-40);
  display: flex;
  flex-direction: column;
}

.card-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-bottom: var(--space-24); /* Rule 7: Minimum 24px between distinct elements */
}

.meta-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lavender-300);
}

.card-title {
  font-size: 1.625rem;
  color: var(--ivory-50);
  margin-bottom: var(--space-24); /* Rule 7 */
}

.card-text {
  font-size: 1rem;
  color: var(--ivory-200);
  line-height: 1.65;
  margin-bottom: var(--space-24); /* Rule 7 */
  flex-grow: 1;
}

.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: wrap;
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-24); /* Rule 7 */
}

.read-estimate {
  font-size: 0.8125rem;
  color: var(--lavender-400);
}

/* ==========================================================================
   SUPPORTING SECTION: NATURE PROTECTION & VISITOR RESPONSIBILITY
   ========================================================================== */

.glass-feature-panel {
  background: var(--glass-bg-primary);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  box-shadow: var(--glass-shadow);
}

.panel-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-40);
  align-items: center;
}

.panel-heading {
  font-size: 2rem;
  margin-bottom: var(--space-16);
  color: var(--ivory-50);
}

.panel-primary p {
  color: var(--ivory-200);
  margin-bottom: var(--space-16);
  font-size: 1rem;
  line-height: 1.65;
}

.conservation-rules-box {
  background: rgba(22, 6, 18, 0.75);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
}

.box-title {
  font-size: 1.25rem;
  color: var(--apricot-400);
  margin-bottom: var(--space-16);
}

.clean-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.clean-bullet-list li {
  font-size: 0.9375rem;
  color: var(--ivory-200);
  position: relative;
  padding-left: var(--space-24);
}

.clean-bullet-list li::before {
  content: "•";
  color: var(--apricot-400);
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
  left: 0;
  top: -2px;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-24);
}

.faq-card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
}

.faq-question {
  font-size: 1.15rem;
  color: var(--apricot-300);
  margin-bottom: var(--space-8);
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--ivory-200);
  line-height: 1.6;
}

/* ==========================================================================
   SUB-PAGE EDITORIAL & ARTICLE LAYOUT
   ========================================================================== */

.article-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-40) var(--space-24) var(--space-64);
}

.page-title-banner {
  background: var(--glass-bg-primary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
  margin-bottom: var(--space-40);
  box-shadow: var(--glass-shadow);
}

.page-title-inner {
  max-width: 860px;
}

.page-main-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  margin-bottom: var(--space-16);
  color: var(--ivory-50);
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--ivory-200);
  line-height: 1.6;
}

.article-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-40);
  align-items: start;
}

.article-primary-column {
  background: var(--glass-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
}

.content-block {
  margin-bottom: var(--space-40);
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  font-size: 1.75rem;
  color: var(--ivory-50);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--space-8);
}

.content-block h3 {
  font-size: 1.3rem;
  color: var(--apricot-300);
  margin-top: var(--space-24);
  margin-bottom: var(--space-16);
}

.content-block p {
  color: var(--ivory-200);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-16);
}

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

.article-feature-list li {
  color: var(--ivory-200);
  font-size: 1rem;
  line-height: 1.65;
  padding-left: var(--space-24);
  position: relative;
}

.article-feature-list li::before {
  content: "—";
  color: var(--apricot-400);
  position: absolute;
  left: 0;
  font-weight: 700;
}

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

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

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

.data-spec-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.data-spec-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lavender-300);
}

.data-spec-list dd {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--apricot-300);
  border-bottom: 1px dashed rgba(223, 182, 232, 0.2);
  padding-bottom: var(--space-8);
}

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

.sidebar-nav-list a {
  display: block;
  padding: var(--space-8) var(--space-16);
  background: rgba(22, 6, 18, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--ivory-200);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.sidebar-nav-list a:hover {
  background: rgba(234, 126, 93, 0.15);
  border-color: var(--apricot-400);
  color: var(--apricot-300);
}

/* ==========================================================================
   RESPONSIVE DATA TABLES (Rule 5: overflow-x: auto permitted on tables)
   ========================================================================== */

.table-responsive-wrapper {
  overflow-x: auto; /* Permitted Rule 5 */
  margin: var(--space-24) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: rgba(24, 7, 20, 0.7);
  font-size: 0.9375rem;
}

.specs-table caption {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--lavender-300);
  padding: var(--space-8) var(--space-16);
  text-align: left;
  background: rgba(18, 4, 15, 0.85);
}

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

.specs-table thead th {
  background-color: rgba(45, 15, 36, 0.9);
  color: var(--apricot-300);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.specs-table tbody tr:hover {
  background-color: rgba(234, 126, 93, 0.08);
}

.specs-table tbody th {
  font-weight: 600;
  color: var(--ivory-50);
}

/* ==========================================================================
   LEGAL PAGES STYLES (Privacy, Terms, Cookies)
   ========================================================================== */

.legal-content-container {
  background: var(--glass-bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
}

.legal-section {
  margin-bottom: var(--space-40);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--ivory-50);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--space-8);
}

.legal-section p {
  color: var(--ivory-200);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-16);
}

.cookie-management-box {
  background: rgba(22, 6, 18, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  margin: var(--space-24) 0;
}

.cookie-management-box h3 {
  font-size: 1.25rem;
  color: var(--apricot-300);
  margin-bottom: var(--space-8);
}

/* ==========================================================================
   CONTACT PAGE & VALIDATED FORM
   ========================================================================== */

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-40);
  align-items: start;
}

.contact-form-panel,
.details-card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-40);
}

.panel-subtitle {
  font-size: 1.5rem;
  color: var(--ivory-50);
  margin-bottom: var(--space-8);
}

.panel-helper-text {
  color: var(--ivory-200);
  font-size: 0.9375rem;
  margin-bottom: var(--space-24);
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-24); /* Rule 7 */
}

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

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

.required-mark {
  color: var(--apricot-400);
}

.form-input,
.form-select,
.form-textarea {
  background: rgba(18, 4, 15, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--ivory-50);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--apricot-400);
  box-shadow: 0 0 0 3px rgba(234, 126, 93, 0.25);
}

/* Rule 6: .is-invalid state */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #ff5e5e;
  background-color: rgba(255, 94, 94, 0.05);
}

.field-error-msg {
  display: none;
  font-size: 0.8125rem;
  color: #ff8585;
}

.form-group.has-error .field-error-msg {
  display: block;
}

.form-consent-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--apricot-500);
}

.checkbox-label-text {
  font-size: 0.875rem;
  color: var(--ivory-200);
  line-height: 1.5;
}

.form-feedback {
  display: none;
  padding: var(--space-16);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  margin-bottom: var(--space-16);
}

.form-feedback.is-success {
  display: block;
  background: rgba(62, 35, 20, 0.9);
  border: 1px solid var(--apricot-400);
  color: var(--ivory-50);
}

/* OFFICE DETAILS & STATIC MAP */
.contact-details-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.office-address-block {
  font-style: normal;
  color: var(--ivory-200);
  line-height: 1.6;
  margin: var(--space-16) 0;
  font-size: 1rem;
}

.contact-meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-16);
}

.contact-meta-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lavender-300);
}

.contact-meta-list dd {
  font-size: 0.9375rem;
  color: var(--ivory-100);
}

.static-map-wrapper {
  background: var(--glass-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  /* Clip container so map doesn't overflow */
  clip-path: inset(0 0 0 0 round var(--radius-lg));
}

.map-card-header,
.map-card-footer {
  padding: 12px 16px;
  background: rgba(22, 6, 18, 0.9);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--lavender-300);
  font-weight: 600;
}

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

/* ==========================================================================
   FOOTER (Identical on every page per Rule 2)
   ========================================================================== */

.site-footer {
  margin-top: auto;
  background-color: var(--plum-950);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-64) var(--space-24) var(--space-24);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-brand {
  margin-bottom: var(--space-16);
}

.footer-bio {
  font-size: 0.875rem;
  color: var(--ivory-200);
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.footer-legal-snippet {
  font-size: 0.8125rem;
  color: var(--lavender-400);
  line-height: 1.5;
}

.footer-col-title {
  font-size: 1.05rem;
  color: var(--ivory-50);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: var(--space-8);
}

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

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

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

.footer-address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--ivory-200);
  line-height: 1.6;
}

.footer-mail-link {
  color: var(--apricot-400);
  word-break: break-all;
}

.footer-bottom-bar {
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: 0.8125rem;
  color: var(--lavender-300);
}

/* ==========================================================================
   COOKIE BANNER (Rule 3: Fixed bottom, 3 buttons, localStorage)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(28, 8, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--apricot-500);
  padding: var(--space-24);
  z-index: 999;
  box-shadow: 0 -10px 30px rgba(18, 4, 15, 0.7);
}

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

.cookie-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.cookie-text-block {
  flex: 1 1 500px;
}

.cookie-title {
  font-size: 1.15rem;
  color: var(--ivory-50);
  margin-bottom: var(--space-8);
}

.cookie-desc {
  font-size: 0.875rem;
  color: var(--ivory-200);
  line-height: 1.5;
}

.cookie-link {
  color: var(--apricot-400);
  text-decoration: underline;
}

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

/* ==========================================================================
   ACCESSIBILITY & UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Rule 8: prefers-reduced-motion block disabling transitions and animations only */
@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;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Down to 320px, including breakpoint below 400px)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-glass-card {
    margin-left: 0;
    max-width: 100%;
  }

  .split-guide-card {
    grid-template-columns: 340px 1fr;
  }

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

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

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

@media (max-width: 768px) {
  .site-header {
    height: 52px; /* Rule 1: 48-52px on mobile */
  }

  .nav-toggle {
    display: flex; /* Mobile hamburger */
  }

  /* Hamburger overlay */
  .nav-menu {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 8, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-40) var(--space-24);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid var(--glass-border);
    z-index: 99;
  }

  .nav-menu.is-visible {
    display: flex;
  }

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

  .nav-link {
    font-size: 1.25rem;
    padding: var(--space-8) 0;
  }

  .header-cta {
    display: none;
  }

  .hero-canvas-wrapper {
    min-height: auto;
  }

  .hero-content-container {
    padding: var(--space-16);
  }

  .hero-glass-card {
    padding: var(--space-24);
  }

  .hero-meta-stats {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .timeline-phases-grid {
    grid-template-columns: 1fr;
  }

  .split-guide-card {
    grid-template-columns: 1fr;
  }

  .split-card-media {
    min-height: 220px;
  }

  .split-card-content {
    padding: var(--space-24);
  }

  .faq-accordion-grid {
    grid-template-columns: 1fr;
  }

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

  .article-primary-column,
  .legal-content-container,
  .contact-form-panel,
  .details-card {
    padding: var(--space-24);
  }
}

/* Breakpoint below 400px (Rule 5) */
@media (max-width: 399px) {
  .site-header {
    height: 48px;
  }

  .header-container {
    padding: 0 var(--space-16);
  }

  .brand-text {
    font-size: 1.1rem;
  }

  .hero-section {
    padding: var(--space-16) var(--space-8) var(--space-40);
  }

  .hero-glass-card {
    padding: var(--space-16);
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .view-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .section-container {
    padding: 0 var(--space-16) var(--space-40);
  }

  .split-card-content {
    padding: var(--space-16);
  }

  .cookie-banner {
    padding: var(--space-16);
  }

  .cookie-actions-group {
    width: 100%;
  }

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