/* =====================================================================
   NexGen Commercial & Residential Surfaces — design tokens
   ---------------------------------------------------------------------
   The site is a DARK navy theme with LIGHT bands and a WHITE header.
   Cyan is the accent on dark surfaces (buttons take navy text).
   On light surfaces the accent is steel blue (buttons take white text).
   Never white text on cyan, never cyan text on white.
   The template's existing --color-* variables are re-pointed at the
   --nx-* palette below, so existing classes recolour without renaming.
   ===================================================================== */
:root {
  /* Brand palette (sampled from the logo) */
  --nx-navy-900: #0A2536;
  --nx-navy-800: #123B51;
  --nx-ink: #1D3F51;
  --nx-ink-deep: #132D3F;
  --nx-steel-600: #255371;
  --nx-steel-500: #417A9E;
  --nx-steel-400: #5F98BE;
  --nx-cyan: #4EDEE4;
  --nx-cyan-hover: #72EAF6;
  --nx-cyan-pale: #AEECF0;
  --nx-silver-100: #E1E1E1;
  --nx-silver-300: #BFBFBF;
  --nx-silver-500: #A0A0A0;
  --nx-graphite: #505151;

  /* Helpers derived from the palette (not logo samples) */
  --nx-white: #FFFFFF;
  --nx-mist-50: #F5F8FA;   /* very light cool tint: light bands */
  --nx-mist-100: #EBF1F5;  /* light cool tint: alternate light panels */
  --nx-mist-200: #DCE5EC;  /* light borders and dividers */

  /* Template colour variables, re-pointed. Defaults are for DARK surfaces. */
  --color-navy: var(--nx-navy-900);        /* dark surfaces, and text on light surfaces */
  --color-dark: var(--nx-navy-900);        /* page background */
  --color-cta: var(--nx-steel-600);        /* the template's pages use it on LIGHT surfaces (white text on the fill) */
  --color-primary: var(--nx-steel-600);
  --color-volt: var(--nx-cyan);            /* accent: fills, borders, icons, text */
  --color-volt-text: var(--nx-navy-900);   /* text sitting ON a volt fill */
  --color-blue: var(--nx-steel-600);
  --color-blue-hover: var(--nx-steel-500);
  --color-highlight: var(--nx-cyan);
  --color-light-highlight: var(--nx-cyan-pale);

  /* Neutrals */
  --color-text-main: var(--nx-white);
  --color-text-muted: var(--nx-silver-300);
  --color-border: var(--nx-steel-600);
  --color-bg-soft: var(--nx-ink-deep);
  --color-bg-card: var(--nx-navy-800);

  /* Legacy mappings */
  --color-white: var(--nx-white);
  --color-wolf: var(--nx-silver-500);
  --color-graphite: var(--nx-silver-100);  /* body text on dark */
  --color-mist: var(--nx-silver-100);      /* light neutral: borders on light cards, light text on dark cards */
  --color-off-white: var(--nx-mist-50);

  /* Utility (semantic: kept on purpose) */
  --color-success: #16A34A;
  --color-danger: #DC2626;
  --color-warning: var(--color-danger);

  /* Surface-dependent tokens used by buttons and links (dark defaults) */
  --color-volt-dim: rgba(78, 222, 228, 0.15);
  --color-link: var(--nx-cyan);
  --color-link-hover: var(--nx-cyan-hover);
  --color-btn-bg: var(--nx-cyan);
  --color-btn-bg-hover: var(--nx-cyan-hover);
  --color-btn-text: var(--nx-navy-900);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;

  /* Header geometry (desktop). The top bar has a fixed height so the sticky
     offset below is exact: the top bar scrolls away, the white bar stays. */
  --nx-top-bar-h: 36px;
  --nx-header-h: 100px;   /* white bar: 80px logo + 2 x 10px padding */
}

/* ---------------------------------------------------------------------
   Surface scopes. A custom property set on a container flips every
   descendant that uses it, so one rule recolours a whole light band.
   .nx-light : light/white surface (accent = steel, buttons white-on-steel)
   .nx-dark  : dark surface nested inside a light one (accent = cyan)
   Add .nx-light to any new light section or card; add .nx-dark to a dark
   block that sits inside a light one.
   Keep this block ABOVE the section rules so a section's own colour wins.
   --------------------------------------------------------------------- */
