/* ==========================================================================
   Frienddashbreez - One&Only Portonovi Guide
   Design System: Warm Obsidian & Venetian Champagne Gold Luxury (Zero Blue)
   Card Style: Glass Overlay (Full-bleed media with translucent frosted panel)
   ========================================================================== */

:root {
  /* Color Palette - Warm Obsidian & Venetian Champagne Gold (Zero Blue) */
  --bg-primary: #0d0c0a;
  --bg-surface: #161412;
  --bg-surface-trans: rgba(22, 20, 18, 0.85);
  --bg-card: rgba(28, 25, 21, 0.72);
  --bg-card-hover: rgba(38, 33, 27, 0.88);

  --text-primary: #fcfbf9;
  --text-secondary: #ded6cd;
  --text-muted: #a3998e;

  --accent-gold: #d4af37;
  --accent-gold-hover: #e5c158;
  --accent-gold-dim: rgba(212, 175, 55, 0.14);
  --accent-copper: #e08343;
  --accent-border: rgba(212, 175, 55, 0.28);
  --accent-border-glow: rgba(212, 175, 55, 0.5);

  /* Aliased for backward compatibility with zero blue */
  --accent-cyan: var(--accent-gold);
  --accent-cyan-hover: var(--accent-gold-hover);
  --accent-cyan-dim: var(--accent-gold-dim);

  --glass-border: rgba(255, 248, 238, 0.12);
  --glass-border-highlight: rgba(212, 175, 55, 0.4);

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

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --line-height-body: 1.65;
  --line-height-heading: 1.25;

  /* Transitions */
  --transition-speed: 0.25s;
  --transition-ease: ease-in-out;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: var(--line-height-body);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #221c16 0%, #0d0c0a 70%);
  background-attachment: fixed;
  color: var(--text-primary);
}

/* Typography & Word Wrapping */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: var(--line-height-heading);
  font-weight: 700;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem); }
h3 { font-size: clamp(1.3rem, 1.8vw + 0.5rem, 1.8rem); }
h4 { font-size: 1.2rem; }

p, li, span, a, label, input, textarea, select {
  overflow-wrap: anywhere;
}

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

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

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

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

.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

/* Header Styles - Not sticky, Desktop: 56-64px, Mobile: 48-52px */
.site-header {
  height: 64px;
  background-color: var(--bg-surface-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

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

.brand-logo:hover {
  text-decoration: none;
  color: var(--accent-gold);
}

.brand-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
}

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

/* Primary Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  padding: var(--space-8) 0;
  position: relative;
  transition: color var(--transition-speed) var(--transition-ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
  text-decoration: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

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

/* Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--space-4);
  padding: var(--space-8);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-speed) var(--transition-ease), opacity var(--transition-speed) var(--transition-ease);
}

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

.btn-accent {
  background-color: var(--accent-gold);
  color: #14110b;
  border: 1px solid var(--accent-gold);
}

.btn-accent:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: #14110b;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
}

.btn-glass {
  background-color: rgba(255, 248, 238, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background-color: rgba(255, 248, 238, 0.16);
  border-color: var(--accent-gold);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  text-decoration: none;
}

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

.full-width {
  width: 100%;
}

/* Badge Tags */
.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background-color: var(--accent-gold-dim);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-16);
}

/* Hero Section */
.hero-section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.hero-content {
  max-width: 860px;
}

.hero-title {
  margin-bottom: var(--space-24);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-40);
  line-height: 1.7;
}

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

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-24);
}

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

.stat-number {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px; /* strict rule: 12px between a statistic and its label */
}

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

/* Section Headers */
.section-header {
  margin-bottom: var(--space-40);
  max-width: 780px;
}

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

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

/* ==========================================================================
   CARD STYLE: Glass Overlay
   Aesthetic Style: Dark Glassmorphism
   Specification: Full-bleed image with a translucent frosted panel over it
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-40);
}

.glass-overlay-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform var(--transition-speed) var(--transition-ease),
              border-color var(--transition-speed) var(--transition-ease),
              box-shadow var(--transition-speed) var(--transition-ease);
}

.glass-overlay-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-highlight);
  box-shadow: 0 16px 40px rgba(212, 175, 55, 0.18);
}

.card-media {
  position: relative;
  width: 100%;
  height: 280px;
  background-color: #14110e;
}

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

/* Glass Overlay Translucent Panel */
.card-glass-panel {
  position: relative;
  margin-top: -64px; /* overlapping the full-bleed image base */
  margin-left: var(--space-16);
  margin-right: var(--space-16);
  margin-bottom: var(--space-16);
  padding: var(--space-24); /* Ensure min 16px padding inside container */
  background: rgba(22, 20, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: var(--space-8);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-24); /* Strict rule: min 24px between distinct elements inside card */
  color: var(--text-primary);
}

.card-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-24); /* Strict rule: min 24px between elements */
}

.card-link-action {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: auto;
}

.card-link-action:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

/* Supporting Section on Home */
.support-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: var(--space-40);
}

.support-content {
  max-width: 900px;
}

.support-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-40);
}

.highlight-box {
  background: rgba(255, 248, 238, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: var(--space-24);
}

.highlight-box h4 {
  color: var(--accent-gold);
  margin-bottom: var(--space-8);
}

/* Sub-Pages & Article Layout */
.page-hero {
  padding-top: var(--space-64);
  padding-bottom: var(--space-40);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--glass-border);
}

