/* =============================================================
   PlanetEarthSolutions: public website
   Corporate design: white and light-green surfaces, deep green text,
   brand green accents. Type: Geist (headings) + Manrope (text).
   ============================================================= */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Brand (site-src/HANDOFF.md) */
  --green: #4da36f;
  --green-dark: #19352a;
  --green-soft: #5f8d76;
  --bg: #f7faf8;
  --line: #e7eee9;

  /* Derived */
  --primary: #2f7a4f;        /* buttons and links: white text 5.2:1 */
  --primary-hover: #24603d;
  --text: #19352a;
  --text-2: #4a6358;         /* secondary text, 6:1 on white */
  --wash: #eef6f1;
  --on-dark: #c7dccf;

  --head-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(25, 53, 42, .06), 0 12px 32px -16px rgba(25, 53, 42, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: #fff; color: var(--text); font: 400 16.5px/1.65 var(--body-font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head-font); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 300; top: 10px; left: 10px; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--green); }
.eyebrow-light { color: #9fdcb7; }
.h2 { font-size: clamp(30px, 3.4vw, 46px); }
.h2-light { color: #fff; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .h2 { margin-bottom: 14px; }
.section-lede { color: var(--text-2); font-size: 17.5px; }
.section-lede a { color: var(--primary); font-weight: 700; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.section-head-row .section-lede { max-width: 440px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 8px; border: 2px solid transparent;
  font: 700 15.5px/1 var(--body-font); white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(47, 122, 79, .8); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--green-dark); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); }
.link span { transition: transform .25s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover span { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-dark); color: var(--on-dark); font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.topbar a:hover { color: #9fdcb7; }
@media (max-width: 760px) { .topbar-loc, .topbar-links a:nth-child(2), .topbar-links a:nth-child(3) { display: none; } .topbar-inner { justify-content: center; } }

/* ---------- Header ---------- */
.head { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.head.is-scrolled { box-shadow: 0 6px 24px -12px rgba(25, 53, 42, .25); }
.head-inner { height: var(--head-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 19px/1 var(--head-font); letter-spacing: -.02em; color: var(--green-dark); flex-shrink: 0; }
.brand b { font-weight: 750; }
.nav { display: none; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { position: relative; padding: 26px 0; color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--primary); }
.head-cta { display: none; }
.menu-btn { margin-left: auto; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--green-dark); }
.menu-lines { display: grid; gap: 5px; }
.menu-lines i { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-lines i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-lines i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
.menu nav { display: grid; padding: 8px 0 24px; }
.menu nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 18px/1.2 var(--head-font); }
.menu-actions { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 1080px) { .nav, .head-cta { display: flex; } .menu-btn, .menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; display: grid; min-height: min(80vh, 780px); background: var(--green-dark); }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; padding: clamp(72px, 9vw, 120px) 0 140px; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-on .slide-bg { transform: scale(1); }
#slide-water .slide-bg { object-position: 70% 50%; }
#slide-solar .slide-bg { object-position: 60% 40%; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 34, 26, .9) 0%, rgba(13, 34, 26, .7) 45%, rgba(13, 34, 26, .15) 100%); }
.slide-inner > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.slide.is-on .slide-inner > * { opacity: 1; transform: none; }
.slide.is-on .slide-inner > :nth-child(2) { transition-delay: .1s; }
.slide.is-on .slide-inner > :nth-child(3) { transition-delay: .2s; }
.slide.is-on .slide-inner > :nth-child(4) { transition-delay: .3s; }
.slide-title { font: 650 clamp(38px, 5.4vw, 72px)/1.05 var(--head-font); letter-spacing: -.035em; max-width: 14ch; margin-bottom: 20px; text-wrap: balance; }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); color: #dbe9e1; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.slide-nav { grid-area: 1 / 1; align-self: end; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 28px; }
.slide-tab { display: flex; align-items: baseline; gap: 10px; position: relative; padding: 16px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, .3); background: none; color: rgba(255, 255, 255, .7); text-align: left; font: 650 16px/1.2 var(--head-font); cursor: pointer; transition: color .2s; }
.slide-tab span { font: 700 12px/1 var(--body-font); letter-spacing: .1em; }
.slide-tab:hover, .slide-tab[aria-selected="true"] { color: #fff; }
.slide-tab i { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--green); }
.slide-tab[aria-selected="true"] i { width: 100%; transition: width var(--slide-ms, 7000ms) linear; }
.hero.is-paused .slide-tab[aria-selected="true"] i, .hero.no-auto .slide-tab[aria-selected="true"] i { transition: none; }
@media (max-width: 700px) { .slide::before { background: linear-gradient(180deg, rgba(13, 34, 26, .7), rgba(13, 34, 26, .92)); } .hero { min-height: 0; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--green-dark); color: #fff; border-top: 1px solid rgba(255, 255, 255, .1); }
.trust-grid { display: grid; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.trust-item:last-child { border-bottom: 0; }
.trust-item h2 { font-size: 16.5px; letter-spacing: -.01em; color: #fff; }
.trust-item p { font-size: 14px; color: var(--on-dark); line-height: 1.4; }
.ico { flex: none; color: #9fdcb7; }
.ico svg, .prob-ico svg, .ind svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-stat { font: 700 34px/1 var(--head-font); letter-spacing: -.03em; color: #9fdcb7; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } .trust-item:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 1000px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .trust-item { border-bottom: 0; padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .trust-item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 4px; }
.about-copy .h2 { margin-bottom: 18px; }
.about-copy > p { color: var(--text-2); font-size: 17px; }
.checklist { display: grid; gap: 12px; margin: 26px 0 30px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6' fill='none' stroke='%232f7a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- Sample tag (placeholder content) ---------- */
.sample-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; background: #fff4d6; color: #7a5300; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }

/* ---------- Solutions ---------- */
.sol-grid { display: grid; gap: 48px 40px; }
.sol-card { display: flex; flex-direction: column; }
.sol-media { overflow: hidden; border-radius: 4px; }
.sol-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.sol-card:hover .sol-media img { transform: scale(1.03); }
.sol-body { padding-top: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sol-k { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.sol-body h3 { font-size: clamp(24px, 2.4vw, 30px); }
.sol-body > p { color: var(--text-2); }
.mini-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 6px; }
.mini-list li { position: relative; padding-left: 14px; color: var(--green-dark); font-size: 14.5px; font-weight: 600; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--green); }
.sol-body .link { margin-top: auto; }
@media (min-width: 900px) { .sol-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hard water problem ---------- */
.problem { background: var(--bg); border-block: 1px solid var(--line); }
.problem-grid { display: grid; gap: 40px; align-items: center; }
.problem-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.problem .h2 { margin-bottom: 12px; }
.prob-list { display: grid; margin: 24px 0 30px; border-top: 1px solid #d6e3da; }
.prob-list li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #d6e3da; }
.prob-ico { color: #b3261e; padding-top: 2px; }
.prob-list h3 { font-size: 18px; margin-bottom: 2px; }
.prob-list p { color: var(--text-2); font-size: 15px; }
@media (min-width: 960px) { .problem-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

.benefit { background: #fff; border-top: 0; }
.benefit .prob-ico { color: var(--primary); }
@media (min-width: 960px) { .benefit .problem-grid { grid-template-columns: 1.1fr .9fr; } .benefit .problem-media { order: 2; } }

/* ---------- Products ---------- */
.tabs { display: inline-flex; gap: 28px; border-bottom: 1px solid #d6e3da; }
.tab { position: relative; min-height: 44px; padding: 0 2px; border: 0; background: transparent; font: 700 16px/1 var(--body-font); color: var(--text-2); cursor: pointer; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--primary); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab[aria-selected="true"] { color: var(--green-dark); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.prod-grid { display: grid; gap: 48px 32px; }
.prod { display: flex; flex-direction: column; }
.prod-media { position: relative; overflow: hidden; border-radius: 4px; background: var(--bg); }
.prod-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.prod:hover .prod-media img { transform: scale(1.03); }
.prod-tag { position: absolute; left: 0; top: 0; padding: 6px 10px; background: var(--green-dark); color: #fff; font-size: 12px; font-weight: 700; }
.prod-body { padding-top: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prod-body h3 { font-size: 21px; }
.prod-body > p { color: var(--text-2); font-size: 15px; }
.spec { display: grid; margin: 4px 0 8px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { font-weight: 700; color: var(--green-dark); }
.spec dd { color: var(--text-2); }
.prod-body .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 760px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Process ---------- */
.process-grid { display: grid; gap: 40px; align-items: center; }
.process-copy .h2 { margin-bottom: 28px; }
.process-list { display: grid; }
.process-list li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding-bottom: 28px; }
.process-list li:last-child { padding-bottom: 0; }
/* the line runs from the bottom of one circle to the top of the next */
.process-list li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: #cfe0d5; }
.process-list span { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 16px/1 var(--head-font); }
.process-list h3 { font-size: 19px; margin: 12px 0 4px; }
.process-list p { color: var(--text-2); font-size: 15.5px; }
.process-media { display: grid; gap: 16px; }
.process-media figure { position: relative; overflow: hidden; border-radius: 4px; }
.process-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.process-media figcaption { position: absolute; left: 0; bottom: 0; padding: 7px 12px; background: var(--green-dark); color: #fff; font-size: 13px; font-weight: 700; }
@media (min-width: 600px) and (max-width: 959px) { .process-media { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .process-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

/* ---------- Hero video (desktop; phones and reduced-motion keep the photo) ---------- */
.slide-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide-video.is-playing { opacity: 1; }
#slide-water .slide-video { object-position: 70% 50%; }

/* ---------- How a softener works: animated cutaway ---------- */
.how { background: #fff; }
.how-grid { display: grid; gap: 32px; }
.how-copy .h2 { margin-bottom: 28px; }
.how-steps { display: grid; }
.how-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); opacity: .45; transition: opacity .4s; cursor: pointer; }
.how-step:last-child { border-bottom: 1px solid var(--line); }
.how-step.is-on { opacity: 1; }
.how-step span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary); font: 700 13px/1 var(--head-font); transition: background-color .3s, color .3s; }
.how-step.is-on span { background: var(--primary); color: #fff; }
.how-step h3 { font-size: 19px; margin: 6px 0 4px; }
.how-step p { color: var(--text-2); font-size: 15.5px; }
.how-figure { position: sticky; top: calc(var(--head-h) + 8px); z-index: 2; align-self: start; padding: 14px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 959px) { .how-figure { order: -1; margin-inline: -20px; border-radius: 0; border-inline: 0; box-shadow: 0 10px 20px -16px rgba(25, 53, 42, .5); } .how-copy .h2 { margin-bottom: 8px; } .how-step { min-height: 34vh; align-content: center; } }
.how-figure figcaption { margin-top: 6px; font-size: 12.5px; color: var(--text-2); text-align: center; }
.cut { display: block; width: 100%; height: auto; max-height: 46vh; }
.cut .pipe { fill: none; stroke: #b9c7bf; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.cut .pipe-in { fill: none; stroke: none; }
.cut .brine { fill: none; stroke: #8fb4dc; stroke-width: 8; stroke-dasharray: 2 12; stroke-linecap: round; }
.cut .lbl { font: 600 14px var(--body-font); fill: var(--green-dark); }
.cut .lbl-light { fill: #fff; }
.cut .part { opacity: .35; transition: opacity .5s var(--ease); }
.cut .mk circle { fill: #fff; stroke: var(--primary); stroke-width: 2.5; transition: fill .3s; }
.cut .mk text { font: 700 14px var(--head-font); fill: var(--primary); text-anchor: middle; }
.cut .dots-brine { opacity: 0; transition: opacity .4s; }
.cut[data-step="1"] .p1, .cut[data-step="2"] .p2, .cut[data-step="3"] .p3, .cut[data-step="4"] .p4, .cut[data-step="5"] .p5 { opacity: 1; }
.cut[data-step="2"] .p1, .cut[data-step="3"] .p2, .cut[data-step="3"] .p4, .cut[data-step="4"] .p3, .cut[data-step="5"] .p3, .cut[data-step="5"] .p4 { opacity: .6; }
.cut[data-step="1"] .m1 circle, .cut[data-step="2"] .m2 circle, .cut[data-step="3"] .m3 circle, .cut[data-step="4"] .m4 circle, .cut[data-step="5"] .m5 circle { fill: var(--primary); }
.cut[data-step="1"] .m1 text, .cut[data-step="2"] .m2 text, .cut[data-step="3"] .m3 text, .cut[data-step="4"] .m4 text, .cut[data-step="5"] .m5 text { fill: #fff; }
.cut[data-step="4"] .dots-brine { opacity: 1; }
.cut .drip { animation: drip 1.6s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@media (min-width: 960px) {
  .how-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
  .how-step { padding: 26px 0; min-height: 22vh; align-content: center; }
  .how-figure { top: calc(var(--head-h) + 32px); padding: 24px; }
  .cut { max-height: 70vh; }
}

/* ---------- Before / after slider ---------- */
.ba { border-block: 1px solid var(--line); }
.ba-grid { display: grid; gap: 32px; align-items: center; }
.ba-copy .h2 { margin-bottom: 14px; }
.ba-note { margin-top: 14px; font-size: 13px; color: #8a6d1f; }
.ba-frame { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: #dfe7e3; touch-action: pan-y; box-shadow: var(--shadow); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.ba-handle i::before, .ba-handle i::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-left: 2.5px solid var(--green-dark); border-bottom: 2.5px solid var(--green-dark); }
.ba-handle i::before { left: 11px; transform: rotate(45deg); }
.ba-handle i::after { right: 11px; transform: rotate(-135deg); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-handle, .ba-frame:focus-within .ba-handle i { outline: 3px solid var(--green); outline-offset: 2px; }
.ba-tag { position: absolute; top: 14px; max-width: calc(50% - 21px); padding: 6px 12px; background: rgba(13, 34, 26, .78); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; pointer-events: none; }
@media (max-width: 480px) { .ba-tag { top: 10px; padding: 5px 9px; font-size: 12px; } .ba-tag-l { left: 10px; } .ba-tag-r { right: 10px; } }
.ba-tag-l { left: 14px; }
.ba-tag-r { right: 14px; background: rgba(47, 122, 79, .9); }
@media (min-width: 960px) { .ba-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- Projects gallery ---------- */
.work { background: #fff; border-block: 1px solid var(--line); overflow: hidden; }
.gal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.gal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.gal-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gal-filter { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #cddbd2; background: #fff; font: 700 14px/1 var(--body-font); color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.gal-filter:hover { border-color: var(--primary); color: var(--primary); }
.gal-filter[aria-pressed="true"] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.gal-arrows { display: none; gap: 8px; }
.gal-arrow, .lb-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cddbd2; background: #fff; color: var(--green-dark); cursor: pointer; transition: background-color .2s, color .2s; }
.gal-arrow:hover { background: var(--green-dark); color: #fff; }
.gal-arrow svg, .lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gal-lede { margin-top: 10px; font-size: 17px; color: var(--text-2); }
.gal-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - 1240px) / 2)); padding: 4px max(20px, calc((100vw - 1240px) / 2)) 20px; scrollbar-width: thin; cursor: grab; }
.gal-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gal-track.is-dragging .gal-open { pointer-events: none; }
.gal-item { flex: none; scroll-snap-align: start; height: clamp(300px, 46vh, 460px); aspect-ratio: 3 / 4; }
.gal-item.gal-wide { aspect-ratio: 4 / 3; }
.gal-item.is-hidden { display: none; }
.gal-open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--bg); cursor: zoom-in; text-align: left; }
.gal-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-open:hover img { transform: scale(1.04); }
.gal-badge { position: absolute; top: 12px; left: 12px; padding: 4px 9px; background: #fff4d6; color: #7a5300; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gal-badge.gal-own { background: var(--green-dark); color: #fff; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: 44px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(13, 34, 26, .88)); }
.gal-cap b { font: 650 17px/1.2 var(--head-font); }
.gal-cap small { font-size: 13px; color: var(--on-dark); }
.gal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; color: var(--text-2); font-size: 14.5px; }
@media (min-width: 760px) { .gal-arrows { display: flex; } }

/* Lightbox */
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 6px; background: #0d1d17; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 14, 11, .85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lb-img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #0d1d17; border-radius: 6px 6px 0 0; }
.lb-cap { padding: 14px 18px; font-weight: 600; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .92); border: 0; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; margin-top: -40px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (prefers-reduced-motion: reduce) { .cut .drip { animation: none; } .slide-video { display: none; } }

/* ---------- Solar diagram ---------- */
.how-solar { background: var(--bg); border-top: 1px solid var(--line); }
.how-solar .how-figure { background: #fff; }
.cut-solar .wire { fill: none; stroke: #b9c7bf; stroke-width: 7; stroke-linecap: round; }
.cut-solar .beam { fill: none; stroke: #f6c343; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 12; animation: beam 1.2s linear infinite; }
@keyframes beam { to { stroke-dashoffset: -36; } }
.cut-solar .sun-rays { animation: spin 18s linear infinite; transform-origin: 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.cut-solar .bulb-glow { opacity: 0; transition: opacity .6s; }
.cut-solar[data-step="4"] .bulb-glow, .cut-solar[data-step="5"] .bulb-glow { opacity: .9; }
.cut-solar .dots-extra { opacity: 0; transition: opacity .4s; }
.cut-solar[data-step="5"] .dots-extra { opacity: 1; }
.cut-solar .charge { transform-box: fill-box; transform-origin: bottom; animation: charge 2.4s ease-in-out infinite; }
@keyframes charge { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }
.cut-solar[data-step="2"] .p1, .cut-solar[data-step="3"] .p2, .cut-solar[data-step="4"] .p3, .cut-solar[data-step="5"] .p3, .cut-solar[data-step="5"] .p4 { opacity: .6; }
@media (min-width: 960px) {
  .how-solar .how-grid { grid-template-columns: 1.15fr .85fr; }
  .how-solar .how-figure { order: -1; }
}

/* ---------- Before / after: page reacts to the slider ---------- */
.ba { background: color-mix(in srgb, #f6efe4 var(--pos, 50%), #eaf4f8); transition: background-color .2s; }
.ba-panel { margin-top: 22px; padding: 22px; border-radius: 6px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(25, 53, 42, .08); }
.ba-meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.ba-pct { font: 700 26px/1 var(--head-font); letter-spacing: -.02em; color: color-mix(in srgb, #b3261e var(--pos, 50%), #2f7a4f); text-transform: none; }
.ba-bar { position: relative; height: 10px; margin: 10px 0 6px; border-radius: 10px; background: #e3eae6; overflow: hidden; }
.ba-bar i { position: absolute; inset: 0 auto 0 0; width: var(--pos, 50%); border-radius: inherit; background: color-mix(in srgb, #b3261e var(--pos, 50%), #2f8ce0); }
.ba-meter-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.ba-state { margin-top: 18px; transition: opacity .3s, transform .3s var(--ease); }
.ba-state h3 { font-size: 18px; margin-bottom: 8px; }
.ba-state ul { display: grid; gap: 6px; }
.ba-state li { position: relative; padding-left: 26px; font-size: 15px; }
.ba-state-hard li::before, .ba-state-soft li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.ba-state-hard h3 { color: #9b2c24; }
.ba-state-hard li::before { content: "\2715"; color: #b3261e; }
.ba-state-soft h3 { color: var(--primary); }
.ba-state-soft li::before { content: "\2713"; color: var(--primary); }
.ba[data-state="hard"] .ba-state-soft, .ba[data-state="soft"] .ba-state-hard { display: none; }
.ba[data-state="hard"] .ba-cta { background: #9b2c24; }
.ba-cta { margin-top: 18px; transition: background-color .3s; }
.ba-tag-l { opacity: calc(.35 + var(--posn, 50) / 150); }
.ba-tag-r { opacity: calc(1 - var(--posn, 50) / 150); }

/* ---------- Industries ---------- */
.industries { background: #fff; }
.ind-layout { display: grid; gap: 40px; }
.ind-intro .h2 { margin-bottom: 12px; }
.ind-photo { margin-top: 28px; }
.ind-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.ind-grid { display: grid; gap: 16px; align-content: start; }
.ind { position: relative; padding: 24px 22px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.ind::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.ind:hover { border-color: #cfe0d5; box-shadow: var(--shadow); transform: translateY(-3px); }
.ind:hover::before { transform: scaleY(1); }
.ind-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; background: #fff; border: 1px solid #d6e3da; color: var(--primary); }
.ind svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ind h3 { font-size: 18px; margin-bottom: 6px; }
.ind p { font-size: 14.5px; color: var(--text-2); }
@media (min-width: 640px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ind-layout { grid-template-columns: .85fr 1.4fr; gap: 56px; align-items: start; } .ind-intro { position: sticky; top: calc(var(--head-h) + 32px); } }

@media (prefers-reduced-motion: reduce) { .cut-solar .beam, .cut-solar .sun-rays, .cut-solar .charge { animation: none; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.testi { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.testi .sample-tag { align-self: flex-start; }
.testi::before { content: "\201C"; font: 700 64px/.6 var(--head-font); color: var(--green); height: 30px; }
.stars { color: #e0a63a; letter-spacing: 2px; font-size: 15px; }
.testi blockquote { font-size: 17px; color: var(--text); flex: 1; }
.who { display: grid; }
.who b { font: 650 16px/1.3 var(--head-font); }
.who span { font-size: 14px; color: var(--text-2); }
@media (min-width: 900px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .testi { border-bottom: 0; border-left: 1px solid var(--line); padding: 8px 32px; }
  .testi:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Other services ---------- */
.others { padding-top: 0; }
.others-grid { display: grid; gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.other { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.other img { width: 120px; height: 100px; object-fit: cover; border-radius: 4px; }
.other h3 { font-size: 20px; margin-bottom: 4px; }
.other p { color: var(--text-2); font-size: 15px; margin-bottom: 8px; }
@media (min-width: 900px) { .others-grid { grid-template-columns: 1fr 1fr; gap: 40px; } .other { grid-template-columns: 180px 1fr; } .other img { width: 180px; height: 130px; } }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 24px; }
.faq-list { display: grid; border-top: 1px solid #d6e3da; }
.faq details { border-bottom: 1px solid #d6e3da; }
.faq summary { position: relative; padding: 20px 48px 20px 0; cursor: pointer; list-style: none; font: 650 17px/1.35 var(--head-font); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 48px 20px 0; color: var(--text-2); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }

/* ---------- Contact ---------- */
.contact { background: var(--green-dark); color: #fff; }
.contact-grid { display: grid; gap: 40px; align-items: start; }
.contact-info .h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--on-dark); font-size: 17px; max-width: 44ch; }
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-list li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--green); }
.contact-list span { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fdcb7; }
.contact-list a, .contact-list b { font: 600 18px/1.4 var(--head-font); color: #fff; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: #fff; color: var(--text); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.form-title { font-size: 24px; margin-bottom: 18px; }
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field abbr { text-decoration: none; color: #b3261e; }
input, select, textarea { width: 100%; font: 400 16px/1.4 var(--body-font); color: var(--text); background: #fff; border: 1px solid #cddbd2; border-radius: 8px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%2319352a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 20px no-repeat; cursor: pointer; }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #7b8f85; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(77, 163, 111, .18); }
[aria-invalid="true"] { border-color: #b3261e; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 20px; }
.submit:disabled { opacity: .65; cursor: wait; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #dcefe2; color: #1d5434; }
.form-status.is-error { background: #fbeceb; color: #9b2c24; }
.form-note { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.form-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

/* ---------- Footer ---------- */
.foot { background: #10251c; color: var(--on-dark); font-size: 15px; padding-top: 64px; }
.foot-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.brand-light { color: #fff; }
.foot-brand p { margin-top: 14px; max-width: 34ch; }
.foot h2 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-family: var(--body-font); }
.foot ul { display: grid; gap: 10px; }
.foot li { overflow-wrap: anywhere; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; } }

/* ---------- WhatsApp (floating) ---------- */
.wa { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; align-items: center; height: 56px; padding: 0 14px; border-radius: 999px; background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: padding .4s var(--ease), transform .3s var(--ease); }
.wa:hover { padding-right: 20px; transform: translateY(-2px); }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; color: #0b3d1f; font: 800 15px/1 var(--body-font); transition: max-width .4s var(--ease), margin .4s var(--ease); }
.wa svg { color: #0b3d1f; }
.wa:hover .wa-label, .wa:focus-visible .wa-label { max-width: 140px; margin-left: 10px; }

/* ---------- Privacy Policy view ---------- */
.privacy { display: none; min-height: 100vh; background: var(--bg); }
.privacy:target { display: block; }
body:has(.privacy:target) :is(.topbar, .head, main, .foot, .wa) { display: none !important; }
.privacy-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px max(20px, calc((100vw - 1240px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .privacy-bar .brand span { display: none; } }
.privacy-body { max-width: 820px; padding: clamp(40px, 6vw, 80px) 0 72px; }
.privacy h1 { font-size: clamp(36px, 5vw, 56px); }
.privacy-date { margin-top: 10px; color: var(--text-2); }
.policy { margin-top: 32px; padding: clamp(22px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.policy h2 { font-size: 20px; margin: 28px 0 8px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: #2d4a3e; }
.policy ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.policy a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.privacy-foot { margin-top: 28px; font-size: 14px; color: var(--text-2); }

/* ---------- Reveal on scroll (subtle) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 959px) { .ba-grid { gap: 20px; } .ba-frame { order: -1; } .ba-panel { margin-top: 14px; } }

/* Solar version: grey grid power vs warm sunlight */
.ba-solar { background: color-mix(in srgb, #eceef0 var(--pos, 50%), #fdf5dc); }
.ba-solar .ba-bar i { width: var(--meter, 50%); background: linear-gradient(90deg, #6f7a82, #b8a37a 45%, #f2b632); background-size: calc(100% * 100 / max(var(--metern, 50), 1)) 100%; }
.ba-solar .ba-pct { color: color-mix(in srgb, #b07d0c var(--meter, 50%), #5d6870); }
.ba-solar .ba-state-hard h3 { color: #4f5a62; }
.ba-solar .ba-state-hard li::before { color: #6f7a82; }
.ba-solar[data-state="hard"] .ba-cta { background: #4f5a62; }
.ba-solar .ba-tag-r { background: rgba(176, 125, 12, .9); }