.nx-light,
.main-header,
.quote-flow-section,
.tactical-card,
.faq-modern-section,
[style*="background-color: var(--color-white)"],
[style*="background: var(--color-white)"],
[style*="background:white"],
[style*="background: white"],
[style*="background-color: white"],
[style*="background:#fff" i],
[style*="background: #fff" i],
[style*="#F5F7FA" i],
[style*="#F8FAFC" i] {
  --color-volt: var(--nx-steel-600);
  --color-volt-text: var(--nx-white);
  --color-volt-dim: rgba(37, 83, 113, 0.12);
  --color-cta: var(--nx-steel-600);
  --color-highlight: var(--nx-steel-600);
  --color-light-highlight: var(--nx-steel-400);
  --color-link: var(--nx-steel-600);
  --color-link-hover: var(--nx-ink);
  --color-btn-bg: var(--nx-steel-600);
  --color-btn-bg-hover: var(--nx-ink);
  --color-btn-text: var(--nx-white);
  --color-text-main: var(--nx-navy-900);
  --color-text-muted: var(--nx-graphite);
  --color-graphite: var(--nx-ink);
  color: var(--nx-ink);
}

.nx-dark,
.dropdown-menu {
  --color-volt: var(--nx-cyan);
  --color-volt-text: var(--nx-navy-900);
  --color-volt-dim: rgba(78, 222, 228, 0.15);
  --color-cta: var(--nx-cyan);
  --color-highlight: var(--nx-cyan);
  --color-light-highlight: var(--nx-cyan-pale);
  --color-link: var(--nx-cyan);
  --color-link-hover: var(--nx-cyan-hover);
  --color-btn-bg: var(--nx-cyan);
  --color-btn-bg-hover: var(--nx-cyan-hover);
  --color-btn-text: var(--nx-navy-900);
  --color-text-main: var(--nx-white);
  --color-text-muted: var(--nx-silver-300);
  --color-graphite: var(--nx-silver-100);
}

/* Placeholder for a fact NexGen has not supplied yet. A dashed underline in
   the current text colour, so it stays readable on dark and light surfaces. */
.nx-placeholder {
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
  font-style: normal;
  text-decoration: none;
}

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

html {
  margin: 0;
  padding: 0;
  /* /services#commercial and #systems land below the sticky white bar */
  scroll-padding-top: calc(var(--nx-header-h) + 12px);
}

body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  /* Using footer color - good color */
  color: var(--color-graphite);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

a:hover {
  color: var(--color-link-hover);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

/* Both button styles follow the surface they sit on:
   dark surface  -> cyan fill, navy text
   light surface -> steel-600 fill, white text
   (tokens are switched by .nx-light / .nx-dark, see the top of this file) */
.btn-primary {
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
}

.btn-primary:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
  transform: translateY(-1px);
}

.btn-primary:active {
  color: var(--color-btn-text);
  transform: translateY(0);
}

.btn-cta {
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
}

.btn-cta:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text) !important;
  transform: translateY(-1px);
}

.btn-cta:active {
  color: var(--color-btn-text) !important;
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-volt);
  outline-offset: 3px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: 3rem 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--nx-navy-900);
  color: white;
  padding: 3rem 0;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 37, 54, 0.80);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Header: white main bar under a navy top bar */
header {
  background-color: var(--nx-white);
  position: sticky;
  top: calc(-1 * var(--nx-top-bar-h));
  z-index: 9999;
  box-shadow: 0 1px 0 var(--nx-silver-100), 0 8px 22px rgba(10, 37, 54, 0.10);
}

.top-bar {
  background-color: var(--nx-navy-900);
  color: var(--nx-silver-300);
  font-size: 0.85rem;
  height: var(--nx-top-bar-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  width: 100%;
}

.top-bar a {
  color: inherit;
}

.top-bar a:hover {
  color: var(--nx-cyan);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--spacing-lg);
}

