/* ═══════════════════════════════════════════════════════════════
   AAA Automation — Main Stylesheet
   Sections: fonts → tokens → reset → layout → buttons → cards
             → header → hero → industrial → residential → trust
             → about → service area → contact → footer → mobile
             → responsive
   ═══════════════════════════════════════════════════════════════ */

/* === 1. FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700;800;900&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* === 2. DESIGN TOKENS === */
:root {
  /* Brand */
  --aaa-red:        #FF2F19;
  --aaa-red-600:    #E62410;
  --aaa-red-700:    #BF1C0B;
  --aaa-red-200:    #FFB3A8;
  --aaa-red-050:    #FFF0ED;
  --aaa-black:      #0A0A0B;
  --aaa-black-soft: #141416;

  /* Steel neutrals */
  --steel-950: #0F1113;
  --steel-900: #17191C;
  --steel-800: #22262B;
  --steel-700: #333A41;
  --steel-600: #4A535B;
  --steel-500: #697680;
  --steel-400: #98A4AD;
  --steel-300: #C3CBD1;
  --steel-200: #DEE3E7;
  --steel-100: #EEF1F3;
  --steel-050: #F6F8F9;

  /* Semantic hues */
  --safety-yellow:     #FFB800;
  --safety-yellow-050: #FFF7E0;
  --live-green:        #1FA85A;
  --signal-blue:       #2C7BE5;
  --fault-red:         #D92D20;

  /* Semantic aliases — light surface (residential default) */
  --bg-page:    var(--steel-050);
  --bg-surface: #ffffff;
  --bg-sunken:  var(--steel-100);
  --text-strong: var(--steel-950);
  --text-body:   var(--steel-800);
  --text-muted:  var(--steel-500);
  --border-subtle:  var(--steel-200);
  --border-default: var(--steel-300);
  --accent:       var(--aaa-red);
  --accent-hover: var(--aaa-red-600);

  /* "Inverse surface" tokens — used by header/hero/footer/mobile-bar/service
     area, which render as a dark surface by default (today's fixed design,
     == industrial mode). Under [data-mode="residential"] these flip to a
     light surface so the whole page goes white. Kept separate from
     --bg-page/--bg-surface above because those two already flip the OTHER
     way (light -> dark) under industrial mode. */
  --bg-inverse:         var(--aaa-black);
  --bg-inverse-soft:    var(--aaa-black-soft);
  --text-inverse:       #ffffff;
  --text-inverse-body:  var(--steel-300);
  --text-inverse-muted: var(--steel-400);
  --border-inverse:     var(--steel-800);
  --border-inverse-2:   var(--steel-700);

  /* Success alert — flipped to a dark-safe variant under industrial mode */
  --success-bg:   #E6F6ED;
  --success-text: var(--live-green);

  /* Typography */
  --font-display: 'Saira Condensed', 'Oswald', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii (angular, industrial) */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Layout */
  --container-max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 72px;

  /* Effects */
  --shadow-sm: 0 2px 6px rgba(15,17,19,.10);
  --shadow-md: 0 6px 18px rgba(15,17,19,.12);
  --shadow-red: 0 6px 20px rgba(255,47,25,.30);
  --ease-out: cubic-bezier(.2,.7,.3,1);
  --ease-io:  cubic-bezier(.5,0,.2,1);
  --dur:      180ms;
  --dur-slow: 280ms;
  --cut: 14px;

  /* Hazard stripe */
  --hazard: repeating-linear-gradient(45deg, var(--aaa-black) 0 14px, var(--safety-yellow) 14px 28px);
}

/* === 2b. MODE THEMES — Industrial (dark) / Residential (light, default) ===
   Reuses the exact dark-palette values the design already picked for its
   always-dark sections (.section--dark, .stat-card--dark, .service-card--dark)
   instead of inventing a new dark palette. Switching data-mode on <html> is
   a pure custom-property swap — no layout/repaint cost beyond color. */
