:root {
  --navy-980: #0b1622;
  --navy-940: #122232;
  --navy-900: #1a3045;
  --navy-820: #28445d;
  --charcoal-900: #201f21;
  --charcoal-800: #2e2d31;
  --charcoal-700: #454249;
  --off-white: #f5f2ec;
  --off-white-strong: #ece7df;
  --paper: #fffcf7;
  --copy: #5b6470;
  --copy-strong: #293746;
  --line: rgba(18, 34, 50, 0.1);
  --line-soft: rgba(255, 255, 255, 0.14);
  --blue: #3270a6;
  --blue-strong: #225785;
  --amber: #c9954c;
  --shadow-soft: 0 24px 70px rgba(11, 22, 34, 0.12);
  --shadow-card: 0 20px 46px rgba(11, 22, 34, 0.08);
  --shadow-lift: 0 26px 52px rgba(11, 22, 34, 0.16);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --site-width: 1480px;
  --content-width: 1360px;
  --side-pad: clamp(18px, 4vw, 72px);
  --section-space: clamp(74px, 9vw, 126px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--copy);
  background:
    radial-gradient(circle at top right, rgba(201, 149, 76, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, #f4efe7 100%);
}

body.intro-lock {
  overflow: hidden;
}

html:not(.js-enabled) [data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal] {
  opacity: 1;
}

html.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

html.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.js-enabled [data-hero] {
  opacity: 0;
  transform: translateY(20px);
}

html.js-enabled [data-hero].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.72s ease, transform 0.72s ease;
}

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

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

iframe {
  border: 0;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.container,
.header-shell,
.footer-shell {
  width: min(calc(100% - (var(--side-pad) * 2)), var(--content-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.section-header,
.cta-copy {
  display: grid;
  gap: 16px;
}

.section-header {
  max-width: 1120px;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--copy-strong);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

p {
  margin: 0;
}

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(201, 149, 76, 0.18), transparent 28%),
    linear-gradient(155deg, rgba(11, 22, 34, 0.98), rgba(23, 36, 49, 0.96));
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.brand-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-intro-mark {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  color: #fff;
  animation: introRise 1.45s ease both;
}

.brand-intro-mark img {
  width: min(520px, 84vw);
}

.brand-intro-mark span {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

@keyframes introRise {
  0% {
    opacity: 0;
    transform: scale(0.97) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: padding 0.35s ease;
}

.site-header.is-scrolled {
  padding: 10px 0;
}

.header-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 30px rgba(11, 22, 34, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled .header-shell {
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow: 0 16px 36px rgba(11, 22, 34, 0.12);
  backdrop-filter: blur(18px);
}

.brand-link img {
  width: min(250px, 42vw);
}

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

.header-nav a,
.header-phone {
  color: var(--copy-strong);
  font-size: 0.94rem;
}

.header-nav a {
  position: relative;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button,
.button-secondary,
.floating-call,
.contact-link,
.spotlight-card,
.service-card,
.feature-card,
.stat-card,
.process-step,
.guide-card,
.contact-card,
.detail-card,
.image-card img,
.hero-panel,
.hero-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.button,
.button-secondary,
.floating-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
}

.button {
  background: linear-gradient(135deg, var(--amber), #ae7634);
  color: #fff;
  box-shadow: 0 18px 36px rgba(201, 149, 76, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button-dark {
  background: var(--navy-940);
  color: #fff;
  box-shadow: 0 16px 34px rgba(18, 34, 50, 0.18);
}

.button-secondary-dark {
  background: rgba(18, 34, 50, 0.04);
  color: var(--copy-strong);
  border: 1px solid var(--line);
}

.button:hover,
.button-secondary:hover,
.floating-call:hover,
.contact-link:hover {
  transform: translateY(-3px);
}

.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-940);
  color: #fff;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: clamp(32px, 4vw, 52px) 0 46px;
  min-height: clamp(760px, 96vh, 980px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-980) 0%, var(--charcoal-900) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 22, 34, 0.84) 0%, rgba(11, 22, 34, 0.42) 46%, rgba(11, 22, 34, 0.62) 100%),
    linear-gradient(180deg, rgba(11, 22, 34, 0.18) 0%, rgba(11, 22, 34, 0.28) 54%, rgba(11, 22, 34, 0.76) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(11, 22, 34, 0), rgba(11, 22, 34, 0.92));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: clamp(26px, 3vw, 42px);
  align-items: stretch;
  min-height: clamp(690px, 84vh, 860px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  color: #fff;
  padding: clamp(30px, 5vw, 74px) 0 clamp(40px, 8vw, 84px);
  max-width: 860px;
}

.hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero-copy h1 {
  color: #fff;
  max-width: 15ch;
}

.hero-copy p {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-badge {
  padding: 13px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.hero-badge strong {
  color: #fff;
}

.hero-stack {
  display: grid;
  align-content: end;
  gap: 18px;
  padding-bottom: clamp(32px, 5vw, 64px);
}

.hero-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

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

.hero-note {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.9);
  color: var(--copy);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-card);
}

.hero-note strong {
  color: var(--copy-strong);
}

.surface-dark {
  background:
    radial-gradient(circle at top left, rgba(201, 149, 76, 0.14), transparent 30%),
    linear-gradient(180deg, var(--navy-980) 0%, var(--navy-940) 100%);
}

.surface-dark .section-header h2,
.surface-dark .section-header h3,
.surface-dark .section-header p,
.surface-dark .eyebrow,
.surface-dark .kicker {
  color: #fff;
}

.surface-dark .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.surface-warm {
  background: linear-gradient(180deg, rgba(236, 231, 223, 0.5), rgba(245, 242, 236, 0.92));
}

.trust-strip,
.spotlight-card,
.service-card,
.feature-card,
.stat-card,
.process-step,
.guide-card,
.contact-card,
.detail-card,
.cta-section,
.map-shell,
.image-card,
.footer-column {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.trust-strip,
.spotlight-card,
.service-card,
.feature-card,
.stat-card,
.process-step,
.guide-card,
.contact-card,
.detail-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 34, 50, 0.08);
}

.surface-dark .spotlight-card,
.surface-dark .process-step,
.surface-dark .detail-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.spotlight-card,
.service-card,
.feature-card,
.stat-card,
.process-step,
.guide-card,
.contact-card,
.detail-card {
  padding: 28px;
}

.spotlight-card:hover,
.service-card:hover,
.feature-card:hover,
.stat-card:hover,
.process-step:hover,
.guide-card:hover,
.contact-card:hover,
.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.trust-strip {
  margin-top: -52px;
  position: relative;
  z-index: 2;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(18, 34, 50, 0.08);
}

.trust-strip strong,
.spotlight-card strong,
.service-card strong,
.feature-card strong,
.stat-card strong,
.process-step strong,
.guide-card strong,
.contact-card strong,
.detail-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--copy-strong);
}

.grid-2,
.grid-3,
.hero-overview,
.split-layout,
.map-grid,
.contact-grid,
.footer-inner,
.process-grid {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
}

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

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

.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
}

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

.image-card {
  overflow: hidden;
}

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

.image-card:hover img,
.hero-panel:hover {
  transform: scale(1.02);
}

.list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list-clean li {
  position: relative;
  padding-left: 20px;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--blue));
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.stat-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 34, 50, 0.06);
  color: var(--copy-strong);
  font-weight: 600;
}

