/* ═══════════════════════════════════════════════════
   SWARTZ ENGINEERING — MASTER STYLESHEET
   Dark steel + burnt orange industrial design system
═══════════════════════════════════════════════════ */

/* ── TOKENS ────────────────────────────────────────── */
:root {
  --steel-950:  #ffffff;
  --steel-900:  #f8fafc;
  --steel-850:  #f1f5f9;
  --steel-800:  #e2e8f0;
  --steel-700:  #cbd5e1;
  --steel-600:  #94a3b8;
  --steel-500:  #64748b;
  --steel-400:  #475569;
  --steel-300:  #334155;
  --steel-200:  #1e293b;
  --steel-100:  #0f172a;
  --steel-50:   #020617;

  --accent:      #2F5C8A;
  --accent-rgb:  47, 92, 138;
  --accent-dark: #4F79A5;
  --accent-light: #8FAECC;
  --accent-glow: rgba(47, 92, 138, 0.18);
  --accent-dim:  rgba(47, 92, 138, 0.08);
  --accent-grad: linear-gradient(135deg, #2F5C8A, #4F79A5, #8FAECC);

  --white:      #ffffff;
  --text-main:  #1a2b3c;
  --text-muted: #475569;
  --border:     rgba(26, 43, 60, 0.1);
  --border-med: rgba(26, 43, 60, 0.18);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lift: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);

  --nav-h: 88px;
  --font-main: 'Roboto', sans-serif;
  --font-cond: 'Montserrat', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --text-heading: var(--text-main);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --hero-overlay: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .hero-liquid-box,
[data-theme="light"] .hero-glass-box,
[data-theme="light"] .liquid-glass-card {
  background: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

[data-theme="light"] .hero-title {
  color: #000000 !important;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5) !important;
}

[data-theme="light"] .hero-sub {
  color: #000000 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5) !important;
}

[data-theme="light"] .section-tag span,
[data-theme="light"] .liquid-card-title,
[data-theme="light"] .liquid-list li,
[data-theme="light"] .service-item span {
  color: #000000 !important;
}

[data-theme="dark"] {
  --steel-950:  #0a0b0d;
  --steel-900:  #0f1114;
  --steel-850:  #141619;
  --steel-800:  #1a1d22;
  --steel-700:  #252a32;
  --steel-600:  #313844;
  --steel-500:  #4a5568;
  --steel-400:  #6b7a93;
  --steel-300:  #94a3b8;
  --steel-200:  #cbd5e1;
  --steel-100:  #e2e8f0;
  --steel-50:   #f1f5f9;

  --accent:      #2F5C8A;
  --accent-rgb:  47, 92, 138;
  --accent-dark: #1D3A57;
  --accent-glow: rgba(var(--accent-rgb), 0.25);
  --accent-dim:  rgba(var(--accent-rgb), 0.12);
  --accent-grad: linear-gradient(135deg, #2F5C8A, #4F79A5);
  
  --text-main:  #d4dbe8;
  --text-muted: #7a8a9e;
  --border:     rgba(255,255,255,0.07);
  --border-med: rgba(255,255,255,0.12);

  --shadow-card: 0 4px 24px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lift: 0 12px 48px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);

  --text-heading: var(--white);
  --nav-bg: rgba(10, 11, 13, 0.92);
  --hero-overlay: rgba(10, 11, 13, 0.1);
}



/* ── RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--steel-950);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
a, button { touch-action: manipulation; }
a:active, button:active { opacity: 0.7; transition: none; }

/* Global overflow guard */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ── UTILITY ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* Stretched Link Utility */
.stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: auto;
}

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ─────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  height: var(--nav-h);
  transition: all 0.3s ease;
  
  /* Liquid Glass Base */
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme="dark"] .navbar {
  background: rgba(10, 15, 25, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 10001;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 76px;
  width: auto;
  max-width: 260px;
  transition: height 0.3s ease;
}
/* Nav logo sizing handled in the comprehensive @media responsive section below */
.logo-mark svg { display: block; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-primary {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--text-heading);
}
.logo-secondary {
  font-family: var(--font-cond);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 8px;
  margin-left: auto;
  position: relative;
  z-index: 10002;
}
.nav-menu li {
  display: flex;
  align-items: center;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 10005;
}
.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-heading);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.nav-item-dropdown > .nav-link {
  padding-right: 32px;
  position: relative;
}

