/* ============================================
   SUMMIT HVAC SOLUTIONS — Main Stylesheet v2
   ============================================ */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bebas-neue-400-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-500-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-600-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-700-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-400-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-condensed-500-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600-normal-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700-normal-latin.woff2') format('woff2');
}

/* One-time font reveal gate (controlled by js/main.js, no head script). */
body.font-gate {
  display: none;
}

body.font-revealed {
  animation: fontReveal 0.35s ease both;
}

@keyframes fontReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── MOBILE EARLY KILLS ──────────────────────
   Use media queries instead of inline head JS so
   mobile performance tweaks still apply without
   any render-blocking scripts in the document head.
─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Canvas & cursor — also removed from DOM by JS */
  .particles-canvas,
  .cursor-glow                { display: none !important; }

  /* Hero visual — hidden on mobile, saves ALL ring/bar/particle rendering */
  .hero__content              { grid-template-columns: 1fr !important; }

  /* Desert SVG — hidden since hero__visual is already removed on mobile */
  .hero__desert { display: none !important; }

  /* Infinite CSS animations — the main perf killers */
  .hero__glow--blue,
  .hero__glow--amber          { animation: none !important; filter: none !important; opacity: 0 !important; }
  .hero__grid                 { animation: none !important; }
  .hero__unit-ring            { animation: none !important; }
  .hero__ac-fan               { animation: none !important; }
  .hero__ac-airflow           { display: none !important; }
  .hero__house                { display: none !important; }
  .hero__wire-pulse           { display: none !important; }
  .hero__thermostat-glow      { animation: none !important; }
  .hero__badge-dot            { animation: none !important; }
  .hero__title-split-inner    { animation: none !important; transform: none !important; }
  .service-card__glow         { display: none !important; }
  .contact__glow              { display: none !important; }

  /* backdrop-filter causes repaints on every scroll frame */
  .nav.scrolled               { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; background: rgba(10,15,30,0.98) !important; }
  [data-theme="light"] .nav.scrolled { background: var(--navy) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }
  .location__map-card         { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

  /* filter:blur forces GPU layer even at opacity:0 */
  .hero__glow,
  .contact__glow              { filter: none !important; }

  /* text-shadow repaints on some mobile GPUs every scroll */
  .hero__thermostat-temp      { text-shadow: none !important; }

  /* Remove box-shadows on main cards (not inputs/focus states) */
  .service-card               { box-shadow: none !important; }
  .contact__form              { box-shadow: none !important; }
  .location__map-wrap         { box-shadow: none !important; }
}

/* ── DARK MODE (default) ── */
:root,
[data-theme="dark"] {
  --navy:    #0A0F1E;
  --navy-2:  #0F162B;
  --navy-3:  #141D38;
  --slate:   #1E2A4A;
  --amber:   #E8A020;
  --amber-2: #F5B840;
  --amber-dk:#B87C18;
  --blue:    #2B7FE8;
  --blue-lt: #5BA3FF;
  --ice:     #B8D4F0;
  --white:   #F4F7FC;
  --muted:   #8899BB;
  --border:  rgba(255,255,255,0.08);
  --shadow:  rgba(0,0,0,0.4);
  --hero-grid: rgba(255,255,255,0.03);
  --card-bg: var(--navy-3);
  --input-bg: var(--navy);
  --radius:  12px;
  --font-head: 'Bebas Neue', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --anchor-offset: 40px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --navy:    #F0F4FF;
  --navy-2:  #E6EBF8;
  --navy-3:  #FFFFFF;
  --slate:   #D6DFF0;
  --amber:   #C47D0A;
  --amber-2: #D48C14;
  --amber-dk:#9B6208;
  --blue:    #1A6DD4;
  --blue-lt: #2B7FE8;
  --ice:     #1A2A4A;
  --white:   #111827;
  --muted:   #5A6888;
  --border:  rgba(0,0,0,0.1);
  --shadow:  rgba(0,0,0,0.12);
  --hero-grid: rgba(0,0,0,0.04);
  --card-bg: #FFFFFF;
  --input-bg: var(--navy-2);
}

