:root {
  /* Brand & Dark Theme Tokens */
  --navy: #1D2935;
  --navy-obsidian: #0E151D;
  --navy-deep: #131C26;
  --navy-surface: #18232F;
  --navy-elevated: #202E3D;
  --amber: #F5A623;
  --amber-hover: #FFB73B;
  --amber-soft: rgba(245, 166, 35, 0.14);
  --amber-glow: rgba(245, 166, 35, 0.28);
  --slate: #5C6773;
  --slate-text: #A8B3BF;
  --slate-light: #C6D0DA;
  --text-primary: #F2F5F8;
  --text-muted: #9BA7B4;

  /* Borders & Elevation */
  --border-dark: rgba(92, 103, 115, 0.34);
  --border-bright: rgba(245, 166, 35, 0.48);
  --shadow-sm: 0 4px 14px rgba(5, 9, 14, 0.35);
  --shadow-md: 0 14px 34px rgba(5, 9, 14, 0.5);
  --shadow-dark: 0 24px 52px rgba(4, 8, 12, 0.65);

  /* Semantic Feedback (Dark Mode Contrast Safe) */
  --error: #FF8A80;
  --error-border: #F26457;
  --error-bg: rgba(197, 34, 31, 0.16);
  --success: #6EE7B7;
  --success-border: #34D399;
  --success-bg: rgba(16, 185, 129, 0.14);

  /* Typography */
  --font-heading: 'Merienda', system-ui, -apple-system, sans-serif;
  --font-body: 'Merienda', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.62;
  color: var(--text-primary);
  background-color: var(--navy-obsidian);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 0.75rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--text-primary);
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: var(--navy-obsidian);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.edge-wires-canvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .edge-wires-canvas {
    display: block;
  }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 200ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-amber {
  background-color: var(--amber);
  color: var(--navy-obsidian);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.35), 0 8px 22px rgba(245, 166, 35, 0.18);
}

.btn-amber:hover {
  background-color: var(--amber-hover);
  box-shadow: 0 0 0 1px rgba(255, 183, 59, 0.6), 0 10px 28px rgba(245, 166, 35, 0.32);
}

.btn-outline-light {
  background-color: rgba(24, 35, 47, 0.7);
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.btn-outline-light:hover {
  border-color: var(--amber);
  color: var(--amber);
  background-color: rgba(245, 166, 35, 0.08);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.16);
}

/* Header Makeover: Industrial Command Console */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(14, 21, 29, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.header-utility-bar {
  background-color: var(--navy-deep);
  border-bottom: 1px solid rgba(92, 103, 115, 0.22);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--slate-text);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 30px;
}

.utility-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--amber);
  font-weight: 600;
}

.utility-meta {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo,
.brand-logo-img,
.brand-logo-svg {
  display: block;
  height: auto;
  transition: filter 220ms ease, transform 220ms ease;
}

.brand-lockup:hover .brand-logo,
.brand-lockup:hover .brand-logo-img,
.brand-lockup:hover .brand-logo-svg {
  filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.45));
}

.footer-logo-img {
  display: block;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-text);
  letter-spacing: 0.03em;
}

/* Segmented Pill Navigation Rail */
.primary-nav {
  display: none;
  padding: 0.28rem;
  border-radius: 999px;
  background-color: rgba(24, 35, 47, 0.9);
  border: 1px solid var(--border-dark);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-light);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-list a:hover {
  color: var(--amber);
  background-color: rgba(245, 166, 35, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem;
  border-radius: var(--radius-sm);
  background-color: rgba(24, 35, 47, 0.9);
  border: 1px solid var(--border-dark);
  gap: 0.15rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 0.55rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background-color: var(--amber);
  color: var(--navy-obsidian);
}

.phone-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: rgba(24, 35, 47, 0.85);
  border: 1px solid var(--border-dark);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 180ms ease;
}

.phone-pill:hover {
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: 0 0 14px rgba(245, 166, 35, 0.16);
}

.phone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--amber);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

/* Scroll Charge Busbar */
.header-charge-track {
  position: relative;
  height: 2px;
  width: 100%;
  background-color: rgba(92, 103, 115, 0.22);
  overflow: hidden;
}

.header-charge-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--amber) 0%, #FFD27D 100%);
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.7);
}

