:root {
  --red: #cb2221;
  --navy: #022c49;
  --ink: #101114;
  --muted: #5c6673;
  --line: #e2e6ea;
  --paper: #ffffff;
  --soft: #f3f5f8;
  --display: "League Spartan", Helvetica, Arial, sans-serif;
  --body: Helvetica, Arial, sans-serif;
  --shadow: 0 18px 50px rgba(2, 44, 73, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 18px/1.5 var(--body);
}

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

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

h1,
h2,
h3,
.eyebrow,
.main-nav a,
.btn,
.service-tab,
.quick-contact,
.site-footer,
.quote-float,
.live-strip {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.live-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 7px clamp(18px, 4vw, 64px);
  color: #fff;
  background: var(--red);
  font-size: 15px;
  letter-spacing: .04em;
}

.live-message,
.live-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .72);
  animation: livePulse 1.7s ease-out infinite;
}

.live-action {
  min-height: 28px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: #111;
}

.live-action img {
  width: 20px;
  height: 20px;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .72); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 86px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: #fff;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: clamp(230px, 24vw, 360px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a {
  position: relative;
  padding: 10px 12px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 124px);
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .34) 56%, rgba(0, 0, 0, .18)),
    linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 60%);
}

.hero-content {
  position: relative;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
  transform: translateX(-12vw);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: clamp(16px, 1.3vw, 20px);
  letter-spacing: .08em;
}

.hero h1,
.page-hero h1,
.contact-section h1,
.section h2,
.video-band h2 {
  margin: 0;
  font-weight: 900;
  line-height: .88;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 880px;
  min-height: 3.45em;
  color: #fff;
  font-size: clamp(50px, 6.8vw, 96px);
}

.hero h1::after {
  content: "";
  display: inline-block;
  width: .055em;
  height: .72em;
  margin-left: .08em;
  background: var(--red);
  transform: translateY(.06em);
  animation: caretBlink .8s steps(1) infinite;
}

@keyframes caretBlink {
  50% { opacity: 0; }
}

.hero p:not(.eyebrow),
.page-hero p,
.section-copy p,
.section-heading p,
.contact-copy p,
.service-panel p,
.service-panel li,
.process p,
.home-links p {
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
}

.hero p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(255, 255, 255, .92);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.btn.primary {
  color: #fff;
  background: var(--red);
}

.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .08);
}

.btn.ghost.dark {
  color: var(--navy);
  border-color: var(--line);
  background: #fff;
}

.quick-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: #fff;
  background: var(--navy);
}

.quick-contact a {
  padding: 24px clamp(18px, 4vw, 54px);
  border-right: 1px solid rgba(255, 255, 255, .14);
  font-size: 18px;
}

.quick-contact span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  letter-spacing: .08em;
}

.page-main {
  padding-top: 0;
}

.page-hero {
  padding: clamp(70px, 8vw, 118px) clamp(18px, 4vw, 64px) clamp(46px, 6vw, 82px);
  background: linear-gradient(180deg, #fff, var(--soft));
}

.page-hero.compact {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(2, 44, 73, .62)),
    url("../img/projects/grua-horizontal-1.jpg") center/cover;
}

.page-hero.services-hero {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(2, 44, 73, .58)),
    url("../img/services/minisplit-service-2.jpg") center/cover;
}

.page-hero h1,
.contact-section h1 {
  max-width: 1080px;
  color: var(--navy);
  font-size: clamp(50px, 7vw, 102px);
}

.page-hero.compact h1,
.page-hero.compact p,
.contact-section h1,
.contact-copy p {
  color: #fff;
}

.page-hero p {
  max-width: 880px;
}

.section,
.contact-section,
.video-band {
  padding: clamp(68px, 8vw, 116px) clamp(18px, 4vw, 64px);
}

