/* ==========================================================================
   Heat Pump Specialists — design system
   Palette, type and rules per FILE 1 — WEBSITE BUILD PROMPT v2
   ========================================================================== */

:root {
  --off-black: #0e1410;
  --forest: #1a2e22;
  --slate: #2c3e35;
  --white: #ffffff;
  --off-white: #f7f9f6;
  --bg-sage: #edf5ea;
  --sage-dark: #cfe3c9;
  --cream: #f5f3ee;
  --grad: linear-gradient(135deg, #3db85a 0%, #1e7a35 100%);
  --green: #2a9e47;
  --text-dark: #1a2e22;
  --text-mid: #3d5247;
  --text-light: #5d7a68;
  --text-muted: #94a89d;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-xl: 28px;
  --shadow-hover: 0 24px 60px rgba(26, 46, 34, 0.14);
  --container: 1200px;

  /* ---- Motion system (design-motion-principles) ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* strong ease-out for entrances/UI */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* on-screen movement */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);     /* iOS-like */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* subtle overshoot */
  --dur-fast: 140ms;
  --dur-ui: 220ms;
  --dur-slow: 420ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body.hps {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.hps ::selection { background: #1e7a35; color: #fff; }
body.hps :focus-visible { outline: 2px solid #3db85a; outline-offset: 3px; border-radius: 2px; }
body.hps img, body.hps video { max-width: 100%; display: block; }
/* Anchors keep their own component colours; only reset the underline.
   (A former `color: inherit` here was silently overriding every button/link
   colour via specificity — dark text on the green CTAs, dark textlinks, etc.
   Every anchor in the markup carries a component/context colour rule, so no
   link falls back to the browser default.) */
body.hps a { text-decoration: none; }

.hps-container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.hps-narrow { max-width: 900px; }
.hps-section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

/* Type */
.hps-h1, .hps-h2, .hps-h2-final, .hps-page-h1 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.hps-h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.hps-h2-final { font-size: clamp(1.9rem, 3.4vw, 3.2rem); color: #fff; }
.hps-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.1rem;
}
.hps-body { color: var(--text-mid); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; max-width: 40em; }
.hps-data {
  font-family: var(--sans);
  font-weight: 800;
  color: var(--green);
}

/* Buttons */
.hps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.95em 1.9em;
  border: 0;
  cursor: pointer;
  transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.hps-btn:hover { transform: translateY(-2px); }
.hps-btn:active { transform: translateY(0) scale(0.97); transition-duration: var(--dur-fast); }
.hps-btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 32px rgba(42, 158, 71, 0.28);
}
.hps-btn-grad:hover { box-shadow: 0 14px 44px rgba(42, 158, 71, 0.4); }
/* keep our green gradient on hover/focus even under themes (e.g. Kadence) that
   force their own button hover colour */
body.hps .hps-btn-grad:hover, body.hps .hps-btn-grad:focus, body.hps .hps-btn-grad:focus-visible,
body.hps a.hps-btn-grad:hover, body.hps button.hps-btn-grad:hover {
  background: var(--grad); color: #fff;
}
.hps-btn-sm { padding: 0.65em 1.35em; font-size: 0.9rem; }
.hps-btn-xl { padding: 1.1em 2.5em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.hps-btn-ghost { border: 1px solid rgba(255,255,255,0.3); color: #fff; background: rgba(14,20,16,0.35); backdrop-filter: blur(6px); }
.hps-btn-ghost:hover { border-color: #3db85a; }
.hps-micro { display: block; margin-top: 0.7rem; font-size: 0.82rem; color: var(--text-light); }
.hps-micro.on-dark { color: rgba(255,255,255,0.64); }
.hps-textlink { color: var(--green); font-weight: 600; border-bottom: 1px solid transparent; }
.hps-textlink:hover { border-bottom-color: var(--green); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.hps-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.hps-nav.scrolled { background: rgba(14, 20, 16, 0.86); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.hps-nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hps-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; }
.hps-logo-mark {
  font-family: var(--serif);
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  border-radius: 10px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.hps-logo-text { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.hps-logo-text em { font-style: normal; font-weight: 400; opacity: 0.8; }
.hps-nav-links { display: flex; gap: 1.4rem; margin-inline: auto; }
.hps-nav-links a { color: rgba(255,255,255,0.82); font-size: 0.88rem; font-weight: 500; }
.hps-nav-links a:hover { color: #fff; }
.hps-nav-links a.active { color: #3db85a; }
.hps-nav-right { display: flex; align-items: center; gap: 1.1rem; }
.hps-nav-phone { color: rgba(255,255,255,0.85); font-size: 0.86rem; font-weight: 600; }
.hps-burger { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.hps-burger span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.3s ease, opacity 0.3s ease; }
.hps-mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: var(--off-black);
  padding: 6rem 2rem 2rem;
  flex-direction: column; gap: 1.2rem;
}
.hps-mobile-menu a { color: #fff; font-size: 1.15rem; font-weight: 600; }
.hps-mobile-menu .hps-btn { justify-content: center; }
.hps-mobile-phone { color: rgba(255,255,255,0.7) !important; font-size: 0.95rem !important; }
body.menu-open .hps-mobile-menu { display: flex; }
body.menu-open .hps-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hps-burger span:nth-child(2) { opacity: 0; }
body.menu-open .hps-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Sticky CTA bar */
.hps-sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.8rem 1.25rem;
  background: rgba(14, 20, 16, 0.88);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(110%);
  transition: transform 0.4s ease;
}
.hps-sticky-cta.visible { transform: translateY(0); }

/* ==========================================================================
   Cinematic scroll hero
   ========================================================================== */
.hps-hero-scroll { position: relative; background: var(--off-black); }
#hps-scroll-space { height: 700vh; }
#hps-seq, #hps-mist {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}
#hps-mist { z-index: 1; }
.hps-hero-scroll .hero-layer {
  position: fixed; inset: 0; z-index: 5;
  display: flex; align-items: center;
  pointer-events: none;
  opacity: 0; visibility: hidden;
}
.hero-layer a, .hero-layer .hps-est, .hero-layer .hps-est input, .hero-layer .hps-est button { pointer-events: auto; }
.hero-layer-inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.hero-brand {
  font-family: var(--serif);
  font-weight: 700;
  color: #fff;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  letter-spacing: -0.02em;
  line-height: 1.03;
  text-shadow: 0 2px 44px rgba(6,10,8,0.6);
}
.hero-brand .word { display: inline-block; white-space: nowrap; }
.hero-brand .ch { display: inline-block; }
.hero-brand .sp { display: inline-block; width: 0.28em; }
.hero-sub { margin-top: 1rem; color: rgba(255,255,255,0.88); font-weight: 500; font-size: 1rem; max-width: 36em; text-shadow: 0 1px 24px rgba(6,10,8,0.7); }
.hero-fragments { list-style: none; }
.hero-fragments li {
  font-family: var(--serif);
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  text-shadow: 0 2px 30px rgba(6,10,8,0.65);
}
.hero-warm-h { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(2.4rem, 5vw, 4.4rem); text-shadow: 0 2px 40px rgba(6,10,8,0.55); }
.hero-warm-s { margin-top: 0.9rem; color: rgba(255,255,255,0.72); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-13 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 8rem;
  line-height: 1;
  transform-origin: center;
  background: linear-gradient(135deg, #4fd473 0%, #2a9e47 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 44px rgba(42,158,71,0.4));
}
.hero-13-stats { margin-top: 1rem; color: rgba(255,255,255,0.72); font-size: clamp(0.95rem, 1.3vw, 1.08rem); }
.hero-13-stats .dim { color: rgba(255,255,255,0.45); }
.hero-scroll-hint {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  z-index: 6; color: rgba(255,255,255,0.55); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  pointer-events: none;
}
.hero-scroll-hint::after { content: ''; width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent); animation: hps-drip 1.8s ease infinite; }
@keyframes hps-drip { 0% { transform: scaleY(0); transform-origin: top; } 60% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(1); opacity: 0; } }
#hps-hero-loader {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.3rem;
  background: var(--off-black);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#hps-hero-loader.done { opacity: 0; visibility: hidden; }
#hps-hero-loader .mark { font-family: var(--serif); font-weight: 700; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#hps-hero-loader .bar { width: min(220px, 50vw); height: 2px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; }
#hps-hero-loader .bar span { display: block; width: 0%; height: 100%; background: var(--grad); transition: width 0.25s ease; }

/* Static hero fallback (mobile / reduced motion / assets pending) */
.hps-hero-static {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  position: relative;
  background: radial-gradient(120% 90% at 70% 20%, rgba(42,158,71,0.16) 0%, rgba(14,20,16,0) 55%), var(--off-black);
  overflow: hidden;
}
.hps-hero-static .bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.55; }
.hps-hero-static::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,16,0.2) 30%, rgba(14,20,16,0.94) 100%); }
.hps-hero-static .hero-static-copy { position: relative; z-index: 2; padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 5rem); max-width: var(--container); margin-inline: auto; width: 100%; }

/* Content sections after the hero sit above the fixed canvas */
.hps-main { position: relative; z-index: 20; background: var(--white); }

/* ==========================================================================
   Section 2 — Trust bar
   ========================================================================== */
.hps-trustbar { background: var(--white); border-top: 3px solid; border-image: var(--grad) 1; padding-block: 2rem; }
.hps-trustbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.15rem 2.4rem; }
.hps-trust-item { font-size: 0.88rem; font-weight: 600; color: var(--text-mid); display: inline-flex; align-items: center; gap: 0.5em; }
.hps-trust-item .tick-mini { color: var(--green); font-weight: 800; }
.hps-trust-item.lead { font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.hps-trust-item.lead .hg-badge { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.62rem; font-weight: 800; }
.hps-trust-sub { width: 100%; text-align: center; font-size: 0.82rem; line-height: 1.6; color: var(--text-light); margin-top: 1rem; padding-top: 1rem; padding-inline: clamp(0rem, 10vw, 11rem); border-top: 1px solid var(--bg-sage); }

/* ==========================================================================
   Section 3 — Pain (forest green)
   ========================================================================== */
.hps-pain { background: var(--forest); color: #fff; }
.hps-two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hps-pain .hps-h2 { color: #fff; }
.hps-quote {
  margin: 1.6rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid #3db85a;
  font-style: italic;
  font-weight: 600;
  color: var(--text-mid); /* dark by default: safe on light sections (the common case) */
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}
/* Restore light text where a quote sits on a dark section */
.hps-pain .hps-quote,
.hps-final-cta .hps-quote,
.hps-bridge .hps-quote,
.hps-hero-scroll .hps-quote { color: rgba(255,255,255,0.84); }
.hps-pain-body { margin-top: 1.8rem; color: rgba(255,255,255,0.74); line-height: 1.7; }
.hps-pain-bold { margin-top: 1.15rem; color: #fff; font-weight: 600; }
.hps-img-card { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-hover); }
.hps-img-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.6; }

/* ==========================================================================
   Section 4 — Solution checklist
   ========================================================================== */
.hps-solution { background: var(--white); }
.hps-checklist { list-style: none; margin-top: 2rem; display: grid; gap: 1.15rem; }
.hps-checklist li { display: flex; gap: 0.8em; align-items: flex-start; color: var(--text-mid); font-size: 1rem; line-height: 1.6; }
.hps-checklist li strong { color: var(--text-dark); }
.hps-tick {
  flex: 0 0 22px; height: 22px; margin-top: 2px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.hps-tick svg { width: 12px; height: 12px; }
.hps-service-icon svg { width: 20px; height: 20px; }
.hps-trust-item.lead .hg-badge svg { width: 12px; height: 12px; }
.hps-identity { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 2px solid; border-image: var(--grad) 1; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--text-dark); }

/* ==========================================================================
   Section 5 — Social proof (sage)
   ========================================================================== */
.hps-proof { background: var(--bg-sage); }
.hps-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.4rem; }
.hps-review-card {
  background: var(--white);
  border: 1px solid var(--sage-dark);
  border-radius: 18px;
  padding: 1.85rem;
  box-shadow: 0 10px 30px rgba(26,46,34,0.06);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hps-review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hps-review-head { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.hps-review-head span { display: block; font-weight: 500; color: var(--text-light); font-size: 0.82rem; margin-top: 0.25rem; }
.hps-review-service { font-size: 0.8rem; color: var(--text-light); font-style: italic; }
.hps-review-body { font-size: 0.94rem; color: var(--text-mid); font-style: italic; line-height: 1.65; }
.hps-stars { color: #e8a13a; font-size: 0.9rem; letter-spacing: 0.1em; margin-top: auto; }
.hps-stars small { color: var(--text-light); letter-spacing: 0; margin-left: 0.4em; }
.hps-data-highlight { text-align: center; margin-top: 3.6rem; }
.hps-data-highlight .big { font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; color: var(--green); line-height: 1; }
.hps-data-highlight p { color: var(--text-mid); margin-top: 0.5rem; }
.hps-data-highlight p.dim { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Section 6 — Estimate embed
   ========================================================================== */
.hps-estimate { background: var(--bg-sage); }
.hps-estimate .hps-trust-line { font-size: 0.84rem; color: var(--text-light); margin: 1rem 0 2rem; }
.estimate-embed-wrapper {
  background: var(--bg-sage);
  border: 1px solid var(--sage-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-hover);
}
.hps-reassure { margin-top: 1.4rem; font-size: 0.8rem; color: var(--text-muted); }

/* Alternate estimate section colour when following a sage section */
.hps-estimate.alt { background: var(--off-white); }
.hps-estimate.alt .estimate-embed-wrapper { background: var(--bg-sage); }

/* ==========================================================================
   Section 7 — Services
   ========================================================================== */
.hps-services { background: var(--white); }
.hps-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.4rem; }
.hps-service-card {
  background: var(--off-white);
  border-radius: 18px;
  padding: 1.9rem 1.65rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.hps-service-card:hover { border-bottom-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.hps-service-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.hps-service-card p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.6; flex: 1; }
.hps-service-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-sage); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* ==========================================================================
   Section 8 — FAQ (cream)
   ========================================================================== */
.hps-faq { background: var(--cream); }
.hps-faq-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hps-faq-side { position: sticky; top: 6.5rem; }
.hps-accordion { display: grid; gap: 0.8rem; }
.hps-acc-item { background: var(--white); border: 1px solid #e7e2d6; border-radius: 14px; overflow: hidden; }
.hps-acc-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 1.4rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--text-dark);
  position: relative; min-height: 44px; line-height: 1.45;
}
.hps-acc-q::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.3rem; font-weight: 400; transition: transform 0.3s ease; }
.hps-acc-item.open .hps-acc-q::after { transform: translateY(-50%) rotate(45deg); }
.hps-acc-a { max-height: 0; overflow: hidden; transition: max-height 0.45s ease; }
.hps-acc-a-inner { padding: 0 1.4rem 1.4rem; color: var(--text-mid); font-size: 0.95rem; line-height: 1.65; }
.hps-acc-a-inner em { display: block; margin-top: 0.6rem; }

/* ==========================================================================
   Section 9 — Grant (slate)
   ========================================================================== */
.hps-grant { background: var(--slate); color: #fff; }
.hps-grant .hps-h2 { color: #fff; }
.hps-grant .hps-body { color: rgba(255,255,255,0.82); }
.hps-grant-table { margin-top: 1.8rem; display: grid; gap: 0.85rem; font-size: 0.95rem; }
.hps-grant-table div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.hps-grant-table span:first-child { color: rgba(255,255,255,0.72); }
.hps-grant-table span:last-child { font-weight: 600; text-align: right; }
.hps-quote-visual {
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-hover);
}
.hps-quote-visual .row { display: flex; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.hps-quote-visual .row.total { border: 0; font-weight: 800; font-size: 1.25rem; color: #fff; }
.hps-quote-visual .row.total span:last-child { color: #4fd473; }
.hps-quote-visual .note { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.8rem; }
.hps-quote-visual .finance { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 0.4rem; }

/* ==========================================================================
   Section 10 — Final CTA
   ========================================================================== */
.hps-final-cta { background: var(--off-black); text-align: center; padding-block: clamp(6rem, 14vw, 10rem); }
.hps-final-cta .hps-btn { margin-top: 2.6rem; }
.hps-final-trust { margin-top: 2.6rem; font-size: 0.78rem; letter-spacing: 0.1em; line-height: 1.7; text-transform: uppercase; color: rgba(255,255,255,0.55); }

/* ==========================================================================
   Sub-pages
   ========================================================================== */
.hps-page-hero {
  background: radial-gradient(110% 80% at 75% 10%, rgba(42,158,71,0.18) 0%, rgba(14,20,16,0) 55%), linear-gradient(160deg, var(--off-black) 0%, var(--forest) 100%);
  color: #fff;
  padding: clamp(8rem, 16vw, 11rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}
.hps-page-h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: #fff; }
.hps-page-hero .hps-body { color: rgba(255,255,255,0.72); margin-top: 1.1rem; }
.hps-page-hero .hps-btn { margin-top: 1.8rem; }
.hps-prose h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.01em; margin: 2.6rem 0 0.9rem; }
.hps-prose h3 { font-weight: 700; font-size: 1.12rem; margin: 1.8rem 0 0.6rem; }
.hps-prose p { color: var(--text-mid); margin-bottom: 1rem; max-width: 46em; }
.hps-prose ul { margin: 0 0 1rem 1.2rem; color: var(--text-mid); }
.hps-stat-strip { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2rem 0; }
.hps-stat-strip .stat b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--green); }
.hps-stat-strip .stat span { font-size: 0.82rem; color: var(--text-light); }

/* Reveal states */
.reveal { opacity: 0; transform: translateY(28px); }
.revealed { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
body.no-motion .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hps-nav-links { display: none; }
  .hps-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hps-two-col { grid-template-columns: 1fr; }
  .hps-faq-grid { grid-template-columns: 1fr; }
  .hps-faq-side { position: static; }
  .hps-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 767px) {
  .hps-nav-right { display: none; }
  .hps-burger { display: flex; }
  .hps-cards-3, .hps-cards-4 { grid-template-columns: 1fr; }
  .hps-btn-grad { width: 90%; justify-content: center; }
  .hps-nav .hps-btn-grad, .hps-sticky-cta .hps-btn-grad { width: auto; }
  .estimate-embed-wrapper { padding: 24px 16px; }
  .estimate-embed-wrapper iframe { height: 700px !important; }
  .hps-sticky-cta { flex-direction: column; gap: 0.6rem; text-align: center; }
  .hero-13 { font-size: 5rem; }
  .hps-footer-grid { grid-template-columns: 1fr !important; }
}

/* Footer */
.hps-footer { position: relative; z-index: 20; background: var(--off-black); color: rgba(255,255,255,0.75); padding-top: clamp(3rem, 7vw, 5rem); }
.hps-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.6rem; padding-bottom: 3.4rem; }
.hps-footer h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.hps-footer a { display: block; font-size: 0.9rem; padding: 0.32rem 0; color: rgba(255,255,255,0.74); }
.hps-footer a:hover { color: #4fd473; }
.hps-footer-desc { font-size: 0.88rem; line-height: 1.65; color: rgba(255,255,255,0.66); margin-top: 1.1rem; max-width: 34em; }
.hps-footer-badges { margin-top: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.hps-footer-badges strong { color: #4fd473; }
.hps-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.4rem 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.52); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hps-btn, .hps-service-card, .hps-review-card { transition: none; }
}


/* ===== v2 hero additions: Into The Machine ===== */
.hero-eng-h {
  font-family: var(--serif); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.06;
  text-shadow: 0 2px 40px rgba(6,10,8,0.6);
}
.hero-eng-body { margin-top: 1.1rem; color: rgba(255,255,255,0.78); font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 38em; text-shadow: 0 1px 24px rgba(6,10,8,0.7); }
.hero-eng-body .wd { display: inline-block; }
.hero-specs { display: grid; gap: 1.15rem; max-width: 580px; }
.spec {
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: #4fd473; padding-left: 0.95rem; border-left: 2px solid #3db85a;
  text-shadow: 0 1px 20px rgba(6,10,8,0.75);
}
.hero-numbers { display: flex; gap: clamp(2rem, 6vw, 5rem); justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.hero-numbers .fig {
  display: block; font-family: var(--sans); font-weight: 800; font-size: 6rem; line-height: 1;
  background: linear-gradient(135deg, #4fd473 0%, #2a9e47 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform-origin: bottom center;
  filter: drop-shadow(0 6px 40px rgba(42, 158, 71, 0.4));
}
.hero-numbers .fig.big { font-size: 7rem; }
.hero-numbers small { display: block; margin-top: 0.9rem; color: rgba(255,255,255,0.72); font-size: 0.88rem; line-height: 1.5; max-width: 22em; }
@media (max-width: 767px) { .hero-numbers .fig { font-size: 3.6rem; } .hero-numbers .fig.big { font-size: 4.4rem; } }

/* ===== Sub-page additions ===== */
.hps-bill-table { margin: 1.4rem 0 1.8rem; display: grid; gap: 0; border: 1px solid var(--sage-dark); border-radius: 14px; overflow: hidden; }
.hps-bill-table > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.2rem; font-size: 0.95rem; color: var(--text-mid); background: var(--white); }
.hps-bill-table > div:nth-child(odd) { background: var(--off-white); }
.hps-bill-table > div.total { font-weight: 800; color: var(--text-dark); background: var(--bg-sage); }
.hps-bill-table > div.total span:last-child { color: var(--green); }
.hps-prose [id] { scroll-margin-top: 6.5rem; }
.hps-prose .hps-textlink { font-weight: 600; }
.hps-subpage .hps-main { background: var(--white); }

/* ===== Cinematic grain (injected on desktop by hps-home.js) ===== */
#hps-grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: hps-grain-shift 0.9s steps(4) infinite;
}
@keyframes hps-grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}
@media (max-width: 767px), (prefers-reduced-motion: reduce) { #hps-grain { display: none; } }

/* ===== v3: progress hairline, refined nav, fullscreen menu, scrim, loader ===== */
#hps-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 210; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.hps-nav-links { display: flex; gap: 1.5rem; margin-inline: auto; }
.hps-nav-links .nl { position: relative; color: rgba(255,255,255,0.82); font-size: 0.86rem; font-weight: 500; padding: 0.3rem 0; }
.hps-nav-links .nl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1); }
.hps-nav-links .nl:hover::after, .hps-nav-links .nl.active::after { transform: scaleX(1); transform-origin: left; }
.hps-nav-links .nl.active { color: #4fd473; }
.hps-burger { display: none; position: relative; z-index: 260; background: none; border: 0; cursor: pointer; width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 7px; align-items: center; }
.hps-burger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1); }
body.menu-open .hps-burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .hps-burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.hps-menu-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: radial-gradient(120% 100% at 80% 0%, rgba(42,158,71,0.14) 0%, rgba(14,20,16,0) 50%), var(--off-black);
  display: flex; align-items: center;
  overflow-y: auto;
}
.menu-inner { width: 100%; max-width: 1100px; margin-inline: auto; padding: clamp(5.5rem, 12vh, 8rem) clamp(1.5rem, 6vw, 4rem) 3rem; }
.menu-list { display: flex; flex-direction: column; gap: 0.15em; }
.menu-item {
  font-family: var(--serif); font-weight: 700; color: rgba(255,255,255,0.88);
  font-size: clamp(1.9rem, 6.2vw, 3.6rem); line-height: 1.22; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 0.55em;
  transition: color 0.25s ease, transform 0.3s ease;
}
.menu-item:hover, .menu-item.active { color: #4fd473; transform: translateX(10px); }
.mi-n { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.35); }
.menu-meta { margin-top: clamp(2rem, 6vh, 3.5rem); display: grid; gap: 1rem; justify-items: start; }
.menu-meta p { color: rgba(255,255,255,0.45); font-size: 0.8rem; letter-spacing: 0.06em; }
.menu-phone { color: rgba(255,255,255,0.75); font-weight: 600; font-size: 1rem; }
@media (max-width: 1079px) { .hps-nav-links, .hps-nav-right { display: none; } .hps-burger { display: flex; } }
@media (min-width: 1080px) { .hps-burger { display: none; } }

#hps-scrim {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.3;
  background:
    linear-gradient(90deg, rgba(8,12,9,0.72) 0%, rgba(8,12,9,0.38) 45%, rgba(8,12,9,0.12) 100%),
    radial-gradient(120% 90% at 50% 110%, rgba(8,12,9,0.55) 0%, rgba(8,12,9,0) 55%);
}
#hps-hero-loader { gap: 1.1rem; padding: 1.5rem; text-align: center; }
#hps-loader-status { color: rgba(255,255,255,0.6); font-size: 0.82rem; min-height: 1.2em; }
#hps-loader-choices { display: grid; gap: 0.9rem; justify-items: center; margin-top: 0.6rem; }
#hps-loader-choices label { cursor: pointer; }
.loader-skip { background: none; border: 0; cursor: pointer; color: rgba(255,255,255,0.55); font: 500 0.85rem var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.loader-skip:hover { color: #fff; }
#hps-hero-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
[data-view] { min-height: 40vh; }
.hps-page-hero .hps-btn { margin-top: 0; }

/* ===== v4 fixes & additions ===== */
[hidden] { display: none !important; }   /* THE overlay bug fix — beats any display rule */

/* slimmer header bar */
.hps-nav-inner { padding: 0.6rem clamp(1.1rem, 3.5vw, 2.4rem); gap: 1.2rem; }
.hps-logo-mark { width: 32px; height: 32px; font-size: 0.92rem; border-radius: 8px; }
.hps-logo-text { font-size: 0.9rem; }
.hps-nav-links { gap: 1.3rem; }
.hps-nav-links .nl { font-size: 0.82rem; }
.hps-nav .hps-btn-sm { padding: 0.5em 1.15em; font-size: 0.82rem; }
.hps-nav-phone { font-size: 0.8rem; }
.hps-nav.scrolled .hps-nav-inner { padding-block: 0.45rem; }

/* custom cursor (activetheory cue) */
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
#hps-cursor-dot, #hps-cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  border-radius: 50%; will-change: transform;
  margin: -3px 0 0 -3px;
}
#hps-cursor-dot { width: 6px; height: 6px; background: #4fd473; transition: opacity 0.2s; }
#hps-cursor-dot.hot { opacity: 0; }
#hps-cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(79, 212, 115, 0.75);
  mix-blend-mode: difference;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease;
}
#hps-cursor-ring.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(79, 212, 115, 0.14); }
@media (hover: none) { #hps-cursor-dot, #hps-cursor-ring { display: none; } }

/* masked line reveals (aquest cue) */
.lr-mask { display: inline-block; overflow: hidden; vertical-align: bottom; }
.lr-inner { display: inline-block; will-change: transform; }

/* hero text glass veil (dogstudio cue: contrast guaranteed independent of frame) */
.hero-layer-inner { position: relative; }
.hero-layer-inner::before {
  content: '';
  position: absolute; inset: -1.6rem -2rem;
  background: rgba(8, 12, 9, 0.26);
  backdrop-filter: blur(9px) saturate(1.05);
  -webkit-backdrop-filter: blur(9px) saturate(1.05);
  border-radius: 22px;
  z-index: -1;
  -webkit-mask-image: radial-gradient(80% 90% at 40% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(80% 90% at 40% 50%, #000 55%, transparent 100%);
}
#hl-warm .hero-layer-inner::before, #hl-numbers .hero-layer-inner::before {
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(70% 90% at 50% 50%, #000 50%, transparent 100%);
}

/* machine scrub section */
#machine-scrub { position: relative; background: #0a0f0c; }
#machine-scrub .ms-stage { position: relative; height: 100vh; overflow: hidden; }
#machine-scrub canvas, #machine-scrub .ms-still { position: absolute; inset: 0; width: 100%; height: 100%; }
#machine-scrub .ms-still { object-fit: cover; display: none; }
#machine-scrub .ms-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,9,0.66) 0%, rgba(8,12,9,0.18) 60%); }
.ms-callout {
  position: absolute; left: clamp(1.5rem, 7vw, 6rem); top: 50%; transform: translateY(-50%);
  max-width: 460px; opacity: 0; color: #fff;
}
.ms-callout .ms-k { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #4fd473; border-left: 2px solid #3db85a; padding-left: 0.8rem; margin-bottom: 0.7rem; display: inline-block; }
.ms-callout h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.01em; }
.ms-callout p { margin-top: 0.7rem; color: rgba(255,255,255,0.72); font-size: 0.98rem; }

/* film-backed page heroes */
.hps-page-hero.has-film { background-size: cover; background-position: center 50%; }

/* ==========================================================================
   v5 — Sub-page reading polish + premium motion layer
   ========================================================================== */

/* Long-form readability on sub-pages */
.hps-page-hero .hps-body { color: rgba(255,255,255,0.82); font-size: clamp(1.02rem, 1.35vw, 1.15rem); max-width: 44em; }
.hps-prose p { line-height: 1.75; max-width: 42em; }
.hps-prose h2 { margin-top: 2.9rem; }
.hps-prose h3 { margin-top: 2rem; color: var(--text-dark); }
.hps-prose ul { margin-left: 1.35rem; }
.hps-prose li { margin-bottom: 0.4rem; }
.hps-prose .hps-checklist li { margin-bottom: 0; }

/* Stat strip — clearer separation + tabular figures */
.hps-stat-strip { gap: clamp(1.6rem, 4vw, 2.75rem); }
.hps-stat-strip .stat { padding-left: 1.1rem; border-left: 2px solid; border-image: var(--grad) 1; }
.hps-stat-strip .stat b { letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hps-stat-strip .stat span { display: block; margin-top: 0.3rem; }

/* Bill comparison table — roomier rows, emphasised total figure */
.hps-bill-table { margin-block: 1.8rem 2rem; }
.hps-bill-table > div { padding: 1rem 1.35rem; font-size: 1rem; align-items: baseline; }
.hps-bill-table > div span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hps-bill-table > div.total { font-size: 1.05rem; }
.hps-bill-table > div.total span:last-child { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }

/* Animated aurora glow behind page heroes (decorative, reduced-motion safe) */
.hps-page-hero { position: relative; overflow: hidden; isolation: isolate; }
.hps-page-hero > .hps-container { position: relative; z-index: 2; }
.hps-page-hero::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -35%; left: 50%; width: min(90vw, 1100px); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61,184,90,0.24), rgba(61,184,90,0) 70%);
  filter: blur(18px);
  animation: hps-aurora 15s ease-in-out infinite;
}
@keyframes hps-aurora {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-44%, 5%) scale(1.16); opacity: 1; }
}

/* Scroll progress hairline is styled at #hps-progress above; ensure it wins */
#hps-progress { z-index: 300; }

/* Motion-layer entrance primitives (JS-driven; safe defaults if JS is absent) */
.hps-page-hero .hps-container,
.hps-img-card img { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hps-page-hero::before { animation: none; }
  .hps-page-hero .hps-container, .hps-img-card img { will-change: auto; }
}

/* ==========================================================================
   v6 — Header rebuild: brand logo, legible nav, off-canvas mobile menu
   ========================================================================== */

/* --- Brand logo (gradient bar + HP monogram + wordmark) --------------------
   Restyles the existing .hps-logo markup — no HTML change needed. Works on the
   dark nav, dark footer and the menu panel (all dark surfaces). */
.hps-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.hps-logo::before {
  content: ''; flex: 0 0 auto; align-self: center;
  width: 4px; height: 30px; border-radius: 2px;
  background: linear-gradient(180deg, #a4d037 0%, #1e7a35 100%);
}
.hps-logo-mark {
  width: auto; height: auto; min-width: 0; border-radius: 0;
  display: inline-block; padding: 0;
  font-family: var(--sans); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(125deg, #4fd473 0%, #1e7a35 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hps-logo-text {
  font-family: var(--sans); font-weight: 600; font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,0.82); line-height: 1.1;
}
.hps-logo-text em { font-style: normal; font-weight: 600; opacity: 1; letter-spacing: inherit; }
/* Footer logo sits on solid off-black — keep the wordmark a touch brighter */
.hps-footer .hps-logo-text { color: rgba(255,255,255,0.72); }
@media (max-width: 479px) { .hps-logo-text { display: none; } }

/* --- Legible nav links (fix: anchors were inheriting dark body colour) ------
   `body.hps a { color: inherit }` was out-specifying the intended nav colours
   because the links lack the expected `.nl` class. Raise specificity here. */
.hps-nav .hps-nav-links a {
  position: relative; padding: 0.35rem 0;
  color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 500;
  transition: color 0.2s ease;
}
.hps-nav .hps-nav-links a:hover { color: #fff; }
.hps-nav .hps-nav-links a.active { color: #4fd473; }
.hps-nav .hps-nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transform-origin: right;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
.hps-nav .hps-nav-links a:hover::after,
.hps-nav .hps-nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.hps-nav .hps-nav-phone { color: rgba(255,255,255,0.82); transition: color 0.2s ease; }
.hps-nav .hps-nav-phone:hover { color: #fff; }

/* --- Off-canvas mobile menu (right-hand drawer + scrim) --------------------- */
.hps-menu-overlay {
  justify-content: flex-end;
  background: rgba(8, 12, 9, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.menu-inner {
  width: min(87vw, 400px); max-width: none; height: 100%; margin: 0;
  padding: clamp(5.5rem, 14vh, 7.5rem) clamp(1.6rem, 7vw, 2.8rem) 2.5rem;
  background:
    radial-gradient(130% 55% at 100% 0%, rgba(42,158,71,0.18) 0%, rgba(14,20,16,0) 60%),
    var(--off-black);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -34px 0 70px rgba(0,0,0,0.5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(0.65, 0, 0.35, 1);
}
body.menu-open .menu-inner { transform: translateX(0); }
.menu-inner { position: relative; }
.menu-list { gap: 0.35em; }
.menu-item { font-size: clamp(1.5rem, 5.5vw, 2rem); }
.menu-item:hover, .menu-item.active { transform: translateX(6px); }
.menu-meta { margin-top: clamp(2rem, 6vh, 3rem); }
.menu-meta .hps-btn-grad { width: 100%; justify-content: center; }

/* --- Hamburger: 3 clean bars, pushed to the right edge on mobile ----------- */
.hps-burger { margin-left: auto; gap: 6px; width: 46px; height: 46px; }
.hps-burger span {
  width: 24px; height: 2px; border-radius: 2px; background: #fff;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
/* Burger yields to the in-panel close button while the menu is open */
body.menu-open .hps-burger { opacity: 0; pointer-events: none; }
body.menu-open .hps-burger span { transform: none; opacity: 1; }

/* --- In-panel close button (injected by hps-header.js) --------------------- */
.hps-menu-close {
  position: absolute; top: 1.25rem; right: 1.25rem; z-index: 3;
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.35s cubic-bezier(0.65,0,0.35,1);
}
.hps-menu-close:hover { background: rgba(255,255,255,0.14); border-color: rgba(79,212,115,0.6); transform: rotate(90deg); }
.hps-menu-close svg { width: 22px; height: 22px; }

/* --- Desktop nav dropdowns (Services / Guides, built by hps-header.js) ------ */
.hps-nav-links { gap: 1.9rem; }
.hps-nav-links a, .hps-nav-trigger, .hps-nav-phone { white-space: nowrap; }
.hps-nav-group { position: relative; }
.hps-nav .hps-nav-trigger {
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  color: rgba(255,255,255,0.85); font-size: 0.82rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.45em; padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.hps-nav .hps-nav-trigger:hover,
.hps-nav-group:hover .hps-nav-trigger,
.hps-nav .hps-nav-trigger[aria-expanded="true"] { color: #fff; }
.hps-nav .hps-nav-trigger.active { color: #4fd473; }
.hps-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform 0.25s ease; margin-top: 1px;
}
.hps-nav-group:hover .hps-caret,
.hps-nav-trigger[aria-expanded="true"] .hps-caret { transform: rotate(180deg); }
.hps-nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 232px; padding: 0.5rem;
  background: rgba(14,20,16,0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  box-shadow: 0 24px 55px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 120;
}
.hps-nav-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.hps-nav-group:hover .hps-nav-menu,
.hps-nav-group:focus-within .hps-nav-menu,
.hps-nav-menu[data-open="true"] {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.hps-nav .hps-nav-menu a {
  display: block; padding: 0.62rem 0.85rem; border-radius: 10px;
  color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}
.hps-nav .hps-nav-menu a::after { display: none; }
.hps-nav .hps-nav-menu a:hover { background: rgba(79,212,115,0.12); color: #fff; }
.hps-nav .hps-nav-menu a.active { color: #4fd473; }

/* ==========================================================================
   v7 — Founders section + estimate scroll-jump fix
   ========================================================================== */

/* Meet the founders (Why Us page) */
.hps-founders { background: var(--white); }
.hps-founders .hps-two-col { grid-template-columns: 1fr 1.05fr; align-items: center; }
.hps-founders .hps-img-card {
  background: radial-gradient(120% 90% at 30% 20%, rgba(42,158,71,0.2) 0%, rgba(14,20,16,0) 55%), linear-gradient(135deg, var(--forest), var(--off-black));
  aspect-ratio: 4 / 3;
}
.hps-founders .hps-img-card img { aspect-ratio: 4 / 3; }
.hps-founders-copy > .hps-body { margin-top: 1rem; }
.hps-founders-copy .hps-identity { margin-top: 2rem; }

/* Estimate scroll-jump fix: the browser's scroll-anchoring was correcting the
   scroll position when the lazy Spruce iframe loaded mid-scroll, which fought
   the Lenis smooth-scroll and produced a visible jump. Disable anchoring on
   the scroll root and reserve the embed's box so nothing reflows. */
html { overflow-anchor: none; }
.estimate-embed-wrapper { overflow-anchor: none; contain: layout paint; }
.estimate-embed-wrapper iframe { display: block; }

/* ==========================================================================
   v8 — Multi-step form (booking / enquiry) + funnel pages
   ========================================================================== */

.hps-stepform {
  background: var(--white);
  border: 1px solid var(--sage-dark);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 640px; margin-inline: auto;
  position: relative;
}
/* Progress */
.sf-head { margin-bottom: 1.6rem; }
.sf-progress { height: 6px; border-radius: 999px; background: var(--bg-sage); overflow: hidden; }
.sf-progress-bar { display: block; height: 100%; width: 0%; background: var(--grad); border-radius: 999px; transition: width 0.45s cubic-bezier(0.65,0,0.35,1); }
.sf-progress-label { margin-top: 0.7rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-light); }
.sf-progress-label b { color: var(--green); }

/* Steps */
.sf-step { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.sf-step[hidden] { display: none; }
.sf-step-anim { animation: sf-in 0.4s cubic-bezier(0.16,1,0.3,1); }
@keyframes sf-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sf-step-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.7rem); letter-spacing: -0.01em; line-height: 1.15; padding: 0; margin-bottom: 0.4rem; }
.sf-step-sub { color: var(--text-light); font-size: 0.92rem; margin-bottom: 1.4rem; }

/* Fields */
.sf-field { display: block; margin-bottom: 1.15rem; }
.sf-field > .sf-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.45rem; }
.sf-field .sf-hint { font-weight: 500; color: var(--text-light); }
.sf-input, .sf-select, .sf-textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text-dark);
  background: var(--off-white); border: 1.5px solid var(--sage-dark); border-radius: 12px;
  padding: 0.85rem 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sf-textarea { min-height: 96px; resize: vertical; }
.sf-input::placeholder, .sf-textarea::placeholder { color: var(--text-muted); }
.sf-input:focus, .sf-select:focus, .sf-textarea:focus { outline: 0; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(61,184,90,0.14); }
.sf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .sf-two { grid-template-columns: 1fr; } }

/* Choice chips (radio / checkbox groups) */
.sf-choices { display: grid; gap: 0.6rem; }
.sf-choices.cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sf-choice { position: relative; }
.sf-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sf-choice span {
  display: flex; align-items: center; gap: 0.6rem; min-height: 52px;
  padding: 0.7rem 1rem; border: 1.5px solid var(--sage-dark); border-radius: 12px;
  background: var(--off-white); font-size: 0.95rem; font-weight: 500; color: var(--text-dark);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.sf-choice span::before { content: ''; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid var(--sage-dark); transition: border-color 0.18s ease, background 0.18s ease; }
.sf-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(61,184,90,0.14); }
.sf-choice input:checked + span { border-color: var(--green); background: var(--bg-sage); }
.sf-choice input:checked + span::before { border-color: var(--green); background: var(--grad); box-shadow: inset 0 0 0 3px var(--white); }

/* Errors */
.sf-error { display: none; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 600; color: #c0392b; }
.sf-field.invalid .sf-input, .sf-field.invalid .sf-select, .sf-field.invalid .sf-textarea { border-color: #e07a6c; background: #fdf3f1; }
.sf-field.invalid .sf-error { display: block; }

/* Actions */
.sf-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.7rem; }
.sf-actions .hps-btn { flex: 1 1 auto; justify-content: center; }
.sf-back { background: none; border: 0; cursor: pointer; font: 600 0.9rem var(--sans); color: var(--text-light); padding: 0.6rem 0.4rem; flex: 0 0 auto; transition: color 0.2s ease; }
.sf-back:hover { color: var(--text-dark); }
.sf-reassure { margin-top: 1.1rem; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* Success */
.sf-success { text-align: center; padding: 1rem 0.5rem; animation: sf-in 0.5s cubic-bezier(0.16,1,0.3,1); }
.sf-success[hidden] { display: none; }
.sf-success .sf-check { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 12px 30px rgba(42,158,71,0.32); }
.sf-success h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
.sf-success p { color: var(--text-mid); margin-top: 0.7rem; max-width: 32em; margin-inline: auto; }

/* Funnel page: stripped, focused layout (no nav distractions where noted) */
.hps-funnel { background: var(--off-white); }
.hps-funnel .hps-page-hero { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hps-bridge { background: var(--off-black); color: #fff; text-align: center; padding-block: clamp(2.4rem, 6vw, 3.6rem); position: relative; z-index: 20; }
.hps-bridge .hps-label { color: #4fd473; }
.hps-bridge h1, .hps-bridge h2 { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.06; }
.hps-bridge p { color: rgba(255,255,255,0.8); max-width: 44em; margin: 1rem auto 0; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hps-funnel-cta { text-align: center; padding-block: clamp(3rem, 7vw, 5rem); }

/* ==========================================================================
   v9 — Signature motion: 3D card tilt + glare (JS-driven, desktop only)
   ========================================================================== */
.has-tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.has-tilt > * { transform: translateZ(0.01px); }
.has-tilt .tilt-glare {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
  background: radial-gradient(42% 42% at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.4), rgba(255,255,255,0) 72%);
  mix-blend-mode: soft-light;
}
/* let the lift read as depth, not just translate */
.hps-service-card.has-tilt:hover,
.hps-review-card.has-tilt:hover { box-shadow: 0 32px 70px rgba(26,46,34,0.2); }

/* ==========================================================================
   v10 — Premium CTA sheen + cursor spotlight on dark CTA sections
   ========================================================================== */
.hps-btn-grad { position: relative; overflow: hidden; }
.hps-btn-grad::after {
  content: ''; position: absolute; top: -25%; left: -75%; width: 50%; height: 150%;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.45), transparent 80%);
  transform: skewX(-16deg); pointer-events: none;
  transition: left 0.7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hps-btn-grad:hover::after { left: 130%; }
}

.has-spotlight { position: relative; }
.has-spotlight::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(79,212,115,0.16), transparent 62%);
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .has-spotlight:hover::before { opacity: 1; }
}
.has-spotlight > * { position: relative; z-index: 1; }

/* ==========================================================================
   v11 — Living gradient shimmer on hero figures (occasional view only)
   ========================================================================== */
.hero-numbers .fig {
  background-size: 220% auto;
  animation: hps-sheen-text 7s var(--ease-in-out) infinite;
}
@keyframes hps-sheen-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-numbers .fig { animation: none; }
}

/* ==========================================================================
   v12 — Cinematic hero depth + branded page-transition curtain
   ========================================================================== */

/* Hero: cinematic vignette + soft top-light (over the frames, under the text) */
.hps-hero-scroll::after {
  content: ''; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 32%, transparent 42%, rgba(6,10,8,0.5) 100%),
    radial-gradient(60% 55% at 50% -5%, rgba(79,212,115,0.10), transparent 55%);
}

/* Branded curtain wipe between pages */
#hps-page-curtain {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  background: linear-gradient(160deg, #0e1410 0%, #1a2e22 55%, #0e1410 100%);
  transform: translateY(-101%);
  display: flex; align-items: center; justify-content: center;
}
#hps-page-curtain.cover { animation: hps-curtain-cover 0.42s var(--ease-in-out) forwards; pointer-events: all; }
@keyframes hps-curtain-cover { from { transform: translateY(-101%); } to { transform: translateY(0); } }
.hps-curtain-mark {
  font-family: var(--sans); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em;
  background: linear-gradient(125deg, #4fd473, #1e7a35);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0; transform: translateY(10px) scale(0.96);
}
#hps-page-curtain.cover .hps-curtain-mark { animation: hps-curtain-mark 0.5s var(--ease-out) 0.1s forwards; }
@keyframes hps-curtain-mark { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #hps-page-curtain { display: none !important; } }

/* ==========================================================================
   v13 — one-line auto-scrolling trust bar (marquee)
   Fallback (no JS / reduced motion): a centred wrapping row, as before.
   ========================================================================== */
.hps-marquee { overflow: hidden; }
.hps-marquee-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.15rem clamp(1.6rem, 4vw, 2.8rem); }
.hps-marquee .hps-trust-item { white-space: nowrap; }
.hps-marquee--ready { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hps-marquee--ready .hps-marquee-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: hps-marquee 40s linear infinite; will-change: transform; }
.hps-marquee--ready:hover .hps-marquee-track,
.hps-marquee--ready:focus-within .hps-marquee-track { animation-play-state: paused; }
@keyframes hps-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hps-marquee--ready { -webkit-mask-image: none; mask-image: none; }
  .hps-marquee--ready .hps-marquee-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
}

/* v14 — hero scroll cue: soft pulsing down-chevron (fades out via the scroll timeline) */
.hero-scroll-hint { gap: 0.55rem; }
.hero-scroll-hint::after { display: none; }
.hero-scroll-hint .hps-scroll-chevron { display: block; opacity: 0.5; animation: hps-chevron-pulse 1.9s var(--ease-in-out) infinite; }
@keyframes hps-chevron-pulse {
  0%   { transform: translateY(-3px); opacity: 0.25; }
  50%  { transform: translateY(3px);  opacity: 0.6; }
  100% { transform: translateY(-3px); opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint .hps-scroll-chevron { animation: none; opacity: 0.5; }
}

/* Immediately-visible trust line inside the hero brand layer */
.hero-trust { margin-top: 1.5rem; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.1rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(61,184,90,0.7); }

/* v15 — manufacturer-approved badge strip (styled placeholders; swap the text
   for official <img> logos when the installer packs arrive). */
.hps-mfr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.4rem; margin-top: 1.7rem; }
.hps-mfr-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }
.hps-mfr-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; height: 44px; padding: 0 1.2rem; border: 1px solid var(--bg-sage); border-radius: 10px; background: #fff; font-weight: 700; font-size: 0.98rem; color: var(--text-dark); box-shadow: 0 4px 14px rgba(26,46,34,0.05); }
.hps-mfr-badge img { max-height: 26px; width: auto; display: block; }

/* v16 — small, light cookie consent banner, bottom-left (GA gated behind acceptance) */
#hps-cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 9000; width: min(330px, calc(100vw - 2rem)); background: var(--white); color: var(--text-dark); border: 1px solid var(--bg-sage); border-radius: 12px; padding: 0.85rem 0.95rem 0.9rem; box-shadow: 0 12px 32px rgba(26,46,34,0.16); font-size: 0.8rem; line-height: 1.5; animation: hps-cookie-in 0.45s var(--ease-drawer); }
#hps-cookie.hide { animation: hps-cookie-out 0.4s var(--ease-drawer) forwards; }
@keyframes hps-cookie-in { from { transform: translateY(130%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hps-cookie-out { from { transform: none; opacity: 1; } to { transform: translateY(130%); opacity: 0; } }
.hps-cookie-x { position: absolute; top: 0.3rem; right: 0.45rem; width: 1.6rem; height: 1.6rem; border: 0; background: none; font-size: 1.15rem; line-height: 1; color: var(--text-light); cursor: pointer; border-radius: 6px; }
.hps-cookie-x:hover { color: var(--text-dark); background: var(--bg-sage); }
#hps-cookie p { margin: 0 1.2rem 0.7rem 0; color: var(--text-mid); }
#hps-cookie a, .hps-cookie-toggle { color: var(--green); text-decoration: underline; cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
.hps-cookie-more { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease-out); }
#hps-cookie.open .hps-cookie-more { max-height: 160px; }
.hps-cookie-more p { font-size: 0.76rem; color: var(--text-light); margin: 0.5rem 1.2rem 0.7rem 0; }
.hps-cookie-actions { display: flex; gap: 0.5rem; margin-top: 0.2rem; }
.hps-cookie-actions button { font: inherit; font-size: 0.78rem; font-weight: 700; padding: 0.42rem 0.85rem; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: transform var(--dur-fast) var(--ease-out); }
.hps-cookie-actions button:active { transform: scale(0.97); }
.hps-cookie-accept { background: var(--grad); color: #fff; }
.hps-cookie-decline { background: transparent; border-color: var(--bg-sage); color: var(--text-mid); }
@media (prefers-reduced-motion: reduce) { #hps-cookie, #hps-cookie.hide { animation: none; } .hps-cookie-more { transition: none; } }

/* v17 — real-install gallery grid */
.hps-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.6rem, 1.4vw, 1rem); margin-top: 2.2rem; }
.hps-gallery-item { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 3 / 4; margin: 0; box-shadow: 0 8px 24px rgba(26,46,34,0.09); }
.hps-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); will-change: transform; }
.hps-gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .hps-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hps-gallery-item img { transition: none; } .hps-gallery-item:hover img { transform: none; } }

/* v18 — real performance screenshots grid (phone app screens, shown whole) */
.hps-perf-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: clamp(1rem, 2.4vw, 1.6rem); margin: 2rem 0 2.4rem; }
.hps-perf-item { margin: 0; background: #0e1410; border: 1px solid var(--bg-sage); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(26,46,34,0.09); }
.hps-perf-item img { width: 100%; height: auto; display: block; background: #0e1410; }
.hps-perf-item figcaption { padding: 0.75rem 0.95rem 0.95rem; font-size: 0.82rem; line-height: 1.45; color: var(--text-mid); background: var(--white); }
.hps-perf-item figcaption b { color: var(--green); }
@media (max-width: 760px) { .hps-perf-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   v19 — custom estimate widget (Spruce API): inline + stacked triggers + wizard
   ========================================================================== */
.hps-est { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 540px; }
.hps-est--inline input { min-width: 12rem; }
.hps-est--stacked { flex-direction: column; }
.hps-est input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1rem; padding: 0.85rem 1.4rem; border: 1px solid var(--bg-sage); border-radius: 999px; background: #fff; color: var(--text-dark); text-transform: uppercase; -webkit-appearance: none; appearance: none; }
.hps-est input:-webkit-autofill { border-radius: 999px; -webkit-box-shadow: 0 0 0 40px #fff inset; }
.hps-est input::placeholder { color: var(--text-light); text-transform: none; }
.hps-est input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,184,90,0.18); }
.hps-est button[type="submit"] { flex: 0 0 auto; white-space: nowrap; }
.hps-est--stacked button[type="submit"] { width: 100%; }
.hps-est-invalid input { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,0.15); }
.hps-est-hint { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-light); }
.hps-est--inline .hps-est-hint, .hps-est--stacked .hps-est-hint { flex-basis: 100%; }

/* modal */
.hps-est-overlay { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(14,20,16,0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.28s var(--ease-out); }
.hps-est-overlay.show { opacity: 1; }
.hps-est-modal { position: relative; overflow: hidden; display: flex; flex-direction: column; width: min(560px, 100%); height: min(600px, calc(100vh - 2rem)); background: var(--white); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); transform: translateY(16px) scale(0.98); transition: transform 0.32s var(--ease-out); }
.hps-est-overlay.show .hps-est-modal { transform: none; }
.hps-est-close { position: absolute; top: 0.7rem; right: 0.8rem; z-index: 2; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: rgba(0,0,0,0.06); font-size: 1.35rem; line-height: 1; color: var(--text-mid); cursor: pointer; }
.hps-est-close:hover { background: rgba(0,0,0,0.1); }
/* "enter address manually" text link under the form (hero: under input · CTA: under button) */
.hps-est-manual { flex-basis: 100%; width: 100%; display: block; background: none; border: 0; padding: 0; margin-top: 0.7rem; font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--text-mid); }
.hps-est-manual:hover { color: var(--green); }
.hps-est--inline .hps-est-manual { text-align: left; color: rgba(255,255,255,0.82); }
.hps-est--inline .hps-est-manual:hover { color: #fff; }
.hps-est--stacked .hps-est-manual { text-align: center; }
/* Kadence paints a blue background on any <button>:hover — reassert our own
   widget-button backgrounds so they keep their intended look on hover/focus. */
body.hps .hps-est-manual:hover, body.hps .hps-est-manual:focus,
body.hps .hps-est-back:hover, body.hps .hps-est-back:focus,
body.hps .hps-est-textbtn:hover, body.hps .hps-est-textbtn:focus,
body.hps .hps-burger:hover, body.hps .hps-burger:focus, body.hps .hps-burger:active { background: none; box-shadow: none; }
/* FAQ hover: fill with brand green, white text (overrides the theme's blue) */
body.hps .hps-acc-q:hover, body.hps .hps-acc-q:focus, body.hps .hps-acc-q:active { background: var(--green); color: #fff; box-shadow: none; }
body.hps .hps-acc-q:hover::after, body.hps .hps-acc-q:focus::after, body.hps .hps-acc-q:active::after { color: #fff; }
body.hps .hps-est-addr:hover:not(.sel), body.hps .hps-est-addr:focus:not(.sel),
body.hps .hps-est-choice:hover:not(.sel), body.hps .hps-est-choice:focus:not(.sel),
body.hps .hps-est-step-btn:hover, body.hps .hps-est-step-btn:focus { background: #fff; }
/* higher specificity so Kadence's input[type=...] / button rules don't flatten
   the pill shape of the wizard's inputs and selection boxes */
body.hps .hps-est-input { border-radius: 999px; padding: 0.75rem 1.3rem; }
body.hps .hps-est-input:-webkit-autofill { border-radius: 999px; }
body.hps .hps-est-addr { border-radius: 999px; }
body.hps .hps-est-choice { border-radius: 999px; }
/* keep the selected address text dark/readable (Kadence turns button text white on focus) */
body.hps .hps-est-addr, body.hps .hps-est-addr.sel, body.hps .hps-est-addr:focus, body.hps .hps-est-addr:active { color: var(--text-dark); }

/* ===== mobile-only spacing tweaks ===== */
@media (max-width: 767px) {
  /* more breathing room inside the hero frosted panel */
  .hps-hero-scroll .hero-layer-inner { padding-inline: 2rem; }
  .hps-hero-scroll .hero-estbar-inner { padding-inline: 2rem; }
}

/* Why Us — Jamie & Louie: stack on mobile with the image in the middle of the text */
.hps-founders-img-mobile { display: none; }
@media (max-width: 767px) {
  .hps-founders .hps-two-col { grid-template-columns: 1fr; }
  .hps-founders .hps-two-col > .hps-img-card { display: none; }
  .hps-founders-img-mobile { display: block; margin: 1.6rem 0; }
}
.hps-est-progress { height: 4px; background: var(--bg-sage); }
.hps-est-progress-bar { display: block; height: 100%; width: 6%; background: var(--grad); transition: width 0.4s var(--ease-out); }
.hps-est-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.4rem; }

.hps-est-step, .hps-est-result { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.hps-est-result { overflow-y: auto; }
.hps-est-enter { opacity: 0; transform: translateY(8px); }
.hps-est-enter.hps-est-in { opacity: 1; transform: none; transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.hps-est-count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin: 0 0 0.5rem; }
.hps-est-step h3 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.12; color: var(--text-dark); margin: 0 0 0.5rem; }
.hps-est-sub { font-size: 0.92rem; color: var(--text-mid); margin: 0 0 1.1rem; }
.hps-est-field { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-top: 0.4rem; }

.hps-est-addresses { display: flex; flex-direction: column; gap: 0.5rem; max-height: 46vh; overflow-y: auto; }
.hps-est-addr { text-align: left; padding: 0.8rem 1.3rem; border: 1px solid var(--bg-sage); border-radius: 999px; background: #fff; font: inherit; font-size: 0.95rem; color: var(--text-dark); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.hps-est-addr:hover { border-color: var(--green); }
.hps-est-addr.sel { border-color: var(--green); background: var(--bg-sage); font-weight: 600; }

.hps-est-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hps-est-choice { position: relative; text-align: left; padding: 0.9rem 1.4rem; border: 1.5px solid var(--bg-sage); border-radius: 999px; background: #fff; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text-dark); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.hps-est-choice:hover { border-color: var(--green); }
.hps-est-choice.sel { border-color: var(--green); background: rgba(61,184,90,0.08); }
.hps-est-tag { display: block; margin-top: 0.25rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--green); }

.hps-est-number { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin: 0.6rem 0; }
.hps-est-step-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--bg-sage); background: #fff; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; line-height: 1; }
.hps-est-step-btn:hover { border-color: var(--green); color: var(--green); }
.hps-est-num-val { font-size: 2.4rem; font-weight: 800; min-width: 2.4rem; text-align: center; color: var(--text-dark); }
.hps-est-tag-line { text-align: center; font-size: 0.8rem; color: var(--text-light); margin-top: 0.6rem; }

.hps-est-actions { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; padding-top: 1.2rem; flex-shrink: 0; }
.hps-est-back { border: 0; background: none; font: inherit; font-weight: 600; color: var(--text-light); cursor: pointer; padding: 0.5rem; }
.hps-est-back:hover { color: var(--text-dark); }
.hps-est-next { margin-left: auto; }
.hps-est-next.shake { animation: hps-shake 0.4s; }
@keyframes hps-shake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-5px);} 75%{transform:translateX(5px);} }

.hps-est-loading { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem 1rem; }
.hps-est-loading p { margin-top: 1rem; color: var(--text-mid); }
.hps-est-spinner { display: inline-block; width: 2.4rem; height: 2.4rem; border: 3px solid var(--bg-sage); border-top-color: var(--green); border-radius: 50%; animation: hps-spin 0.8s linear infinite; }
@keyframes hps-spin { to { transform: rotate(360deg); } }

/* result */
.hps-est-price { margin: 0.6rem 0 0.3rem; }
.hps-est-price-big { display: block; font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 9vw, 4.2rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hps-est-price-sub { display: block; font-size: 0.9rem; color: var(--text-mid); margin-top: 0.3rem; }
.hps-est-before { font-size: 0.85rem; color: var(--text-light); margin: 0.3rem 0 1.2rem; }
.hps-est-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.hps-est-tile { background: var(--bg-sage); border-radius: 12px; padding: 0.9rem 0.8rem; text-align: center; }
.hps-est-tile b { display: block; font-size: 1.4rem; font-weight: 800; color: var(--green); line-height: 1.1; }
.hps-est-tile span { display: block; font-size: 0.72rem; color: var(--text-mid); margin-top: 0.35rem; line-height: 1.35; }
.hps-est-assumptions { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; margin: 1.2rem 0; }
.hps-est-emailed { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; color: var(--text-mid); background: var(--bg-sage); border: 1px solid var(--sage-dark); border-radius: 12px; padding: 0.75rem 0.9rem; margin: 1.2rem 0 0; }
.hps-est-emailed span { color: var(--green); font-size: 1rem; line-height: 1.4; }
.hps-est-emailed b { color: var(--text-dark); word-break: break-word; }
.hps-est-result-actions { flex-direction: column; align-items: stretch; margin-top: 1.4rem; padding-top: 0; }
.hps-est-captured { text-align: center; padding: 0.5rem 0.25rem; }
.hps-est-captured .hps-est-tick { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.6rem; margin-bottom: 1rem; }
.hps-est-captured h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--text-dark); margin-bottom: 0.6rem; }
.hps-est-captured p { font-size: 0.95rem; line-height: 1.6; color: var(--text-mid); }
.hps-est-captured b { color: var(--text-dark); word-break: break-word; }

/* contact step fields */
.hps-est-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); margin-bottom: 0.9rem; }
.hps-est-opt { font-weight: 400; color: var(--text-light); }
.hps-est-input { display: block; width: 100%; margin-top: 0.35rem; font: inherit; font-size: 1rem; padding: 0.75rem 1.3rem; border: 1px solid var(--bg-sage); border-radius: 999px; background: #fff; color: var(--text-dark); -webkit-appearance: none; appearance: none; }
.hps-est-input:-webkit-autofill { border-radius: 999px; -webkit-box-shadow: 0 0 0 40px #fff inset; }
.hps-est-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,184,90,0.15); }
.hps-est-input.bad { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,0.13); }
.hps-est-privacy { font-size: 0.78rem; color: var(--text-light); line-height: 1.5; margin-top: 0.2rem; }
.hps-est-privacy a { color: var(--green); text-decoration: underline; }