.mobile-nav {
  background-color: var(--navy-deep);
  border-top: 1px solid var(--border-dark);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.mobile-nav-list a:hover {
  background-color: var(--navy-elevated);
  color: var(--amber);
}

.mobile-phone-link {
  color: var(--amber) !important;
  font-weight: 600 !important;
}

/* Hero */
.hero {
  position: relative;
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(circle at 50% 35%, rgba(245, 166, 35, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(14, 21, 29, 0.55) 0%, rgba(19, 28, 38, 0.72) 55%, rgba(14, 21, 29, 0.90) 100%),
    url('./hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-primary);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 166, 35, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.86) 0%, rgba(235, 241, 247, 0.92) 55%, rgba(245, 247, 250, 0.96) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] .hero::before {
  opacity: 1;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(92, 103, 115, 0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(92, 103, 115, 0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 45%, black 20%, transparent 78%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background-color: rgba(14, 21, 29, 0.78);
  border: 1px solid rgba(245, 166, 35, 0.42);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.45rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 1.35rem;
  text-shadow: 0 6px 28px rgba(5, 9, 14, 0.65);
}

.hero-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--slate-light);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-metrics {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background-color: rgba(14, 21, 29, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-dark);
  margin: 0;
}

.metric-item dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-text);
  margin-bottom: 0.3rem;
}

.metric-item dd {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Hero Dispatch Board Card */
.hero-panel-card {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.96) 0%, rgba(14, 21, 29, 0.98) 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-dark), 0 0 38px rgba(245, 166, 35, 0.08);
}

.hero-panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: var(--text-primary);
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: var(--amber-soft);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: var(--amber);
}

.panel-divider {
  height: 1px;
  background-color: var(--border-dark);
  margin: 1rem 0 1.25rem;
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.capability-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background-color: var(--navy-surface);
  border: 1px solid rgba(92, 103, 115, 0.28);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.capability-row:hover {
  border-color: var(--border-bright);
  background-color: var(--navy-elevated);
}

.cap-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(245, 166, 35, 0.14);
  color: var(--amber);
}

.cap-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cap-info strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.cap-info span {
  font-size: 0.8125rem;
  color: var(--slate-text);
}

.cap-spec {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.panel-footer-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8125rem;
  color: var(--slate-light);
}

/* Shared Sections & Interactive Grid Canvas */
.section {
  padding: 4.75rem 0;
  position: relative;
}

[data-interactive-grid] {
  position: relative;
  overflow: hidden;
}

[data-interactive-grid] > .container {
  position: relative;
  z-index: 1;
}

.interactive-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
}

.section-heading p {
  color: var(--slate-light);
  max-width: 56ch;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}

.section-heading.centered p {
  margin-inline: auto;
}

/* Services Section (Dark Interactive Grid) */
.services-section {
  background-color: var(--navy-obsidian);
  border-bottom: 1px solid var(--border-dark);
}

.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.division-tabs {
  display: inline-flex;
  padding: 0.3rem;
  background-color: var(--navy-deep);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  align-self: flex-start;
  gap: 0.35rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background-color: var(--amber);
  color: var(--navy-obsidian);
}

.tab-btn.active svg {
  color: var(--navy-obsidian);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.services-grid[hidden] {
  display: none;
}

.service-card {
  position: relative;
  background-color: rgba(24, 35, 47, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease, background-color 200ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  background-color: rgba(32, 46, 61, 0.95);
  box-shadow: var(--shadow-md), 0 0 24px rgba(245, 166, 35, 0.14);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: var(--amber-soft);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--amber);
}

.service-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--slate-text);
  font-variant-numeric: tabular-nums;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--slate-light);
  margin: 0;
}

/* Standards Section (Alternating Deep Slate Navy + Interactive Grid) */
.standards-section {
  background-color: #16222E;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-dark);
}

.standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.standards-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
}

.standards-intro p {
  color: var(--slate-light);
  max-width: 52ch;
}

.license-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background-color: var(--navy-deep);
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--amber);
}

.license-callout strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.license-callout span {
  font-size: 0.875rem;
  color: var(--slate-light);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background-color: var(--navy-deep);
  border: 1px solid var(--border-dark);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.step-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.1);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 0.15rem;
}

.step-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--slate-light);
  margin: 0;
}