[data-theme="light"] .nav.scrolled { background: rgba(240, 244, 255, 0.90) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
[data-theme="light"] .nav__mobile { background: var(--navy-2); }
[data-theme="light"] .hero__glow--blue  { opacity: 0.08; }
[data-theme="light"] .hero__glow--amber { opacity: 0.07; }
[data-theme="light"] .hero__thermostat-ring { background: radial-gradient(circle, var(--slate) 60%, var(--navy-2) 100%); }
[data-theme="light"] .hero__thermostat-temp { color: var(--white); text-shadow: none; }
[data-theme="light"] .hero__ac-body { background: linear-gradient(160deg, var(--slate) 0%, var(--navy-3) 100%); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .service-card--featured { background: linear-gradient(135deg,#fff 0%,rgba(196,125,10,0.05) 100%); }
[data-theme="light"] .service-card--commercial { background: linear-gradient(135deg,#fff 0%,rgba(26,109,212,0.06) 100%); }
[data-theme="light"] .btn--ghost { color: var(--white); border-color: rgba(17,24,39,0.25); }
[data-theme="light"] .btn--ghost:hover { border-color: rgba(17,24,39,0.5); background: rgba(17,24,39,0.05); }
[data-theme="light"] .ticker { background: var(--amber); }
[data-theme="light"] .ticker__inner span { color: #fff; }
[data-theme="light"] .ticker__dot { color: rgba(255,255,255,0.5) !important; }
[data-theme="light"] .why__bg { background: linear-gradient(135deg,var(--navy-2) 50%,var(--navy) 100%); }
[data-theme="light"] .testimonial--featured { background: linear-gradient(135deg,#fff 0%,rgba(196,125,10,0.05) 100%); }
[data-theme="light"] .location__map-card { background: rgba(255,255,255,0.95); color: var(--white); }

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--border); border: 1.5px solid var(--border);
  cursor: pointer; transition: var(--transition); flex-shrink: 0; overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { background: rgba(232,160,32,0.15); border-color: var(--amber); }
}
.theme-toggle:focus { outline: none; }
.theme-toggle:focus-visible { background: rgba(232,160,32,0.15); border-color: var(--amber); }
.theme-toggle__icon { position: absolute; transition: opacity 0.3s ease, transform 0.4s ease; }
.theme-toggle__sun  { color: var(--amber); opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle__moon { color: var(--muted); opacity: 0; transform: rotate(-90deg) scale(0.6); }
[data-theme="light"] .theme-toggle__sun  { opacity: 0; transform: rotate(90deg) scale(0.6); }
[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.2s ease, color 0.2s ease;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
section[id],
header[id] { scroll-margin-top: var(--anchor-offset); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ── PARTICLES CANVAS ── */
.particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  will-change: contents;
  contain: strict;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 6px;
  font-family: var(--font-cond); font-size: 1rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,160,32,0.35); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.25); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }

/* Shimmer effect */
.btn--shimmer::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  transform: skewX(-20deg);
  transition: none;
}
.btn--shimmer:hover::after {
  animation: shimmer 0.6s ease forwards;
}
@keyframes shimmer {
  0%   { left: -75%; }
  100% { left: 125%; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
  font-family: var(--font-cond); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(2.2rem,4vw,3.5rem);
  line-height: 1.05; letter-spacing: 0.02em; color: var(--white);
}
.section-title em { font-style: normal; color: var(--amber); }
.section-sub { margin-top: 1rem; font-size: 1.05rem; color: var(--muted); max-width: 600px; line-height: 1.75; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-sub { margin: 1rem auto 0; }

/* ============================================
   NAV
   ============================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 101; transition: var(--transition); }
.nav.scrolled { background: rgba(10,15,30,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-cond); font-size: 1.35rem; font-weight: 500; letter-spacing: 0.05em; color: var(--white); }
.nav__logo strong { color: var(--amber); font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a { font-family: var(--font-cond); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color var(--transition); }
.nav__links a:hover { color: var(--white); }
.nav__cta { background: var(--amber) !important; color: var(--navy) !important; padding: 0.5rem 1.25rem; border-radius: 5px; font-weight: 700 !important; }
.nav__cta:hover { background: var(--amber-2) !important; box-shadow: 0 4px 20px rgba(232,160,32,0.4); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
/* Tight group: theme toggle sits flush left of burger, hidden on desktop */
.nav__mobile-toggle { display: none; }
.nav__mobile-controls { display: none; align-items: center; gap: 0.35rem; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
/* Mobile dropdown */
.nav__mobile { display: none; flex-direction: column; background: var(--navy-2); border-top: 0; overflow: hidden; max-height: 0; transition: max-height 0.15s ease-in; }
.nav__mobile.open { max-height: 500px; border-top: 1px solid var(--border); transition: max-height 0.28s ease-out; }
/* Blur overlay — covers page content behind open menu */
.nav__overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.22s ease, backdrop-filter 0.22s ease, -webkit-backdrop-filter 0.22s ease;
  pointer-events: none;
}
.nav__overlay.visible {
  display: block; pointer-events: auto;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="light"] .nav__overlay.visible { background: rgba(0,0,0,0.25); }
.nav__mobile a { display: block; padding: 1rem 2rem; font-family: var(--font-cond); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); transition: color var(--transition), background var(--transition); }
.nav__mobile a:hover { color: var(--white); background: rgba(255,255,255,0.04); }

/* ============================================
   HERO
   ============================================ */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 8rem 2rem 4rem; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  animation: gridDrift 20s linear infinite;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero__glow--blue  { width: 600px; height: 600px; background: var(--blue); top: -200px; right: -100px; opacity: 0.15; animation: glowFloat 8s ease-in-out infinite; }
.hero__glow--amber { width: 400px; height: 400px; background: var(--amber); bottom: -100px; left: 10%; opacity: 0.12; animation: glowFloat 10s ease-in-out infinite reverse; }

/* Two-column hero: text left, visual right, both centered in their column */
.hero__content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
}

/* All text children of hero__content stay left-aligned */
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-cond); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); background: rgba(232,160,32,0.1);
  border: 1px solid rgba(232,160,32,0.3); padding: 0.4rem 1rem;
  border-radius: 100px; margin-bottom: 1.5rem; width: fit-content;
  animation: fadeInUp 0.6s ease both;
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  animation: blink 2s ease-in-out infinite;
}

.hero__title { display: flex; flex-direction: column; line-height: 0.9; margin-bottom: 1.5rem; animation: fadeInUp 0.7s ease 0.1s both; }
.hero__title-row { display: flex; align-items: flex-end; gap: 0.18em; flex-wrap: wrap; }
.hero__title-line { font-family: var(--font-head); font-size: clamp(4rem,8vw,7.5rem); letter-spacing: 0.02em; color: var(--white); position: relative; display: inline-block; }
.hero__title-line--accent { color: var(--amber); }

/* Text reveal on hero title lines */
.hero__title-split { overflow: hidden; }
.hero__title-split-inner { display: block; animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; animation-delay: var(--hero-title-delay, 0s); }

.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 480px; line-height: 1.75; margin-bottom: 2.5rem; animation: fadeInUp 0.7s ease 0.4s both; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.7s ease 0.5s both; margin-bottom: 2.5rem; }
/* Standalone desktop margin */
.hero__text > .hero__actions { margin-bottom: 3.5rem; }
.hero__actions-row { display: contents; } /* transparent wrapper on desktop */

.hero__stats { display: flex; align-items: center; gap: 1.5rem; animation: fadeInUp 0.7s ease 0.6s both; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-family: var(--font-head); font-size: 2rem; color: var(--white); line-height: 1; }
.hero__stat span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; margin-top: 0.2rem; white-space: nowrap; }
.hero__stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* Scroll hint */
.hero__scroll-hint { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-family: var(--font-cond); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); z-index: 1; animation: fadeIn 1s ease 1s both; }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--muted), transparent); animation: scrollLine 2s ease-in-out infinite; }

/* Hero Unit — right column, centered */
/* hero__visual — HVAC scene */
.hero__visual {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  animation: fadeInLeft 0.9s ease 0.5s both;
  flex-shrink: 0;
  width: 580px; height: 380px;
  /* clip the faded desert edges */
  overflow: hidden;
  border-radius: 20px;
}

/* ── Desert background SVG ── */
.hero__desert {
  position: absolute !important;
  display: block;
  top: 0; left: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, black 40%, transparent 100%);
  mask-image:         radial-gradient(ellipse 96% 92% at 50% 50%, black 40%, transparent 100%);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  animation: fadeIn 0.8s ease 0.4s both;
}

.hero__desert .d-cactus {
  display: none;
}

.hero__foreground-cacti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.45s ease;
}

#heroThermostat[data-mode="heat"] ~ .hero__foreground-cacti {
  transform: translateX(-2px);
}

#heroThermostat[data-mode="auto"] ~ .hero__foreground-cacti {
  transform: translateX(2px);
}

.hero__foreground-cacti g {
  transform-box: fill-box;
  transform-origin: bottom center;
}

.hero__foreground-cacti g:first-child {
  animation: cactusSwayLeft 8s ease-in-out infinite;
}

.hero__foreground-cacti g:last-child {
  animation: cactusSwayRight 9s ease-in-out infinite;
}

.fg-cactus {
  fill: #2b6b2d;
  opacity: 0.92;
}

.fg-cactus--shade {
  fill: #1d4f22;
  opacity: 0.95;
}

.fg-spine {
  stroke: rgba(227, 248, 208, 0.22);
  stroke-linecap: round;
}

[data-theme="light"] .fg-cactus {
  fill: #3e8a3d;
}

[data-theme="light"] .fg-cactus--shade {
  fill: #2d6c2d;
}

