:root {
  --navy: #08245c;
  --navy-2: #041638;
  --blue: #1556c4;
  --green: #55a630;
  --green-dark: #32751d;
  --ink: #172033;
  --muted: #5f6f86;
  --line: #dbe4ef;
  --wash: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 36, 92, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
}

.skip-link:focus {
  top: 12px;
}

.site-topbar {
  color: var(--white);
  background: var(--navy-2);
}

.topbar-inner,
.nav-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  font-size: 0.92rem;
}

.topbar-inner span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  color: var(--navy-2);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--green);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.topbar-inner a {
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(8, 36, 92, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  gap: 22px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-link img {
  width: 190px;
  height: 140px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.dropdown-trigger {
  padding: 12px 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus,
.dropdown-trigger:hover,
.dropdown-trigger:focus {
  color: var(--blue);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 292px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 9px 10px;
  border-radius: 6px;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--wash);
}

.nav-actions,
.hero-actions,
.cta-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  background: var(--green-dark);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  cursor: pointer;
}

.button:hover,
.button:focus {
  background: #245d16;
  border-color: #245d16;
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--blue);
}

.button.secondary:hover,
.button.secondary:focus {
  color: var(--white);
  background: var(--blue);
}

.section {
  padding: 76px 0;
}

.hero-brand-emphasis {
  color: #9be267;
  white-space: nowrap;
}

.section.compact {
  padding: 0 0 22px;
}

.section.tint {
  background: var(--wash);
}

.section.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 22, 56, 0.96), rgba(8, 36, 92, 0.95)),
    url("../images/on-track-hvac-gallery-img-04.webp") center / cover no-repeat;
}

.kicker {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dark .kicker,
.hero .kicker,
.page-hero .kicker {
  color: #8ed66d;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.12;
  overflow-wrap: break-word;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.25rem, 5vw, 4.35rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.24rem;
}

p {
  margin: 0 0 18px;
  overflow-wrap: break-word;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.dark .lead,
.dark p,
.hero .lead,
.page-hero .lead {
  color: #e3edf8;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(103deg, rgba(4, 22, 56, 0.97) 0%, rgba(8, 36, 92, 0.87) 50%, rgba(8, 36, 92, 0.2) 100%),
    url("../images/shutterstock_2734697191-2880w.webp") center right / cover no-repeat;
}

.hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 790px);
  align-items: center;
  min-height: 620px;
  padding-top: 42px;
  padding-bottom: 72px;
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: -54px;
  margin-bottom: -16px;
  position: relative;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 22px 24px;
  min-height: 116px;
  text-align: center;
}

.hero-card div + div {
  border-left: 1px solid var(--line);
}

.hero-card strong {
  display: block;
  color: var(--navy);
}

.hero-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(105deg, rgba(4, 22, 56, 0.96), rgba(21, 86, 196, 0.78)),
    var(--page-image, url("../images/shutterstock_2634134339-2880w.webp")) center / cover no-repeat;
}

.page-hero .section-inner {
  padding-top: 74px;
  padding-bottom: 74px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: #dce9f8;
  font-size: 0.94rem;
}

.breadcrumb a {
  font-weight: 800;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.section.service-details {
  padding: 48px 0;
}

.service-details .split {
  align-items: stretch;
}

.service-detail-image {
  position: relative;
  min-width: 0;
}

.service-detail-image .site-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-position: center;
}

@media (max-width: 740px) {
  .section.service-details {
    padding: 36px 0;
  }

  .service-details .split {
    gap: 28px;
  }

  .service-detail-image {
    aspect-ratio: 4 / 3;
  }
}

.section-intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.section-intro .lead {
  max-width: 600px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(8, 36, 92, 0.08);
}

.card h3 a,
.text-link {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover,
.card h3 a:focus,
.text-link:hover,
.text-link:focus {
  color: var(--blue);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card p:last-child {
  margin-top: auto;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: var(--radius);
}

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

.site-image {
  width: 100%;
  object-fit: cover;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.gallery-grid img:first-child {
  grid-row: span 2;
  height: 100%;
}

.check-list,
.plain-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 13px;
  height: 7px;
  border-left: 3px solid var(--green-dark);
  border-bottom: 3px solid var(--green-dark);
  transform: rotate(-45deg);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
}

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

.area-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 16px;
  min-width: 0;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-embed {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(8, 36, 92, 0.08);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 360px;
}

.tint .area-chip {
  background: #eef5ff;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #f7f9fb;
}

.review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}

.review-stars {
  color: #ffb51b;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.review-quote-mark {
  color: rgba(8, 36, 92, 0.13);
  font-family: Georgia, serif;
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(16px);
}

.review-card .review-text {
  margin: 0 0 8px;
  color: #506079;
  font-style: italic;
  line-height: 1.7;
}

.review-author {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.legal-page {
  max-width: 900px;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 26px;
  line-height: 1.3;
}

.legal-content p,
.legal-content li {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-content ul {
  padding-left: 24px;
  margin: 0 0 20px;
}

.legal-content li + li {
  margin-top: 6px;
}

.contact-list {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.contact-layout {
  align-items: start;
}

.contact-list h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.contact-list p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-list a {
  font-weight: 400;
  text-decoration: none;
}

.facebook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #1877f2;
}

.facebook-link svg {
  width: 32px;
  height: 32px;
}

.facebook-link:hover {
  color: var(--navy);
}

.facebook-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.contact-form-embed {
  min-width: 0;
  height: 676px;
}

.contact-form-embed iframe {
  display: block;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #c6d3e4;
  border-radius: var(--radius);
  background: var(--white);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  color: #dbe7f4;
  background: var(--navy-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1fr;
  gap: 28px;
  padding: 58px 0 34px;
}

.footer-logo {
  width: 178px;
  height: auto;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: var(--radius);
}

.site-footer h3 {
  color: var(--white);
}

.site-footer a {
  color: #dbe7f4;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  padding: 14px 0 28px;
  color: #b9c8dd;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  padding: 10px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(8, 36, 92, 0.14);
}

.mobile-call .button {
  width: 100%;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 170px 0 auto 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - 170px);
    padding: 18px 16px 28px;
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
    gap: 4px;
  }

  .site-nav a,
  .dropdown-trigger {
    width: 100%;
    padding: 13px 10px;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-actions .button.secondary {
    display: none;
  }

  .split,
  .split.reverse,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 740px) {
  body {
    padding-bottom: 70px;
  }

  .topbar-inner {
    display: grid;
    gap: 6px;
    padding: 8px 0;
    justify-items: start;
  }

  .nav-inner {
    min-height: 98px;
  }

  .brand-link img {
    width: 150px;
    height: 140px;
  }

  .site-nav {
    inset: 154px 0 auto 0;
    max-height: calc(100vh - 154px);
  }

  .nav-actions {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero .section-inner {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 70px;
  }

  .hero-card,
  .grid.two,
  .grid.three,
  .grid.four,
  .split,
  .split.reverse,
  .footer-inner,
  .form-grid,
  .section-intro,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: 0;
    border-radius: 0;
  }

  .hero-card div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section-intro {
    display: grid;
    align-items: start;
  }

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

  .gallery-grid img:first-child {
    grid-row: auto;
  }

  .mobile-call {
    display: block;
  }
}