/* heat pump image in the result */
.hps-est-hp { margin: 0 0 1rem; position: relative; border-radius: 14px; overflow: hidden; }
.hps-est-hp img { display: block; width: 100%; height: 150px; object-fit: cover; }
.hps-est-hp figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem 0.7rem; background: linear-gradient(transparent, rgba(14,20,16,0.82)); color: #fff; }
.hps-est-hp figcaption span { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.hps-est-hp figcaption b { font-size: 1.05rem; font-weight: 700; }
.hps-est-result-actions .hps-btn { text-align: center; }
.hps-est-textbtn { border: 0; background: none; font: inherit; font-size: 0.85rem; color: var(--text-light); cursor: pointer; text-decoration: underline; margin-top: 0.2rem; }

@media (max-width: 520px) { .hps-est { flex-direction: column; } .hps-est button[type="submit"] { width: 100%; } .hps-est-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hps-est-overlay, .hps-est-modal, .hps-est-progress-bar, .hps-est-enter.hps-est-in { transition: none; } .hps-est-spinner { animation-duration: 1.6s; } .hps-est-next.shake { animation: none; } }

/* v20 — the box band (holds the postcode box near ~62vh; stays put) */
.hero-estbar { position: fixed; left: 0; right: 0; top: 33vh; bottom: 29vh; z-index: 6; display: flex; align-items: flex-end; pointer-events: none; }
.hero-estbar-inner { position: relative; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); width: 100%; padding-bottom: 0.3rem; text-align: left; }
.hero-estbar .hps-est, .hero-estbar .hps-est input, .hero-estbar .hps-est button { pointer-events: auto; }
.hero-estbar .hps-est { max-width: 520px; }
.hero-estbar .hps-micro { margin-top: 0.55rem; }
@media (max-width: 560px) { .hero-estbar { top: 28vh; bottom: 18vh; } }