[data-theme="light"] .fg-spine {
  stroke: rgba(244, 255, 222, 0.24);
}

/* ── Desert colour tokens — all transition together on theme change ── */
/* Night (dark mode) */
.d-sky          { --dt: 0.22s; }
.dSky-t         { stop-color: #030916; transition: stop-color var(--dt) ease; }
.dSky-b         { stop-color: #0B1A34; transition: stop-color var(--dt) ease; }
.dGnd-t         { stop-color: #131F10; transition: stop-color var(--dt) ease; }
.dGnd-b         { stop-color: #090E07; transition: stop-color var(--dt) ease; }
.dMtn1-t        { stop-color: #0B1624; transition: stop-color var(--dt) ease; }
.dMtn1-b        { stop-color: #060C18; transition: stop-color var(--dt) ease; }
.dMtn2-t        { stop-color: #0F1C2C; transition: stop-color var(--dt) ease; }
.dMtn2-b        { stop-color: #060C18; transition: stop-color var(--dt) ease; }
.dGlow-c        { stop-color: #D09820; stop-opacity: 0.35; transition: stop-color var(--dt) ease, stop-opacity var(--dt) ease; }
.dCact-l        { stop-color: #153015; transition: stop-color var(--dt) ease; }
.dCact-m        { stop-color: #1D3E1D; transition: stop-color var(--dt) ease; }
.dCact-r        { stop-color: #112811; transition: stop-color var(--dt) ease; }

/* All the SVG elements that need smooth colour transitions */
.d-cactus       { fill: url(#dCactG); transition: fill 0.22s ease; }
.d-cactus path  { transition: fill 0.22s ease; }
.d-spine        { stroke: #0E200E; transition: stroke 0.22s ease; }
.d-rock         { fill: #111C10; opacity: 0.7; transition: fill 0.22s ease; }
.d-mtn1         { transition: opacity 0.22s ease; }
.d-mtn2         { transition: opacity 0.22s ease; }
.d-horizon      { fill: #283820; opacity: 0.7; transition: fill 0.22s ease; }

/* Stars — visible at night, fade out at dawn */
.d-stars        { opacity: 0.8; transition: opacity 0.22s ease; }

/* ── Celestial body — moon by default, slides right → left on theme change ── */
/* Night position: moon sits right side (translateX=420 → arc peak Y=55) */
/* Day position: sun sits left side (translateX=90 → arc peak Y=62) */
/* We animate via translate on the <g> — arc: goes UP from right to left over horizon */
.d-celestial    {
  transform: translate(430px, 52px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Moon body — creamy white */
.d-celestial-body {
  fill: #FFF6E4;
  filter: drop-shadow(0 0 6px rgba(255,240,180,0.5));
  transition: fill 0.22s ease, filter 0.9s ease;
}
/* Craters visible at night */
.d-craters      { opacity: 1; transition: opacity 0.22s ease; }
/* Sun rays hidden at night */
.d-rays         { opacity: 0; color: #FFD040; transition: opacity 0.22s ease; }
/* Glow: amber-ish for moon */
.dGlow-c        { stop-color: #C89820; stop-opacity: 0.3; }

/* ── DAY MODE overrides ── */
[data-theme="light"] .dSky-t  { stop-color: #5090D8; }
[data-theme="light"] .dSky-b  { stop-color: #E07828; }
[data-theme="light"] .dGnd-t  { stop-color: #C4823A; }
[data-theme="light"] .dGnd-b  { stop-color: #9A5E22; }
[data-theme="light"] .dMtn1-t { stop-color: #7A4C2C; }
[data-theme="light"] .dMtn1-b { stop-color: #5A3018; }
[data-theme="light"] .dMtn2-t { stop-color: #9A5E34; }
[data-theme="light"] .dMtn2-b { stop-color: #6A3C1C; }
[data-theme="light"] .dGlow-c { stop-color: #FFE060; stop-opacity: 0.55; }
[data-theme="light"] .dCact-l { stop-color: #2A5C2A; }
[data-theme="light"] .dCact-m { stop-color: #347034; }
[data-theme="light"] .dCact-r { stop-color: #245024; }
[data-theme="light"] .d-spine  { stroke: #1A4A1A; }
[data-theme="light"] .d-rock   { fill: #A06828; }
[data-theme="light"] .d-horizon { fill: #B06028; }
[data-theme="light"] .d-stars  { opacity: 0; }

/* Sun body — golden yellow */
[data-theme="light"] .d-celestial-body {
  fill: #FFD030;
  filter: drop-shadow(0 0 12px rgba(255,200,0,0.7));
}
[data-theme="light"] .d-craters { opacity: 0; }
[data-theme="light"] .d-rays    { opacity: 1; }

/* Sun slides to the LEFT side of the scene */
[data-theme="light"] .d-celestial {
  transform: translate(110px, 62px);
}

/* Ambient rings — behind everything */
.hero__unit-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(232,160,32,0.1); animation: ringPulse 3s ease-in-out infinite; pointer-events: none; z-index: 1; }
.hero__unit-ring--1 { width: 440px; height: 440px; animation-delay: 0s; }
.hero__unit-ring--2 { width: 510px; height: 510px; animation-delay: 1.1s; border-color: rgba(232,160,32,0.06); }
.hero__unit-ring--3 { width: 580px; height: 580px; animation-delay: 2.2s; border-color: rgba(232,160,32,0.03); }

/* Scene layout: absolute fill — thermostat top-left, AC left, house right */
.hero__hvac-scene {
  position: absolute;
  inset: 0 0 38px 0; /* sit above the status bar */
  z-index: 2;
}

/* ━━━━ THERMOSTAT — absolute, ground-anchored ━━━━ */
.hero__thermostat {
  position: absolute;
  left: 8px; bottom: 88px;
  width: 148px; height: 148px;
  display: flex; align-items: center; justify-content: center;
}

.hero__thermostat::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 92px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.24);
  transform: translateX(-50%);
  filter: blur(4px);
  z-index: 0;
}
/* Soft glow behind the circle */
.hero__thermostat-glow {
  position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,163,255,0.18) 0%, transparent 70%);
  transition: background 0.6s ease;
  animation: thermoGlow 3s ease-in-out infinite alternate;
}
#heroThermostat[data-mode="heat"] .hero__thermostat-glow { background: radial-gradient(circle, rgba(255,100,40,0.2) 0%, transparent 70%); }
#heroThermostat[data-mode="auto"] .hero__thermostat-glow { background: radial-gradient(circle, rgba(232,160,32,0.18) 0%, transparent 70%); }

/* SVG dial ring */
.hero__thermostat-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__thermostat-arc {
  stroke: var(--blue-lt);
  transition: stroke 0.5s ease;
}
#heroThermostat[data-mode="heat"] .hero__thermostat-arc { stroke: #FF8C42; }
#heroThermostat[data-mode="auto"] .hero__thermostat-arc { stroke: var(--amber); }
.hero__thermostat-ticks line {
  stroke: rgba(255,255,255,0.2); stroke-width: 1.5px; stroke-linecap: round;
}

/* Face plate — the circular body */
.hero__thermostat-face {
  position: relative; z-index: 2;
  width: 104px; height: 104px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-3) 0%, var(--slate) 100%);
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.hero__thermostat-mode {
  font-family: var(--font-cond); font-size: 0.70rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--blue-lt); text-transform: uppercase;
  transition: opacity 0.3s ease, color 0.4s ease;
}
#heroThermostat[data-mode="heat"] .hero__thermostat-mode { color: #FF8C42; }
#heroThermostat[data-mode="auto"] .hero__thermostat-mode { color: var(--amber); }
.hero__thermostat-temp {
  font-family: var(--font-head); font-size: 2.6rem; color: var(--ice); line-height: 1;
  text-shadow: 0 0 10px rgba(91,163,255,0.4);
  transition: opacity 0.3s ease, color 0.4s ease, text-shadow 0.4s ease;
}
#heroThermostat[data-mode="heat"] .hero__thermostat-temp { color: #FFB080; text-shadow: 0 0 16px rgba(255,100,40,0.2); }
#heroThermostat[data-mode="auto"] .hero__thermostat-temp { color: var(--amber-2); text-shadow: 0 0 16px rgba(232,160,32,0.35); }
.hero__thermostat-sub {
  font-family: var(--font-cond); font-size: 0.42rem; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase; margin-top: 2px;
}
.hero__thermostat-wifi {
  width: 16px; height: 11px; color: var(--blue-lt); margin-top: 4px;
  transition: color 0.4s ease;
}
#heroThermostat[data-mode="heat"] .hero__thermostat-wifi { color: #FF8C42; }
#heroThermostat[data-mode="auto"] .hero__thermostat-wifi { color: var(--amber); }

/* ━━━━ WIRE — absolute connector between thermostat and AC ━━━━ */
.hero__hvac-wire {
  position: absolute;
  left: 157px; bottom: 98px;
  width: 74px; height: 72px;
  overflow: visible;
  transition: left 0.45s ease, bottom 0.45s ease;
}
.hero__hvac-wire svg { width: 100%; height: 100%; overflow: visible; }
.hero__wire-path {
  stroke: rgba(91,163,255,1);
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.5s ease;
}
.hero__hvac-wire svg[data-mode="heat"] .hero__wire-path { stroke: rgba(255,100,40,1); }
.hero__hvac-wire svg[data-mode="auto"] .hero__wire-path { stroke: rgba(232,160,32,1); }
.hero__wire-pulse {
  fill: var(--blue-lt);
  opacity: 0.8;
}
.hero__hvac-wire svg[data-mode="heat"] .hero__wire-pulse { fill: #FF8C42; }
.hero__hvac-wire svg[data-mode="auto"] .hero__wire-pulse { fill: var(--amber); }

/* ━━━━ AC UNIT — absolute, ground-anchored ━━━━ */
.hero__ac-unit {
  position: absolute;
  left: 50%; bottom: 68px;
  transform: translateX(-50%);
  width: 112px;
}
.hero__ac-svg {
  width: 112px; height: 112px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5));
  overflow: visible;
}

/* Housing body — warm grey-beige like real units */
.ac-housing       { fill: #B8B4A8; }
.ac-housing-bevel { fill: none; stroke: rgba(255,255,255,0.15); stroke-width: 1px; }
[data-theme="dark"]  .ac-housing       { fill: #4A4840; }
[data-theme="dark"]  .ac-housing-bevel { stroke: rgba(255,255,255,0.08); }

/* Guard ring */
.ac-guard-outer        { fill: url(#acGuardG); }
.ac-guard-outer-stroke { stroke: rgba(0,0,0,0.2); }
.ac-guard-ring         { stroke: rgba(0,0,0,0.25); fill: none; }
.acGuard-c { stop-color: #A8A49A; }
.acGuard-e { stop-color: #888480; }
[data-theme="dark"] .acGuard-c { stop-color: #3E3C38; }
[data-theme="dark"] .acGuard-e { stop-color: #2C2A28; }

/* Spokes */
.ac-spokes line {
  stroke: rgba(0,0,0,0.3); stroke-width: 1px;
}
[data-theme="dark"] .ac-spokes line { stroke: rgba(0,0,0,0.55); }

/* Housing gradient stops */
.acHousing-hi { stop-color: #D0CCC0; }
.acHousing-lo { stop-color: #909088; }
[data-theme="dark"] .acHousing-hi { stop-color: #585450; }
[data-theme="dark"] .acHousing-lo { stop-color: #2E2C2A; }

/* Fan blades */
.ac-blade {
  fill: var(--blue-lt);
  opacity: 0.88;
  stroke: none;
  transition: fill 0.3s ease;
}
#heroAC[data-mode="heat"] .ac-blade { fill: #FF8C42; }
#heroAC[data-mode="auto"] .ac-blade { fill: var(--amber); }

/* Fan spin — constant speed regardless of mode */
.hero__ac-fan {
  animation: fanSpin 1s linear infinite;
  transform-origin: 0 0;
}

/* Hub cap */
.acHub-hi { stop-color: #C8C4BC; }
.acHub-lo { stop-color: #888480; }
[data-theme="dark"] .acHub-hi { stop-color: #504E4A; }
[data-theme="dark"] .acHub-lo { stop-color: #282624; }
.ac-hub         { }
.ac-hub-centre  { fill: rgba(0,0,0,0.35); }
.ac-bolt        { fill: rgba(0,0,0,0.3); }

/* Corner bolts */
.ac-bolt-corner { fill: #888480; stroke: rgba(0,0,0,0.3); stroke-width: 1px; }
[data-theme="dark"] .ac-bolt-corner { fill: #3A3836; }

/* Bottom strip + label */
.ac-strip { fill: rgba(0,0,0,0.15); }
.ac-label {
  font-family: var(--font-cond); font-size: 5px; font-weight: 700;
  letter-spacing: 0.12em; fill: rgba(0,0,0,0.5); text-transform: uppercase;
}
[data-theme="dark"] .ac-label { fill: rgba(255,255,255,0.3); }

/* LED status */
.hero__ac-led {
  fill: var(--blue-lt);
  filter: url(#none);
  animation: blink 2.4s ease-in-out infinite;
  transition: fill 0.3s ease;
}
#heroAC[data-mode="heat"] .hero__ac-led { fill: #FF8C42; }
#heroAC[data-mode="auto"] .hero__ac-led { fill: var(--amber); }

/* Air flow — horizontal streams blowing RIGHT from AC toward the house */
.hero__ac-airflow {
  position: absolute;
  left: calc(100% - 3.5px);
  top: 7px;
  width: 80px;
  height: 98px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  overflow: visible;
}
.hero__ac-airflow span {
  height: 2px; border-radius: 1px;
  background: linear-gradient(to right, var(--blue-lt), rgba(91,163,255,0.2));
  opacity: 0;
  transform-origin: left center;
  animation: airStreamH 1s ease-out infinite;
}
.hero__ac-airflow span:nth-child(1) { width: 87%;  animation-delay: 0s; }
.hero__ac-airflow span:nth-child(2) { width: 100%; animation-delay: 0.37s; }
.hero__ac-airflow span:nth-child(3) { width: 80%;  animation-delay: 0.74s; }
.hero__ac-airflow span:nth-child(4) { width: 95%;  animation-delay: 0.18s; }
.hero__ac-airflow span:nth-child(5) { width: 76%;  animation-delay: 0.55s; }
.hero__ac-airflow span:nth-child(6) { width: 93%;  animation-delay: 0.92s; }
#heroAirflow[data-mode="heat"] span { background: linear-gradient(to right, #FF8C42, rgba(255,140,66,0.2)); }
#heroAirflow[data-mode="auto"] span { background: linear-gradient(to right, var(--amber), rgba(232,160,32,0.2)); }

/* ============================================
   HERO HOUSE
   ============================================ */
/* Container — absolute right side, ground-anchored */
.hero__house {
  position: absolute;
  right: 8px; bottom: 68px;
  width: 148px;
  z-index: 3;
}
.hero__house-svg {
  width: 148px; height: 165px;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,0.45));
  overflow: visible;
}

/* ── House colour tokens — dark mode (default) ── */
.hRoof-t     { stop-color: #283550; }
.hRoof-b     { stop-color: #1A2440; }
.hWall-t     { stop-color: #1E2B4C; }
.hWall-b     { stop-color: #152038; }
.hWin-c      { stop-color: #FFD060; stop-opacity: 0.96; }
.hWin-e      { stop-color: #FFB030; stop-opacity: 0.55; }
.h-shadow    { fill: rgba(0,0,0,0.38); }
.h-fascia    { fill: #182038; }
.h-win-frame { fill: #253455; stroke: rgba(255,255,255,0.1); stroke-width: 1px; }
.h-win-cross { stroke: rgba(255,255,255,0.18); stroke-width: 1px; }
.h-door      { fill: #2B1E14; }
.h-door-arch { stroke: #3C2A1A; stroke-width: 1.5px; fill: none; }
.h-door-knob { fill: #C8A060; }
.h-vent-bg   { fill: rgba(91,163,255,0.18); stroke: rgba(91,163,255,0.35); stroke-width: 0.5px; }
.h-vent-slat { stroke: rgba(91,163,255,0.5); stroke-width: 1px; stroke-linecap: round; }

/* ── House colour tokens — light mode ── */
[data-theme="light"] .hRoof-t     { stop-color: #B35030; }
[data-theme="light"] .hRoof-b     { stop-color: #8C3C22; }
[data-theme="light"] .hWall-t     { stop-color: #EDD0A0; }
[data-theme="light"] .hWall-b     { stop-color: #D4B87A; }
[data-theme="light"] .hWin-c      { stop-color: #8AC8E8; stop-opacity: 0.95; }
[data-theme="light"] .hWin-e      { stop-color: #5AACCC; stop-opacity: 0.7; }
[data-theme="light"] .h-shadow    { fill: rgba(0,0,0,0.18); }
[data-theme="light"] .h-fascia    { fill: #8C3C22; }
[data-theme="light"] .h-win-frame { fill: #C8A070; stroke: rgba(0,0,0,0.12); }
[data-theme="light"] .h-win-cross { stroke: rgba(0,0,0,0.14); }
[data-theme="light"] .h-door      { fill: #7C3A20; }
[data-theme="light"] .h-door-arch { stroke: #5C2810; }
[data-theme="light"] .h-door-knob { fill: #C08010; }
[data-theme="light"] .h-vent-bg   { fill: rgba(26,109,212,0.1); stroke: rgba(26,109,212,0.3); }
[data-theme="light"] .h-vent-slat { stroke: rgba(26,109,212,0.5); }

/* ============================================
   HERO STATUS BAR
   ============================================ */
.hero__status-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 38px;
  display: flex; align-items: center;
  padding: 0 1.25rem;
  background: rgba(8,12,26,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 0 0 20px 20px;
  z-index: 3;
  font-family: var(--font-cond);
  overflow: hidden;
}
[data-theme="light"] .hero__status-bar {
  background: rgba(240,244,255,0.82);
  border-top: 1px solid rgba(0,0,0,0.08);
}
.hero__status-item {
  display: flex; align-items: center; gap: 0.35rem;
  flex: 1; justify-content: center;
}
.hero__status-icon { color: var(--muted); flex-shrink: 0; }
.hero__status-label {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.hero__status-value {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; color: var(--white);
}
.hero__status-hot { color: #FF9240 !important; }
[data-theme="light"] .hero__status-hot { color: #D45A00 !important; }
.hero__status-divider {
  width: 1px; height: 18px;
  background: var(--border);
  flex-shrink: 0;
}
/* Mode pill */
.hero__status-mode-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(91,163,255,0.12);
  border: 1px solid rgba(91,163,255,0.25);
  border-radius: 100px; padding: 0.15rem 0.6rem;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-lt);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.hero__status-mode-pill.heat {
  background: rgba(255,140,66,0.12);
  border-color: rgba(255,140,66,0.3);
  color: #FF8C42;
}
.hero__status-mode-pill.auto {
  background: rgba(232,160,32,0.12);
  border-color: rgba(232,160,32,0.3);
  color: var(--amber);
}
.hero__status-mode-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
/* System ON dot */
.hero__status-sys-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3DDC84;
  box-shadow: 0 0 6px rgba(61,220,132,0.6);
  animation: blink 3s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============================================
   TICKER
   ============================================ */
.ticker { background: var(--amber); overflow: hidden; padding: 0.85rem 0; position: relative; z-index: 1; }
.ticker__inner { display: flex; gap: 2.5rem; white-space: nowrap; animation: ticker 25s linear infinite; width: max-content; }
.ticker__inner span { font-family: var(--font-cond); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.ticker__dot { color: var(--navy) !important; opacity: 0.5; }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 7rem 0; background: var(--navy-2); position: relative; z-index: 1; }
.services__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.service-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; position: relative; transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden;
}
.service-card:hover { border-color: rgba(232,160,32,0.3); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.service-card--featured { border-color: rgba(232,160,32,0.4); background: linear-gradient(135deg,var(--navy-3) 0%,rgba(232,160,32,0.05) 100%); }
.service-card--commercial { background: linear-gradient(135deg,var(--navy-3) 0%,rgba(43,127,232,0.08) 100%); border-color: rgba(43,127,232,0.25); }

/* Card glow on hover */
.service-card__glow {
  position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(232,160,32,0.1) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.service-card__glow--blue { background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(43,127,232,0.12) 0%, transparent 60%); }
.service-card:hover .service-card__glow { opacity: 1; }

.service-card__icon { width: 48px; height: 48px; color: var(--amber); margin-bottom: 0.25rem; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card:hover .service-card__icon { transform: scale(1.15) rotate(-5deg); }
.service-card--commercial .service-card__icon { color: var(--blue-lt); }
.service-card h3 { font-family: var(--font-cond); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.03em; color: var(--white); }
.service-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }
.service-card__list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.25rem; }
.service-card__list li { font-size: 0.875rem; color: var(--muted); padding-left: 1.25rem; position: relative; }
.service-card__list li::before { content: '→'; position: absolute; left: 0; color: var(--amber); font-size: 0.8rem; }
.service-card__link { display: inline-block; margin-top: auto; padding-top: 0.75rem; font-family: var(--font-cond); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); transition: var(--transition); }
.service-card__link:hover { letter-spacing: 0.15em; }
.service-card--commercial .service-card__link { color: var(--blue-lt); }
.service-card__tag { display: inline-block; font-family: var(--font-cond); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; background: var(--amber); color: var(--navy); padding: 0.2rem 0.6rem; border-radius: 4px; position: absolute; top: 1.25rem; right: 1.25rem; }
.service-card__tag--alt { background: var(--blue); color: var(--white); }

/* ============================================
   WHY US
   ============================================ */
.why { padding: 7rem 0; position: relative; overflow: hidden; }
.why__bg { position: absolute; inset: 0; background: linear-gradient(135deg,var(--navy) 50%,var(--navy-3) 100%); }
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; position: relative; z-index: 1; }
.why__left .section-title { font-size: clamp(2rem,3.5vw,3rem); }
.why__left p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-top: 1rem; }
.why__right { display: flex; flex-direction: column; }
.why__item { display: flex; gap: 1.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.why__item:last-child { border-bottom: none; }
.why__item-num { font-family: var(--font-head); font-size: 2.5rem; color: rgba(232,160,32,0.45); line-height: 1; min-width: 3rem; transition: color var(--transition); }
.why__item:hover .why__item-num { color: var(--amber); }
.why__item-content h4 { font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; color: var(--white); margin-bottom: 0.5rem; }
.why__item-content p { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

/* ============================================
   PROCESS
   ============================================ */
.process { padding: 7rem 0; background: var(--navy-2); }
.process__steps { display: grid; grid-template-columns: repeat(4,1fr); }
.process__step { padding: 2.5rem 2rem; position: relative; text-align: center; border: 1px solid var(--border); border-right: none; background: var(--card-bg); transition: var(--transition); }
.process__step:last-child { border-right: 1px solid var(--border); }
.process__step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.process__step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.process__step:hover { background: rgba(232,160,32,0.04); }
.process__step-num { font-family: var(--font-head); font-size: 4rem; color: rgba(232,160,32,0.45); line-height: 1; margin-bottom: 1rem; transition: var(--transition); }
.process__step:hover .process__step-num { color: var(--amber); transform: scale(1.05); }
.process__step h4 { font-family: var(--font-cond); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; color: var(--white); margin-bottom: 0.75rem; }
.process__step p { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }

/* ============================================
   REVIEWS / TESTIMONIALS
   ============================================ */
.testimonials { padding: 7rem 0; position: relative; z-index: 1; }

/* Platform badges */
.review-platforms { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.review-platform {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  transition: var(--transition);
}
.review-platform:hover { border-color: rgba(232,160,32,0.3); transform: translateY(-2px); }
.review-platform--google:hover { border-color: rgba(66,133,244,0.4); }
.review-platform--yelp:hover   { border-color: rgba(255,26,26,0.4); }

.review-platform__info { display: flex; flex-direction: column; gap: 0.15rem; }
.review-platform__info strong { font-family: var(--font-cond); font-size: 0.95rem; font-weight: 700; color: var(--white); }
.review-platform__info small  { font-size: 0.75rem; color: var(--muted); }
.review-platform__stars { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: #FBBC05; }
.review-platform__stars span  { color: var(--white); font-weight: 700; font-family: var(--font-cond); }
.review-platform--yelp .review-platform__stars { color: #FF1A1A; }

/* Filter tabs */
.review-tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.review-tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; border-radius: 100px;
  font-family: var(--font-cond); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: var(--transition);
}
.review-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.review-tab.active { background: var(--amber); color: var(--navy); border-color: var(--amber); }

/* Testimonials grid */
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.testimonial {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: var(--transition); display: flex; flex-direction: column; gap: 0.75rem;
  animation: fadeInUp 0.5s ease both;
}
.testimonial:hover { border-color: rgba(232,160,32,0.2); transform: translateY(-4px); box-shadow: 0 16px 50px rgba(0,0,0,0.25); }
.testimonial--featured {
  background: linear-gradient(135deg,var(--navy-3) 0%,rgba(232,160,32,0.06) 100%);
  border-color: rgba(232,160,32,0.3); padding: 2rem;
}
.testimonial[style*="display: none"] { display: none !important; }

.testimonial__header { display: flex; align-items: center; gap: 0.75rem; }
.testimonial__avatar { width: 42px; height: 42px; background: var(--amber); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-cond); font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.testimonial__meta { flex: 1; }
.testimonial__meta strong { display: block; font-size: 0.95rem; color: var(--white); }
.testimonial__meta span   { font-size: 0.8rem; color: var(--muted); }

.testimonial__badge {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto;
  font-family: var(--font-cond); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 4px;
}
.testimonial__badge--google { background: rgba(66,133,244,0.12); color: #4285F4; border: 1px solid rgba(66,133,244,0.25); }
.testimonial__badge--yelp   { background: rgba(255,26,26,0.1); color: #FF1A1A; border: 1px solid rgba(255,26,26,0.2); }

.testimonial__stars { color: #FBBC05; letter-spacing: 0.1em; font-size: 0.95rem; }
.testimonial p { font-size: 0.95rem; color: var(--ice); line-height: 1.75; font-style: italic; flex: 1; }
.testimonial__date { font-size: 0.75rem; color: var(--muted); font-family: var(--font-cond); letter-spacing: 0.05em; }

/* ============================================
   LOCATION / MAP
   ============================================ */
.location { padding: 7rem 0; background: var(--navy-2); position: relative; z-index: 1; }

.location__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }

.location__map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.location__map-iframe {
  display: block; height: 480px; width: 100%; border: none;
  background: var(--navy-3);
  pointer-events: none;
  /* Skeleton shimmer while map tiles load */
  background-image: linear-gradient(90deg, var(--navy-3) 0%, var(--slate) 50%, var(--navy-3) 100%);
  background-size: 200% 100%;
  animation: mapSkeleton 1.5s ease-in-out infinite;
}
.location__map-wrap.is-interactive .location__map-iframe { pointer-events: auto; }
.location__map-iframe[src] {
  animation: none;
  background: var(--navy-3);
}
@keyframes mapSkeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Dark mode map tint */
[data-theme="dark"] .location__map-iframe { filter: invert(0.93) hue-rotate(180deg) saturate(0.6) brightness(0.75); }

.location__map-guard {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10,15,30,0.12), rgba(10,15,30,0.22));
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.location__map-wrap.is-interactive .location__map-guard {
  opacity: 0;
  pointer-events: none;
}
.location__map-guard-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(10,15,30,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.location__map-overlay { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; pointer-events: none; }
.location__map-card {
  background: rgba(10,15,30,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem;
  width: fit-content; max-width: 100%;
}
.location__map-card-icon { color: var(--amber); flex-shrink: 0; }
.location__map-card strong { display: block; font-family: var(--font-cond); font-size: 0.95rem; color: var(--white); font-weight: 700; }
.location__map-card span { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
[data-theme="light"] .location__map-guard {
  background: linear-gradient(180deg, rgba(240,244,255,0.08), rgba(240,244,255,0.18));
}
[data-theme="light"] .location__map-guard-pill {
  background: rgba(255,255,255,0.9);
  border-color: rgba(17,24,39,0.08);
  color: #111827;
}
[data-theme="light"] .location__map-card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(17,24,39,0.08);
}
[data-theme="light"] .location__map-card strong { color: #111827; }
[data-theme="light"] .location__map-card span { color: #5A6888; }
@media (max-width: 768px) {
  [data-theme="light"] .location__map-card { background: rgba(255,255,255,0.92) !important; }
}

.location__info { display: flex; flex-direction: column; gap: 2rem; }

.location__hours h4,
.location__service-areas h4 {
  font-family: var(--font-cond); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem;
}
.location__hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; }
.location__hours-grid span:nth-child(odd)  { color: var(--white); font-weight: 500; font-size: 0.9rem; }
.location__hours-grid span:nth-child(even) { color: var(--muted); font-size: 0.9rem; }

.location__emergency {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1rem; font-size: 0.85rem; color: var(--amber);
  background: rgba(232,160,32,0.08); border: 1px solid rgba(232,160,32,0.2);
  padding: 0.6rem 0.875rem; border-radius: 6px;
}

.location__areas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.location__areas span {
  font-family: var(--font-cond); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--card-bg); border: 1px solid var(--border);
  padding: 0.35rem 0.75rem; border-radius: 100px; transition: var(--transition);
}
.location__areas span:hover { color: var(--white); border-color: var(--amber); }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 7rem 0; position: relative; overflow: hidden; background: var(--navy-2); }
.contact__bg { position: absolute; inset: 0; overflow: hidden; }
.contact__glow { position: absolute; width: 600px; height: 600px; background: var(--amber); border-radius: 50%; filter: blur(140px); opacity: 0.05; top: -200px; right: -200px; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; position: relative; z-index: 1; }
.contact__left .section-title { font-size: clamp(2rem,3vw,2.8rem); }
.contact__left p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-top: 1rem; margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 1rem; }
.contact__detail { display: flex; align-items: center; gap: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.contact__detail svg { color: var(--amber); flex-shrink: 0; }

.contact__form { display: flex; flex-direction: column; gap: 1.25rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field label { font-family: var(--font-cond); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--input-bg); border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.875rem 1rem; color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
  width: 100%; transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,160,32,0.1);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(136,153,187,0.4); }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238899BB' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer;
}
.form-field select option { background: var(--navy-2); }
.form-field textarea { resize: vertical; min-height: 100px; }

.contact__success { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; background: var(--card-bg); border: 1px solid rgba(232,160,32,0.3); border-radius: var(--radius); padding: 4rem 2.5rem; min-height: 300px; }
.contact__success.visible { display: flex; }
.contact__success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(232,160,32,0.15); border: 2px solid var(--amber); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--amber); animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.contact__success h4 { font-family: var(--font-head); font-size: 2rem; color: var(--white); }
.contact__success p { color: var(--muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--navy); border-top: 1px solid var(--border); padding: 4rem 0 2rem; position: relative; z-index: 1; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer__brand .nav__logo { margin-bottom: 1rem; font-size: 1.2rem; }
.footer__brand p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.5rem; }
.footer__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer__badges span { font-family: var(--font-cond); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 0.3rem 0.7rem; border-radius: 4px; }
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links h5 { font-family: var(--font-cond); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.25rem; }
.footer__links a { font-size: 0.9rem; color: var(--muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__contact h5 { font-family: var(--font-cond); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer__contact p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.footer__contact strong { color: var(--white); font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 0.75rem; }
.footer__bottom a { color: var(--amber); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--amber-2); }

/* ============================================
   DEMO BANNER
   ============================================ */
.demo-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 130;
  width: 100%;
  max-width: 674px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(232,160,32,0.24);
  background: rgba(10,15,30,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}
.demo-banner.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.demo-banner.is-hidden { display: none; }
.demo-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.5;
}
.demo-banner a {
  color: var(--amber);
  font-weight: 700;
}
.demo-banner__close {
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
[data-theme="light"] .demo-banner {
  background: rgba(255,255,255,0.92);
  border-color: rgba(17,24,39,0.08);
}
[data-theme="light"] .demo-banner p,
[data-theme="light"] .demo-banner__close {
  color: #111827;
}
[data-theme="light"] .demo-banner__close {
  background: rgba(17,24,39,0.04);
  border-color: rgba(17,24,39,0.08);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp   { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ticker    { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes barPulse  { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 0.8; transform: scaleY(1); } }
@keyframes ringPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.05); } }
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes glowFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }
@keyframes gridDrift { 0% { background-position: 0 0; } 100% { background-position: 60px 60px; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes particleRise {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.8; }
  80%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.3) translateX(calc((var(--rand,0.5) - 0.5) * 40px)); }
}
@keyframes successPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fanSpin   { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes airStream {
  0%   { opacity: 0; transform: translateY(0); }
  15%  { opacity: 0.65; }
  85%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(60px); }
}
@keyframes airStreamH {
  0%   { opacity: 0; transform: scaleX(0); }
  18%  { opacity: 0.78; }
  72%  { opacity: 0.45; transform: scaleX(0.88); }
  100% { opacity: 0; transform: scaleX(1); }
}
@keyframes thermoGlow { from { opacity: 0.7; } to { opacity: 1; } }
@keyframes cactusSwayLeft {
  0%, 100% { transform: rotate(-1.1deg) translateX(0); }
  50% { transform: rotate(1deg) translateX(1px); }
}
@keyframes cactusSwayRight {
  0%, 100% { transform: rotate(0.9deg) translateX(0); }
  50% { transform: rotate(-1deg) translateX(-1px); }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {

  .hero__content { grid-template-columns: 1fr; }
  .hero__visual { display: flex; justify-content: center; margin-top: 2rem; }
  .hero__visual { display: none !important; }
  /* Hero scene — 480×320 card, ground offset ~61px */
  .hero__thermostat { left: 10px; bottom: 67px; width: 122px; height: 122px; }
  .hero__thermostat::after { width: 78px; height: 14px; bottom: -22px; }
  .hero__thermostat-face { width: 84px; height: 84px; }
  .hero__thermostat-temp { font-size: 2rem; }
  .hero__hvac-wire { left: 134px; bottom: 121px; width: 61px; height: 59px; }
  .hero__ac-unit { left: 50%; bottom: 51px; width: 90px; transform: translateX(-50%); }
  .hero__ac-svg { width: 90px; height: 90px; }
  .hero__ac-airflow { width: 126px; height: 78px; }
  .hero__house { bottom: 51px; width: 122px; }
  .hero__house-svg { width: 122px; height: 136px; }
  .hero__unit-ring--1 { width: 370px; height: 370px; }
  .hero__unit-ring--2 { width: 430px; height: 430px; }
  .hero__unit-ring--3 { width: 490px; height: 490px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .why__inner { grid-template-columns: 1fr; gap: 3rem; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__step { border: 1px solid var(--border); border-radius: 0; }
  .process__step:nth-child(1) { border-radius: var(--radius) 0 0 0; }
  .process__step:nth-child(2) { border-radius: 0 var(--radius) 0 0; border-left: none; }
  .process__step:nth-child(3) { border-radius: 0 0 0 var(--radius); border-top: none; }
  .process__step:nth-child(4) { border-radius: 0 0 var(--radius) 0; border-top: none; border-left: none; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .location__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile-toggle { display: none; } /* hidden — now inside nav__mobile-controls */
  .nav__mobile-controls { display: flex; }
  .nav__mobile { display: flex; }
  .hero { padding: 7rem 2rem 4rem; }
  .hero__title-line { font-size: clamp(3.5rem,15vw,6rem); }
  .hero__stats { gap: 1.25rem; flex-wrap: wrap; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .process__step,
  .process__step:nth-child(1),
  .process__step:nth-child(2),
  .process__step:nth-child(3),
  .process__step:nth-child(4) { border-radius: 0; border: 1px solid var(--border); border-bottom: none; }
  .process__step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .process__step:last-child { border-bottom: 1px solid var(--border); }
  .process__step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .review-platforms { flex-direction: column; align-items: center; }
}

/* ============================================
   MOBILE LAYOUT (≤ 768px)
   Animation kills are handled above via
   the mobile media-query performance block.
   This block handles layout only.
   ============================================ */
@media (max-width: 768px) {

  /* Reveal — simpler fade only, no translate */
  .reveal { transform: none; opacity: 0; transition: opacity 0.4s ease; }
  .reveal.visible { opacity: 1; transform: none; }

  /* Ticker — slow it down */
  .ticker__inner { animation-duration: 40s; gap: 1.5rem; }
  .ticker__inner span { font-size: 0.8rem; }

  /* ── Hero ── */
  .hero {
    padding: 6rem 1.25rem 3rem;
    min-height: 100vh;
    min-height: 100svh;
    height: 100svh;
    box-sizing: border-box;
  }
  .hero__content { gap: 2.5rem; }
  .hero__title-line { font-size: clamp(3.2rem, 14vw, 5.5rem); }

  .hero__scroll-hint { bottom: 0;}
  
  .hero__sub { font-size: 1rem; max-width: 100%; }
  /* Actions + stats side by side on mobile */
  .hero__actions-row {
    display: flex; flex-direction: row; align-items: center;
    gap: 1.25rem; width: 100%;
  }
  /* Kill the desktop margin-bottom that was pushing stats down */
  .hero__actions-row .hero__actions {
    margin-bottom: 0;
    flex: 0 0 auto; flex-direction: column; gap: 0.65rem;
    width: 155px;
  }
  .hero__actions-row .hero__actions .btn {
    width: 100%; justify-content: center;
    padding: 0.75rem 0.875rem; font-size: 0.82rem;
  }
  /* Stats 2-col grid, vertically centred with the buttons */
  .hero__actions-row .hero__stats {
    flex: 1; min-width: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem; align-items: center; align-self: center;
    max-width: 190px;
  }
  .hero__stat-divider { display: none; }
  .hero__stat { align-items: flex-start; }
  .hero__stat strong { font-size: 1.15rem; line-height: 1; }
  .hero__stat span { font-size: 0.6rem; line-height: 1.25; }

  /* hero unit hidden on mobile via the performance block above */

  /* ── Section spacing ── */
  .section-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .section-sub { font-size: 0.95rem; }
  .section-header { margin-bottom: 2.5rem; }
  .services { padding: 4rem 0; }
  .why { padding: 4rem 0; }
  .process { padding: 4rem 0; }
  .testimonials { padding: 4rem 0; }
  .location { padding: 4rem 0; }
  .contact { padding: 4rem 0; }

  /* ── Grids ── */
  .services__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .process__step,
  .process__step:nth-child(1),
  .process__step:nth-child(2),
  .process__step:nth-child(3),
  .process__step:nth-child(4) { border-radius: 0; border: 1px solid var(--border); border-bottom: none; }
  .process__step:last-child { border-bottom: 1px solid var(--border); }
  .process__step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .process__step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .review-platforms { flex-direction: column; align-items: center; }

  /* ── Cards ── */
  .service-card { padding: 1.5rem; }
  .service-card__icon { width: 40px; height: 40px; }

  /* ── Demo Banner ── */
  .demo-banner {
    width: calc(100% - 1rem);
    bottom: 0.5rem;
    padding: 0.8rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .demo-banner__close {
    width: 100%;
    text-align: center;
  }

  /* ── Why ── */
  .why__item { gap: 1rem; padding: 1.25rem 0; }
  .why__item-num { font-size: 2rem; min-width: 2.5rem; }

  /* ── Reviews ── */
  .review-tab { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
  .testimonial { padding: 1.25rem; }
  .testimonial--featured { padding: 1.5rem; }

  /* ── Map ── */
  .location__map-iframe { height: 320px; }
  .location__map-card { flex-direction: column; gap: 0.5rem; }
  .location__inner { gap: 2rem; }
  .location__info { gap: 1.5rem; }

  /* ── Contact ── */
  .contact__form { padding: 1.5rem; gap: 1rem; }

  /* ── Footer ── */
  .footer { padding: 3rem 0 1.5rem; }
  .footer__bottom { font-size: 0.75rem; }
}

/* ── Extra small phones ── */
@media (max-width: 400px) {
  .hero__title-line { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero__actions-row .hero__stats { gap: 0.35rem 0.5rem; }
  .hero__stat strong { font-size: 0.95rem; }
  .hero__stat span { font-size: 0.56rem; }
  .hero__actions-row .hero__actions { width: 140px; }
  .hero__actions-row .hero__actions .btn { font-size: 0.78rem; padding: 0.65rem 0.75rem; }

  .review-tabs { flex-wrap: wrap; justify-content: center; }
}
