:root {
  --navy: #07111f;
  --slate: #122033;
  --slate2: #1b2b42;
  --blue: #1e88e5;
  --cyan: #38bdf8;
  --orange: #f97316;
  --white: #ffffff;
  --light: #f8fafc;
  --muted: #64748b;
  --dark: #0f172a;
  --line: rgba(15, 23, 42, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.18);
  --radius: 28px;
  --max: 1180px;
  --header: 78px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at 82% 8%, rgba(56, 189, 248, 0.14), transparent 30%),
    radial-gradient(circle at 10% 40%, rgba(249, 115, 22, 0.08), transparent 30%),
    var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(56, 189, 248, 0.14), transparent 30%),
    radial-gradient(circle at 10% 40%, rgba(249, 115, 22, 0.08), transparent 30%),
    var(--light);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header);
  z-index: 100;
  transition: 0.25s ease;
}

header.scrolled {
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  width: min(var(--max), calc(100% - 36px));
  height: var(--header);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 25%, var(--cyan) 0 18%, transparent 19%),
    linear-gradient(180deg, var(--blue), var(--orange));
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 21px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  font-size: 0.94rem;
}

.nav-links a:hover,
body[data-page="home"] [data-nav="home"],
body[data-page="about"] [data-nav="about"],
body[data-page="services"] [data-nav="services"],
body[data-page="reviews"] [data-nav="reviews"],
body[data-page="contact"] [data-nav="contact"] {
  color: white;
}

.nav-cta {
  color: white !important;
  padding: 11px 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 32px rgba(30, 136, 229, 0.28);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-btn span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: white;
}

.page-shell,
.section {
  width: min(var(--max), calc(100% - 36px));
  margin: auto;
}

.section {
  padding: 108px 0;
}

.hero {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 138px max(18px, calc((100% - var(--max)) / 2)) 110px;
  display: grid;
  grid-template-columns: 1fr 0.98fr;
  gap: 58px;
  align-items: center;
  color: white;
  background:
    radial-gradient(circle at 80% 12%, rgba(56, 189, 248, 0.18), transparent 32%),
    radial-gradient(circle at 18% 30%, rgba(30, 136, 229, 0.16), transparent 32%),
    linear-gradient(180deg, #07111f 0%, #0a1628 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  width: 100%;
  max-width: none;
  min-height: auto;
  padding: 150px max(18px, calc((100% - var(--max)) / 2)) 115px;
  color: white;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 12%, rgba(56, 189, 248, 0.18), transparent 32%),
    radial-gradient(circle at 18% 30%, rgba(30, 136, 229, 0.16), transparent 32%),
    linear-gradient(180deg, #07111f 0%, #0a1628 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero > div {
  width: min(var(--max), 100%);
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 760px;
  margin-top: 22px;
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2 {
  line-height: 0.98;
  letter-spacing: -0.075em;
}

h1 {
  font-size: clamp(3.25rem, 7vw, 6.65rem);
  margin-top: 18px;
  max-width: 860px;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.55rem);
  margin-top: 18px;
}

.hero-sub,
.section-head p,
.contact-copy p,
.about-panel p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
  margin-top: 22px;
}

.hero .hero-sub {
  color: rgba(255, 255, 255, 0.76);
}

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

.btn {
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
  transition: 0.22s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 35px rgba(30, 136, 229, 0.26);
}

.secondary {
  color: white;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.trust-strip div {
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.comfort-dashboard {
  position: relative;
  min-height: 610px;
  animation: floatDashboard 5.5s ease-in-out infinite;
}

@keyframes floatDashboard {
  50% {
    transform: translateY(-14px);
  }
}

.dash-card {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(100%, 540px);
  transform: translate(-50%, -50%);
  border-radius: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at 76% 24%, rgba(56, 189, 248, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
  border: 1px solid var(--line-dark);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.mini-label {
  display: block;
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.dash-top h2 {
  font-size: 1.65rem;
  letter-spacing: -0.05em;
  margin-top: 4px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 0.78rem;
  font-weight: 900;
}

.dash-main {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 18px;
}

.thermostat {
  min-height: 240px;
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: rgba(7, 17, 31, 0.46);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}

.ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--cyan) 0 70%, rgba(255,255,255,0.12) 70% 100%);
  box-shadow: 0 0 42px rgba(56, 189, 248, 0.18);
  position: relative;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--navy);
}

.ring span {
  position: relative;
  z-index: 2;
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.thermostat p {
  color: rgba(255, 255, 255, 0.66);
  margin-top: 12px;
  font-weight: 800;
}

.service-stack {
  display: grid;
  gap: 12px;
}

.service-stack div {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line-dark);
}

.service-stack small {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.58);
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.cool {
  color: var(--cyan);
}

.heat {
  color: var(--orange);
}

.care {
  color: #34d399;
}

.dot.cool {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.dot.heat {
  background: var(--orange);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.6);
}

.dot.care {
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.5);
}

.request-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(56,189,248,0.12));
  border: 1px solid var(--line-dark);
}

.request-card span,
.request-card strong {
  display: block;
}

.request-card span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
}

.request-card a {
  flex: 0 0 auto;
  color: white;
  font-weight: 900;
}

.float-chip {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.26);
}

.float-chip strong,
.float-chip span {
  display: block;
}

