:root {
  --apex-black: #191919;
  --apex-ink: #242424;
  --apex-red: #d00d0e;
  --apex-red-dark: #a50708;
  --apex-paper: #f6f4ef;
  --apex-mist: #eef1f0;
  --apex-steel: #747a80;
  --apex-line: rgba(25, 25, 25, 0.12);
  --apex-white: #ffffff;
  --apex-radius: 8px;
  --apex-shadow: 0 22px 60px rgba(25, 25, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--apex-ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
}

body.modal-open {
  padding-right: 0 !important;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--apex-red);
  text-decoration: none;
}

a:hover {
  color: var(--apex-red-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.display-font {
  color: var(--apex-black);
  font-family: "Sora", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.35rem);
}

h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
}

.lead {
  color: #4d5155;
  font-size: 1.03rem;
  line-height: 1.7;
}

.text-red {
  color: var(--apex-red) !important;
}

.text-steel {
  color: var(--apex-steel) !important;
}

.bg-paper {
  background: var(--apex-paper);
}

.bg-mist {
  background: var(--apex-mist);
}

.bg-ink {
  background: var(--apex-black);
  color: rgba(255, 255, 255, 0.78);
}

.bg-ink h1,
.bg-ink h2,
.bg-ink h3,
.bg-ink h4,
.bg-ink h5,
.bg-ink h6,
.bg-ink .lead {
  color: var(--apex-white);
}

.section-padding {
  padding: 88px 0;
}

.section-padding-sm {
  padding: 64px 0;
}

.eyebrow {
  align-items: center;
  color: var(--apex-red);
  display: inline-flex;
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--apex-red);
  content: "";
  display: inline-block;
  height: 10px;
  transform: skewX(-18deg);
  width: 24px;
}

.btn {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.55rem;
  justify-content: center;
  letter-spacing: 0;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--apex-red);
  border-color: var(--apex-red);
  color: var(--apex-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--apex-red-dark);
  border-color: var(--apex-red-dark);
  color: var(--apex-white);
}

.btn-outline-light:hover {
  color: var(--apex-black);
}

.btn-outline-dark {
  border-color: var(--apex-black);
  color: var(--apex-black);
}

.btn-outline-dark:hover {
  background: var(--apex-black);
  border-color: var(--apex-black);
}

