:root {
  --ink: #123B2E;
  --ink-2: #1D4F3E;
  --leaf: #2F7A55;
  --yellow: #F4B630;
  --yellow-2: #E3A41C;
  --paper: #F3F5EF;
  --white: #FFFFFF;
  --text: #15241E;
  --muted: #4E6058;
  --line: #D6DDD5;
  --error: #B3261E;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; font-stretch: 115%; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-stretch: 108%;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow-2); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-call { background: var(--ink); color: var(--white); min-height: 44px; padding: 0 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #F7C24F; }
  .btn-ghost:hover { background: var(--ink); color: var(--white); }
  .btn-call:hover { background: var(--ink-2); }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); transition: color 160ms ease; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 11fr 13fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.5rem, 4.7vw, 4.1rem);
  font-stretch: 116%;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.lede { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 0.97rem; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 14px; height: 4px; border-radius: 2px; background: var(--yellow); }

/* Before / after */
.compare {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(18, 59, 46, 0.08), 0 24px 48px -24px rgba(18, 59, 46, 0.45);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.compare-layer, .compare-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare-before { clip-path: inset(0 50% 0 0); will-change: clip-path; }
.compare-tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; pointer-events: none;
}
.tag-before { left: 16px; background: rgba(21, 36, 30, 0.72); color: var(--white); }
.tag-after { right: 16px; background: var(--yellow); color: var(--ink); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 0; width: 44px; margin-left: -22px;
  transform: translateX(0); will-change: transform;
  display: grid; place-items: center;
  outline: none;
}
.compare-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(18, 59, 46, 0.15); }
.compare-knob {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(18, 59, 46, 0.3);
  transition: transform 160ms var(--ease-out);
}
.compare-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.compare[data-dragging] .compare-knob { transform: scale(0.94); }
.compare-handle:focus-visible .compare-knob { box-shadow: 0 0 0 3px var(--yellow), 0 4px 14px rgba(18, 59, 46, 0.3); }
.compare figcaption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.85rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; pointer-events: none;
  transition: opacity 300ms ease;
}
.compare[data-touched] figcaption { opacity: 0; }

/* Services */
.services { background: var(--white); padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.services-intro { position: sticky; top: 112px; }
.services h2, .process h2, .quote h2 { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--ink); }
.services-intro p { margin-top: 18px; color: var(--muted); max-width: 30em; }
.text-link {
  display: inline-block; margin-top: 22px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.service-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.service-list svg { width: 40px; height: 40px; fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-list h3 { font-size: 1.25rem; font-stretch: 110%; color: var(--ink); line-height: 1.2; }
.service-list p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Process */
.process { background: var(--ink); color: var(--white); padding: clamp(64px, 9vw, 112px) 0; }
.process h2 { color: var(--white); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.step-n {
  display: block; font-size: 4.5rem; line-height: 1; font-weight: 900; font-stretch: 125%;
  color: var(--yellow); margin-bottom: 20px;
}
.steps h3 { font-size: 1.4rem; font-stretch: 112%; }
.steps p { margin-top: 10px; color: #C3D2CA; max-width: 28em; }

/* Quote */
.quote { padding: clamp(64px, 9vw, 120px) 0; }
.quote-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.quote-intro p { margin-top: 18px; color: var(--muted); max-width: 30em; }
.contact { margin: 36px 0 0; display: grid; gap: 22px; }
.contact dt { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.contact dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.form-card {
  background: var(--white); border-radius: var(--radius-l);
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(18, 59, 46, 0.35);
}
.quote-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 0.95rem; color: var(--text); padding: 0; }
.field legend { margin-bottom: 10px; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--radius-s);
  padding: 13px 14px; min-height: 50px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: #8A988F; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field input[aria-invalid="true"] { border-color: var(--error); background: #FDF3F2; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 0.95rem; color: var(--muted);
  cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.chip span:active { transform: scale(0.96); }
.chip input:checked + span { background: var(--ink); color: var(--white); box-shadow: none; }
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--line); }
.segmented span { display: block; text-align: center; padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--muted); cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.segmented input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 59, 46, 0.18); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-weight: 600; font-size: 0.95rem; }
.form-error a { color: inherit; }
.btn-submit { width: 100%; min-height: 56px; font-size: 1.05rem; }
.btn-submit[disabled] { cursor: progress; }
.btn-submit span { transition: filter 200ms ease, opacity 200ms ease; }
.btn-submit[data-busy] span { opacity: 0.6; }

.form-done { text-align: center; padding: 40px 8px; outline: none; }
.form-done svg { width: 64px; height: 64px; margin: 0 auto 20px; fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-done circle { stroke: var(--line); }
.form-done path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-done:not([hidden]) path { animation: draw 500ms var(--ease-out) 120ms forwards; }
.form-done h3 { font-size: 1.6rem; color: var(--ink); }
.form-done p { margin: 12px auto 0; color: var(--muted); max-width: 30em; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.form-card[data-swap] > * { animation: swap-in 320ms var(--ease-out); }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }

/* Footer */
.site-footer { background: var(--ink); color: #C3D2CA; padding: 48px 0 104px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer-inner img { height: 52px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.fine { font-size: 0.9rem; }

/* WhatsApp button */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
  transition: transform 160ms var(--ease-out);
}
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.fab:active { transform: scale(0.94); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .services-grid, .quote-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .nav { display: none; }
  .btn-call { margin-left: auto; }
}
@media (max-width: 720px) {
  .service-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps li, .steps li + li { padding: 0; border: 0; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
  .steps li > :not(.step-n) { grid-column: 2; }
  .step-n { grid-row: span 2; font-size: 3.4rem; margin: 0; }
  .field-row { grid-template-columns: 1fr; }
  .segmented { display: grid; }
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-content: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .btn-call { padding: 0 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .compare figcaption { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .form-card[data-swap] > * { animation: fade 200ms ease; }
  .form-done:not([hidden]) path { animation: none; stroke-dashoffset: 0; }
}
@keyframes fade { from { opacity: 0; } }
