:root {
  --green: #2f9a2c;
  --green-dark: #0d6b2a;
  --green-light: #5bbf3a;
  --ink: #121412;
  --ink-soft: #2a2e2a;
  --paper: #f4f3ee;
  --white: #ffffff;
  --muted: #5d625c;
  --line: rgba(18, 20, 18, 0.12);
  --wa: #25d366;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --topbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
}
.eyebrow--green { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 3px;
}
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__logo img { height: 44px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 24px; }
.topbar__nav a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}
.topbar__nav a:not(.btn):hover { color: var(--green); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - var(--topbar-h));
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 10, 0.94) 0%, rgba(10, 12, 10, 0.6) 50%, rgba(10, 12, 10, 0.25) 100%),
    linear-gradient(to right, rgba(10, 12, 10, 0.55) 0%, rgba(10, 12, 10, 0) 60%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter) 40px;
}
.hero__content h1 { max-width: 15ch; }
.hero__lead {
  max-width: 52ch;
  margin: 20px 0 32px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__content > *:nth-child(2) { animation-delay: 0.1s; }
.hero__content > *:nth-child(3) { animation-delay: 0.2s; }
.hero__content > *:nth-child(4) { animation-delay: 0.3s; }

/* Ticker motion graphic */
.hero__ticker {
  position: relative;
  display: flex;
  gap: 48px;
  width: max-content;
  margin: 0;
  padding: 18px 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-stretch: 125%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  animation: ticker 28s linear infinite;
}
.hero__ticker li { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.hero__ticker li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); }

/* Services */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.service-list {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.service:nth-child(even) .service__media { order: 2; }

.service__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-soft);
}
.service__media img, .service__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.service.is-visible .service__media img,
.service.is-visible .service__media video { transform: scale(1); }
.service__media--real img { object-position: center 40%; }
.service__media figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(13, 107, 42, 0.9);
}

.service__num {
  display: block;
  margin-bottom: 12px;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green);
}
.service__body p { margin: 16px 0 0; color: var(--muted); max-width: 44ch; }

.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(72px, 10vw, 128px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  color: var(--white);
  background: var(--ink);
}
.contact__intro > p { color: rgba(255, 255, 255, 0.75); margin: 20px 0 32px; }
.contact__direct { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.contact__direct a, .contact__direct p {
  display: block;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.contact__direct a:hover { color: var(--green-light); }
.contact__direct span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 110px; }
.field [aria-invalid="true"] { border-color: #c0392b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; color: #8e1f12; background: #fde7e3; }
.form-note { margin: -6px 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.legal h1 { margin-bottom: 12px; }
.legal h2 { margin: 48px 0 12px; font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal a:not(.btn) { color: var(--green-dark); font-weight: 600; }
.legal__meta { font-size: 0.9rem; color: var(--muted) !important; }
.legal__back { margin-top: 56px; }

.check a { color: var(--green-dark); font-weight: 600; }

/* Footer */
.footer {
  padding: 48px var(--gutter) 110px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
}
.footer__logo { width: 180px; height: auto; margin: 0 auto 16px; }
.footer p { margin: 4px 0; }
.footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer__small { font-size: 0.85rem; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  background: var(--wa);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: pulse 2.8s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 860px) {
  .service, .contact { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
}
@media (max-width: 560px) {
  :root { --topbar-h: 64px; }
  .topbar__logo img { height: 34px; }
  .topbar__nav a:not(.btn) { display: none; }
  .contact__form { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .service__media img, .service__media video { transform: none; }
}
