/* ==========================================================================
   rankdshpurepixel.yachts — Ski Resort Operations Dark Glassmorphism CSS
   System fonts only. No external web font requests.
   ========================================================================== */

:root {
  /* Core Palette */
  --bg-dark: #070b12;
  --bg-elevated: #0d131f;
  --bg-surface: rgba(18, 26, 43, 0.7);
  --bg-surface-alt: rgba(13, 20, 34, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-glow: rgba(56, 189, 248, 0.35);

  /* Luminous Alpine Accents */
  --accent-cyan: #38bdf8;
  --accent-teal: #06b6d4;
  --accent-indigo: #818cf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.22);

  /* Text Hierarchies */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* In-page anchor scroll clearance */
[id] {
  scroll-margin-top: 84px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #111a2e 0%, #070b12 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.text-prose-container {
  max-width: 840px;
}

.max-w-prose {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

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

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

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  margin: 4px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

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

.btn-outline:hover,
.btn-outline.is-active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-heading);
}

.btn-compact {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Glass Panels & Global UI Blocks
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
  position: relative;
  overflow: hidden;
}

.section-block {
  padding: var(--space-6) 0;
}

.alt-surface {
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-header {
  margin-bottom: var(--space-5);
}

.section-header.text-center {
  text-align: center;
}

.section-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

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

/* --------------------------------------------------------------------------
   Hero Section (Homepage)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.glow-1 {
  width: 500px;
  height: 350px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  top: -100px;
  right: 10%;
}

.glow-2 {
  width: 420px;
  height: 300px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  bottom: 0;
  left: 5%;
}

.mountain-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-layout {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  max-width: 760px;
}

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

.hero-micro-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-glass);
}

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

.micro-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.micro-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Subpage Hero
   -------------------------------------------------------------------------- */
.subpage-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border-glass);
  background: linear-gradient(180deg, rgba(17, 26, 46, 0.5) 0%, transparent 100%);
}

.page-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   BALANCED CARD SYSTEM: Controlled Image-Next-To-Text Layout
   -------------------------------------------------------------------------- */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.split-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.split-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-glow);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.12);
}

/* Balanced image size: never takes up the entire screen */
.split-card-media {
  flex: 0 0 280px;
  width: 280px;
  position: relative;
  overflow: hidden;
  background-color: #0b1322;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-normal);
}

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

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(7, 11, 18, 0.05) 0%, rgba(7, 11, 18, 0.5) 100%);
  pointer-events: none;
}

.card-media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.split-card-body {
  flex: 1 1 auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: var(--space-1);
}

.meta-tag {
  color: var(--accent-indigo);
  font-weight: 600;
}

.card-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-2);
}