[data-mode="industrial"] {
  --bg-page:    var(--aaa-black);
  --bg-surface: var(--aaa-black-soft);
  --bg-sunken:  var(--steel-900);
  --text-strong: #ffffff;
  --text-body:   var(--steel-300);
  --text-muted:  var(--steel-400);
  --border-subtle:  var(--steel-800);
  --border-default: var(--steel-700);
  --success-bg:   rgba(31, 168, 90, .14);
  --success-text: #4ADE80;
  /* --bg-inverse/--text-inverse*/--border-inverse* stay at :root defaults
     (already dark) — header/hero/footer/mobile-bar need no change here. */
}

[data-mode="residential"] {
  --bg-inverse:         #ffffff;
  --bg-inverse-soft:    var(--steel-050);
  --text-inverse:       var(--aaa-black);
  --text-inverse-body:  var(--steel-700);
  --text-inverse-muted: var(--steel-500);
  --border-inverse:     var(--steel-200);
  --border-inverse-2:   var(--steel-300);
  /* --bg-page/--bg-surface/etc. stay at :root defaults (already light) —
     the rest of the page needs no change here. */
}

/* === 3. RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--aaa-red); text-decoration: none; }
a:hover { color: var(--aaa-red-600); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* === 4. LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--space-24) 0;
}

.section--light { background: var(--bg-page); }

.section--dark {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}

.section--dark .section-heading,
.section--dark h3,
.section--dark h4 { color: var(--text-inverse); }

.section--dark p,
.section--dark .service-card__blurb { color: var(--text-inverse-body); }

/* === 5. TYPOGRAPHY UTILITIES === */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 12px;
}
.eyebrow--red { color: var(--aaa-red); }

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--text-strong);
}

.section-heading--sm {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-intro {
  margin-bottom: 44px;
  max-width: 60ch;
}

.section-intro--sm {
  margin-bottom: 28px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 54ch;
}

.text-red { color: var(--aaa-red); }

/* === 6. BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--aaa-red);
  color: #fff;
  padding: 12px 24px;
}
.btn-primary:hover {
  background: var(--aaa-red-600);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-inverse {
  background: transparent;
  color: #fff;
  border: 2px solid var(--steel-700);
  padding: 10px 24px;
}
.btn-inverse:hover {
  border-color: #fff;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--aaa-red);
  border: 2px solid var(--aaa-red);
  padding: 10px 24px;
}
.btn-outline:hover {
  background: var(--aaa-red-050);
}

.btn-lg { font-size: 1.05rem; padding: 14px 28px; }
.btn-sm { font-size: .8rem; padding: 8px 16px; }
.btn-block { width: 100%; justify-content: center; }

/* Cut-corner (signature brand effect) */
.btn-cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  border-radius: 0;
}

/* Outline + cut-corner: a solid `border` can't follow a clip-path, so the
   diagonal edge is left open and the corner reads as broken/cut off.
   Fake the border with two clipped layers instead — a solid-color shape
   behind the content, and an inset "hole" filled with the page background
   on top of it, leaving only a 2px ring visible. */
.btn-outline.btn-cut {
  position: relative;
  z-index: 0;
  background: transparent;
  border: none;
  padding: 12px 26px;
}
.btn-outline.btn-cut::before,
.btn-outline.btn-cut::after {
  content: "";
  position: absolute;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.btn-outline.btn-cut::before {
  inset: 0;
  background: var(--aaa-red);
  z-index: -2;
}
.btn-outline.btn-cut::after {
  inset: 2px;
  background: var(--bg-page);
  z-index: -1;
}
.btn-outline.btn-cut:hover::after {
  background: var(--aaa-red-050);
}

/* === 7. CARDS === */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--aaa-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* === 8. HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-inverse);
  border-bottom: 1px solid var(--border-inverse);
}

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

.header-left { display: flex; align-items: center; gap: 20px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 64px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-inverse-body);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--dur);
}
.nav-link:hover { color: var(--text-inverse); }

.nav-cta { margin-left: 12px; }

.lang-toggle {
  margin-left: 8px;
  background: transparent;
  border: 1px solid var(--border-inverse-2);
  color: var(--text-inverse-muted);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 5px 11px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: border-color var(--dur), color var(--dur);
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--text-inverse); color: var(--text-inverse); }
.lang-toggle.is-es  { border-color: var(--aaa-red); color: var(--aaa-red); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--aaa-red);
  transition: transform var(--dur), opacity var(--dur);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 8b. HEADER MODE TOGGLE (Industrial / Residential) ===
   Global site-mode switch — always visible (outside the collapsible
   .main-nav drawer) so it works identically on mobile and desktop.
   Clicking a button only ever flips the data-mode attribute (see main.js
   setMode()); the color swap below is a pure custom-property read, so
   there is nothing here for the switch itself to animate or lag on. */
.mode-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: var(--bg-inverse-soft);
  border: 1px solid var(--border-inverse);
  border-radius: 999px;
  flex-shrink: 0;
}
.mtoggle-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-inverse-muted);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.mtoggle-btn:hover:not(.mtoggle-btn--active) { color: var(--text-inverse); }
.mtoggle-btn--active {
  background: var(--aaa-red);
  color: #fff;
}
.mtoggle-btn svg { flex-shrink: 0; }

/* Generic convention: any element toggled by setMode() via the
   data-mode-content attribute + the native [hidden] property. Needs an
   explicit override for the same reason .lightbox[hidden] does above —
   an author rule that sets `display` (e.g. .hero-stats { display: grid })
   beats the UA default [hidden]{display:none} on a specificity tie. */
[data-mode-content][hidden] { display: none; }

/* Section 9 (service-toggle pill) removed 2026-07-24 — replaced by the
   global header mode toggle (.mode-toggle/.mtoggle-btn, see section 8b). */

/* === 9b. HERO === */
.hero {
  position: relative;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .06;
  background: repeating-linear-gradient(115deg, var(--text-inverse) 0 1px, transparent 1px 42px);
  pointer-events: none;
}

.hero-top {
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 88px 0 0;
}

/* 2026-07-31: real photo of the couple, added to the hero. Mobile-first —
   a centered, contained block between the text and the stat cards. From
   1100px up, .hero-top switches to a 2-col grid (text | photo bleeding to
   the viewport edge) — see the min-width:1100px block below. Shared by
   both modes (industrial/residential): the photo isn't mode-specific
   content, unlike .hero-content/.hero-stats. */
.hero-photo {
  margin: 8px auto 0;
  padding: 0 var(--gutter);
  max-width: 380px;
}
.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1100px) {
  /* .hero-top drops out of its own stacking/positioning context here so
     .hero-photo below anchors to .hero (the full section, header-to-red-bar)
     instead of just the text column — that's what lets the photo bleed to
     the true right edge and down past the stat cards to the red bar,
     matching the reference the client asked to match exactly. */
  .hero-top { position: static; }
  .hero-photo {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(420px, 46vw, 900px);
    max-width: 50%;
    margin: 0;
    padding: 0;
    display: block;
    pointer-events: none;
    z-index: 0;
  }
  .hero-photo picture { display: block; line-height: 0; }
  .hero-photo img {
    width: 100%;
    height: auto;
    max-width: none;
    display: block;
  }
}

/* 2026-07-25: the big brand logo now sits where the hero H1 used to be;
   the old headline copy is demoted to a small slogan line underneath it. */
.hero-logo-big { margin-top: 20px; margin-bottom: 20px; }
.hero-logo-big img { height: clamp(170px, 21vw, 320px); width: auto; display: block; }

.hero-slogan {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.3;
  color: var(--text-inverse-body);
  max-width: 34ch;
  margin: 0;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-inverse-body);
  max-width: 54ch;
  margin-top: 28px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-inverse-muted);
}
.hero-location svg { color: var(--aaa-red); flex-shrink: 0; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
  margin-top: 52px;
  transform: translateY(40px);
}

.stat-card {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card--dark {
  background: var(--bg-inverse-soft);
  border: 1px solid var(--border-inverse);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--text-inverse);
}
.stat-unit {
  font-size: 1.6rem;
  color: var(--aaa-red);
}
.stat-label {
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--text-inverse-muted);
  line-height: 1.4;
}

.hero-red-bar {
  height: 64px;
  background: var(--aaa-red);
  margin-top: 0;
}