.surface-dark .stat-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: 14px;
  background: rgba(201, 149, 76, 0.16);
  color: var(--amber);
  font-weight: 700;
}

.map-shell {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(18, 34, 50, 0.08);
}

.map-shell iframe {
  width: 100%;
  min-height: 420px;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  background:
    linear-gradient(125deg, rgba(11, 22, 34, 0.95), rgba(31, 33, 38, 0.92)),
    var(--cta-image);
  background-size: cover;
  background-position: center;
}

.cta-section h2,
.cta-section p {
  color: #fff;
}

.cta-section p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  padding: 28px 0 38px;
  background: linear-gradient(180deg, #0e1824, #172633);
  color: rgba(255, 255, 255, 0.8);
}

.footer-shell {
  display: grid;
  gap: 20px;
}

.footer-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer-column {
  padding: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-column p {
  margin: 0 0 10px;
}

.footer-logo {
  width: min(260px, 100%);
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.64);
}

.floating-call {
  position: fixed;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 24px);
  z-index: 900;
  background: linear-gradient(135deg, var(--amber), #b27c39);
  color: #fff;
  box-shadow: 0 20px 36px rgba(179, 124, 57, 0.28);
}

.floating-call::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #7ff2aa;
  box-shadow: 0 0 0 6px rgba(127, 242, 170, 0.14);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-strong);
  font-weight: 700;
}

.page-home .hero {
  --hero-image: url("assets/hero/mesa-desert-home-hero.png");
}

.page-services .hero {
  --hero-image: url("assets/service/commercial-ac-unit-detail.jpg");
}

.page-process .hero {
  --hero-image: url("assets/team/technician-consultation-portrait.jpg");
}

.page-guide .hero {
  --hero-image: url("assets/service/thermostat-control.jpg");
}

.page-contact .hero {
  --hero-image: url("assets/background/scottsdale-desert-neighborhood.png");
}

.page-home .cta-section {
  --cta-image: url("assets/background/tucson-cactus-garden-home.png");
}

.page-services .cta-section {
  --cta-image: url("assets/service/ceiling-air-vent.jpg");
}

.page-process .cta-section {
  --cta-image: url("assets/background/palm-desert-street.png");
}

.page-guide .cta-section {
  --cta-image: url("assets/hero/desert-cactus-home-hero.png");
}

.page-contact .cta-section {
  --cta-image: url("assets/fleet/generic-service-van.png");
}

@media (max-width: 1180px) {
  .hero-grid,
  .split-layout,
  .cta-section,
  .map-grid,
  .contact-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .grid-3,
  .hero-overview,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    max-width: 16ch;
  }
}

@media (max-width: 920px) {
  .header-nav,
  .header-actions .header-phone,
  .header-actions .button {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    position: absolute;
    left: var(--side-pad);
    right: var(--side-pad);
    top: calc(100% + 10px);
    display: grid;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 34, 50, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  }

  .site-header.is-menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    min-height: 620px;
  }

  .trust-strip,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 28px;
    min-height: 460px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1,
  .section-header h2,
  .cta-section h2 {
    max-width: none;
  }

  .trust-strip,
  .grid-2,
  .grid-3,
  .hero-overview,
  .footer-inner,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .header-shell {
    padding: 14px;
  }

  .brand-link img {
    width: min(210px, 56vw);
  }

  .hero-actions,
  .cta-section .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary,
  .floating-call {
    width: 100%;
  }

  .floating-call {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .spotlight-card:hover,
  .service-card:hover,
  .feature-card:hover,
  .stat-card:hover,
  .process-step:hover,
  .guide-card:hover,
  .contact-card:hover,
  .detail-card:hover,
  .button:hover,
  .button-secondary:hover,
  .floating-call:hover,
  .contact-link:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