.page-title {
  margin-bottom: var(--space-16);
}

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

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

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

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

.article-body h3 {
  margin-top: var(--space-24);
  margin-bottom: var(--space-16);
}

.article-image-box {
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background-color: var(--bg-surface);
}

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

.image-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: var(--space-8) var(--space-16);
  background: rgba(0, 0, 0, 0.4);
}

.styled-list {
  list-style: none;
  margin-top: var(--space-16);
  margin-bottom: var(--space-24);
}

.styled-list li {
  position: relative;
  padding-left: var(--space-24);
  margin-bottom: var(--space-16);
  color: var(--text-secondary);
}

.styled-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold);
}

.glass-callout-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent-gold);
  border-radius: 6px;
  padding: var(--space-24);
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
}

.glass-callout-box h3 {
  color: var(--accent-gold);
  margin-top: 0;
  margin-bottom: var(--space-8);
}

/* Responsive Table Wrapper */
.specs-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background-color: var(--bg-surface);
}

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

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

.specs-table th {
  background: rgba(255, 248, 238, 0.06);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

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

.specs-table tr:hover td {
  background: rgba(212, 175, 55, 0.04);
}

/* Pros / Cons Comparison Grid */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
  margin-bottom: var(--space-24);
}

.pros-card, .cons-card {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: var(--space-24);
}

.pros-card h4 {
  color: var(--accent-gold);
  margin-bottom: var(--space-16);
}

.cons-card h4 {
  color: var(--accent-copper);
  margin-bottom: var(--space-16);
}

.pros-card ul, .cons-card ul {
  list-style: square;
  padding-left: var(--space-24);
  color: var(--text-secondary);
}

.pros-card li, .cons-card li {
  margin-bottom: var(--space-8);
}

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

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

.sidebar-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-16);
  color: var(--text-primary);
}

.sidebar-specs {
  list-style: none;
  margin-bottom: var(--space-24);
}

.sidebar-specs li {
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255, 248, 238, 0.08);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.sidebar-specs li:last-child {
  border-bottom: none;
}

.sidebar-nav-links {
  list-style: none;
}

.sidebar-nav-links li {
  margin-bottom: var(--space-8);
}

.sidebar-nav-links a {
  font-size: 0.9rem;
}

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

.contact-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: var(--space-40);
}

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

.panel-subtitle {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: var(--space-24);
}

.form-group {
  margin-bottom: var(--space-24);
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  background-color: rgba(14, 13, 11, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-speed) var(--transition-ease);
}

.form-input:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.form-input.is-invalid {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.field-error {
  display: none;
  font-size: 0.8rem;
  color: #f87171;
  margin-top: var(--space-4);
}

.field-error.is-visible {
  display: block;
}

.checkbox-group {
  margin-top: var(--space-16);
}

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

.checkbox-label input {
  margin-top: 3px;
  accent-color: var(--accent-gold);
}

.form-feedback {
  padding: var(--space-16);
  border-radius: 6px;
  margin-bottom: var(--space-24);
  font-size: 0.95rem;
}

.form-feedback.is-success {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

.form-feedback.is-error {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}

.info-block {
  margin-bottom: var(--space-16);
}

.info-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-val {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Static Map Block */
.static-map-block {
  margin-top: var(--space-24);
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}

.map-graphic {
  width: 100%;
  height: auto;
  background-color: #14110e;
}

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

.map-caption {
  padding: var(--space-16);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  background: rgba(22, 20, 18, 0.7);
}

/* Footer Styles - Identical across all pages */
.site-footer {
  margin-top: auto;
  background-color: #0a0908;
  border-top: 1px solid var(--glass-border);
  padding-top: var(--space-64);
  padding-bottom: var(--space-40);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.brand-col .footer-desc {
  margin-top: var(--space-16);
  margin-bottom: var(--space-24);
  color: var(--text-secondary);
  max-width: 420px;
}

.footer-meta p {
  margin-bottom: var(--space-8);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-meta strong {
  color: var(--text-secondary);
}

.footer-heading {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: var(--space-16);
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-8);
}

.footer-links a {
  color: var(--text-muted);
  transition: color var(--transition-speed) var(--transition-ease);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 238, 0.06);
  padding-top: var(--space-24);
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}

/* Cookie Banner - Fixed Bottom */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 16, 14, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--accent-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
  z-index: 999;
  padding: var(--space-16) 0;
  display: block;
}

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

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

.cookie-text-block {
  flex: 1 1 320px;
  min-width: 0;
}

.cookie-title {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.cookie-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

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

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

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

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

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

  .nav-toggle {
    display: flex;
  }

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

  /* Hamburger Overlay reflow without layout shift */
  .site-nav {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    height: calc(100vh - 52px);
    background-color: rgba(18, 16, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-40) var(--space-24);
    transform: translateX(100%);
    transition: transform var(--transition-speed) var(--transition-ease);
    border-top: 1px solid var(--glass-border);
    overflow-y: auto;
  }

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

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

  .nav-link {
    font-size: 1.15rem;
    display: block;
    width: 100%;
    padding: var(--space-12) 0;
  }

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

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

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

  /* Reduce offset frames / decorations to 0 on mobile */
  .card-glass-panel {
    margin-top: -32px;
    margin-left: var(--space-8);
    margin-right: var(--space-8);
  }
}

/* Breakpoint below 400px (down to 320px) */
@media (max-width: 399px) {
  .container {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

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