.nav-item-dropdown > .nav-link::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.nav-item-dropdown:hover > .nav-link::after {
  transform: translateY(-20%) rotate(-135deg);
  opacity: 1;
}


.nav-cta {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent-grad);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4);
}

/* Submenu css */
.nav-item-dropdown {
  position: relative;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 10010;
}

[data-theme="dark"] .nav-submenu {
  background: rgba(15, 20, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}



/* Bridge gap to prevent hover loss during translateY transition */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.nav-item-dropdown:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-submenu-link {
  display: block;
  padding: 12px 24px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
  transition: all 0.2s ease;
  text-align: left;
}


.nav-submenu-link:hover {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-submenu-link:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-med);
}

[data-theme="dark"] .nav-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--steel-800);
  border: 1px solid var(--border);
  color: var(--accent);
  transition: all 0.2s ease;
  margin: 0;
  cursor: pointer;
  z-index: 1001;
}
.theme-toggle:hover {
  background: var(--steel-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle { background: var(--steel-100); border-color: var(--border-med); }
[data-theme="dark"] .theme-toggle:hover { background: var(--steel-200); }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main); /* adapts to both light and dark mode */
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
[data-theme="dark"] .nav-toggle span {
  background: var(--text-main);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

/* Frame animation canvas */
.hero-frames {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.05s linear;
  will-change: opacity;
}
.hero-frames img.active {
  opacity: 1;
}

/* Structural grid overlay */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(232,119,34,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,119,34,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Dark gradient overlay so text stays legible */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
}

/* Left edge accent line */
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  padding-top: calc(var(--nav-h) + 100px);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-liquid-box,
.hero-glass-box,
.liquid-glass-card {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  width: 100%;
  max-width: 900px;
  position: relative;
}

[data-theme="dark"] .hero-liquid-box,
[data-theme="dark"] .hero-glass-box,
[data-theme="dark"] .liquid-glass-card {
  background: rgba(10, 15, 25, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* We Engineer Page - Clearer Liquid Glass (10% Opacity) */
.we-engineer-page .hero-liquid-box {
  background: rgba(255, 255, 255, 0.3) !important;
}
.we-engineer-page [data-theme="dark"] .hero-liquid-box {
  background: rgba(10, 11, 13, 0.4) !important;
}
.we-engineer-page .liquid-glass-card {
  background: rgba(255, 255, 255, 0.3) !important;
}
.we-engineer-page [data-theme="dark"] .liquid-glass-card {
  background: rgba(10, 11, 13, 0.4) !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem; /* Smaller font size */
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #000000;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1.5px solid rgba(var(--accent-rgb), 0.5);
  padding: 8px 20px; /* Reduced padding slightly to match smaller font */
  border-radius: 4px;
  margin-bottom: 28px;
  text-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] .hero-badge {
  color: var(--white);
  background: rgba(var(--accent-rgb), 0.3);
  border-color: var(--accent);
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50%       { box-shadow: 0 0 16px var(--accent), 0 0 32px rgba(var(--accent-rgb), 0.4); }
}

@media (max-width: 768px) {
  .hero-badge {
    padding: 6px 16px;
    font-size: 0.65rem;
    white-space: normal;
    text-align: center;
    justify-content: center;
    width: fit-content;
    line-height: 1.4;
  }
}


.hero-title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
  text-align: center;
}
[data-theme="dark"] .hero-title {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-title-accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.hero-title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600; /* Increased weight for better visibility with the darker color */
  color: #000000; /* Matched with badge text color */
  max-width: 600px; /* Slightly wider for better flow */
  margin: 0 auto 36px;
  line-height: 1.7;
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
[data-theme="dark"] .hero-sub {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}

.hero-spec {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

[data-theme="dark"] .hero-spec {
  border-top-color: rgba(0, 0, 0, 0.05);
}
.spec-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: #334155; /* Dark grey for labels */
  font-weight: 600;
}
.spec-val {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 800;
  color: #000000; /* Matched with other hero elements */
  letter-spacing: 0.05em;
}
.spec-divider {
  color: #000000;
  opacity: 0.3;
  font-size: 1.4rem;
  font-weight: 100;
}

[data-theme="dark"] .spec-label {
  color: var(--steel-400);
}
[data-theme="dark"] .spec-val {
  color: var(--white);
}
[data-theme="dark"] .spec-divider {
  color: var(--accent);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--steel-400);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}
.scroll-indicator {
  width: 1px;
  height: 48px;
  background: var(--border-med);
  overflow: hidden;
  border-radius: 1px;
}
.scroll-line {
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.45);
}
.btn-ghost {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-med);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text-heading);
  border-color: rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--steel-200);
  border-color: var(--border-med);
}
[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  color: var(--text-heading);
}
.btn-full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────────────────── */
.about-section {
  padding: 5rem 0 1rem;
  background-color: var(--steel-950);
}

