/* ==========================================================================
   Typography in Public Spaces — Shared Stylesheet
   Aesthetic: Dark Glassmorphism
   Card Style: Glass Overlay
   ========================================================================== */

/* Design Tokens & CSS Custom Properties */
:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Color Palette - Dark Glassmorphism */
  --bg-deep: #080c12;
  --bg-surface: #0f1520;
  --bg-elevated: #162030;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  /* Luminous Accents */
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-violet: #818cf8;
  --accent-amber: #fbbf24;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(56, 189, 248, 0.35);

  /* Translucent Glass Surfaces */
  --glass-fill: rgba(15, 21, 32, 0.78);
  --glass-fill-dense: rgba(13, 19, 29, 0.92);
  --glass-blur: blur(14px);
  --glass-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-glass);

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

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-cyan);
  color: #040810;
  padding: 12px 20px;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #ffffff;
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

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

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  overflow-wrap: anywhere;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

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

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

.section-container {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  position: relative;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
}

.glow-border {
  position: relative;
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.45) 0%, rgba(129, 140, 248, 0.15) 50%, rgba(255, 255, 255, 0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Technical Badges */
.technical-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: var(--space-2);
}

/* Header & Navigation (Non-Sticky, 56-64px) */
.site-header {
  height: 64px;
  background: rgba(10, 15, 23, 0.9);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  min-width: 0;
}
.brand-link:hover {
  text-decoration: none;
}

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

.brand-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

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

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

.nav-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.nav-link:hover {
  color: var(--text-main);
  text-decoration: none;
}
.nav-link.is-active {
  color: var(--accent-cyan);
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: var(--border-glass);
}
.btn-secondary:hover {
  background: #1e2b40;
  border-color: var(--border-glass-bright);
}

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

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

.btn-block {
  width: 100%;
}

/* Homepage Hero Section */
.hero-section {
  position: relative;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.glow-top-left {
  top: -100px;
  left: -100px;
  background: #38bdf8;
}
.glow-bottom-right {
  bottom: -100px;
  right: -50px;
  background: #6366f1;
}

.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-copy {
  padding: var(--space-5);
}

.hero-heading {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  font-weight: 800;
}

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

.hero-cta-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-visual-frame {
  padding: var(--space-2);
  overflow: hidden;
}

.visual-wrapper {
  position: relative;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  background: #0d131d;
  aspect-ratio: 4 / 3;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-visual-frame:hover .hero-img {
  transform: scale(1.02);
}

.visual-tag-overlay {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  background: rgba(10, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  gap: var(--space-2);
}
.tag-accent {
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}
.tag-meta {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Editorial Overview Intro */
.content-header-centered {
  text-align: center;
  max-width: 780px;
  margin: 0 auto var(--space-5);
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

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

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

.editorial-card {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.card-title {
  font-size: 1.25rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Glass Overlay Cards (Used consistently across site) */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
}

.glass-overlay-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-glass);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  background-color: #0b1017;
}

.card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}
.glass-overlay-card:hover .card-bg-img {
  transform: scale(1.04);
}

.card-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.1) 0%, rgba(8, 12, 18, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
}

.glass-overlay-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: var(--space-3);
  padding: var(--space-4);
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: calc(var(--radius-md) - 4px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3); /* Ensures minimum 24px spacing between elements */
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-heading {
  font-size: 1.375rem;
  line-height: 1.3;
}

.card-summary {
  font-size: 0.875rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 0;
}

.card-cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 4px;
}
.card-cta-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Field Notes Editorial Banner */
.editorial-banner {
  padding: var(--space-5);
}

.banner-content {
  max-width: 960px;
}

.banner-title {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.banner-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.field-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.tip-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.tip-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
  padding: 4px 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.tip-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.tip-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Call to Action Section */
.cta-box {
  padding: var(--space-6) var(--space-5);
  max-width: 840px;
  margin: 0 auto;
}

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

.cta-heading {
  font-size: 2.25rem;
  margin-bottom: var(--space-3);
}

.cta-copy {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto var(--space-4);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Article & Editorial Subpages Layout */
.article-wrapper {
  padding-bottom: var(--space-6);
}

.article-hero {
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
}

.article-meta-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.meta-separator {
  color: var(--text-subtle);
}

.text-layout {
  max-width: 820px;
  margin: 0 auto;
}

.text-lead-block p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: var(--space-4);
}

.text-layout h2 {
  font-size: 1.75rem;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.text-layout h3 {
  font-size: 1.35rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.text-layout p {
  font-size: 1.0625rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.editorial-quote {
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--accent-cyan);
}
.editorial-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: #f8fafc;
  line-height: 1.5;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-5);
}

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

.comparison-title {
  font-size: 1.125rem;
  color: var(--accent-cyan);
  margin-bottom: var(--space-2);
}

.styled-list {
  margin: var(--space-3) 0 var(--space-4) var(--space-4);
  list-style-type: square;
  color: #cbd5e1;
}
.styled-list li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-1);
  line-height: 1.7;
}