.float-chip span {
  color: rgba(255,255,255,0.62);
  font-size: 0.84rem;
}

.chip-one {
  top: 96px;
  right: 4px;
}

.chip-two {
  left: 0;
  bottom: 118px;
}

.section-head {
  margin-bottom: 42px;
}

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

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

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

.feature-card,
.preview-card,
.dark-card,
.about-panel,
.process-card,
.large-service-card,
.review-card,
.review-feature,
.contact-card,
.service-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 18px 55px rgba(7, 17, 31, 0.08);
}

.feature-card,
.preview-card,
.dark-card,
.large-service-card,
.review-card,
.review-feature {
  padding: 28px;
  transition: 0.22s ease;
}

.feature-card:hover,
.preview-card:hover,
.dark-card:hover,
.large-service-card:hover,
.review-card:hover {
  transform: translateY(-6px);
}

.number {
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 18px;
  display: inline-block;
}

.feature-card h3,
.preview-card h3,
.dark-card h3,
.large-service-card h2,
.review-card h3 {
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.feature-card p,
.preview-card p,
.large-service-card p,
.review-card p,
.process-item p,
.contact-card span {
  color: var(--muted);
}

.dark-band {
  width: 100%;
  max-width: none;
  color: white;
  padding-left: max(18px, calc((100% - var(--max)) / 2));
  padding-right: max(18px, calc((100% - var(--max)) / 2));
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at 86% 20%, rgba(249, 115, 22, 0.12), transparent 28%),
    linear-gradient(180deg, var(--navy), #0a1628);
}

.dark-band .section-head p {
  color: rgba(255,255,255,0.68);
}

.dark-card,
.preview-card {
  color: white;
  background: rgba(255,255,255,0.07);
  border-color: var(--line-dark);
  box-shadow: none;
}

.dark-card p,
.preview-card p {
  color: rgba(255,255,255,0.7);
}

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

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 18px;
  font-weight: 900;
  font-size: 1.1rem;
}

.service-icon.cool {
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
}

.service-icon.heat,
.service-icon.urgent {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.12);
}

.service-icon.care {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}

.service-icon.install,
.service-icon.air {
  color: var(--blue);
  background: rgba(30, 136, 229, 0.1);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 22%, rgba(56,189,248,0.14), transparent 32%),
    white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
}

.about-panel,
.process-card,
.contact-card,
.service-form {
  padding: 30px;
}

.metric-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric-row div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(30,136,229,0.08);
}

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

.metric-row strong {
  font-size: 2rem;
  letter-spacing: -0.08em;
}

.process-card h3 {
  margin-bottom: 22px;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.process-item span {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.spaced {
  margin-top: 28px;
}

.services-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.service-sidebar {
  position: sticky;
  top: 104px;
  padding: 22px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 55px rgba(7,17,31,0.08);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.service-sidebar a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}

.service-sidebar a:hover {
  background: rgba(30,136,229,0.08);
  color: var(--blue);
}

.service-list {
  display: grid;
  gap: 22px;
}

.large-service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  scroll-margin-top: 110px;
}

.large-service-card ul {
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.review-showcase {
  display: grid;
  gap: 28px;
}

.review-feature {
  background:
    radial-gradient(circle at 90% 12%, rgba(56,189,248,0.16), transparent 30%),
    white;
}

.review-feature blockquote {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.07em;
  font-weight: 900;
  margin: 18px 0;
}

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

.review-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.review-card h3 {
  margin-top: auto;
  padding-top: 20px;
}

.review-card span,
.review-feature span {
  color: var(--muted);
}

.stars {
  color: #fbbf24;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

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

.contact-card strong,
.contact-card span {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--dark);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--dark);
  background: rgba(255,255,255,0.94);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(30, 136, 229, 0.5);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.error input,
.error select,
.error textarea {
  border-color: #dc2626;
}

.form-message {
  min-height: 24px;
  font-weight: 900;
  margin-bottom: 18px;
}

.form-message.error {
  color: #dc2626;
}

.form-message.success {
  color: #15803d;
}

.submit-btn {
  width: 100%;
}

footer {
  width: min(var(--max), calc(100% - 36px));
  margin: auto;
  padding: 58px 0 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 22px;
}

.footer-logo {
  color: var(--dark);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-weight: 800;
  color: var(--blue);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: 0.72s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .about-layout,
  .services-page-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .comfort-dashboard {
    min-height: 550px;
  }

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

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

  .service-sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 18px;
    right: 18px;
    top: var(--header);
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid var(--line-dark);
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: 0.22s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px;
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    padding-top: 118px;
  }

  .page-hero {
    padding-top: 130px;
    padding-bottom: 85px;
  }

  .trust-strip,
  .three,
  .four,
  .service-preview-grid,
  .reviews-grid,
  .form-row,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .comfort-dashboard {
    min-height: 500px;
  }

  .dash-card {
    width: 100%;
  }

  .dash-main {
    grid-template-columns: 1fr;
  }

  .thermostat {
    min-height: 210px;
  }

  .float-chip {
    display: none;
  }

  .cta-panel {
    display: grid;
  }

  .large-service-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.1rem;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .page-hero {
    padding-top: 125px;
    padding-bottom: 80px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .dash-card,
  .service-form,
  .about-panel,
  .process-card {
    padding: 22px;
  }

  .request-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