.about-section .section-header {
  margin-bottom: 0;
}

.about-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.about-license {
  font-size: 1rem;
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   STATS SECTION
───────────────────────────────────────────────────────── */
.stats-section {
  background: var(--steel-850);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-dim), transparent 40%, transparent 60%, var(--accent-dim));
  pointer-events: none;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 16px 12px;
}
.stat-number {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .stat-number {
  color: var(--white);
}
.stat-suffix {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--accent);
  line-height: 1;
  vertical-align: super;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.stat-divider {
  width: 1px;
  height: 64px;
  background: var(--border);
  margin: 0 8px;
}

/* ─────────────────────────────────────────────────────
   SECTION SHARED
───────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.tag-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-heading);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────────────── */
.services-section {
  background: var(--steel-950);
  padding: 70px 0;
  position: relative;
}
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.3;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card {
  background: var(--steel-900);
  padding: 40px 36px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { background: var(--steel-850); }
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px;
  color: var(--steel-500);
  transition: color 0.3s ease;
  flex-shrink: 0;
}
.service-card:hover .card-icon { color: var(--steel-300); }
.card-icon svg { width: 100%; height: 100%; }

.card-number {
  position: absolute;
  top: 32px; right: 32px;
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  transition: color 0.3s ease;
}
.service-card:hover .card-number { color: rgba(var(--accent-rgb), 0.08); }
[data-theme="dark"] .card-number { color: rgba(0,0,0,0.04); }
[data-theme="dark"] .service-card:hover .card-number { color: rgba(var(--accent-rgb), 0.12); }

.card-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  text-transform: uppercase;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.card-tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  padding: 3px 8px;
  border-radius: 2px;
}
.card-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 4px;
}
.service-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─────────────────────────────────────────────────────
   WHO WE SERVE
───────────────────────────────────────────────────── */
.wws-section {
  background: var(--steel-900);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.wws-bg-accent {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.wws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wws-card {
  background: var(--steel-800);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.wws-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.wws-card-featured {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(160deg, var(--steel-800), rgba(var(--accent-rgb), 0.05));
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.15);
}
.wws-card-featured:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 12px 48px rgba(var(--accent-rgb), 0.15);
}

.wws-card-inner {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wws-number {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 4rem;
  color: rgba(var(--accent-rgb), 0.10);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.wws-card:hover .wws-number { color: rgba(var(--accent-rgb), 0.18); }
.wws-icon {
  width: 64px; height: 64px;
  margin-bottom: 24px;
}
.wws-icon svg { width: 100%; height: 100%; }

.wws-card h3 {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.wws-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.wws-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  flex: 1;
}
.wws-benefits li {
  font-size: 0.88rem;
  color: var(--steel-300);
  padding-left: 16px;
  position: relative;
}
.wws-benefits li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}
.wws-link {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--steel-400);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: auto;
}
.wws-link:hover { color: var(--accent); border-color: var(--accent); }
.wws-link-featured { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); }
.wws-link-featured:hover { border-color: var(--accent); }