.page-section {
  padding-top: clamp(50px, 6vw, 82px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  gap: clamp(32px, 5vw, 74px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.video-band h2 {
  color: var(--navy);
  font-size: clamp(42px, 5.5vw, 78px);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 38px;
}

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

.home-links a,
.proof-grid div,
.process article,
.service-panel,
.service-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-links a {
  padding: 28px;
  box-shadow: var(--shadow);
}

.home-links span,
.process span {
  color: var(--red);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
}

.home-links h3,
.process h3,
.service-panel h3 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.wide-carousel {
  margin-top: clamp(34px, 5vw, 64px);
  overflow: hidden;
  border-radius: 8px;
}

.wide-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: wideSlide 24s linear infinite;
}

.wide-carousel figure {
  flex: 0 0 calc((100vw - clamp(36px, 8vw, 128px) - 32px) / 3);
  height: clamp(260px, 26vw, 390px);
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.wide-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-carousel:hover .wide-carousel-track {
  animation-play-state: paused;
}

@keyframes wideSlide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.proof-grid div {
  padding: 22px;
}

.proof-grid strong {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: 42px;
  font-weight: 900;
}

.proof-grid span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.service-carousel {
  min-height: 500px;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .7s ease, transform 1s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
}

.carousel-controls button.active {
  background: var(--red);
}

.video-band {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 28px;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #02080d, var(--navy));
}

.video-band h2 {
  color: #fff;
}

.video-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, .82);
  font: 19px/1.65 var(--body);
}

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

.video-slot {
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px dashed rgba(255, 255, 255, .34);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.video-slot span {
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
}

.video-selector {
  display: grid;
  gap: 14px;
}

.video-stage {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.video-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.video-thumbs button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.video-thumbs button span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  flex: 0 0 34px;
}

.video-thumbs button.active {
  border-color: var(--red);
  background: var(--red);
}

.services {
  background: var(--soft);
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.service-tabs,
.service-panels {
  display: grid;
  gap: 12px;
}

.service-tabs {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-tab {
  display: flex;
  align-items: center;
  padding: 22px;
  color: var(--navy);
  text-align: left;
  font-size: 19px;
  line-height: 1.08;
  cursor: pointer;
}

.service-tab span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
}

.service-tab.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.service-tab.active span {
  background: rgba(0, 0, 0, .22);
}

.service-panel {
  display: none;
  height: 100%;
  padding: clamp(28px, 3vw, 42px);
  box-shadow: 0 12px 36px rgba(2, 44, 73, .08);
}

.service-panel.active {
  display: block;
}

.service-panel ul {
  padding-left: 24px;
}

.service-panel p,
.service-panel li {
  font-size: clamp(20px, 1.7vw, 24px);
}

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

.process article {
  padding: 28px;
  background: linear-gradient(180deg, #fff, #f7f9fb);
}

.engineer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  gap: 24px;
  align-items: center;
  margin-top: clamp(34px, 5vw, 64px);
  padding: clamp(26px, 4vw, 42px);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #000, var(--navy));
}

.engineer-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
}

.engineer-contacts {
  display: grid;
  gap: 12px;
}

.engineer-contacts a {
  display: grid;
  gap: 3px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.engineer-contacts span {
  color: rgba(255, 255, 255, .72);
  font: 16px/1.3 var(--body);
}

.engineer-contacts strong {
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
}

.experience-gallery {
  margin-top: clamp(30px, 5vw, 58px);
}

.experience-gallery .wide-carousel-track {
  animation-duration: 48s;
}

.contact-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(2,44,73,.86)),
    url("../img/services/chiller-horizontal.jpg") center/cover;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contact-form-stack {
  display: grid;
  gap: 18px;
}

.contact-section.standalone {
  min-height: calc(100vh - 124px);
}

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

.contact-list a {
  color: rgba(255, 255, 255, .92);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-group {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.contact-group h2 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.phone-group a {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.phone-group a span {
  font-size: 17px;
}

.phone-group a strong {
  font-size: 28px;
}

.email-group a {
  color: rgba(255, 255, 255, .9);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  text-transform: none;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-card label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 14px;
  color: var(--ink);
  font: 18px var(--body);
  background: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(130px, .45fr) minmax(280px, 1.35fr) minmax(240px, .9fr);
  gap: 28px;
  align-items: start;
  padding: 30px clamp(18px, 4vw, 64px);
  color: #fff;
  background: #000;
  text-transform: none;
}

.footer-logo-block {
  display: grid;
  gap: 12px;
}

.footer-logo-block img {
  width: 152px;
  height: auto;
}

.footer-info h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 900;
  line-height: .9;
  text-transform: none;
}

.footer-contact {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .82);
  font: italic 16px/1.35 var(--body);
}

.footer-contact a {
  color: inherit;
}

.footer-rights {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-family: var(--display);
  font-size: 17px;
  text-align: center;
  text-transform: none;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
}

.social-link img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.quote-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
  font-size: 16px;
}

.quote-float img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

@media (max-width: 1100px) {
  .hero-content {
    transform: none;
  }

  .split,
  .video-band,
  .contact-section,
  .service-layout,
  .engineer-cta {
    grid-template-columns: 1fr;
  }

  .home-links,
  .service-tabs,
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .live-strip {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    min-height: 32px;
    padding: 5px 12px;
    font-size: 13px;
  }

  .live-message {
    gap: 7px;
    min-width: 0;
    line-height: 1;
  }

  .live-message span:last-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .live-action {
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 26px;
    padding: 3px 9px 3px 4px;
    font-size: 12px;
  }

  .live-action img {
    width: 18px;
    height: 18px;
  }

  .nav-bar {
    min-height: 76px;
    padding: 10px 16px;
  }

  .brand img {
    width: 220px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 70px 0;
  }

  .hero h1,
  .page-hero h1,
  .contact-section h1 {
    font-size: 40px;
    line-height: .92;
  }

  .hero h1 {
    min-height: 4.3em;
    font-size: 34px;
  }

  .section-copy h2,
  .section-heading h2,
  .video-band h2 {
    font-size: 36px;
  }

  .hero p:not(.eyebrow),
  .page-hero p,
  .section-copy p,
  .section-heading p,
  .contact-copy p,
  .service-panel p,
  .service-panel li,
  .process p,
  .home-links p {
    font-size: 16px;
  }

  .quick-contact,
  .proof-grid,
  .video-placeholders,
  .home-links,
  .service-tabs,
  .process {
    grid-template-columns: 1fr;
  }

  .video-thumbs {
    grid-template-columns: 1fr;
  }

  .carousel,
  .service-carousel {
    min-height: 420px;
  }

  .wide-carousel-track {
    gap: 16px;
    animation-duration: 64s;
  }

  .experience-gallery .wide-carousel-track {
    animation-duration: 96s;
  }

  .wide-carousel figure {
    flex-basis: 78vw;
    height: 240px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .contact-socials {
    margin-top: 0;
  }

  .footer-rights {
    text-align: left;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .quote-float {
    right: 14px;
    bottom: 14px;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    font-size: 14px;
  }

  .quote-float img {
    width: 34px;
    height: 34px;
  }

  .quote-float span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
