:root {
  --forest: #0b5c3a;
  --forest-deep: #073d27;
  --leaf: #1b8a4a;
  --lime: #2dbe6c;
  --mint: #7ee0a8;
  --teal: #129aa8;
  --cyan: #22b8c4;
  --bucket: #1fb6c4;
  --ink: #0c2418;
  --ink-soft: #234233;
  --muted: #5b7466;
  --line: #d7ece0;
  --paper: #f4fbf7;
  --paper-2: #e7f6ee;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(11, 92, 58, 0.12);
  --shadow-sm: 0 8px 24px rgba(11, 92, 58, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --header: 84px;
  --max: 1180px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --forest: #3ddc84;
  --forest-deep: #1b8a4a;
  --leaf: #4ade80;
  --lime: #86efac;
  --mint: #bbf7d0;
  --teal: #2dd4bf;
  --cyan: #67e8f9;
  --ink: #e8f6ee;
  --ink-soft: #c5e0d1;
  --muted: #93b3a3;
  --line: #1c3a2c;
  --paper: #07150f;
  --paper-2: #0d241a;
  --card: #10251b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--forest); text-decoration: none; }
button { cursor: pointer; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--forest-deep), #0e6b48 55%, var(--teal));
  color: #f4fff8;
  font-size: 13px;
  letter-spacing: .01em;
}
body.overlay-open .topbar,
body.overlay-open .site-header { z-index: 0; }
.topbar-inner {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 8px 0; flex-wrap: wrap;
}
.topbar a { color: #fff; opacity: .92; }
.topbar strong { font-weight: 700; }
.spark { color: #c8ffd8; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.nav-row {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px; min-width: max-content;
  color: inherit;
}
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  letter-spacing: -.02em; color: var(--forest-deep);
}
[data-theme="dark"] .brand-text b { color: var(--mint); }
.brand-text span { font-size: 11px; color: var(--muted); font-weight: 600; }

.nav {
  display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap;
}
.nav a {
  padding: 8px 11px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 650; font-size: 14px;
}
.nav a:hover { background: var(--paper-2); color: var(--forest); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn, .btn, .chip {
  border: 0; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
}
.icon-btn {
  width: 42px; height: 42px; justify-content: center;
  background: var(--paper-2); color: var(--ink);
}
.btn {
  padding: 12px 18px; background: var(--forest); color: #fff;
  box-shadow: 0 10px 24px rgba(11, 92, 58, .25);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent; color: var(--forest); box-shadow: none;
  border: 1.5px solid color-mix(in srgb, var(--forest) 45%, var(--line));
}
.btn.ghost.on-dark {
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.45);
}
.btn.light { background: #fff; color: var(--forest-deep); }
.btn.lg { padding: 15px 22px; font-size: 16px; }
.menu-toggle { display: none; }

.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - 110px);
  display: grid; place-items: stretch;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../images/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 32, 20, .78) 0%, rgba(7, 32, 20, .42) 48%, rgba(7, 32, 20, .18) 100%),
    radial-gradient(circle at 80% 20%, rgba(45, 190, 108, .25), transparent 40%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding: 54px 0 70px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); color: #e9fff2;
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.02;
  color: #fff; margin: 16px 0 8px; letter-spacing: -.03em;
}
.hero h1 em {
  font-style: italic; color: #9ff0c0; font-weight: 500;
}
.lede { color: #e4f7ec; font-size: 18px; max-width: 52ch; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta {
  display: flex; gap: 22px; color: #d7f5e4; font-size: 14px; flex-wrap: wrap;
}
.hero-meta b { display: block; color: #fff; font-size: 16px; }
.hero-card {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(18px);
  border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.35);
}
.hero-card img { width: 100%; height: 210px; object-fit: cover; border-radius: 18px; }
.badge-round {
  width: 108px; height: 108px; margin: -58px auto 8px;
  border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 20%, #4ade80, #0b5c3a 70%);
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .04em;
  box-shadow: 0 10px 30px rgba(11,92,58,.35);
  text-transform: uppercase; line-height: 1.2; padding: 12px;
}
.hero-card ul { list-style: none; padding: 8px 6px 0; margin: 0; }
.hero-card li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 14px;
}
.hero-card li:last-child { border-bottom: 0; }
.check {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--lime); color: #073d27; display: grid; place-items: center; font-size: 13px;
}

