/* Green Automation — public site styles */
:root {
  --primary: #0B2545; --accent: #0F6B3E; --highlight: #7BC74D; --radius: 14px;
  --ink: #0f1b2d; --muted: #5a6779; --line: #e3e8ef; --bg: #ffffff; --tint: #f3f7f5;
  --shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px rgba(11, 37, 69, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.18; color: var(--primary); letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 4px; }
.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; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container.narrow { width: min(100% - 40px, 780px); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.small { font-size: .875rem; } .muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: calc(var(--radius) * .7); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--highlight); color: var(--primary); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn-row:empty { display: none; }
.btn-row.center, .center-row { justify-content: center; display: flex; margin-top: 2rem; }

/* Top bar + header */
.topbar { background: var(--primary); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-text { margin: 0; }
.topbar-contact { display: flex; gap: 20px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--highlight); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand .logo { max-height: 52px; width: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; }
.wordmark svg { width: 40px; height: 40px; color: var(--primary); }
.wordmark.on-dark { color: #fff; } .wordmark.on-dark svg { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .97rem; }
.site-nav ul a:hover { color: var(--accent); background: var(--tint); }
.site-nav ul a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; position: relative; transition: transform .25s, opacity .25s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--primary) 0%, #123a5e 55%, var(--accent) 130%); overflow: hidden; }
.hero.has-img { background: linear-gradient(100deg, rgba(11,37,69,.94) 0%, rgba(11,37,69,.78) 45%, rgba(15,107,62,.35) 100%), var(--hero-img) center / cover no-repeat; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(123,199,77,.35), transparent 70%); pointer-events: none; }
.hero-inner { padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 130px); max-width: 760px; margin-left: max(20px, calc((100% - var(--container)) / 2)); position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero-text { font-size: 1.2rem; color: rgba(255,255,255,.88); max-width: 620px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero .eyebrow { color: var(--highlight); background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); }
.page-hero { background: linear-gradient(120deg, var(--primary), #14406a); color: #fff; padding: 56px 0 48px; }
.page-hero.compact { padding: 20px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: .75rem; }
.crumbs a { color: #fff; text-decoration: none; } .crumbs a:hover { color: var(--highlight); }
.page-hero.compact .crumbs { margin: 0; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.page-blocks > .container, .page-blocks > figure, .page-blocks > blockquote { margin-top: 2rem; margin-bottom: 2rem; }
.page-blocks > .section + .section { padding-top: 0; }
.page-blocks > .tint + .section, .page-blocks > .features-block + .section, .page-blocks > .section + .tint, .page-blocks > .section + .features-block, .page-blocks > .section + .steps-block { padding-top: clamp(56px, 8vw, 96px); }
.tint { background: var(--tint); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.block-heading.align-center { text-align: center; }
.prose { color: #2b3a4d; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent); }
.block-figure img, .block-figure video { border-radius: var(--radius); width: 100%; }
.block-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; text-align: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block-quote { border-left: 4px solid var(--highlight); padding: 8px 0 8px 24px; font-size: 1.3rem; color: var(--primary); font-weight: 600; }
.block-quote cite { display: block; font-size: .95rem; font-style: normal; color: var(--muted); margin-top: .5rem; font-weight: 500; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(15,107,62,.1); color: var(--accent); margin-bottom: 16px; }
.feature-icon .icon { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.features-block { background: var(--tint); }
.features-block.is-dark { background: var(--primary); color: #fff; }
.is-dark h2, .is-dark h3 { color: #fff; }
.is-dark .section-head p { color: rgba(255,255,255,.75); }
.is-dark .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.is-dark .feature p { color: rgba(255,255,255,.75); }
.is-dark .feature-icon { background: rgba(123,199,77,.15); color: var(--highlight); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.img-left .split-media { order: -1; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-num { font-size: 2.2rem; font-weight: 800; color: var(--highlight); line-height: 1; display: block; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Stats */
.stats-band { background: var(--accent); color: #fff; padding: 40px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.stat span { opacity: .85; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { display: block; background: var(--tint); }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.placeholder-img { display: grid; place-items: center; color: var(--accent); background: linear-gradient(135deg, var(--tint), #e1ece6); aspect-ratio: 4 / 3; }
.placeholder-img .icon { width: 56px; height: 56px; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body h3 a { color: var(--primary); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent) !important; margin-bottom: .4rem; }
.price { font-weight: 800; color: var(--primary) !important; }
.price.big { font-size: 1.5rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.card-link .icon { transition: transform .2s; }
.card:hover .card-link .icon { transform: translateX(4px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.filters a:hover { border-color: var(--accent); color: var(--accent); }
.filters a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Product detail */
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.product-media { position: sticky; top: 100px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.product-info .btn-row { margin-bottom: 2rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--primary); font-weight: 600; background: var(--tint); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-grid.preview { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.gallery-item a { display: block; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 15, 30, .9); }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; margin: auto; }
.lb-caption { color: #fff; text-align: center; margin-top: 10px; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); border-top: 4px solid var(--highlight); }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--ink); }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.testimonial strong { color: var(--primary); }
.t-project { color: var(--accent); font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--accent), #0c5a34 60%, var(--primary)); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: .3em; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.85); max-width: 620px; }
.cta-inner .btn-row { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(15,107,62,.1); color: var(--accent); }
.info-list strong { display: block; color: var(--primary); }
.info-list a { text-decoration: none; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cfd8e3; border-radius: 10px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,107,62,.18); }
.field [aria-invalid="true"] { border-color: #c62828; }
.field-error { color: #c62828; font-size: .88rem; margin: 6px 0 0; }
.req { color: #c62828; } .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.form-note { font-size: .88rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert-success { background: #e7f6ec; color: #135c32; border: 1px solid #b8e2c6; }
.alert-error { background: #fdecea; color: #8e1c1c; border: 1px solid #f5c2bd; }
.map-section iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Empty state + preview bar */
.empty-state { text-align: center; padding: 48px 20px; max-width: 520px; margin: 0 auto; }
.empty-state > .icon { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 16px; }
.empty-state p { color: var(--muted); }
.preview-bar { background: #fff4d6; color: #5c4400; text-align: center; padding: 10px 20px; font-weight: 600; border-bottom: 1px solid #f0d78a; }

/* Footer */
.site-footer { background: #071a31; color: rgba(255,255,255,.75); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-grid a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-grid a:hover { color: var(--highlight); }
.site-footer .logo { max-height: 56px; width: auto; }
.footer-tagline { color: var(--highlight); font-weight: 700; margin: 14px 0 8px; }
.footer-h { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links, .footer-contact, .socials { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact .icon { color: var(--highlight); margin-top: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.socials a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.8); }
.whatsapp-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 60; }
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); }

/* Reveal motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); background: var(--tint); }
  .split, .product-grid, .contact-grid { grid-template-columns: 1fr; }
  .split.img-left .split-media { order: 0; }
  .product-media { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar-text { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-contact { gap: 16px; font-size: .8rem; }
  .form-row.two, .footer-grid { grid-template-columns: 1fr; }
  .hero-text { font-size: 1.05rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .header-inner { min-height: 64px; }
  .brand .logo { max-height: 42px; }
  .wordmark { font-size: 1rem; } .wordmark svg { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }
