:root {
  --ink: #0a0f1c;
  --navy: #002768;
  --red: #c8262a;
  --red-on-dark: #e8484c;
  --white: #ffffff;
  --accent: #c8262a;
  --accent-ink: #ffffff;
  --bg-dark: #0a0f1c;
  --headline-a: #0a0f1c;
  --headline-b: #c8262a;
  --headline-mute: #9ba3af;
  --container: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  font-family: "Archivo", sans-serif;
  color: var(--ink);
  background: var(--white);
}

/* Header */
header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background 0.3s ease;
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  width: 100%;
  padding: 0 32px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.logo-link img {
  height: 100px;
  width: 150px;
  transition: all 0.3s ease;
  display: block;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo-text .tough {
  color: var(--red);
}
.logo-text .jobs {
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.nav-link {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-on-dark);
  border-bottom-color: var(--red);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border-top: 3px solid var(--red);
  width: 920px;
  z-index: 999;
  padding: 32px;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
}

.nav-dd-cat {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-on-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-dd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-dropdown-item {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-dropdown-item:hover {
  color: var(--red-on-dark);
}

.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.nav-phone {
  color: var(--white);
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  animation: phone-pulse 4s ease-in-out infinite;
}

@keyframes phone-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.2s ease;
}

.btn:hover {
  filter: brightness(0.92);
}
.btn:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
  filter: none;
}

/* Sections */
main {
  width: 100%;
}
main > section {
  padding: 112px 0;
  position: relative;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.display {
  font-family: "Archivo Black", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.eyebrow {
  display: inline-block;
  font-family: "Archivo", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* Split headline colors */
.split .a {
  color: var(--headline-a);
}
.split .b {
  color: var(--headline-b);
}

/* Section background themes */
.bg-blueprint-dark {
  background-color: var(--ink);
  color: var(--white);
}
.bg-blueprint-dark h1,
.bg-blueprint-dark h2,
.bg-blueprint-dark h3 {
  color: var(--white);
}
.bg-blueprint-red {
  background-color: var(--red);
  color: var(--white);
}
.bg-blueprint-red h1,
.bg-blueprint-red h2,
.bg-blueprint-red h3 {
  color: var(--white);
}
.bg-blueprint-light {
  background-color: #ffffff;
  background-image: url("../../assets/white-engineering-background.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--ink);
}
.bg-blueprint-navy {
  background-color: var(--navy);
  color: var(--white);
}
.bg-blueprint-navy h1,
.bg-blueprint-navy h2,
.bg-blueprint-navy h3 {
  color: var(--white);
}

/* Card lift hover */
.lift {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Service-area tiles */
.area-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(10, 15, 28, 0.12);
  border-radius: 6px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.area-photo {
  display: block;
  aspect-ratio: 3 / 2;
  margin: -20px -18px 10px;
  border-radius: 6px 6px 0 0;
  background: var(--navy, #002768) var(--city-img) center / cover no-repeat;
}
.area-tile:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.area-zone {
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.area-dist {
  font-size: 11px;
  color: var(--headline-mute);
}
.area-city {
  font-family: "Archivo Black", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 4px;
  position: relative;
  isolation: isolate;
  padding: 6px 0;
}
/* faint circuit traces behind the city name; tints with the text color so it flips white on hover */
.area-city::before {
  content: "";
  position: absolute;
  inset: 0 -18px;
  z-index: -1;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40' fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M0 8h22l6 6h30M0 32h14l8-8h26l6-6h20M58 14h18l6-6h38M74 18v14h20l6 6M98 20h22M36 24v10h-12'/%3E%3Cg fill='%23000' stroke='none'%3E%3Ccircle cx='58' cy='14' r='2'/%3E%3Ccircle cx='74' cy='18' r='2'/%3E%3Ccircle cx='98' cy='20' r='2'/%3E%3Ccircle cx='24' cy='34' r='2'/%3E%3C/g%3E%3C/svg%3E") left center / 120px 40px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40' fill='none' stroke='%23000' stroke-width='1'%3E%3Cpath d='M0 8h22l6 6h30M0 32h14l8-8h26l6-6h20M58 14h18l6-6h38M74 18v14h20l6 6M98 20h22M36 24v10h-12'/%3E%3Cg fill='%23000' stroke='none'%3E%3Ccircle cx='58' cy='14' r='2'/%3E%3Ccircle cx='74' cy='18' r='2'/%3E%3Ccircle cx='98' cy='20' r='2'/%3E%3Ccircle cx='24' cy='34' r='2'/%3E%3C/g%3E%3C/svg%3E") left center / 120px 40px repeat-x;
  opacity: 0.14;
  pointer-events: none;
}
.area-tile:hover .area-city::before {
  opacity: 0.3;
}
.area-tile:hover .area-zone,
.area-tile:hover .area-dist,
.area-tile:hover .area-city {
  color: var(--white);
}

/* Homepage section styles (moved from inline style attributes) */
.hp-accent {
  color: var(--accent);
}
.hp-red {
  color: var(--red);
}
.hp-white {
  color: var(--white);
}
.hp-ink {
  color: var(--ink);
}
.hp-nowrap {
  white-space: nowrap;
}
.eyebrow.hp-red-on-dark {
  color: var(--red-on-dark);
}
/* .split .a / .split .b would otherwise override these hero spans */
.split span.hp-white {
  color: var(--white);
}
.split span.hp-glow {
  color: var(--accent);
  text-shadow:
    rgba(0, 0, 0, 0.8) 0px 2px 8px,
    rgba(0, 0, 0, 0.7) 0px 4px 16px;
}
.btn.hp-btn-lg {
  font-weight: 800;
  font-size: 15px;
}
.btn.hp-fw800 {
  font-weight: 800;
}
main > section.hp-hero {
  position: relative;
  padding: 0;
}
.display.hp-hero-h1 {
  font-size: clamp(42px, 6.1vw, 88px);
  margin: 16px 0 24px;
  max-width: 900px;
  line-height: 0.95;
}
.hp-hero-lede {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 36px;
}
.hp-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn.hp-btn-black {
  background: rgb(0, 0, 0);
}
.btn.hp-btn-slate {
  background: rgb(75, 85, 99);
  color: var(--white);
  border: 2px solid rgb(75, 85, 99);
  padding: 14px 24px;
}

main > section.hp-wraps {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
  color: var(--ink);
}
.container.hp-wraps-inner {
  position: relative;
  z-index: 2;
}
.hp-wraps-head {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.display.hp-wraps-h2 {
  font-size: clamp(42px, 5.6vw, 84px);
  margin: 18px 0 0;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: 0.01em;
}
.hp-wraps-photo {
  margin: 48px auto 0;
  max-width: 1100px;
  text-align: center;
}
.hp-wraps-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.28));
}
.hp-wraps-ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn.btn-ghost.hp-btn-ghost-ink {
  color: var(--ink);
  border-color: var(--ink);
}
.hp-wraps-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(10, 15, 28, 0.15);
}
.hp-stat-num {
  font-family: "Archivo Black", sans-serif;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
}
.hp-stat-label {
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.4;
}

main > section.hp-stmt {
  padding: 120px 0;
  text-align: center;
}
/* sparse print registration marks over the ink */
.hp-stmt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%23fff' stroke-opacity='.08'%3E%3Cpath d='M80 70v20M70 80h20'/%3E%3Ccircle cx='80' cy='80' r='6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  pointer-events: none;
}
.hp-stmt > .container {
  position: relative;
  z-index: 1;
}
.display.hp-stmt-h2 {
  font-size: clamp(40px, 5.5vw, 82px);
  color: var(--white);
  line-height: 1.05;
  margin: 0;
}

main > section.hp-pad112 {
  padding: 112px 0;
}
.hp-area-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.display.hp-area-h2 {
  font-size: clamp(38px, 4.6vw, 66px);
  margin: 18px 0 24px;
  color: var(--white);
  line-height: 1.02;
}
.hp-area-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  max-width: 380px;
}
.hp-area-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
/* schematic drawing as faint white linework over the navy */
main > section.hp-area {
  overflow: hidden;
}
.hp-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/partnership-schematics-light.webp") center / cover
    fixed;
  filter: invert(1) grayscale(1);
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
}
.hp-area > .container {
  position: relative;
  z-index: 1;
}

/* same fixed drawing as Service Area, so the two read as one sheet */
main > section.hp-ops {
  padding: 96px 0;
  color: var(--ink);
  background-image: url("../../assets/partnership-schematics-light.webp");
}
.container.hp-ops-inner {
  max-width: 1040px;
}
.display.hp-ops-h2 {
  font-size: clamp(34px, 5vw, 64px);
  margin: 14px 0 24px;
}
.hp-ops-lede {
  font-size: 18px;
  line-height: 1.65;
  max-width: 820px;
  margin: 0 0 22px;
}
.hp-ops-body {
  font-size: 16px;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 0 28px;
}
.hp-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hp-ops-card {
  padding: 24px;
  background: #fff;
  border-top: 4px solid var(--accent);
}
.hp-ops-h3 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.hp-ops-p {
  margin: 0;
  line-height: 1.6;
}
.hp-ops-cta {
  margin: 26px 0 0;
}

.hp-fn-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}
.display.hp-fn-h2 {
  font-size: clamp(32px, 3.6vw, 54px);
  margin: 16px 0 0;
  color: var(--white);
}
/* padding gives the card shadows room inside overflow:hidden */
.fn-carousel {
  overflow: hidden;
  padding: 4px;
  margin: -4px;
}
.fn-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fn-card {
  flex: 0 0 auto;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #12182b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 2px 0 rgba(10, 15, 28, 0.35);
}
.hp-fn-img {
  height: 200px;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
.hp-fn-img--gauge {
  background-image: url("../../assets/speed-gauge.webp");
}
.hp-fn-img--mappack {
  background-image: url("../../assets/google-search-plummers.webp");
}
.hp-fn-img--repeat {
  background-image: url("../../assets/messy-tech.webp");
}
.hp-fn-img--licensing {
  background-image: url("../../assets/electrician-hero.webp");
}
.hp-fn-img--website {
  background-image: url("../../assets/websites-laptop-review.webp");
}
.hp-fn-body {
  padding: 24px;
  background: var(--white);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-fn-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
/* beats .bg-blueprint-light h3 */
.fn-card .hp-fn-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 19px;
  color: #002768;
  margin: 0;
  line-height: 1.2;
}
.fn-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

/* Mobile responsive stacking (desktop unaffected) */
@media (max-width: 820px) {
  [data-screen-label="Wraps"] .hp-wraps-stats {
    grid-template-columns: 1fr 1fr;
  }
  [data-screen-label="Service Area"] .hp-area-grid {
    grid-template-columns: 1fr;
  }
  [data-screen-label="Service Area"] .hp-area-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Hamburger + mobile drawer ────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--ink);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 20px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer > a,
.md-sub-toggle {
  color: var(--white);
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-drawer > a:hover,
.md-sub-toggle:hover {
  color: var(--red-on-dark);
}
.md-close {
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  margin-bottom: 4px;
}
.md-sub-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.md-sub-toggle .chev {
  transition: transform 0.25s ease;
}
.md-sub.open .md-sub-toggle .chev {
  transform: rotate(180deg);
}
.md-sub-list {
  display: none;
  flex-direction: column;
  padding-left: 12px;
}
.md-sub.open .md-sub-list {
  display: flex;
}
.md-sub-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.md-sub-list a:hover {
  color: var(--red-on-dark);
}
.md-phone {
  color: var(--accent) !important;
  font-size: 18px !important;
}
.md-cta {
  background: var(--accent);
  color: var(--white) !important;
  text-align: center;
  margin-top: 16px;
  border: 0 !important;
  padding: 16px !important;
}
.md-cta:hover {
  filter: brightness(0.92);
  color: var(--white) !important;
}

@media (max-width: 820px) {
  .nav-links {
    display: none !important;
  }
  .nav-right .nav-phone,
  .nav-right .btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-container {
    height: 88px;
  }
  .logo-link img {
    height: 64px;
    width: 96px;
  }
}

body {
  background-attachment: fixed;
  background-image: url("../../assets/white-engineering-background.webp");
  background-size: cover;
  background-position: center;
  background-color: #ffffff;
}