.related-section {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-glass);
}
.related-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

/* Legal Pages Styling */
.legal-page-container {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  max-width: 900px;
}

.legal-content {
  padding: var(--space-5);
}

.legal-heading {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: var(--space-5);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--border-glass);
}

.legal-content p, .legal-content li {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.legal-box {
  margin-top: var(--space-4);
  padding: var(--space-4);
}
.legal-box p {
  margin-bottom: var(--space-1);
}

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

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

.data-table th, .data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: top;
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-table td {
  color: var(--text-muted);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Contact Page Layout & Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: flex-start;
}

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

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

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

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: #e2e8f0;
}

.required-mark {
  color: #f43f5e;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: rgba(15, 23, 36, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  outline: none;
}
.form-control.is-invalid {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-error-msg {
  font-size: 0.8125rem;
  color: #fb7185;
  margin-top: 6px;
}

.form-notice {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.form-notice p {
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-notice p:last-child {
  margin-bottom: 0;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.company-detail-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.detail-row {
  display: flex;
  flex-direction: column;
}
.detail-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.detail-value {
  font-size: 0.9375rem;
  color: #e2e8f0;
}
.detail-link {
  font-size: 0.9375rem;
  word-break: break-all;
}

/* Static Map Card */
.map-card {
  padding: var(--space-4);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.map-caption {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.vector-map-frame {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  margin-bottom: var(--space-3);
}
.vector-map {
  width: 100%;
  height: auto;
  display: block;
}

.map-note {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

/* Universal Shared Footer */
.site-footer {
  background: #06090e;
  border-top: 1px solid var(--border-glass);
  padding-top: var(--space-6);
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: auto;
}

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

.brand-col {
  padding-right: var(--space-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
  max-width: 480px;
}

.legal-entity-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.legal-entity-box p {
  margin-bottom: 4px;
}
.legal-entity-box p:last-child {
  margin-bottom: 0;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.btn-link-cookie {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.btn-link-cookie:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: var(--space-4) 0;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.copyright-notice {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

/* Cookie Banner Component (Fixed bottom) */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 960px;
  margin: 0 auto;
  z-index: 9000;
  background: var(--glass-fill-dense);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  padding: var(--space-4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.cookie-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 6px;
}
.cookie-title {
  color: var(--text-main);
  font-size: 1rem;
}

.cookie-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

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

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: #0f1521;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-glass);
}
.modal-title {
  font-size: 1.25rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close-btn:hover {
  color: #fff;
}

.modal-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.pref-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.pref-info {
  flex: 1;
}

.pref-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.pref-hint {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 0;
}

.pref-control input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .brand-col {
    grid-column: 1 / -1;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: #090e16;
    border-bottom: 1px solid var(--border-glass);
    padding: var(--space-4);
    display: none;
    flex-direction: column;
    z-index: 999;
  }
  .nav-menu.is-open {
    display: flex;
  }

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

  .header-action {
    display: none;
  }

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

  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-tips-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .cookie-actions .btn {
    flex: 1;
    min-width: 120px;
  }

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

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.75rem;
  }
  .section-title {
    font-size: 1.625rem;
  }
  .glass-overlay-card {
    aspect-ratio: 4 / 5;
  }
  .glass-overlay-panel {
    margin: var(--space-2);
    padding: var(--space-3);
    gap: var(--space-3);
  }
}

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