/* Projects Section (Alternating Deep Slate Navy + Interactive Grid) */
.projects-section {
  background-color: #16222E;
  border-bottom: 1px solid var(--border-dark);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background-color: rgba(24, 35, 47, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md), 0 0 24px rgba(245, 166, 35, 0.12);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.badge-commercial {
  background-color: rgba(245, 166, 35, 0.16);
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--amber);
}

.badge-residential {
  background-color: rgba(92, 103, 115, 0.25);
  border: 1px solid rgba(168, 179, 191, 0.35);
  color: var(--text-primary);
}

.project-spec {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-text);
  font-variant-numeric: tabular-nums;
}

.project-card h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.9375rem;
  color: var(--slate-light);
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.project-tags li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: var(--navy-deep);
  border: 1px solid var(--border-dark);
  color: var(--slate-light);
}

/* Quote Section — Project Intake Console (Alternating Deep Slate Navy + Interactive Grid) */
.quote-section {
  background-color: #16222E;
}

.quote-console {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.96) 0%, rgba(14, 21, 29, 0.98) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark), 0 0 42px rgba(245, 166, 35, 0.06);
  overflow: hidden;
}

.quote-console::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 50%, transparent 100%);
}

.console-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.75rem;
  background-color: rgba(24, 35, 47, 0.72);
  border-bottom: 1px solid var(--border-dark);
}

.console-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.console-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.console-quick-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.console-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background-color: var(--navy-obsidian);
  border: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-light);
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease, color 160ms ease;
}

a.console-chip:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.console-form {
  padding: 1.85rem 1.75rem 2rem;
}

.division-fieldset {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.division-fieldset legend {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.division-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.division-option {
  position: relative;
  cursor: pointer;
}

.division-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.division-card-ui {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  background-color: var(--navy-obsidian);
  border: 1.5px solid var(--border-dark);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.division-card-ui svg {
  color: var(--slate-text);
  margin-bottom: 0.2rem;
  transition: color 180ms ease;
}

.division-card-ui strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.division-card-ui small {
  font-size: 0.78rem;
  color: var(--slate-text);
  line-height: 1.35;
}

.division-option:hover .division-card-ui {
  border-color: rgba(245, 166, 35, 0.45);
}

.division-option input[type="radio"]:focus-visible + .division-card-ui {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.division-option input[type="radio"]:checked + .division-card-ui {
  background-color: rgba(245, 166, 35, 0.10);
  border-color: var(--amber);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.14);
}

.division-option input[type="radio"]:checked + .division-card-ui svg {
  color: var(--amber);
}

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

.console-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
}

.console-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-light);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.15rem;
}

.field label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.req {
  color: var(--amber);
}

.hint {
  display: block;
  font-size: 0.8rem;
  color: var(--slate-text);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background-color: var(--navy-obsidian);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6E7B88;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.14);
}

.error-msg {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--error);
  font-size: 0.835rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

.error-msg span[role="img"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--error-border);
  color: var(--navy-obsidian);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Deferred validation: only after user interaction or submit */
.field :is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--error-border);
  background-color: var(--error-bg);
}

.field :is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: flex;
}

.field :user-valid {
  border-color: var(--success-border);
}

.form-actions {
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
}

.form-status {
  margin-top: 1.15rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background-color: var(--navy-deep);
  color: var(--text-primary);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.footer-copy {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--slate-text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a,
.footer-modal-link {
  font-size: 0.875rem;
  color: var(--slate-text);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-modal-link:hover {
  color: var(--amber);
}

.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--slate-text);
}

/* Google Reviews Section (Alternating Obsidian Navy + Interactive Grid) */
.reviews-section {
  background-color: var(--navy-obsidian);
  border-bottom: 1px solid var(--border-dark);
}

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

.review-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background-color: rgba(24, 35, 47, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-md), 0 0 24px rgba(245, 166, 35, 0.12);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.google-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background-color: var(--navy-deep);
  border: 1px solid var(--border-dark);
  color: var(--slate-light);
}

.review-quote {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.review-author {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-author strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.review-author span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
}

/* Legal Modals */
.legal-modal {
  max-width: 560px;
  width: calc(100% - 2rem);
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-bright);
  background-color: var(--navy-deep);
  color: var(--text-primary);
  box-shadow: var(--shadow-dark);
}