/* ─────────────────────────────────────────────────────
   CONTACT CTA
───────────────────────────────────────────────────── */
.contact-section {
  background: var(--steel-950);
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}
.contact-angled-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(232,119,34,0.04) 0%, transparent 50%),
    linear-gradient(315deg, rgba(232,119,34,0.03) 0%, transparent 50%);
  pointer-events: none;
}
.contact-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.3;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-title {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--text-heading);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 20px;
}
.contact-title .accent { color: var(--accent); }
.contact-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--steel-500);
}
.contact-value {
  font-size: 1rem;
  color: var(--steel-200);
  font-weight: 500;
  transition: color 0.2s ease;
}
a.contact-value:hover { color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--steel-400);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--steel-850);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236b7a93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--steel-500); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.75rem;
  color: var(--steel-500);
  text-align: center;
}
.form-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(232,119,34,0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--accent);
}
.form-success.visible { display: flex; }

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
.footer {
  background: #f0f6fc; /* Pro light bluish background */
  border-top: 1px solid var(--border);
  
  /* Default light mode variables for the footer */
  --steel-950:  #ffffff;
  --steel-900:  #f8fafc;
  --steel-850:  #f1f5f9;
  --steel-800:  #e2e8f0;
  --steel-700:  #cbd5e1;
  --steel-600:  #94a3b8;
  --steel-500:  #64748b;
  --steel-400:  #475569;
  --steel-300:  #334155;
  --steel-200:  #1e293b;
  --steel-100:  #0f172a;
  --steel-50:   #020617;
  --text-main:  #1a2b3c;
  --text-muted: #475569;
  --border:     rgba(47, 92, 138, 0.15); /* Bluish border */
  --border-med: rgba(26, 43, 60, 0.18);
  --text-heading: #1a2b3c;
}

[data-theme="dark"] .footer {
  background: var(--steel-950);
  border-top: 1px solid var(--border);
  
  /* Reset variables to dark mode defaults */
  --steel-950:  #0a0b0d;
  --steel-900:  #0f1114;
  --steel-850:  #141619;
  --steel-800:  #1a1d22;
  --steel-700:  #252a32;
  --steel-600:  #313844;
  --steel-500:  #4a5568;
  --steel-400:  #6b7a93;
  --steel-300:  #94a3b8;
  --steel-200:  #cbd5e1;
  --steel-100:  #e2e8f0;
  --steel-50:   #f1f5f9;
  --text-main:  #d4dbe8;
  --text-muted: #7a8a9e;
  --border:     rgba(255,255,255,0.07);
  --border-med: rgba(255,255,255,0.12);
  --text-heading: var(--white);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 88px;
  width: auto;
}
.footer-logo-primary {
  font-family: var(--font-cond);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text-heading);
  display: block;
}
.footer-logo-secondary {
  font-family: var(--font-cond);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  display: block;
}
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.footer-certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--steel-400);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--steel-400);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--steel-500);
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--steel-500);
  position: relative;
  z-index: 20;
}
.footer-legal a {
  padding: 10px 5px;
  color: var(--steel-400);
  transition: color 0.2s ease;
  display: inline-block;
}
.footer-legal a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────
   RESPONSIVE — COMPREHENSIVE MOBILE-FIRST OVERHAUL
───────────────────────────────────────────────────── */

/* ── Global touch & overflow guards ──────────────────── */
* { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], .nav-link, .nav-submenu-link { min-height: 44px; min-width: 44px; }
body, .hero, .stats-section, .services-section,
.wws-section, .contact-section, .footer {
  overflow-x: hidden;
  width: 100%;
}

