/* WAG — site institucional 2026 (estático, Cloudflare Pages) */
@font-face { font-family: "Red Hat Display"; src: url("fonts/RedHatDisplay-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --card: #141414;
  --card-2: #2a2a2a;
  --line: #2b2b2b;
  --green: #22e55f;
  --green-ink: #0b3d1b;
  --green-soft: #2fdc6a;
  --text: #f2f2f2;
  --muted: #a9a9a9;
  --maxw: 1240px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #0a1f10; font-weight: 600; font-size: 15px;
  padding: 10px 22px; border-radius: 6px; border: 0; cursor: pointer; transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; padding-top: 34px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(5,5,5,.35); backdrop-filter: blur(6px); }
.nav a { color: var(--green-soft); font-size: 16px; padding: 10px 18px; }
.nav a:hover { color: #fff; }
.nav .btn { border-radius: 6px; padding: 10px 40px; margin-left: 8px; color: #0a1f10; }
.nav-toggle { display: none; background: none; border: 0; color: var(--green); font-size: 26px; cursor: pointer; }

/* Hero */
.hero { position: relative; height: min(900px, 92vh); min-height: 560px; border-radius: 0 0 40px 40px; overflow: hidden; background: #0a1a0f; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.45) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 70%, rgba(5,5,5,.55) 100%); }

/* Stats */
.stats { background: linear-gradient(180deg, #0b100c 0%, #0a0f0b 100%); border-radius: 0 0 80px 80px; padding: 110px 0 120px; margin-top: -40px; position: relative; z-index: 1; }
.stats ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; color: var(--green); white-space: nowrap; font-size: clamp(22px, 2.5vw, 36px); font-weight: 700; line-height: 1.05; }
.stats span { color: var(--green-soft); font-size: 18px; text-transform: uppercase; }

/* Purpose */
.purpose { background: radial-gradient(120% 80% at 50% 0%, #0f3a1c 0%, #08140c 45%, var(--bg) 100%); padding: 150px 0 120px; margin-top: -80px; text-align: center; }
.purpose p { max-width: 1020px; margin: 0 auto; color: var(--green-soft); font-weight: 300; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.32; }
.purpose b { font-weight: 700; }

/* Services */
.services-bg { position: relative; overflow: hidden; padding: 80px 0 120px;
  background:
    radial-gradient(38% 30% at 92% 38%, rgba(34,229,95,.38), rgba(34,229,95,0) 70%),
    linear-gradient(118deg, rgba(255,255,255,0) 0 24%, rgba(255,255,255,.07) 30%, rgba(255,255,255,0) 40%),
    linear-gradient(62deg, rgba(0,0,0,0) 0 62%, rgba(34,229,95,.22) 72%, rgba(0,0,0,0) 84%),
    linear-gradient(180deg, #0b120d 0%, #0c0c0c 30%, #0a0a0a 100%); }
.services { border: 1px solid var(--green); border-radius: 26px; background: rgba(8,8,8,.62); padding: 100px 24px 140px; }
.section-title { text-align: center; font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; margin: 0 0 80px; color: #f1f1f1; }
.svc-list { max-width: 922px; margin: 0 auto; display: grid; gap: 32px; }
.svc { background: rgba(20,20,20,.92); border-radius: 12px; padding: 30px 56px 0; }
.svc-head { display: flex; align-items: center; gap: 30px; }
.svc-head img { width: 52px; height: 52px; flex: none; }
.svc-head h3 { margin: 0; color: var(--green); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; line-height: 1.12; text-transform: uppercase; flex: 1; }
.svc-head .btn { font-size: 17px; padding: 12px 26px; white-space: nowrap; }
.svc-line { border-top: 1px solid var(--line); margin-top: 22px; height: 42px; }
.svc-toggle { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); margin-top: 22px; padding: 8px 0 12px; cursor: pointer; color: var(--green); display: flex; justify-content: center; }
.svc-toggle svg { width: 22px; height: 22px; transition: transform .2s; }
.svc[aria-expanded="true"] .svc-toggle svg, .svc.open .svc-toggle svg { transform: rotate(180deg); }
.svc-body { display: none; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 12px 0 30px; }
.svc.open .svc-body { display: grid; }
.svc-body p { margin: 0; color: #cfcfcf; font-weight: 300; font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.tags span { background: #26302a; border: 1px solid #3a4a3f; border-radius: 10px; padding: 5px 22px; font-size: 15px; flex: 1 1 40%; text-align: center; }

/* Cases */
.cases { padding: 120px 0 60px; background: #050505; overflow: hidden; }
.carousel { position: relative; }
.slides { display: flex; gap: 100px; transition: transform .45s ease; }
.case { flex: 0 0 min(1060px, 100%); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 98px 1fr; background: #252525; border-radius: 22px; overflow: visible; position: relative; min-height: 500px; }
.case-top { grid-column: 1 / -1; background: #1b1b1b; height: 98px; border-radius: 22px 22px 0 0; display: flex; align-items: center; padding: 0 54px; }
.case-top img { height: 40px; width: auto; }
.case-info { padding: 34px 54px 44px; }
.case-info h3 { margin: 0; font-size: clamp(26px, 2.6vw, 37px); font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.case-info .sub { margin: 4px 0 26px; color: #cfcfcf; font-weight: 300; font-size: 19px; text-transform: uppercase; }
.case-info h4 { margin: 0 0 18px; font-size: 18px; font-weight: 500; }
.case-info p { margin: 0 0 36px; color: #cfcfcf; font-weight: 300; font-size: 16px; max-width: 480px; }
.case-info .btn { padding: 12px 120px; font-size: 19px; }
.case-art { position: static; }
.case-art img { position: absolute; right: -2px; bottom: -23px; width: 490px; max-width: none; height: auto; }
.car-btn { position: absolute; top: 55%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--green); padding: 8px; z-index: 2; }
.car-btn svg { width: 40px; height: 40px; }
.car-btn.prev { left: -56px; color: #555; }
.car-btn.next { right: -56px; }
.dots { display: flex; gap: 20px; margin-top: 18px; }
.dots button { width: 148px; height: 13px; border: 0; background: #2a2a2a; cursor: pointer; padding: 0; }
.dots button[aria-current="true"] { background: var(--green); }
.cases-viewport { overflow: visible; }
.carousel.single .car-btn, .carousel.single .dots { display: none; }

/* Brands */
.brands { padding: 140px 0 120px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.brand-row img { height: 34px; width: auto; opacity: .95; }

/* Blog */
.blog { padding: 60px 0 120px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; max-width: 1194px; margin: 0 auto; }
.post { background: #2a2a2a; border-radius: 10px; padding: 22px 24px 34px; }
.post img { width: 100%; aspect-ratio: 311 / 222; object-fit: cover; margin-bottom: 26px; }
.post h3 { margin: 0 0 22px; font-size: 24px; font-weight: 600; line-height: 1.2; }
.post p { margin: 0 0 32px; color: #9a9a9a; font-weight: 300; font-size: 17px; }
.post a.more { color: var(--green); font-size: 17px; }

/* Contact */
.contact { padding: 140px 0 220px; background: #050505; }
.contact form { max-width: 624px; margin: 0 auto; display: grid; gap: 22px; }
.contact .section-title { margin-bottom: 12px; }
.contact label { display: grid; gap: 6px; font-size: 16px; }
.contact input, .contact textarea { background: #2d2d2d; border: 0; color: #fff; font: inherit; padding: 9px 12px; min-height: 40px; }
.contact textarea { min-height: 40px; resize: vertical; }
.contact .actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.contact .btn { padding: 10px 42px; border-radius: 6px 6px 6px 6px; }
.form-msg { min-height: 1.4em; color: var(--green); text-align: right; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--green); color: #0b3d1b; padding: 56px 0 90px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; }
.site-footer .top img.flogo { height: 34px; }
.social { display: flex; gap: 32px; }
.social img { width: 40px; height: 40px; }
.site-footer .bottom { display: flex; justify-content: center; gap: 44px; margin-top: 150px; font-size: 13px; flex-wrap: wrap; }
.site-footer .bottom strong { font-weight: 700; }
.site-footer .bottom a { text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px) {
  .car-btn { display: none; }
  .case { grid-template-columns: 1fr; }
  .case { grid-template-rows: auto; }
  .case-art { min-height: 0; }
  .case-art img { position: static; width: min(420px, 90%); margin: 0 auto -23px; }
  .case-info .btn { padding: 12px 40px; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 70px; right: 16px; flex-direction: column; align-items: stretch; background: rgba(5,5,5,.95); padding: 10px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .stats ul { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .svc { padding: 24px 22px 0; }
  .svc-head { flex-wrap: wrap; gap: 16px; }
  .svc-head .btn { width: 100%; }
  .svc-body { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; max-width: 420px; }
  .brand-row { justify-content: center; }
  .dots button { width: 60px; }
  .site-footer .bottom { margin-top: 60px; flex-direction: column; align-items: center; gap: 12px; }
}
@media (max-width: 520px) {
  .hero { min-height: 460px; height: 70vh; border-radius: 0 0 24px 24px; }
  .stats { border-radius: 0 0 40px 40px; padding: 80px 0 90px; }
  .services { padding: 60px 14px 80px; }
  .case-top, .case-info { padding-left: 24px; padding-right: 24px; }
  .contact { padding: 100px 0 140px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .slides { transition: none; } }