.legal-modal::backdrop {
  background-color: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(4px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-dark);
  background-color: var(--navy-surface);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.modal-body {
  padding: 1.5rem;
  color: var(--slate-light);
  font-size: 0.9375rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* Subtle Electric Motion Effects */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes electric-pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.45;
      transform: scale(1.25);
    }
  }

  .pulse-dot,
  .phone-dot {
    animation: electric-pulse 2.2s ease-in-out infinite;
  }

  .btn-electric::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.4) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 520ms ease;
    pointer-events: none;
  }

  .btn-electric:hover::after {
    transform: translateX(120%);
  }
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .utility-meta {
    display: inline;
  }

  .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .primary-nav {
    display: block;
  }

  .phone-pill {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding: 7.5rem 0 8rem;
  }

  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .standards-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }

  .projects-grid,
  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .division-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .console-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* =========================================================
   LIGHT THEME ("LIGHTS ON" VIA LOGO CLICK)
   ========================================================= */
:root[data-theme="light"] {
  color-scheme: light;
  --navy-obsidian: #F5F7FA;
  --navy-deep: #FFFFFF;
  --navy-surface: #EBF0F5;
  --navy-elevated: #E1E8F0;
  --text-primary: #1D2935;
  --slate-light: #434F5C;
  --slate-text: #5C6773;
  --border-dark: rgba(29, 41, 53, 0.14);
  --border-bright: rgba(245, 166, 35, 0.72);
  --shadow-sm: 0 4px 12px rgba(29, 41, 53, 0.06);
  --shadow-md: 0 12px 28px rgba(29, 41, 53, 0.10);
  --shadow-dark: 0 18px 42px rgba(29, 41, 53, 0.12);
  --error: #C5221F;
  --error-border: #C5221F;
  --error-bg: #FCE8E6;
  --success: #137333;
  --success-border: #137333;
  --success-bg: #E6F4EA;
}

:root[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .logo-wordmark {
  fill: #1D2935;
}

:root[data-theme="light"] .primary-nav,
:root[data-theme="light"] .lang-toggle,
:root[data-theme="light"] .phone-pill {
  background-color: #F2F5F8;
}

:root[data-theme="light"] .hero {
  background-color: #EDF2F7;
}

:root[data-theme="light"] .hero h1 {
  text-shadow: none;
}

:root[data-theme="light"] .eyebrow-badge {
  background-color: rgba(255, 255, 255, 0.92);
  color: #B46900;
}

:root[data-theme="light"] .hero-metrics {
  background-color: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .btn-outline-light {
  background-color: #FFFFFF;
  color: #1D2935;
  border-color: rgba(29, 41, 53, 0.22);
}

:root[data-theme="light"] .btn-outline-light:hover {
  border-color: var(--amber);
  color: #1D2935;
  background-color: rgba(245, 166, 35, 0.14);
}

:root[data-theme="light"] .standards-section,
:root[data-theme="light"] .projects-section,
:root[data-theme="light"] .quote-section {
  background-color: #E8EEF4;
}

:root[data-theme="light"] .services-section,
:root[data-theme="light"] .reviews-section {
  background-color: #F6F8FA;
}

:root[data-theme="light"] .service-card,
:root[data-theme="light"] .step-card,
:root[data-theme="light"] .project-card,
:root[data-theme="light"] .review-card,
:root[data-theme="light"] .license-callout {
  background-color: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .quote-console {
  background: #FFFFFF;
}

:root[data-theme="light"] .console-topbar {
  background-color: #F2F5F8;
}

:root[data-theme="light"] .section-kicker,
:root[data-theme="light"] .console-id,
:root[data-theme="light"] .step-num,
:root[data-theme="light"] .review-author span {
  color: #B86E00;
}

:root[data-theme="light"] .badge-commercial {
  background-color: rgba(245, 166, 35, 0.2);
  color: #8A5000;
}

:root[data-theme="light"] .badge-residential {
  background-color: #E8EEF4;
  color: #1D2935;
}

:root[data-theme="light"] .site-footer {
  background-color: #E8EEF4;
}

@media (prefers-reduced-motion: no-preference) {
  html.theme-fading,
  html.theme-fading *,
  html.theme-fading *::before,
  html.theme-fading *::after {
    transition:
      background-color 480ms cubic-bezier(0.22, 1, 0.36, 1),
      color 420ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 420ms cubic-bezier(0.22, 1, 0.36, 1),
      fill 420ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 480ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
}
