@import url('assets/base.css');

:root {
  --night: #06111f;
  --night-2: #0b2035;
  --ink: #0b1826;
  --muted: #5d6d7d;
  --line: #dbe3eb;
  --soft: #f3f7fa;
  --paper: #ffffff;
  --cyan: #31c9e8;
  --blue: #1c6fe8;
  --red: #ee334d;
  --green: #3fbf82;
  --panel-dark: #0b2035;
  --panel-dark-2: #0f2a45;
  --dark-line: rgba(255, 255, 255, .12);
  --light-text: #f6fbff;
  --light-muted: #b7c8d7;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--night);
  color: var(--light-text);
}

.display,
.heading,
.lede,
.card-copy h2,
.command-panel h2,
.bento-card h3 {
  letter-spacing: 0;
}

.display {
  max-width: 740px;
  font-size: 72px;
  line-height: .96;
  letter-spacing: 0;
}

.heading {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(11, 24, 38, .12);
  color: var(--ink);
}

.site-header .nav {
  min-height: 96px;
}

.brand img {
  width: 178px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

.nav-links a {
  color: #253545;
}

.nav-links a:hover {
  color: var(--blue);
}

.site-header .button.primary {
  background: var(--night);
  color: #fff;
  box-shadow: 0 12px 24px rgba(6, 17, 31, .16);
}

.button {
  border-radius: 8px;
}

.menu-button,
.nav-links a,
.field input,
.field select,
.field textarea,
.form-status,
.mobile-call,
.back-link {
  border-radius: 8px;
}

.button.primary {
  background: #ffffff;
  color: var(--night);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
}

.button.secondary {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

a.button[href^="tel:"] {
  background: var(--red);
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 18px 38px rgba(238, 51, 77, .34);
}

a.button[href^="tel:"]:hover {
  background: #ff4058;
  box-shadow: 0 22px 46px rgba(238, 51, 77, .42);
}

.site-header a.button[href^="tel:"] {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 28px rgba(238, 51, 77, .28);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 15, 28, .96) 0%, rgba(5, 15, 28, .82) 43%, rgba(5, 15, 28, .34) 100%),
    url('assets/hvac-service-hero.png');
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 52px;
  align-items: center;
  padding: 58px 0 94px;
}

.hero .eyebrow {
  color: var(--cyan);
}

.hero .lede {
  color: #d4e0ea;
}

.system-panel {
  border-radius: 8px;
  padding: 24px;
  background: rgba(7, 22, 39, .82);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
}

.system-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-panel-head strong {
  color: var(--green);
}

.thermostat {
  width: 230px;
  height: 230px;
  margin: 28px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--cyan) 0 68%, rgba(255, 255, 255, .12) 68% 100%);
  box-shadow: inset 0 0 0 18px rgba(9, 29, 49, .96);
}

.thermostat > div {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #06111f;
  text-align: center;
}

.thermostat strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

.thermostat span {
  display: block;
  margin-top: 8px;
  color: #aabfd1;
  font-size: 12px;
  font-weight: 800;
}

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

.system-metrics div {
  min-height: 82px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}

.system-metrics small {
  display: block;
  color: #9bb2c5;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-metrics strong {
  display: block;
  margin-top: 8px;
}

.service-nav {
  position: relative;
  z-index: 2;
  margin-top: -52px;
}

.service-nav .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--dark-line);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .28);
}

.service-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 12px;
  background: #0a1c30;
  color: #e8f2fb;
  font-size: 13px;
  font-weight: 900;
}

.service-nav a:hover {
  background: #102d49;
  color: var(--cyan);
}

.intro-section {
  padding-top: 86px;
  background: var(--night);
  color: var(--light-text);
}

.intro-grid,
.repair-grid,
.maintenance-grid,
.area-grid,
.contact-grid,
.faq-layout {
  display: grid;
  gap: 56px;
}

.intro-grid {
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
}

.intro-note {
  max-width: 520px;
  color: var(--light-muted);
  line-height: 1.75;
}

.services {
  background: linear-gradient(180deg, var(--night), #081827);
  color: var(--light-text);
}

.section-head {
  max-width: 840px;
  margin-bottom: 38px;
}

.section-head.narrow {
  max-width: 780px;
}

.section-head p {
  color: var(--light-muted);
  line-height: 1.75;
}

.eyebrow {
  color: var(--cyan);
  letter-spacing: 0;
}

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

.service-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 8px;
  padding: 26px;
  border: 1px solid var(--dark-line);
  background: linear-gradient(145deg, #0b2035, #0a192a);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
}

.service-card.featured {
  background: linear-gradient(145deg, #10385d, #071827);
  color: #fff;
  border-color: rgba(49, 201, 232, .22);
}

.card-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(49, 201, 232, .12);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-card.featured .card-label {
  background: rgba(49, 201, 232, .14);
  color: var(--cyan);
}

.service-card h3 {
  margin: 22px 0 10px;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: 0;
}

.service-card p {
  color: var(--light-muted);
  line-height: 1.68;
  margin: 0 0 24px;
}

.service-card.featured p {
  color: #bfd0de;
}

.service-card a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
}

.service-card.featured a {
  color: var(--cyan);
}

.repair-section {
  background: #071322;
  color: var(--light-text);
}

.repair-grid {
  grid-template-columns: .82fr 1.18fr;
  align-items: start;
}

.repair-panel {
  position: sticky;
  top: 126px;
}

.repair-panel p {
  color: var(--light-muted);
  line-height: 1.75;
}

.repair-panel .button.primary {
  width: fit-content;
  margin-top: 10px;
}

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

.symptom {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--dark-line);
}