/* single persistent panel replaces the per-layer text veils */
.hero-layer-inner::before { display: none; }

/* ===== v21 — grow-with-scroll frosted panel + left-aligned beats ===== */

/* One frosted panel. JS sets --veil-top / --veil-h each frame so it hugs the
   current beat's text AND the box, growing/shrinking with the scroll while
   keeping constant padding. Never overlaps because the text is bottom-anchored. */
.hero-veil {
  position: fixed; z-index: 4; pointer-events: none;
  left: 50%; transform: translateX(-50%);
  width: min(var(--container), calc(100% - 2rem));
  top: var(--veil-top, 34vh);
  height: var(--veil-h, 34vh);
  background: rgba(8, 12, 9, 0.32);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  border-radius: 26px;
  -webkit-mask-image: radial-gradient(96% 98% at 40% 50%, #000 66%, transparent 100%);
  mask-image: radial-gradient(96% 98% at 40% 50%, #000 66%, transparent 100%);
  transition: opacity 0.4s ease;
}

/* Bottom-anchor every beat's text just above the box, so tall beats grow
   upward instead of dropping into the box. Constant gap = constant padding. */
.hps-hero-scroll .hero-layer { align-items: flex-end; }
/* margin (not padding) so getBoundingClientRect stays equal to the real text,
   letting the veil hug the text rather than the reserved gap below it */
.hps-hero-scroll .hero-layer-inner { margin-bottom: var(--hero-text-lift, 43vh); text-align: left; }

/* Left-align the beats that were centre-screen (keep everything uniform) */
#hl-numbers .hero-numbers { justify-content: flex-start; }
/* specs sits on the layer-inner itself with a narrow centred max-width — widen it
   to the container so the list starts at the left edge like every other beat */
#hl-specs .hero-layer-inner { max-width: var(--container); }
#hl-numbers .hero-numbers small,
#hl-warm .hero-warm-h,
#hl-warm .hero-warm-s,
#hl-specs .hero-specs { text-align: left; }

@media (max-width: 560px) {
  .hps-hero-scroll .hero-layer-inner { margin-bottom: var(--hero-text-lift, 34vh); }
}