/* === 10. SERVICES GRID (shared) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--aaa-red);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card--dark {
  background: var(--aaa-black-soft);
  border-color: var(--steel-800);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--aaa-red-050);
  border-radius: var(--radius-md);
  color: var(--aaa-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card--dark .service-card__icon {
  background: rgba(255,47,25,.12);
}

.service-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--text-strong);
}
.service-card--dark .service-card__title { color: #fff; }

.service-card__blurb {
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex-grow: 1;
}

.service-card__details {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: 4px;
  animation: slideDown var(--dur-slow) var(--ease-out);
}
.service-card--dark .service-card__details { border-color: var(--steel-800); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.capabilities-list {
  display: grid;
  gap: 8px;
}
.capabilities-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.5;
}
.service-card--dark .capabilities-list li { color: var(--steel-300); }
.capabilities-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--aaa-red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.service-card__toggle {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aaa-red);
  transition: gap var(--dur);
}
.service-card__toggle:hover { gap: 12px; }
.service-card__toggle svg {
  transition: transform var(--dur) var(--ease-out);
}
.service-card__toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

/* === 11. INDUSTRIES SUBSECTION (dark) === */

/* Panel content — top spacing after the toggle bar */
/* padding-top removed 2026-07-24: used to add breathing room below the
   .service-toggle pill (now gone — the header mode toggle replaced it), so
   .panel-content no longer needs extra top spacing beyond .section's own. */
.panel-content--res { padding-bottom: var(--space-24); }

/* Section: panels are outside the container, so remove bottom padding from section
   (each panel manages its own bottom edge) */
#services { padding-bottom: 0; }

.industries {
  margin-top: 72px;
  background: var(--aaa-black);
}

.industries .container {
  padding-top: 56px;
  padding-bottom: 64px;
}

.industries .eyebrow { color: var(--aaa-red); }
.industries .section-heading--sm { color: #fff; }

.industries-list { margin-top: 32px; }

.industry-row {
  display: grid;
  grid-template-columns: 52px 40px 1fr 1.6fr;
  gap: 0 24px;
  align-items: center;
  padding: 20px 12px;
  border-bottom: 1px solid var(--steel-800);
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out);
}
.industry-row:first-child { border-top: 1px solid var(--steel-800); }
.industry-row:hover {
  background: rgba(255, 47, 25, .06);
  padding-left: 20px;
}
.industry-row__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--aaa-red);
  letter-spacing: .06em;
  opacity: .85;
}
.industry-row__icon {
  color: var(--steel-600);
  display: flex;
  align-items: center;
  transition: color var(--dur);
}
.industry-row:hover .industry-row__icon { color: var(--steel-400); }
.industry-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1.1;
}
.industry-row__desc {
  font-size: .875rem;
  color: var(--steel-500);
  line-height: 1.5;
  transition: color var(--dur);
}
.industry-row:hover .industry-row__desc { color: var(--steel-400); }

/* Capabilities Statement — full-bleed red strip */
.capabilities-strip {
  background: var(--aaa-red);
}

.capabilities-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 44px;
  padding-bottom: 44px;
}

.capabilities-strip__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 4px;
}

.capabilities-strip__desc {
  font-size: .92rem;
  color: rgba(255, 255, 255, .88);
  max-width: 50ch;
}

/* White button variant on red background */
.capabilities-strip .btn-inverse {
  background: #fff;
  color: var(--aaa-red);
  border-color: #fff;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.capabilities-strip .btn-inverse:hover {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .9);
}

/* === 12. RESIDENTIAL SECTION === */
.residential-cta {
  margin-top: 40px;
  text-align: center;
}