.card-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: var(--space-3);
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-footer-action {
  margin-top: auto;
  padding-top: var(--space-1);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.card-link:hover .link-arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Snapshot Grid (Homepage)
   -------------------------------------------------------------------------- */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.snapshot-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.snapshot-icon {
  margin-bottom: var(--space-3);
}

.snapshot-card h4 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.snapshot-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Guidance Panel (Homepage)
   -------------------------------------------------------------------------- */
.guidance-box {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.guidance-points {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.point-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.point-bullet {
  color: var(--accent-cyan);
  font-size: 1.4rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   CTA Banners
   -------------------------------------------------------------------------- */
.cta-banner {
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 1px solid var(--border-glass-glow);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.08);
}

.cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.cta-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   Editorial Content & Legal Pages
   -------------------------------------------------------------------------- */
.callout-panel {
  padding: var(--space-4);
  margin: var(--space-4) 0;
  border-left: 3px solid var(--accent-cyan);
}

.callout-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.subsection-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin: var(--space-5) 0 var(--space-2);
}

.content-bullets,
.content-ordered-list {
  padding-left: var(--space-4);
  margin: var(--space-3) 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.content-bullets li,
.content-ordered-list li {
  margin-bottom: 8px;
}

.checklist-card {
  padding: var(--space-5);
}

.checklist-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.checklist-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.checklist-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.check-icon {
  color: var(--accent-cyan);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Data Tables
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: var(--space-4) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 600px;
}

.data-table th {
  background: rgba(14, 22, 38, 0.9);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  vertical-align: top;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.data-table code {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Legal Document Layout
   -------------------------------------------------------------------------- */
.legal-content {
  padding: var(--space-5);
}

.legal-timestamp {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-glass);
}

.legal-content h2 {
  font-size: 1.35rem;
  color: #ffffff;
  margin: var(--space-4) 0 var(--space-2);
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.legal-content ul {
  padding-left: var(--space-4);
  margin-bottom: var(--space-3);
  color: var(--text-muted);
}

.legal-content ul li {
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Contact Page Styles
   -------------------------------------------------------------------------- */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-form-wrapper {
  padding: var(--space-5);
}

.contact-box-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.contact-box-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

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

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

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

.req {
  color: #ef4444;
}

.form-input {
  background: rgba(7, 11, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.form-input.is-invalid {
  border-color: #ef4444;
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #0d131f;
  color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-checkbox-group {
  margin-top: 4px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.form-success-panel {
  padding: var(--space-5);
  text-align: center;
}

.success-icon-badge {
  margin-bottom: var(--space-2);
}

.success-heading {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.success-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.dispatched-summary {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  text-align: left;
  line-height: 1.5;
}

.details-card {
  padding: var(--space-4);
}

.details-card-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.details-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.info-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.info-label {
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.info-val {
  color: var(--text-main);
}

/* Static Map Block */
.static-map-panel {
  padding: var(--space-4);
  background: #090e17;
  border: 1px solid var(--border-glass);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.map-title-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.map-status-live {
  font-size: 0.72rem;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.static-map-svg-container {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at center, #0e1726 0%, #060911 100%);
  overflow: hidden;
}

.topographic-map {
  display: block;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-cyan { background-color: #38bdf8; }
.dot-purple { background-color: #818cf8; }
.dot-alt { background-color: #06b6d4; }

/* --------------------------------------------------------------------------
   Footer Layout
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: #05080e;
  border-top: 1px solid var(--border-glass);
  padding: var(--space-6) 0 var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: var(--space-3);
  overflow-wrap: anywhere;
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-3);
  max-width: 440px;
}

.footer-legal-entity {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.footer-inline-link {
  color: var(--accent-cyan);
}

.footer-heading {
  font-size: 0.88rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.footer-text-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-text-btn:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-line {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Cookie Banner & Compact Preferences Drawer (Non-Intrusive, No Full-Screen Lock)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(9, 14, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass-glow);
  padding: 14px 0;
  z-index: 1000;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.6);
}

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

.cookie-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.cookie-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 680px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* COMPACT FLOATING MODAL: Placed unobtrusively in bottom corner, no dark screen overlay */
.modal-backdrop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  top: auto;
  left: auto;
  width: auto;
  height: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: block;
  z-index: 1050;
  pointer-events: none;
}

.modal-card {
  pointer-events: auto;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  overflow-y: auto;
  background: #0d1527;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.18);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pref-info {
  flex: 1 1 auto;
}

.pref-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.pref-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.pref-label-status {
  font-size: 0.72rem;
  color: #22c55e;
  font-weight: 600;
}

.modal-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   Responsive Design Breakpoints
   -------------------------------------------------------------------------- */

/* Intermediate Tablet adjustments */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .split-card-media {
    flex: 0 0 240px;
    width: 240px;
  }

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

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

/* Mobile Devices (Below 768px) */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(7, 11, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    gap: var(--space-4);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1.05rem;
  }

  .nav-cta-wrapper {
    width: 100%;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-glass);
  }

  .nav-cta-wrapper .btn {
    width: 100%;
  }

  /* Responsive image-next-to-text layout: keep compact side-by-side */
  .split-card {
    flex-direction: row;
    align-items: stretch;
  }

  .split-card-media {
    flex: 0 0 160px;
    width: 160px;
    min-height: 100%;
  }

  .card-media-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
    top: 8px;
    left: 8px;
  }

  .split-card-body {
    padding: 14px 16px;
  }

  .card-heading {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .card-desc {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-section {
    padding: 56px 0 40px;
  }

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

  .hero-lead {
    font-size: 1.05rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }

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

  /* Dock preferences modal neatly at bottom of mobile view */
  .modal-backdrop {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
  }
}

/* Small Screens (Below 480px) */
@media (max-width: 480px) {
  .split-card-media {
    flex: 0 0 120px;
    width: 120px;
  }

  .card-heading {
    font-size: 1.05rem;
  }

  .card-desc {
    font-size: 0.84rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .pref-item {
    flex-direction: row;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Accessibility: Prefers Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}