/* Techlab Solars, single-page landing. Mobile first. Brand green from the client's logo (#27b466). */
:root {
  --green: #27b466;        /* logo green: accents, icons */
  --green-d: #12804a;      /* readable green for text on white */
  --ink: #0b3a24;          /* deep green for headings and dark bands */
  --ink-2: #0f4d30;
  --text: #1d2a23;
  --muted: #55645b;
  --sun: #ffb020;          /* solar amber: primary call to action */
  --sun-2: #ffc54d;
  --sun-ink: #2e1d00;
  --wa: #1fa855;
  --bg: #ffffff;
  --tint: #f3f8f4;
  --line: #dfe8e1;
  --radius: 16px;
  --shadow: 0 12px 34px -14px rgba(11, 58, 36, .35);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.16; letter-spacing: -.018em; margin: 0 0 .55em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; line-height: 1.2; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-sun:hover { background: var(--sun-2); color: var(--sun-ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #24bd61; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }

/* Top bar + header */
.topbar { background: var(--ink); color: #cfe6d8; font-size: .85rem; display: none; }
.topbar a { color: #fff; text-decoration: none; margin-left: 1.2rem; }
.topbar-in { display: flex; justify-content: space-between; padding-top: .45rem; padding-bottom: .45rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; flex-direction: column; padding: .5rem 16px 1rem; box-shadow: var(--shadow); }
.site-nav.open { display: flex; }
.site-nav a { padding: .7rem 0; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }
.site-nav a:hover { color: var(--green-d); }
.site-nav .nav-cta { margin-top: .8rem; border: 0; color: var(--sun-ink); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink) linear-gradient(135deg, #0b3a24 0%, #12643d 100%); overflow: hidden; isolation: isolate; }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,36,22,.93) 0%, rgba(6,36,22,.78) 48%, rgba(6,36,22,.45) 100%); }
.hero-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--sun-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--green-d); margin-bottom: .8rem; }
.hero .eyebrow, .subsidy .eyebrow { color: #8ff0b8; }
.lead { font-size: 1.12rem; max-width: 58ch; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.hero-note { font-size: .85rem; opacity: .8; max-width: 52ch; margin: 0; }

/* Forms */
.form { background: #fff; color: var(--text); padding: 1.3rem; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: .85rem; }
.form-title { font-weight: 800; color: var(--ink); font-size: 1.2rem; margin: 0; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: .28rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid #c8d6cc; border-radius: 10px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid rgba(39,180,102,.3); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.form-status { margin: 0; font-weight: 700; font-size: .95rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--green-d); }
.form-status.err { color: #b3261e; }
.notice { background: #e6f7ed; color: var(--ink); border-radius: 10px; padding: .8rem 1rem; font-weight: 700; }

/* Trust strip */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-list { list-style: none; margin: 0 auto; padding-top: 1.1rem; padding-bottom: 1.1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; font-size: .92rem; color: var(--muted); }
.trust-list li { padding-left: 1.6rem; position: relative; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.trust-list b { color: var(--ink); }

/* Sections */
.section { padding: 4rem 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.section-head p:last-child { color: var(--muted); }

/* Service cards */
.cards { display: grid; gap: 1rem; }
.card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 1rem 0 .4rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #e4f6eb; color: var(--green-d); }
.card-icon svg { width: 30px; height: 30px; }

/* Subsidy band */
.subsidy { background: linear-gradient(135deg, #0b3a24, #12643d); color: #d9efe2; padding: 3.5rem 0; }
.subsidy h2 { color: #fff; }
.subsidy-grid { display: grid; gap: 2rem; align-items: center; }
.subsidy-sum { margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.subsidy-sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(255,255,255,.22); }
.subsidy-sum dt { color: #cfe6d8; }
.subsidy-sum dd { margin: 0; font-weight: 800; color: #fff; font-size: 1.15rem; }
.subsidy-sum .total { border-bottom: 0; }
.subsidy-sum .total dt { color: #fff; font-weight: 800; }
.subsidy-sum .total dd { color: var(--sun-2); font-size: 1.6rem; }
.subsidy .fine { color: #b8d6c4; }

/* Calculator */
.calc { display: grid; gap: 1.2rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 1.4rem; }
.seg { display: inline-flex; background: var(--tint); border-radius: 999px; padding: 4px; margin-bottom: 1.4rem; }
.seg button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.calc-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .6rem; }
.calc-label output { font-size: 2rem; font-weight: 800; color: var(--green-d); display: block; line-height: 1.2; }
.calc input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; }
.calc-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.calc-hint { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; background: var(--tint); border-radius: var(--radius); padding: 1.1rem; align-content: start; }
.calc-out > div { background: #fff; border-radius: 12px; padding: .8rem .9rem; }
.calc-out span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.calc-out b { display: block; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.calc-out small { color: var(--muted); font-size: .8rem; }
.calc-out .btn, .calc-out .fine { grid-column: 1 / -1; }
.calc-out [hidden] { display: none; }

/* Why */
.split { display: grid; gap: 2rem; align-items: start; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media:empty { display: none; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.why li { padding-left: 2rem; position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.why b { color: var(--ink); }

/* Brands */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 2rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.brands-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--muted); }
.brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; }
.brands li { font-weight: 800; font-size: 1.2rem; color: #3b4a41; letter-spacing: -.01em; }

/* Projects */
.projects { display: grid; gap: 1rem; }
.project { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; gap: 1rem; align-items: flex-start; }
.project-kw { flex: none; display: grid; place-items: center; min-width: 4.6rem; height: 4.6rem; border-radius: 14px; background: linear-gradient(135deg, #12804a, #27b466); color: #fff; font-weight: 800; font-size: 1.05rem; text-align: center; padding: 0 .4rem; }
.project figcaption { color: var(--muted); font-size: .97rem; }
.tag { display: block; font-weight: 800; color: var(--ink); margin-bottom: .2rem; }

/* Steps */
.steps4 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps4 li { counter-increment: s; background: var(--tint); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.3rem; position: relative; }
.steps4 li::before { content: counter(s); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--ink); color: var(--sun-2); font-weight: 800; margin-bottom: .8rem; }
.steps4 b { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .3rem; }
.steps4 span { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green-d); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.contact-list span { display: inline-block; min-width: 6.2rem; font-weight: 800; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.map { margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Footer */
.site-footer { background: #072a19; color: #b5ccbd; padding-top: 3.2rem; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun-2); }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer address { font-style: normal; margin-bottom: .8rem; }
.footer-logo { height: 52px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.4rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; padding-bottom: 5.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .85rem; }

/* Floating buttons */
.wa-float, .call-float { position: fixed; z-index: 60; right: 16px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float { bottom: 16px; background: var(--wa); }
.call-float { bottom: 82px; background: var(--ink); }
.wa-float:hover, .call-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg, .call-float svg { width: 28px; height: 28px; fill: currentColor; }

@media (min-width: 600px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .form:not(.form-compact) { grid-template-columns: 1fr 1fr; padding: 1.8rem; }
  .form-compact { grid-template-columns: 1fr 1fr; }
  .form-compact .form-title, .form-compact .btn { grid-column: 1 / -1; }
  .field-wide { grid-column: 1 / -1; }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .topbar { display: block; }
  .nav-toggle { display: none; }
  .call-float { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 1.3rem; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .site-nav a { border: 0; padding: .3rem 0; font-size: .95rem; }
  .site-nav .nav-cta { margin: 0 0 0 .4rem; padding: .6em 1.2em; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; padding-top: 5rem; padding-bottom: 5rem; }
  .form-compact { grid-template-columns: 1fr; padding: 1.6rem; }
  .trust-list { grid-template-columns: repeat(5, 1fr); }
  .section { padding: 5.5rem 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .subsidy-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; }
  .calc { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; padding: 2.4rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .projects { grid-template-columns: repeat(3, 1fr); }
  .steps4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-base { padding-bottom: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Inner pages (privacy policy, 404). */
.page-hero { background: var(--tint); border-bottom: 1px solid var(--line); padding: 3rem 0 2rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.7rem); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose p { max-width: 70ch; }
.section.prose { padding-top: 2.5rem; }
