﻿:root {
  --ink: #17212b;
  --muted: #5d6975;
  --line: #dce2e8;
  --paper: #ffffff;
  --off: #f5f7f8;
  --navy: #12314c;
  --blue: #1f6aa5;
  --orange: #f26a2e;
  --green: #237260;
  --shadow: 0 20px 50px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: white;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(23, 33, 43, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 172px;
  height: 58px;
  object-fit: contain;
  border-radius: 4px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.88;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.is-scrolled .site-nav a:hover {
  background: var(--off);
}

.header-cta {
  padding: 11px 15px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 20, 31, 0.88) 0%, rgba(8, 20, 31, 0.68) 38%, rgba(8, 20, 31, 0.08) 78%),
    linear-gradient(0deg, rgba(8, 20, 31, 0.55), rgba(8, 20, 31, 0.1) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 96px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn.primary {
  background: var(--orange);
  color: white;
}

.btn.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.hero-stats {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 32px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  width: min(680px, calc(100% - 36px));
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 22px;
  border-left: 1px solid var(--line);
}

.hero-stats div:first-child {
  border-left: 0;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 24px;
}

.hero-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section,
.band {
  padding: 88px clamp(18px, 5vw, 72px);
}

.band {
  background: var(--off);
}

.intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 880px);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.proof-copy h2,
.quote-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro p,
.proof-copy p,
.quote-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.industry-list article,
.timeline li,
.product-table,
.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.06);
}

.service-card {
  min-height: 270px;
  padding: 26px;
}

.product-table {
  overflow: hidden;
}

.product-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr);
  border-top: 1px solid var(--line);
}

.product-row:first-child {
  border-top: 0;
}

.product-row span {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.product-row span:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 800;
}

.product-head {
  background: #eef3f6;
}

.product-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(31, 106, 165, 0.1);
  color: var(--blue);
}

.icon-wrap svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.industry-list h3,
.timeline h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.service-card p,
.industry-list p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.industry-list article {
  padding: 28px;
}

.industry-list article:nth-child(2) {
  border-top: 5px solid var(--green);
}

.industry-list article:nth-child(1) {
  border-top: 5px solid var(--orange);
}

.industry-list article:nth-child(3) {
  border-top: 5px solid var(--blue);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 28px;
}

.timeline span {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.proof {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 760px);
  gap: clamp(28px, 7vw, 90px);
  align-items: center;
  background: var(--navy);
  color: white;
}

.proof-metric {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.proof-metric strong,
.proof-metric span {
  display: block;
}

.proof-metric strong {
  color: var(--orange);
  font-size: clamp(54px, 8vw, 88px);
  line-height: 0.9;
}

.proof-metric span,
.proof-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.service-area {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.area-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.area-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.area-grid span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 16px 18px;
  border-left: 5px solid var(--orange);
  background: var(--off);
  color: var(--ink);
  font-weight: 800;
}

.area-grid span:nth-child(2n) {
  border-left-color: var(--blue);
}

.area-grid span:nth-child(3n) {
  border-left-color: var(--green);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 22px;
}

.faq-list summary {
  padding: 20px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.estimate-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.estimate-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.estimate-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.estimate-card strong {
  max-width: 420px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.estimate-card small {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.6;
}

.estimate-card em {
  align-self: end;
  width: fit-content;
  padding: 13px 16px;
  border-radius: 6px;
  background: var(--orange);
  color: white;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px clamp(18px, 5vw, 72px) 84px;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 20, 31, 0.9), rgba(8, 20, 31, 0.68)),
    url("assets/apexguard-hero.png") center / cover;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  overflow-wrap: break-word;
}

.page-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.booking-panel {
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.06);
}

.booking-panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.booking-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: break-word;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.booking-form .full {
  grid-column: 1 / -1;
}

.form-note {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border-left: 5px solid var(--green);
  background: #eef7f4;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.form-note.is-visible {
  display: block;
}

.form-note[data-type="error"] {
  border-left-color: #c53f2b;
  background: #fff0ec;
}

.form-note[data-type="pending"] {
  border-left-color: var(--blue);
  background: #eef6fc;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.btn.secondary.dark {
  color: var(--ink);
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.thanks {
  min-height: 70vh;
  padding-top: 160px;
}

.thanks h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.thanks p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  content: "";
}

.check-list li::after {
  position: absolute;
  left: 5px;
  top: 6px;
  width: 6px;
  height: 3px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  content: "";
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(242, 106, 46, 0.22);
  border-color: var(--orange);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 44px clamp(18px, 5vw, 72px);
  color: white;
  background: #111820;
}

.site-footer p {
  max-width: 540px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.site-footer address {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.8;
}

.site-footer a:hover {
  color: white;
}

@media (max-width: 980px) {
  .site-header {
    display: flex;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    position: fixed;
    top: 13px;
    right: auto;
    left: min(330px, calc(100vw - 60px));
    z-index: 40;
    display: block;
    justify-self: end;
    background: rgba(17, 24, 32, 0.58);
    backdrop-filter: blur(10px);
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 12px;
    color: var(--ink);
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a:hover {
    background: var(--off);
  }

  .hero {
    min-height: 780px;
    align-items: start;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 140px;
  }

  .hero-stats,
  .service-grid,
  .industry-list,
  .timeline,
  .intro,
  .proof,
  .service-area,
  .booking,
  .estimate-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    left: 18px;
    right: 18px;
    bottom: 24px;
    width: auto;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    min-height: 70px;
    padding: 13px 16px;
  }

  .brand-logo {
    width: 148px;
    height: 50px;
  }

  .hero {
    display: block;
    min-height: 0;
    padding-bottom: 24px;
  }

  .hero-content {
    width: min(320px, calc(100% - 36px));
    margin-right: 18px;
    margin-left: 18px;
    overflow: hidden;
    padding-top: 142px;
  }

  .eyebrow {
    max-width: 100%;
    line-height: 1.35;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: auto;
    margin: 28px 18px 0;
  }

  .product-row {
    grid-template-columns: 1fr;
  }

  .product-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .product-row span:first-child {
    border-top: 0;
  }

  .hero-stats div {
    padding: 16px 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-stats div:first-child {
    border-top: 0;
  }

  .section,
  .band {
    padding: 64px 18px;
  }

  .booking-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .page-hero {
    padding: 128px 18px 60px;
  }

  .page-hero h1,
  .page-hero p {
    max-width: min(320px, calc(100vw - 36px));
  }

  .booking-panel h2,
  .booking-panel p {
    max-width: min(280px, calc(100vw - 92px));
  }

  .area-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 34px 18px;
  }
}