.btn-link-clean {
  color: var(--apex-black);
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.btn-link-clean i {
  color: var(--apex-red);
  margin-left: 0.4rem;
}

.topbar {
  background: var(--apex-black);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  padding: 0.55rem 0;
}

.topbar a {
  color: var(--apex-white);
  font-weight: 700;
}

.topbar i {
  color: var(--apex-red);
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(25, 25, 25, 0.08);
  position: relative;
  z-index: 1020;
}

.navbar {
  min-height: 76px;
  padding-bottom: 0.7rem;
  padding-top: 0.7rem;
}

.navbar-brand img {
  height: auto;
  max-width: 248px;
  width: 248px;
}

.navbar-nav {
  gap: 0.35rem;
}

.nav-link {
  color: var(--apex-black);
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.83rem;
  font-weight: 750;
  padding: 0.7rem 0.7rem !important;
}

.nav-link:hover,
.nav-link.active,
.dropdown-item:hover,
.dropdown-item.active {
  color: var(--apex-red);
}

.dropdown-menu {
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: var(--apex-radius);
  box-shadow: var(--apex-shadow);
  padding: 0.7rem;
}

.dropdown-item {
  border-radius: 5px;
  color: var(--apex-black);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.dropdown-item:focus,
.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:active {
  background: rgba(208, 13, 14, 0.08);
  color: var(--apex-red);
}

.navbar-toggler {
  border: 0;
  color: var(--apex-black);
  font-size: 1.6rem;
}

.hero {
  background-position: center;
  background-size: cover;
  display: block !important;
  min-height: 0;
  position: relative;
}

.hero > .container:first-of-type {
  align-items: center;
  display: flex;
  min-height: 700px;
  padding-bottom: 7.5rem !important;
  padding-top: 7.5rem !important;
}

.hero::before,
.subpage-hero::before,
.image-cta::before {
  background:
    linear-gradient(90deg, rgba(25, 25, 25, 0.92) 0%, rgba(25, 25, 25, 0.72) 42%, rgba(25, 25, 25, 0.18) 100%),
    radial-gradient(circle at 75% 15%, rgba(208, 13, 14, 0.24), transparent 34%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero .container,
.subpage-hero .container,
.image-cta .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--apex-white);
  font-size: clamp(2.8rem, 5vw, 5.7rem);
  max-width: 900px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.hero-kicker {
  color: var(--apex-white);
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--apex-white);
  display: inline-flex;
  font-size: 0.88rem;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.48rem 0.8rem;
}

.hero-badge i {
  color: var(--apex-red);
}

.hero-panel {
  background: var(--apex-white);
  border-top: 4px solid var(--apex-red);
  bottom: -64px;
  box-shadow: var(--apex-shadow);
  left: 0;
  position: absolute;
  right: 0;
  z-index: 4;
}

.hero-panel-item {
  border-right: 1px solid var(--apex-line);
  padding: 1.6rem 1.4rem;
}

.hero-panel-item:last-child {
  border-right: 0;
}

.hero-panel strong {
  color: var(--apex-black);
  display: block;
  font-family: "Sora", Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.hero-panel span {
  color: var(--apex-steel);
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
}

.subpage-hero {
  background-position: center;
  background-size: cover;
  min-height: 470px;
  position: relative;
}

.subpage-hero h1 {
  color: var(--apex-white);
  font-size: clamp(2.25rem, 5vw, 5rem);
  max-width: 960px;
}

.subpage-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

.breadcrumb-wrap {
  background: var(--apex-paper);
  border-bottom: 1px solid rgba(25, 25, 25, 0.08);
  padding: 0.85rem 0;
}

.breadcrumb {
  margin: 0;
}

.breadcrumb a {
  color: var(--apex-black);
  font-weight: 750;
}

.service-card,
.feature-card,
.quote-card,
.case-card,
.review-card,
.area-card,
.process-card,
.form-card {
  background: var(--apex-white);
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: var(--apex-radius);
  height: 100%;
}

.service-card,
.feature-card,
.case-card,
.review-card,
.area-card,
.process-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.feature-card:hover,
.case-card:hover,
.area-card:hover,
.process-card:hover {
  border-color: rgba(208, 13, 14, 0.28);
  box-shadow: 0 18px 45px rgba(25, 25, 25, 0.1);
  transform: translateY(-4px);
}

.service-card .card-img-top,
.case-card .card-img-top {
  height: 320px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.card-body {
  padding: 1.6rem;
}

.icon-box {
  align-items: center;
  background: rgba(208, 13, 14, 0.08);
  border-radius: 6px;
  color: var(--apex-red);
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 44px;
}

.number-box {
  align-items: center;
  background: var(--apex-black);
  border-radius: 6px;
  color: var(--apex-white);
  display: inline-flex;
  font-family: "Sora", Arial, sans-serif;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  margin-bottom: 1.1rem;
  width: 46px;
}

.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tick-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.tick-list i {
  color: var(--apex-red);
  margin-top: 0.32rem;
}

.fact-strip {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fact-item {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.7rem 1rem;
}

.fact-item:last-child {
  border-right: 0;
}

.fact-item strong {
  color: var(--apex-white);
  display: block;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.fact-item span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.55rem;
}

.split-image {
  border-radius: var(--apex-radius);
  box-shadow: var(--apex-shadow);
  height: clamp(360px, 38vw, 560px);
  min-height: 0;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.image-stack {
  position: relative;
}

.image-stack::after {
  background: var(--apex-red);
  bottom: -22px;
  content: "";
  height: 58%;
  position: absolute;
  right: -22px;
  width: 46%;
  z-index: -1;
}

.inspection-table {
  border: 1px solid var(--apex-line);
  border-radius: var(--apex-radius);
  overflow: hidden;
}

.inspection-table .row {
  border-bottom: 1px solid var(--apex-line);
  margin: 0;
}

.inspection-table .row:last-child {
  border-bottom: 0;
}

.inspection-table .col-md-4,
.inspection-table .col-md-8 {
  padding: 1rem 1.2rem;
}

.inspection-table .col-md-4 {
  background: var(--apex-paper);
  font-family: "Sora", Arial, sans-serif;
  font-weight: 800;
}

.cta-band {
  background: var(--apex-red);
  color: var(--apex-white);
  overflow: hidden;
  position: relative;
}

.cta-band::before {
  color: rgba(255, 255, 255, 0.1);
  content: "APEX";
  font-family: "Sora", Arial, sans-serif;
  font-size: 14vw;
  font-weight: 800;
  line-height: 1;
  position: absolute;
  right: -2vw;
  top: -2vw;
}

.cta-band h2,
.cta-band .lead {
  color: var(--apex-white);
}

.image-cta {
  background-position: center;
  background-size: cover;
  min-height: 420px;
  position: relative;
}

.review-card {
  padding: 1.6rem;
}

.review-stars {
  color: var(--apex-red);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.review-card blockquote {
  color: var(--apex-black);
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

.review-card cite {
  color: var(--apex-steel);
  font-style: normal;
  font-weight: 750;
}

.accordion {
  --bs-accordion-border-radius: var(--apex-radius);
  --bs-accordion-inner-border-radius: var(--apex-radius);
}

.accordion-button {
  color: var(--apex-black);
  font-family: "Sora", Arial, sans-serif;
  font-weight: 800;
}

.accordion-button:not(.collapsed) {
  background: rgba(208, 13, 14, 0.06);
  color: var(--apex-red);
}

.accordion-button:focus {
  border-color: rgba(208, 13, 14, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(208, 13, 14, 0.12);
}

.form-control,
.form-select {
  border-color: rgba(25, 25, 25, 0.16);
  border-radius: 6px;
  min-height: 50px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--apex-red);
  box-shadow: 0 0 0 0.2rem rgba(208, 13, 14, 0.12);
}

textarea.form-control {
  min-height: 132px;
}

.form-card {
  box-shadow: var(--apex-shadow);
  padding: 2rem;
}

.contact-tile {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
}

.contact-tile i {
  align-items: center;
  background: rgba(208, 13, 14, 0.08);
  border-radius: 6px;
  color: var(--apex-red);
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.map-frame {
  border: 0;
  border-radius: var(--apex-radius);
  min-height: 430px;
  width: 100%;
}

.footer {
  background: #0e0e0e;
  color: rgba(255, 255, 255, 0.68);
  padding: 72px 0 28px;
}

.footer h3,
.footer h4 {
  color: var(--apex-white);
}

.footer-logo {
  background: var(--apex-white);
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.7rem;
}

.footer-logo img {
  max-width: 220px;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer a:hover {
  color: var(--apex-white);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  margin-top: 48px;
  padding-top: 24px;
}

.modal-content {
  border: 0;
  border-radius: var(--apex-radius);
}

.modal-header {
  border-bottom: 1px solid rgba(25, 25, 25, 0.08);
}

.modal-title {
  color: var(--apex-black);
}

.sticky-cta {
  align-items: center;
  background: var(--apex-red);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 18px 40px rgba(208, 13, 14, 0.32);
  color: var(--apex-white);
  display: inline-flex;
  font-family: "Sora", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  position: fixed;
  right: 22px;
  text-transform: uppercase;
  z-index: 1010;
}

.sticky-cta:hover {
  background: var(--apex-red-dark);
  color: var(--apex-white);
}

.compliance-note {
  background: rgba(208, 13, 14, 0.06);
  border-left: 4px solid var(--apex-red);
  border-radius: var(--apex-radius);
  padding: 1.2rem;
}

.sector-pill {
  align-items: center;
  background: var(--apex-white);
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
  margin: 0.35rem;
  padding: 0.55rem 0.85rem;
}

.sector-pill i {
  color: var(--apex-red);
}

.location-list a {
  align-items: center;
  background: var(--apex-white);
  border: 1px solid rgba(25, 25, 25, 0.08);
  border-radius: var(--apex-radius);
  color: var(--apex-black);
  display: flex;
  font-family: "Sora", Arial, sans-serif;
  font-weight: 800;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.location-list a:hover {
  border-color: rgba(208, 13, 14, 0.28);
  color: var(--apex-red);
}

.skip-link {
  background: var(--apex-white);
  color: var(--apex-black);
  font-weight: 800;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: absolute;
  top: -100px;
  z-index: 2000;
}

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

@media (max-width: 1199.98px) {
  .navbar-brand img {
    width: 210px;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .hero > .container:first-of-type {
    min-height: 640px;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 72px;
  }

  .hero > .container:first-of-type {
    min-height: 580px;
    padding-bottom: 4.5rem !important;
    padding-top: 4.5rem !important;
  }

  .hero-panel {
    bottom: auto;
    box-shadow: none;
    left: auto;
    margin-top: 0;
    position: relative;
    right: auto;
  }

  .hero-panel-item {
    border-bottom: 1px solid var(--apex-line);
    border-right: 0;
  }

  .hero-panel-item:last-child {
    border-bottom: 0;
  }

  .section-padding {
    padding: 72px 0;
  }

  .section-padding.first-after-hero {
    padding-top: 72px;
  }

  .service-card .card-img-top,
  .case-card .card-img-top {
    height: 280px;
  }

  .split-image {
    height: 430px;
  }

  .sticky-cta {
    bottom: 14px;
    right: 14px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 15px;
    line-height: 1.58;
  }

  .topbar {
    display: none;
  }

  .navbar-brand img {
    width: 170px;
  }

  .navbar {
    min-height: 66px;
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
  }

  .hero > .container:first-of-type {
    min-height: 0;
    padding-bottom: 4rem !important;
    padding-top: 4rem !important;
  }

  .hero::before,
  .subpage-hero::before,
  .image-cta::before {
    background: linear-gradient(90deg, rgba(25, 25, 25, 0.94) 0%, rgba(25, 25, 25, 0.78) 100%);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.9rem);
    max-width: 100%;
  }

  .hero .lead,
  .subpage-hero .lead,
  .lead {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .subpage-hero {
    min-height: 390px;
  }

  .section-padding {
    padding: 56px 0;
  }

  .section-padding-sm {
    padding: 48px 0;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .hero-panel {
    border-top: 0;
  }

  .hero-panel .container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-panel-item {
    padding: 1rem 1.25rem;
  }

  .hero-panel strong {
    font-size: 0.92rem;
  }

  .hero-panel span {
    font-size: 0.84rem;
  }

  .service-card .card-img-top,
  .case-card .card-img-top {
    height: 250px;
  }

  .split-image {
    height: 300px;
  }

  .card-body,
  .review-card {
    padding: 1.25rem;
  }

  .form-card {
    padding: 1.4rem;
  }

  .fact-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .fact-item:last-child {
    border-bottom: 0;
  }

  .image-stack::after {
    display: none;
  }

  .cta-band::before {
    display: none;
  }

  .sticky-cta span {
    display: none;
  }

  .sticky-cta {
    border-radius: 50%;
    height: 54px;
    justify-content: center;
    padding: 0;
    width: 54px;
  }
}