/* === 13. TRUST BAR === */
.trust-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-8) 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--aaa-red);
}
.trust-badge > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-badge__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.trust-badge__value {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* === 14. ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text .section-heading { margin-bottom: 20px; }
.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-values { display: flex; flex-direction: column; }
.value-item {
  display: flex;
  gap: 18px;
  padding: 22px 4px;
  border-top: 1px solid var(--border-subtle);
}
.value-item:first-child { border-top: none; }
.value-item__icon { color: var(--aaa-red); flex-shrink: 0; margin-top: 2px; }
.value-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.value-item p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === 15. SERVICE AREA === */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.area-text .section-heading { margin-bottom: 20px; }
.area-text p {
  font-size: 1.05rem;
  color: var(--text-inverse-body);
  line-height: 1.7;
  margin-bottom: 24px;
}
.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-inverse-body);
  border: 1px solid var(--border-inverse);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.region-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--aaa-red);
  border-radius: 50%;
  flex-shrink: 0;
}
.area-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-inverse-soft);
  border-left: 3px solid var(--aaa-red);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--text-inverse-body);
  line-height: 1.5;
}
.area-address svg { color: var(--aaa-red); flex-shrink: 0; margin-top: 2px; }
.area-address strong { color: var(--text-inverse); }
.area-map {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* US map (see #area section) — real state boundary paths (CC0 / public
   domain, Wikimedia Commons "Blank US Map (states only)", Albers
   projection), not hand-drawn. Every state is flat-filled the same
   steel tone; Indiana alone gets the red accent. */
.us-outline { fill: var(--steel-800); stroke: var(--steel-900); stroke-width: 0.75; stroke-linejoin: round; }
.us-outline--in { fill: var(--aaa-red); stroke: var(--aaa-red-700); stroke-width: 1; }
.us-map-arrow { stroke: var(--text-inverse-muted); stroke-width: 2; }
.us-map-arrowhead { fill: var(--text-inverse-muted); }
.us-map-badge rect { fill: var(--bg-inverse); stroke: var(--aaa-red); stroke-width: 2; }
.us-map-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  fill: var(--text-inverse);
  letter-spacing: 0.04em;
}

/* === 16. CONTACT & FORMS === */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .section-heading { margin-bottom: 16px; }
.contact-info > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.5;
  border: none;
  background: none;
}
.contact-detail svg { color: var(--aaa-red); flex-shrink: 0; margin-top: 2px; }
a.contact-detail { color: var(--text-body); }
a.contact-detail:hover { color: var(--aaa-red); }

/* .form-tabs/.form-tab removed 2026-07-24 — which form shows is now
   decided entirely by the global header mode, see setMode() in main.js. */

.form-panel { display: none; }
.form-panel--active { display: block; }

/* Form elements */
.contact-form { display: grid; gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: .95rem;
  transition: border-color var(--dur), box-shadow var(--dur);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--aaa-red);
  box-shadow: 0 0 0 3px rgba(255,47,25,.12);
}
.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 1l5 5 5-5' stroke='%2398A4AD' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  font-size: .9rem;
  color: var(--success-text);
  padding: 12px 16px;
  background: var(--success-bg);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* Contact section wrapper */
.contact-forms {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--aaa-red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

/* === 17. FOOTER === */
.site-footer {
  background: var(--bg-inverse);
  color: var(--text-inverse-muted);
}
.footer-hazard {
  height: 8px;
  background: var(--hazard);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 56px var(--gutter) 40px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-brand p {
  font-size: .9rem;
  line-height: 1.6;
  max-width: 36ch;
  color: var(--text-inverse-muted);
}
.footer-links h5,
.footer-contact h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-inverse);
  margin-bottom: 14px;
}
.footer-links a,
.footer-contact a,
.footer-contact span {
  display: block;
  font-size: .88rem;
  color: var(--text-inverse-muted);
  padding: 4px 0;
  line-height: 1.5;
  transition: color var(--dur);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--aaa-red); }
.footer-contact { font-family: var(--font-mono); }

.footer-bottom {
  border-top: 1px solid var(--border-inverse);
  padding: 20px var(--gutter);
}
.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-inverse-muted);
}
.footer-bottom__inner > span:last-child { display: flex; align-items: center; gap: 12px; }

/* Discreet staff-only login entry point — not a customer-facing CTA,
   deliberately unobtrusive (icon only, dimmed until hovered/focused). */
.footer-staff-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.footer-staff-link:hover, .footer-staff-link:focus-visible { opacity: 1; background: var(--border-inverse); }

/* === 18. MOBILE STICKY BAR === */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-inverse);
  border-top: 1px solid var(--border-inverse);
  padding: 12px var(--space-4);
  gap: 10px;
  safe-area-inset-bottom: env(safe-area-inset-bottom);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.mobile-bar__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-inverse);
  border: 2px solid var(--border-inverse-2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--dur);
}
.mobile-bar__call:hover { border-color: var(--text-inverse); color: var(--text-inverse); }
.mobile-bar .btn {
  flex: 1.5;
  justify-content: center;
  font-size: .9rem;
}