.section { padding: 84px 0; }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.eyebrow {
  color: var(--leaf); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; font-size: 12px; margin: 0 0 8px;
}
h2 {
  font-family: var(--display); font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1; margin: 0 0 10px; letter-spacing: -.03em;
}
.sub { color: var(--muted); margin: 0; font-size: 17px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -38px; position: relative; z-index: 2;
}
.stat {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stat b { display: block; font-size: 28px; font-family: var(--display); color: var(--forest); }
.stat span { color: var(--muted); font-size: 14px; }

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.service {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service.wide { grid-column: span 6; }
.service.mid { grid-column: span 4; }
.service.slim { grid-column: span 4; }
.service img { width: 100%; height: 190px; object-fit: cover; }
.service.wide img { height: 230px; }
.service-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service h3 { margin: 0; font-size: 22px; font-family: var(--display); }
.service p { margin: 0; color: var(--muted); }
.price-tag { margin-top: auto; font-weight: 800; color: var(--forest); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 24px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); position: relative;
}
.step-n {
  font-family: var(--display); font-size: 36px; color: var(--lime); font-weight: 700;
  line-height: 1;
}

.calc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.panel {
  background: var(--card); border-radius: 28px; padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--paper) 70%, var(--card));
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--lime); box-shadow: 0 0 0 4px rgba(45, 190, 108, .15);
}
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .addon {
  border: 1.5px solid var(--line); background: transparent; padding: 9px 12px;
  border-radius: 12px; font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.seg button.active, .addon.active {
  background: var(--forest); color: #fff; border-color: var(--forest);
}
.range-row { display: flex; justify-content: space-between; font-weight: 800; }
input[type="range"] { accent-color: var(--leaf); width: 100%; }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quote {
  background: linear-gradient(160deg, var(--forest-deep), #0e6b48 60%, var(--teal));
  color: #fff; border: 0;
  display: flex; flex-direction: column; min-height: 100%;
}
.quote .eyebrow { color: #b7f5cd; }
.quote h3 { color: #fff; margin: 0 0 6px; }
.quote-price {
  font-family: var(--display); font-size: clamp(40px, 5vw, 58px); line-height: 1;
  margin: 12px 0 4px;
}
.quote small { opacity: .85; }
.quote ul { padding: 0; margin: 18px 0; list-style: none; }
.quote li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 12px; }
.quote .btn { margin-top: auto; justify-content: center; }

.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }

.coverage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}
.map-card {
  background: var(--card); border-radius: 28px; padding: 18px;
  border: 1px solid var(--line);
}
.map-card svg { width: 100%; height: auto; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cities span {
  background: var(--paper-2); padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

.ba { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center; }
.ba-slider {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 360px;
  user-select: none; touch-action: none;
}
.ba-slider img { width: 100%; height: 420px; object-fit: cover; display: block; }
.ba-after { position: absolute; inset: 0; width: 52%; overflow: hidden; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 52%; width: 4px;
  background: #fff; transform: translateX(-50%); cursor: ew-resize;
}
.ba-handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: #fff;
  display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow-sm);
}
.ba-label {
  position: absolute; top: 14px; padding: 6px 10px; border-radius: 999px;
  background: rgba(7,32,20,.7); color: #fff; font-size: 12px; font-weight: 800;
}
.ba-label.l { left: 14px; }
.ba-label.r { right: 14px; }

.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ref {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px;
}
.stars { color: #f0b429; letter-spacing: 2px; }
.ref p { margin: 0; }
.who { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--teal));
  display: grid; place-items: center; color: #073d27; font-weight: 800;
}
.who small { display: block; color: var(--muted); }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why article {
  padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.why h3 { margin: 8px 0; font-size: 18px; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-photos img { height: 280px; width: 100%; object-fit: cover; border-radius: 22px; }
.about-photos img:first-child { height: 100%; min-height: 280px; grid-row: span 2; }
.team { display: grid; gap: 12px; margin-top: 18px; }
.member { display: flex; gap: 12px; align-items: center; }
.member img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 4px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; }
.contact-card {
  background: linear-gradient(180deg, var(--forest-deep), #0b5c3a);
  color: #fff; border-radius: 28px; padding: 28px;
}
.contact-card a { color: #fff; }
.contact-card h3 { margin: 0 0 8px; font-family: var(--display); }
.contact-line { margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.ok-msg, .err-msg { padding: 12px 14px; border-radius: 12px; font-weight: 700; margin-bottom: 12px; }
.ok-msg { background: #dcfce7; color: #14532d; }
.err-msg { background: #fee2e2; color: #7f1d1d; }
[data-theme="dark"] .ok-msg { background: #14532d; color: #dcfce7; }
[data-theme="dark"] .err-msg { background: #7f1d1d; color: #fee2e2; }

.site-footer {
  background: #06281b; color: #d5f0e0; padding: 48px 0 24px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { color: #d5f0e0; display: block; padding: 4px 0; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9ccab0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-flag {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800;
  background: #f59e0b; color: #1a1205; padding: 1px 6px; border-radius: 999px; vertical-align: middle;
}

.modal, .drawer, .portal {
  position: fixed; inset: 0; z-index: 200; display: none;
}
.modal.open, .drawer.open, .portal.open { display: grid; }
.modal { place-items: center; background: rgba(6, 20, 14, .55); padding: 20px; }
.modal-card {
  width: min(460px, 100%); background: var(--card); border-radius: 24px; padding: 24px;
  box-shadow: var(--shadow); max-height: 90vh; overflow: auto;
}
.modal-card.wide { width: min(720px, 100%); }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { flex: 1; }
.close {
  float: right; border: 0; background: var(--paper-2); width: 36px; height: 36px; border-radius: 50%;
}

.portal {
  background: rgba(6, 20, 14, .62);
  place-items: center;
  padding: 18px;
}
.portal-shell {
  width: min(1100px, 100%);
  height: min(860px, calc(100vh - 36px));
  margin: 0 auto;
  background: var(--card);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.portal-nav { background: var(--paper-2); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.portal-nav button {
  text-align: left; background: transparent; border: 0; padding: 10px 12px; border-radius: 12px; font-weight: 700;
}
.portal-nav button.active { background: var(--forest); color: #fff; }
.portal-main { padding: 24px; overflow: auto; }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 22px; }
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--paper-2);
}
.pill.ok { background: #dcfce7; color: #166534; }
.pill.warn { background: #fef3c7; color: #92400e; }

.portal.open ~ .chat-launcher,
.portal.open ~ .chat-box { display: none !important; }
.chat-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--lime), var(--forest));
  color: #fff; font-size: 24px; box-shadow: var(--shadow);
}
.chat-box {
  position: fixed; right: 18px; bottom: 92px; z-index: 60; width: min(360px, calc(100vw - 24px));
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--line); display: none; overflow: hidden;
}
.chat-box.open { display: grid; grid-template-rows: auto 1fr auto; height: 460px; }
.chat-head {
  background: var(--forest-deep); color: #fff; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
}
.chat-log { padding: 12px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 14px;
}
.bubble.bot { background: var(--paper-2); align-self: flex-start; }
.bubble.me { background: var(--forest); color: #fff; align-self: flex-end; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: transparent; }

.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow); display: none;
  max-width: 720px; margin: 0 auto;
}
.cookies.open { display: block; }

.reveal { opacity: 0; transform: translateY(18px); animation: up .7s ease forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
.sparkle {
  position: absolute; width: 8px; height: 8px; background: #fff;
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
  animation: tw 3.4s ease-in-out infinite; opacity: .7;
}
@keyframes tw { 50% { transform: scale(1.6) rotate(20deg); opacity: 1; } }

@media (max-width: 980px) {
  .hero-inner, .calc-grid, .coverage, .ba, .about-grid, .contact-grid, .portal-shell, .foot-grid {
    grid-template-columns: 1fr;
  }
  .portal-shell { height: calc(100vh - 24px); }
  .stats, .steps, .refs, .why, .kpi { grid-template-columns: 1fr 1fr; }
  .service.wide, .service.mid, .service.slim { grid-column: span 6; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--card); padding: 12px; border-bottom: 1px solid var(--line);
    z-index: 60;
  }
  .menu-toggle { display: inline-flex; }
  .hero-inner { padding-top: 28px; }
  .about-photos img, .about-photos img:first-child { height: 220px; grid-row: auto; }
  .hide-md { display: none !important; }
}
@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .stats, .steps, .refs, .why, .kpi, .bento, .addons, .form-grid { grid-template-columns: 1fr; }
  .service.wide, .service.mid, .service.slim { grid-column: span 12; }
  .topbar-inner { font-size: 12px; }
  .topbar-inner span:last-child a:nth-child(n+2) { display: none; }
  .hero { min-height: auto; }
  .ba-slider img { height: 280px; }
  .nav-actions .btn.ghost { display: none; }
  .brand-text span { display: none; }
  #openPortal { padding: 10px 12px; font-size: 13px; }
  .hero-card img { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