.top-bar-info > span {
  white-space: nowrap;
}

.main-header {
  background-color: var(--nx-white);
  padding: 10px 0;
  min-height: var(--nx-header-h);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1rem;
}

.logo img {
  height: 45px;
  width: auto;
}

/* The NexGen logo is sized here only: the markup carries no width/height.
   A fixed height plus aspect-ratio reserves the box before the image loads;
   object-fit keeps it from stretching if max-width ever clamps it. */
.logo .nx-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 720 / 258;
  object-fit: contain;
}

.logo:focus-visible {
  outline: 2px solid var(--nx-steel-500);
  outline-offset: 4px;
  border-radius: 4px;
}

nav ul {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  color: var(--nx-ink);
  font-weight: 600;
  display: block;
  padding: 10px 0;
}

nav a:hover,
nav a.active {
  color: var(--nx-steel-600);
}

nav a:focus-visible {
  outline: 2px solid var(--nx-steel-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Underline marker on the top-level links (not on the button, not in menus) */
nav > ul > li > a:not(.btn) {
  position: relative;
}

nav > ul > li > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--nx-steel-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

nav > ul > li > a:not(.btn):hover::after,
nav > ul > li > a.active:not(.btn)::after,
nav > ul > li:focus-within > a:not(.btn)::after {
  transform: scaleX(1);
}

/* Nine nav items were too wide between the breakpoint and ~1200px, so labels
   folded in half and the header grew taller. The row is now seven items (two
   menus), but nowrap stays as the guard: a label that is too wide pushes the
   row out visibly instead of quietly folding. The row lives from 900px up
   (below that the page uses the hamburger header, see the 899px query). */
@media (min-width: 900px) and (max-width: 1200px) {
  nav ul {
    gap: var(--spacing-md);
  }

  nav ul > li > a {
    white-space: nowrap;
  }
}

/* Small laptops and landscape tablets: tighter row so the 80px logo and the
   seven items share one line at 900px (measured from 852px up). */
@media (min-width: 900px) and (max-width: 1023px) {
  .main-header .container {
    gap: 0.75rem;
  }

  nav ul {
    gap: 0.6rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  nav .btn-cta {
    margin-left: 0.25rem;
  }
}

/* The nav button keeps its own text colour on hover and when active */
nav .btn-cta:hover,
nav .btn-cta.active {
  color: var(--color-btn-text) !important;
}

/* Dropdown menu: navy panel under the white bar. Opens on hover and when
   anything inside has keyboard focus. */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  background-color: var(--nx-navy-900);
  min-width: 250px;
  box-shadow: 0 16px 34px rgba(10, 37, 54, 0.35);
  padding: var(--spacing-sm) 0;
  border: 1px solid var(--nx-steel-600);
  border-radius: 8px;
  z-index: 101;
}

nav li:hover .dropdown-menu,
nav li:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--nx-silver-100);
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a.active {
  background-color: rgba(78, 222, 228, 0.10);
  color: var(--nx-cyan);
  outline: none;
}

/* All-services link at the top of the Systems menu */
.dropdown-all-link {
  font-weight: 700 !important;
  color: var(--nx-white) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 10px 18px !important;
  margin-bottom: 4px;
}

.dropdown-all-link:hover,
.dropdown-all-link:focus-visible {
  color: var(--nx-cyan) !important;
  background-color: rgba(78, 222, 228, 0.10) !important;
}

nav .btn-cta {
  padding: 8px 16px;
  font-size: 0.9rem;
  margin-left: var(--spacing-md);
}

/* Footer: navy, with the logo on a white rounded plate */
footer {
  background-color: var(--nx-navy-900);
  color: var(--nx-silver-300);
  padding: var(--spacing-xl) 0;
  margin-top: auto;
  border-top: 4px solid var(--nx-cyan);
}

footer h4 {
  color: var(--nx-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

footer a {
  color: var(--nx-silver-300);
  display: block;
  margin-bottom: 8px;
}

footer a:hover {
  color: var(--nx-cyan);
  padding-left: 4px;
  /* Slight movement on hover */
}

footer a:focus-visible {
  outline: 2px solid var(--nx-cyan);
  outline-offset: 2px;
}

/* The logo is not legible on navy, so the footer carries it on a white plate */
.nx-logo-plate,
footer .nx-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-white);
  border-radius: 14px;
  padding: 14px 22px;
  margin-bottom: 1rem;
  max-width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

footer a.nx-logo-plate:hover {
  padding-left: 22px;
}

.nx-logo-plate .nx-logo {
  display: block;
  height: 88px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 720 / 258;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-contact p {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: var(--spacing-md);
}

.legal-links a {
  margin-bottom: 0;
  font-size: 0.85rem;
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--nx-ink);
  cursor: pointer;
  padding: 0;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 28px;
  /* Explicit size for both ☰ and ✕ icons */
  line-height: 1;
}

.mobile-menu-btn:hover {
  color: var(--nx-steel-600);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--nx-steel-500);
  outline-offset: 2px;
  border-radius: 6px;
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Menu layout up to 899px. The seven-item nav row only fits beside the 80px logo
   from 900px up, so below that the page uses the phone header: a white bar with
   a hamburger and a navy panel that scrolls. The rest of the phone layout
   (sections, carousels, hero text) still starts at 768px. */
@media (max-width: 899px) {
  html {
    scroll-padding-top: 16px;
    /* the header scrolls away here */
  }

  /* The header is an overlay here, so the first section has to clear it */
  header+section,
  header+*>section:first-child {
    padding-top: calc(var(--nx-header-h) + 24px) !important;
  }

  /* Header - Mobile Layout (Scrolls away): white bar, navy menu panel */
  header {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--nx-white);
    box-shadow: 0 2px 12px rgba(10, 37, 54, 0.14);
  }

  /* Remove padding as header is absolute overlay */
  body {
    padding-top: 0;
  }

  .top-bar {
    display: none;
  }

  .main-header {
    padding: 0;
    /* Remove padding as we use height flex centering */
    height: var(--nx-header-h);
    min-height: 0;
  }

  .main-header .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 0 1.25rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  nav {
    display: none;
    position: fixed;
    top: var(--nx-header-h);
    /* Height of header */
    left: 0;
    right: 0;
    bottom: 0;
    /* Full height */
    background: var(--nx-navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    z-index: 9998;
    overflow-y: auto;
    /* Two menus plus the rest of the list scroll inside the panel */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav li:last-child {
    border-bottom: none;
  }

  nav a {
    padding: 1.05rem 1.5rem;
    width: 100%;
    color: var(--nx-silver-100) !important;
    /* The panel is navy: light text, set explicitly */
    background-color: transparent;
    font-weight: 500;
    font-size: 1.1rem;
    border-left: 4px solid transparent;
  }

  /* No underline marker in the panel */
  nav > ul > li > a:not(.btn)::after {
    display: none;
  }

  /* Mobile nav hover state */
  nav a:hover {
    color: var(--nx-cyan) !important;
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--nx-cyan);
  }

  /* Active state - high contrast */
  nav a.active:not(.btn-cta) {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--nx-cyan) !important;
    font-weight: 700;
    border-left-color: var(--nx-cyan);
  }

  nav .btn-cta {
    margin: 1.5rem;
    width: calc(100% - 3rem);
    /* Full width minus margins */
    text-align: center;
    padding: 1rem;
    display: block;
  }

  /* CTA styling: cyan on the navy panel, navy text */
  nav .btn-cta,
  nav .btn-cta:hover,
  nav .btn-cta.active {
    background-color: var(--nx-cyan) !important;
    color: var(--nx-navy-900) !important;
    border-left: none;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  nav .btn-cta:hover {
    background-color: var(--nx-cyan-hover) !important;
  }

  /* Dropdowns on Mobile - Always Expanded */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 1.5rem;
    display: block;
    /* Always show sub-items on mobile */
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0.5rem;
  }

  nav li:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    border-bottom: none;
  }

  /* Open menus sit inside the panel, not as floating cards */
  .dropdown-menu {
    min-width: 0;
    border-radius: 0;
  }

  .dropdown-menu a {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--nx-silver-300) !important;
    border-left: none;
    /* Ensure visibility */
    opacity: 1;
    white-space: normal;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible,
  .dropdown-menu a.active {
    background: transparent !important;
    color: var(--nx-cyan) !important;
    padding-left: 5px;
    /* Slight indent on hover */
  }

  .dropdown-all-link {
    border-bottom: none !important;
    padding: 0.5rem 0 !important;
    margin-bottom: 0;
  }

  .logo {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  /* The 80px logo (about 223px wide) stays the same size at every width: a 100px
     bar leaves room for it beside the hamburger from 320px up; max-width +
     object-fit keep it whole on the narrowest screens */
  .logo .nx-logo {
    height: 80px;
    max-width: calc(100vw - 112px);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

  .hide-mobile {
    display: none !important;
  }

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

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Hero Section Mobile Optimization */
  .hero-section {
    padding-top: calc(var(--nx-header-h) + 24px);
    padding-bottom: 2.5rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1rem !important;
    letter-spacing: -0.01em;
  }

  .hero-section p {
    font-size: 0.9375rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.75rem !important;
    color: #c8c8c8 !important;
    padding: 0 0.25rem;
  }

  /* Hero Buttons - Stack Vertically */
  .hero-section .container>div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.625rem !important;
    padding: 0 0.5rem;
  }

  .hero-section .btn {
    width: 100%;
    min-height: 50px;
    padding: 13px 24px;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-align: center;
  }

  /* Layout */
  .container {
    padding: 0 var(--spacing-md);
  }

  section {
    padding: 1.5rem 0;
  }

  /* Flex/Grid Adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--nx-navy-800) 0%, var(--nx-navy-900) 100%);
  /* Lighter gradient for better contrast */
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(78, 222, 228, 0.10) 0%, transparent 50%);
  /* Cyan accent glow */
  pointer-events: none;
}