/* ── TABLET — max-width: 1024px ─────────────────────── */
@media (max-width: 1024px) {
  .nav-inner { gap: 16px; padding: 0 20px; }
  .nav-menu { gap: 4px; }
  .nav-link { padding: 8px 12px; font-size: 0.85rem; }
  .nav-cta { padding: 10px 18px; font-size: 0.85rem; }

  .hero-liquid-box {
    max-width: 85%;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  }
  .hero-title { font-size: clamp(2.8rem, 6vw, 4.5rem); }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .wws-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 100%; }
  .wws-card:last-child { grid-column: span 2; max-width: 50%; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-title { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; }
  .contact-desc, .contact-details { text-align: center; justify-content: center; }
  .contact-details { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 24px; }
  
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 32px 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); justify-items: center; text-align: center; }
  .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }

  .liquid-glass-container { padding: clamp(40px, 8vw, 80px) 0; }
  .liquid-grid, .state-cards-wrapper { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .liquid-glass-card { padding: 32px; }
  .page-header { padding: 130px 0 48px; }

  .stats-inner { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; }
  .stat-divider { display: none; }
}

/* ── MOBILE — max-width: 768px ─────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 72px; }
  .navbar {
    background: rgba(248, 250, 252, 0.99) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
  }
  [data-theme="dark"] .navbar {
    background: rgba(10, 11, 13, 0.99) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.4) !important;
  }

  /* --- Navigation --- */
  .nav-inner { padding: 0 16px; gap: 0; justify-content: space-between; width: 100%; max-width: 100vw; }
  .nav-logo { flex: 0 1 auto; min-width: 0; max-width: 60%; }
  .nav-logo img { height: 48px; max-width: 100%; width: auto; }
  .nav-actions { flex: 0 0 auto; gap: 8px; margin-left: 0; }
  .theme-toggle { width: 44px; height: 44px; min-height: 44px; flex-shrink: 0; }
  .nav-toggle { display: flex; padding: 8px; min-height: 44px; align-items: center; flex-shrink: 0; }

  /* Full-screen mobile menu */
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; width: 100%;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    bottom: auto;
    background: rgba(240, 244, 248, 0.99) !important;
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px calc(env(safe-area-inset-bottom, 40px) + 20px);
    gap: 8px;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); 
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10005;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
  }

  [data-theme="dark"] .nav-menu {
    background: rgba(10, 11, 13, 0.99) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu.open { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 16px 12px;
    font-size: 1rem;
    color: var(--text-heading);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
  }
  .nav-link:hover, .nav-link:active { background: var(--accent-dim); color: var(--accent); }
  
  .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 16px 22px;
    font-size: 1.05rem;
    margin-top: auto;
    border-radius: var(--radius-sm);
  }

  /* Mobile submenu */
  .nav-item-dropdown { width: 100%; }
  .nav-submenu {
    position: static;
    transform: none;
    min-width: 0; width: 100%;
    opacity: 1; visibility: visible;
    background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border: none; box-shadow: none;
    padding: 4px 0 4px 16px;
    display: flex; flex-direction: column; gap: 4px;
    border-left: 2px solid var(--accent-dim);
    margin-left: 12px;
  }
  .nav-submenu-link {
    text-align: left;
    padding: 12px 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
  }


  /* --- Hero --- */
  .hero { min-height: 100svh; min-height: 100dvh; }
  .hero-content {
    padding: calc(var(--nav-h) + 24px) 16px 24px;
    justify-content: center;
    min-height: unset;
  }
  .hero-liquid-box {
    padding: clamp(1.5rem, 5vw, 2rem) clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 20px;
    max-width: 100%;
  }
  .hero-badge { font-size: 0.75rem; padding: 8px 14px; margin-bottom: 20px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; margin-bottom: 16px; }
  .hero-sub { font-size: 0.95rem; margin: 0 auto 24px; max-width: 100%; }
  .hero-actions { flex-direction: column; gap: 12px; align-items: stretch; width: 100%; margin-bottom: 20px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 0.95rem; }
  .hero-spec { flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-med); }
  .spec-divider { display: none; }
  .hero-scroll { display: none; }

  /* --- Sections Shared Padding --- */
  .about-section, .services-section, .wws-section, .contact-section { padding: clamp(40px, 10vw, 64px) 0; }
  .section-header { margin-bottom: clamp(32px, 8vw, 48px); }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .section-desc { font-size: 1rem; }
  .section-tag { font-size: 0.7rem; }
  .container { padding: 0 20px; }

  /* --- Stats --- */
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 0; padding: 16px; }
  .stat-item { padding: 24px 12px; border-bottom: 1px solid var(--border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-item:nth-child(even) { border-left: 1px solid var(--border); }
  .stat-number { font-size: clamp(2.2rem, 8vw, 3rem); }
  .stat-suffix { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .stat-label { font-size: 0.65rem; }

  /* --- Services & WWS --- */
  .services-grid, .wws-grid { grid-template-columns: 1fr; gap: 20px; }
  .wws-card:last-child { grid-column: auto; max-width: 100%; }
  .service-card { padding: 32px 24px; gap: 16px; }
  .card-tags { flex-wrap: wrap; }
  .card-tags span { font-size: 0.65rem; padding: 6px 10px; }
  .wws-card-inner { padding: 32px 24px; }
  .wws-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
  .wws-number { font-size: 2.5rem; opacity: 0.1; }
  .wws-link { padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }

  /* --- Contact --- */
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; /* Prevents iOS zoom */ padding: 14px 16px; border-radius: 8px; }
  .form-group input, .form-group select { min-height: 52px; }

  /* --- Footer --- */
  .footer-inner { padding: 48px 24px 32px; grid-template-columns: 1fr; gap: 40px; }
  .footer-logo img { height: 60px !important; }
  .footer-links { grid-template-columns: 1fr; gap: 32px; justify-items: start; text-align: left; }
  .footer-brand { align-items: flex-start; text-align: left; }
  .footer-col h4 { margin-bottom: 16px; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col a { padding: 8px 0; display: inline-block; min-height: 44px; }
  .footer-bottom { flex-direction: column; gap: 20px; padding: 24px; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
  .footer-legal a { padding: 10px; }

  /* --- Sub-page specifics --- */
  .page-header { padding: calc(var(--nav-h) + 60px) 0 40px; }
  .liquid-grid, .state-cards-wrapper { grid-template-columns: 1fr; gap: 20px; }
  .liquid-glass-card { padding: 32px 24px; }
}

/* ── SMALL MOBILE — max-width: 480px ────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 64px; }
  .nav-logo img { height: 40px; max-width: 160px; }
  .theme-toggle { width: 44px; height: 44px; }
  .container { padding: 0 16px; }

  .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .hero-sub { font-size: 0.9rem; }
  .hero-liquid-box { padding: 1.5rem 1.25rem; }

  .stat-number { font-size: clamp(2rem, 10vw, 2.5rem); }
  .stat-label { font-size: 0.6rem; letter-spacing: 0.05em; }
  
  .section-title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .service-card, .wws-card-inner, .liquid-glass-card { padding: 24px 20px; }
  
  .contact-title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .contact-details { flex-direction: column; align-items: center; gap: 16px; }
}

/* ── VERY SMALL — max-width: 360px ──────────────────── */
@media (max-width: 360px) {
  .hero-liquid-box { padding: 1.5rem 1rem; }
  .hero-title { font-size: 1.7rem; }
  .hero-actions .btn { padding: 14px 16px; font-size: 0.85rem; }
  .stat-item { padding: 16px 8px; }
  .stat-number { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .container { padding: 0 12px; }
  .footer-inner { padding: 40px 16px 24px; }
}

/* ── LANDSCAPE MOBILE — max-height: 500px ───────────── */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-h: 60px; }

  .hero { min-height: 100lvh; height: auto; align-items: flex-start; }
  .hero-content { padding-top: calc(var(--nav-h) + 24px); justify-content: center; min-height: unset; }
  .hero-liquid-box {
    padding: 1.5rem 2rem;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px 24px;
    align-items: center;
  }
  .hero-badge { margin-bottom: 0; grid-column: 1 / -1; justify-self: start; }
  .hero-title { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin-bottom: 0; grid-column: 1; text-align: left; }
  .hero-sub { font-size: 0.9rem; margin-bottom: 0; grid-column: 2; text-align: left; }
  .hero-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    margin-bottom: 0;
    justify-content: flex-start;
  }
  .hero-actions .btn { width: auto; flex: 0 1 auto; padding: 12px 24px; }
  .hero-spec { grid-column: 1 / -1; padding-top: 12px; flex-direction: row; gap: 24px; border-top: 1px solid var(--border-med); }
  .spec-divider { display: block; }
  .hero-scroll { display: none; }

  .nav-menu { padding: 16px 20px 24px; overflow-y: auto; }
  .nav-link { padding: 10px 12px; min-height: 40px; font-size: 0.95rem; }
  .nav-cta { margin-top: 12px; min-height: 44px; width: auto; display: inline-flex; }

  .page-header { padding: calc(var(--nav-h) + 40px) 0 32px; }
}
 
/* ─────────────────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--accent-grad);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  filter: brightness(1.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.4);
}
.back-to-top:active {
  transform: scale(0.9);
}

/* ─────────────────────────────────────────────────────────
   MODALS (PRIVACY & TERMS)
───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(10, 11, 13, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 30000 !important;
  display: none !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-content {
  background: var(--steel-900);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--steel-400);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.modal-body {
  padding: 48px;
  overflow-y: auto;
  color: var(--text-muted);
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--steel-700);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--steel-500);
}

.modal-body h3 {
  font-family: var(--font-cond);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-body h4 {
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.modal-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-body strong {
  color: var(--steel-200);
}

@media (max-width: 600px) {
  .modal-body {
    padding: 40px 24px 32px;
  }
  .modal-body h3 {
    font-size: 1.5rem;
  }
  .modal-close {
    top: 8px;
    right: 8px;
  }
}

/* ─────────────────────────────────────────────────────────
   LIQUID GLASS CARDS & SUBPAGES
───────────────────────────────────────────────────────── */
.page-header {
  padding: 160px 0 60px;
  background: var(--nav-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--accent-dim), transparent);
  pointer-events: none;
}

.liquid-glass-container {
  padding: 80px 0;
  background: var(--steel-950);
  background-image: radial-gradient(circle at 50% 0%, var(--accent-dim) 0%, transparent 50%);
}

.liquid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.liquid-glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);


  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  color: var(--text-main);
  z-index: 1;
}

[data-theme="dark"] .liquid-glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.liquid-glass-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.5), transparent 40%, transparent 60%, rgba(var(--accent-rgb), 0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.liquid-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 16px 48px 0 rgba(var(--accent-rgb), 0.15);
}

.liquid-glass-card:hover::before {
  opacity: 1;
}

.liquid-card-title {
  font-family: var(--font-cond);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.liquid-card-icon {
  color: var(--accent);
  width: 32px;
  height: 32px;
}

.liquid-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liquid-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.liquid-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.state-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.state-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.state-link-card .btn {
  margin-top: 24px;
  align-self: flex-start;
}

/* Trust Line Badge System */
.trust-line-box {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 20px;
  border-radius: 100px;
  margin-bottom: 25px;
  margin-top: 10px;
  max-width: 100%;
}

.trust-line {
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-heading);
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .trust-line-box {
    padding: 6px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .trust-line {
    font-size: 0.55rem;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
  }
}

