/* IPA Solar Clean
   Layout: white sticky header, navy hero with a dusty/clean panel comparator,
   alternating white / pale-blue bands, navy coverage band and footer. */

:root {
  --navy-900: #06152a;   /* logo dark background */
  --navy-800: #0b2244;
  --navy-700: #12305f;
  --blue-600: #1c4982;   /* logo blue */
  --blue-400: #2f7fd6;
  --green-500: #74af21;  /* logo green */
  --green-600: #5f9318;
  --green-300: #a5d65a;
  --ink: #0d1b2e;
  --ink-soft: #46556b;
  --line: #d9e1ec;
  --tint: #f1f5fa;
  --white: #fdfdfd;

  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(6, 21, 42, .10);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
.h-page { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow-light { color: var(--green-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--green-500); color: var(--navy-900); }
.btn-green:hover { background: var(--green-300); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--blue-600); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 58px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--navy-800); text-decoration: none; padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--green-500); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy-900); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(47,127,214,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  position: relative; overflow: hidden;
}
.hero::after { /* green swoosh from the logo */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -70px; height: 120px;
  background: var(--green-500); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: rotate(-1.5deg);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: 72px 124px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--green-300); display: block; }
.lead { font-size: 1.15rem; color: #d5e0ef; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: #c3d2e6; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); flex: none;
}

/* Comparator */
.compare { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.compare-stage {
  --pos: 55%;
  position: relative; aspect-ratio: 5 / 4; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 6px solid #c9d3df;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform: perspective(1200px) rotateX(4deg) rotateY(-5deg);
}
.panel, .panel-dust { position: absolute; inset: 0; }
.panel {
  background:
    /* cell gaps */
    repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 3px), #dfe8f3 calc(16.666% - 3px) 16.666%),
    repeating-linear-gradient(0deg, transparent 0 calc(25% - 3px), #dfe8f3 calc(25% - 3px) 25%),
    /* busbars */
    repeating-linear-gradient(90deg, transparent 0 calc(5.555% - 1px), rgba(255,255,255,.22) calc(5.555% - 1px) 5.555%),
    /* glass sheen */
    linear-gradient(120deg, rgba(255,255,255,.28) 0%, transparent 28%, transparent 62%, rgba(255,255,255,.12) 100%),
    linear-gradient(160deg, #1b4f9c 0%, #0f2f66 55%, #0a1f47 100%);
}
.panel-dust {
  clip-path: inset(0 0 0 var(--pos));
  background:
    radial-gradient(60px 40px at 70% 22%, rgba(120,96,62,.55), transparent 70%),
    radial-gradient(90px 60px at 88% 64%, rgba(120,96,62,.50), transparent 70%),
    radial-gradient(70px 50px at 58% 82%, rgba(130,104,70,.50), transparent 70%),
    radial-gradient(50px 36px at 30% 40%, rgba(120,96,62,.50), transparent 70%),
    radial-gradient(80px 50px at 14% 78%, rgba(130,104,70,.50), transparent 70%),
    radial-gradient(12px 9px at 76% 44%, rgba(240,240,232,.85), transparent 70%),
    radial-gradient(9px 12px at 40% 68%, rgba(240,240,232,.80), transparent 70%),
    repeating-linear-gradient(100deg, rgba(160,136,100,.12) 0 14px, rgba(160,136,100,.22) 14px 30px),
    rgba(150,128,96,.62);
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px;
  background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 9px; height: 9px;
  border: solid var(--navy-900); border-width: 0 0 3px 3px; margin-top: -5px;
}
.compare-handle span::before { left: 10px; transform: rotate(45deg); }
.compare-handle span::after { right: 10px; transform: rotate(-135deg); }
.tag {
  position: absolute; top: 14px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  pointer-events: none;
}
.tag-clean { left: 14px; background: var(--green-500); color: var(--navy-900); }
.tag-dirty { right: 14px; background: rgba(6,21,42,.8); color: #fff; }
.compare-stage input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare-stage:focus-within { outline: 3px solid var(--green-300); outline-offset: 4px; }
.compare figcaption { font-size: .9rem; color: #b9c9df; }

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section-tint { background: var(--tint); }
.section-navy { background: var(--navy-900); color: #fff; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46em; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; }
.benefit { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.benefit-ico { width: 44px; height: 44px; color: var(--blue-600); }
.benefit p { color: var(--ink-soft); font-size: 1rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0;
}
.service-art {
  height: 120px;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.35) 38px 40px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.35) 38px 40px),
    linear-gradient(135deg, var(--blue-600), var(--navy-800));
  border-bottom: 5px solid var(--green-500);
}
.art-shop { background-size: auto, auto, auto; filter: hue-rotate(-8deg) brightness(1.1); }
.art-plant { filter: brightness(.8); }
.service-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.service-body h3 { font-size: 1.3rem; color: var(--navy-800); }
.service-body p { color: var(--ink-soft); font-size: 1rem; }
.service-body ul { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; font-size: .97rem; }
.service-body li { position: relative; padding-left: 26px; }
.service-body li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border: solid var(--green-600); border-width: 0 0 3px 3px; transform: rotate(-45deg);
}
.plan-band {
  margin-top: 28px; padding: 28px 32px; border-radius: var(--radius);
  background: #fff; border: 2px solid var(--green-500);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.plan-band > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 320px; }
.plan-band p { color: var(--ink-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding-top: 68px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-900); color: var(--green-300);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
}
.steps li::after {
  content: ""; position: absolute; top: 24px; left: 62px; right: -16px; height: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-soft); font-size: 1rem; }

/* Coverage */
.coverage { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.coverage-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.coverage-copy > p { color: #c9d6e8; }
.places { display: flex; flex-direction: column; }
.places li {
  display: flex; flex-direction: column; padding: 16px 0 16px 20px;
  border-left: 4px solid var(--green-500); margin-bottom: 12px;
}
.places strong { font-family: var(--font-display); font-size: 1.25rem; }
.places span { color: #b9c9df; font-size: .97rem; }
.coverage-copy .note { font-size: .95rem; color: #9fb3ce; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); min-width: 0; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -9px;
  border: solid var(--green-600); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-soft); max-width: 65ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-copy > p { color: var(--ink-soft); }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: var(--blue-600); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-label {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.quote-form {
  background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(47,127,214,.25);
}
.form-error { color: #b3261e; font-weight: 600; font-size: .95rem; }
.form-note { font-size: .85rem; color: var(--ink-soft); text-align: center; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: #05142a; color: #b9c9df; padding-block: 56px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px 36px; }
.footer-about { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.footer-about p { max-width: 34em; }
.footer-logo { height: 84px; width: auto; margin-left: -8px; }
.footer-col { min-width: 0; }
.footer-col h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green-300); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col li { overflow-wrap: anywhere; }
.footer-col a { color: #e6edf7; text-decoration: none; }
.footer-col a:hover { color: var(--green-300); text-decoration: underline; }
.footer-legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; padding-right: 70px;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.3);
  transition: transform .18s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 52px 110px; }
  .compare-stage { transform: none; aspect-ratio: 16 / 10; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .coverage, .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { height: 48px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: 0 16px 24px rgba(6,21,42,.12);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin-top: 16px; }
}

@media (max-width: 560px) {
  .section { padding-block: 60px; }
  .benefits, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .quote-form { padding: 22px; }
  .plan-band { padding: 22px; }
}

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