.cta-banner h2 {
  color: #F5F5F5;
  /* Bright white for readability */
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: #BDBDBD;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 2rem 1.25rem;
  }

  .cta-banner h2 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .cta-banner p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .cta-banner .btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}

/* Utility */
.text-center {
  text-align: center;
}

/* -------------------------------------------
   TACTICAL QUOTE FLOW (PREMIUM REDESIGN)
------------------------------------------- */

.quote-flow-section {
  background-color: var(--color-white);
  padding: 4rem 0;
  min-height: 80vh;
  /* Subtle Background Pattern */
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Header & Typography */
.quote-header {
  text-align: center;
  margin-bottom: 3rem;
}

.quote-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.quote-header p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 0;
  font-weight: 500;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Tactical Form Card */
.tactical-card {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.05);
  /* Deep Shadow */
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  overflow: hidden;
}

/* Decorative 'Tech' Border on Top */
.tactical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-volt) 100%);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Input Styles */

.form-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  /* Left padding for icon */
  border: 2px solid #E2E8F0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--color-navy);
  background-color: #F8FAFC;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  background-color: white;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

.form-group input::placeholder {
  color: #CBD5E1;
  font-weight: 400;
}

/* Buttons */
.btn-large {
  padding: 1.25rem;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px -1px rgba(37, 83, 113, 0.3);
  transition: all 0.2s ease;
  width: 100%;
  border: none;
  border-radius: 6px;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 83, 113, 0.5);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hidden {
  display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .quote-flow-section {
    padding: 2rem 0;
  }

  .quote-header {
    margin-bottom: 2rem;
  }

  .quote-header h1 {
    font-size: 1.875rem;
    line-height: 1.2;
    color: var(--color-navy);
  }

  .quote-header p {
    font-size: 1.0625rem;
    line-height: 1.5;
  }

  .tactical-card {
    padding: 1.5rem;
  }

  .form-group label {
    font-size: 0.8125rem;
  }

  .form-group input {
    font-size: 1.0625rem;
    padding: 1.125rem 1rem 1.125rem 3rem;
  }

  .btn-large {
    font-size: 1.125rem;
    padding: 1.125rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Core Mobile Fixes from Audit --- */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
}