/* === 19. RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { gap: 32px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-inverse);
    border-bottom: 1px solid var(--border-inverse);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--gutter);
    gap: 4px;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 8px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .lang-toggle { margin: 8px 0 0; }
  .nav-toggle { display: flex; }

  /* Header mode toggle — full labels (was icon-only), sized as large as
     possible while still sharing one row with the logo and hamburger (40px).
     Verified against real rendered widths (iframe harness, not guessed):
     comfortable from 375px up (16px+ gap to the hamburger, this project's
     baseline phone width — see mobile-rework notes), still fits with a
     hairline gap at 360px. Below ~343px (i.e. only the long-discontinued
     320px iPhone SE/5 width) the toggle and hamburger visually overlap —
     not fixable without either shrinking the logo/hamburger or wrapping
     the header to a 2nd row, both out of scope here. logo-link's
     flex-shrink:0 (below) at least guarantees the logo stays undistorted
     if that ever happens, instead of the whole header-left box squeezing
     it down to a sliver. */
  .header-left { gap: 12px; }
  /* 2026-07-25 logo replacement is a wider lockup (~2.24:1, was square) —
     shrunk to keep the same ~64px rendered width this breakpoint's math
     above was tuned against, instead of ballooning to ~143px wide. */
  .logo { height: 28px; }
  .mtoggle-btn {
    padding: 6px 9px;
    font-size: 11px;
    letter-spacing: .04em;
    gap: 5px;
  }
  .mtoggle-btn svg { width: 12px; height: 12px; }

  /* Hero */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    transform: translateY(20px);
  }
  .stat-value { font-size: 1.8rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }

  /* Grids → single column */
  .about-grid,
  .area-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .area-map { display: none; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Industries dark rows — collapse to 2-col on tablet */
  .industry-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 16px 8px;
  }
  .industry-row:hover { padding-left: 8px; }
  .industry-row__icon { display: none; }
  .industry-row__name { font-size: 1rem; }
  .industry-row__desc { grid-column: 2; font-size: .82rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  /* Trust bar */
  .trust-bar__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .trust-divider { width: 40px; height: 1px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom__inner { flex-direction: column; gap: 4px; }

  /* Mobile bar */
  .mobile-bar { display: flex; }
  body { padding-bottom: 80px; }

  /* Keep the WhatsApp float above the mobile sticky bar */
  .whatsapp-float { bottom: 92px; right: 16px; }

  /* Capabilities strip */
  .capabilities-strip__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; transform: none; }
  .section { padding: 64px 0; }
  .hero-content { padding-top: 56px; }
  .contact-forms { padding: 20px; }
  .hero-logo-big img { height: 140px; }
  .section-heading { font-size: 2rem; }
  .capabilities-strip__inner { padding-top: 32px; padding-bottom: 32px; }
  .trust-bar { padding: var(--space-6) 0; }
}

/* Ensure hero stats don't overflow on very small screens */
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr; gap: 8px; }
  .stat-value { font-size: 1.6rem; }
}

/* === 20. GALLERY ===
   .gallery-toggle/.gtoggle-btn removed 2026-07-24 — filtering is now
   driven entirely by the global header mode, see setMode() in main.js. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}
.gallery-item {
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-sunken);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-empty { color: var(--text-muted); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10,10,11,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
/* The [hidden] attribute needs an explicit, higher-specificity override —
   otherwise this author rule's `display: flex` beats the UA default
   `[hidden] { display: none }` and the overlay stays visible/blocking. */
.lightbox[hidden] {
  display: none;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__caption { color: #fff; margin-top: var(--space-3); text-align: center; }
.lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }

/* === 21. CLIENTS === */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}
.client-card {
  padding: var(--space-6);
  background: var(--bg-sunken);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--aaa-red);
  text-align: center;
}
.client-card__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-sm);
}
.client-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}
.client-card__desc { color: var(--text-muted); font-size: .9rem; margin: 0; }

/* === 22. WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 250;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