.symptom strong {
  font-size: 20px;
}

.symptom span {
  color: var(--light-muted);
  line-height: 1.65;
}

.maintenance-section {
  background: var(--night);
  color: #fff;
}

.maintenance-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.photo-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.maintenance-copy .eyebrow,
.faq-section .eyebrow,
.contact-section .eyebrow {
  color: var(--cyan);
}

.maintenance-copy p {
  color: #c5d4df;
  line-height: 1.75;
}

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

.check-grid span {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .11);
  font-size: 13px;
  font-weight: 850;
}

.replacement-section {
  background: #081827;
  color: var(--light-text);
}

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

.process-step {
  min-height: 250px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--dark-line);
  background: linear-gradient(145deg, #0d2239, #091a2c);
}

.process-step b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(49, 201, 232, .13);
  color: var(--cyan);
}

.process-step h3 {
  margin: 24px 0 10px;
  font-size: 22px;
  line-height: 1.14;
}

.process-step p {
  color: var(--light-muted);
  line-height: 1.6;
  margin: 0;
}

.area-section {
  background: var(--night);
  color: var(--light-text);
}

.area-grid {
  grid-template-columns: 1fr 390px;
  align-items: center;
}

.area-copy p {
  color: var(--light-muted);
  line-height: 1.75;
}

.area-panel {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #0b2035, #132f4b);
  color: #fff;
}

.map-lines {
  position: absolute;
  inset: 0;
  opacity: .32;
}

.map-lines span {
  position: absolute;
  width: 140%;
  height: 2px;
  background: rgba(255, 255, 255, .3);
  transform: rotate(-28deg);
}

.map-lines span:nth-child(1) {
  left: -45%;
  top: 26%;
}

.map-lines span:nth-child(2) {
  left: -20%;
  top: 52%;
}

.map-lines span:nth-child(3) {
  left: -35%;
  top: 75%;
}

.area-panel h3,
.area-panel p,
.area-panel a {
  position: relative;
}

.area-panel h3 {
  font-size: 34px;
  margin: 0;
}

.area-panel p {
  color: #c4d3df;
  line-height: 1.65;
  margin: 0;
}

.area-panel .button.secondary {
  width: fit-content;
}

.faq-section {
  background: var(--night);
  color: #fff;
}

.faq-layout {
  grid-template-columns: .76fr 1.24fr;
}

.faq {
  border-color: rgba(255, 255, 255, .14);
}

.faq-item {
  border-color: rgba(255, 255, 255, .14);
}

.faq-panel {
  color: #c4d4e0;
}

.faq-button {
  overflow: hidden;
}

.faq-button span:first-child {
  min-width: 0;
}

.faq-button span:last-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.faq-button[aria-expanded="true"] span:last-child {
  transform: none;
}

.contact-section {
  background: linear-gradient(135deg, #0b2035, #122d49);
  color: #fff;
}

.contact-grid {
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
}

.contact-copy p {
  color: #c8d7e3;
  line-height: 1.75;
}

.phone-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 30px;
  font-weight: 950;
  color: #fff;
}

.contact-form {
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
}

.field input,
.field select,
.field textarea {
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.field select option {
  color: var(--ink);
}

.form-status {
  background: rgba(49, 201, 232, .14);
  color: #d9f8ff;
}

.site-footer {
  background: #040b13;
  color: #aebfcd;
}

.site-footer h3 {
  color: #fff;
}

.footer-logo-card {
  width: 260px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
}

.footer-brand {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.legal {
  border-color: rgba(255, 255, 255, .1);
}

.mobile-call {
  background: var(--red);
  color: #fff;
}

@media (max-width: 1050px) {
  .hero-content,
  .intro-grid,
  .repair-grid,
  .maintenance-grid,
  .area-grid,
  .faq-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 34px;
  }

  .system-panel {
    max-width: 460px;
  }

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

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

  .repair-panel {
    position: static;
  }

  .area-panel {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    background: #fff;
  }

  .site-header .nav {
    min-height: 78px;
  }

  .brand img {
    width: 138px;
    height: auto;
    max-height: 66px;
  }

  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-content {
    padding: 48px 0 92px;
  }

  .display {
    font-size: 48px;
  }

  .heading {
    font-size: 34px;
  }

  .lede {
    font-size: 18px;
  }

  .service-nav {
    margin-top: -38px;
  }

  .service-nav .wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(5, 15, 28, .96) 0%, rgba(5, 15, 28, .86) 58%, rgba(5, 15, 28, .68) 100%),
      url('assets/hvac-service-hero.png');
  }

  .hero-content {
    padding: 38px 0 78px;
  }

  .system-panel {
    display: none;
  }

  .hero .actions .button.secondary {
    display: none;
  }

  .thermostat {
    width: 190px;
    height: 190px;
  }

  .thermostat > div {
    width: 128px;
    height: 128px;
  }

  .thermostat strong {
    font-size: 34px;
  }

  .system-metrics,
  .check-grid,
  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-nav .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .service-nav a:last-child {
    grid-column: 1 / -1;
  }

  .service-nav a {
    min-height: 56px;
  }

  .service-card,
  .process-step {
    min-height: auto;
  }

  .phone-link {
    font-size: 24px;
  }
}
