/* =========================================================
   Topocell — estilos
   Estética clean, chapada, sem sombras pesadas.
   ========================================================= */

:root {
  --green: #1f6b4f;      /* verde topografia */
  --green-dark: #164e3a;
  --green-soft: #eaf3ef;
  --ink: #16201c;
  --ink-soft: #4a5751;
  --muted: #788078;
  --line: #e4e8e5;
  --bg: #ffffff;
  --bg-alt: #f6f8f6;
  --white: #ffffff;
  --wa: #25d366;
  --radius: 10px;
  --maxw: 1140px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  font-family: inherit;
}
.btn--small { padding: 9px 18px; font-size: .88rem; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--block { width: 100%; }
.btn--whatsapp { background: var(--wa); color: #fff; margin-top: 24px; }
.btn--whatsapp:hover { background: #1eb959; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--green); }
.logo__text { font-size: 1.25rem; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.logo__text strong { font-weight: 700; color: var(--green); }
.logo--light .logo__text { color: #fff; }
.logo--light { color: #cfe0d8; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: .95rem; color: var(--ink-soft); font-weight: 500; transition: color .2s var(--ease); }
.nav a:hover { color: var(--green); }
.nav__cta { color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s var(--ease); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 78% 30%, #000 0%, transparent 60%);
  opacity: .7;
  pointer-events: none;
}
.hero__inner { position: relative; padding: clamp(70px, 12vw, 130px) 0; }
.hero__content { max-width: 660px; }
.hero h1 { margin-bottom: 22px; color: var(--ink); }
.hero__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__rating {
  display: flex; align-items: center; gap: 10px;
  margin-top: 34px; font-size: .95rem; color: var(--ink-soft);
}
.hero__rating strong { color: var(--ink); }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ===== Stats ===== */
.stats { border-bottom: 1px solid var(--line); background: #fff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 24px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: var(--green); letter-spacing: -.02em; }
.stat__label { font-size: .9rem; color: var(--muted); }
.stat + .stat { border-left: 1px solid var(--line); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section__sub { color: var(--ink-soft); margin-top: 14px; }

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; }
.about__img {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}
.about__img--1 {
  height: 380px;
  background-image: linear-gradient(135deg, #2a7d5d, #16382b);
  position: relative;
  overflow: hidden;
}
.about__img--1::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.about__img--2 {
  display: none;
}
.about__badge {
  position: absolute;
  right: -10px;
  bottom: -18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
.about__badge strong { color: var(--green); font-size: 1.15rem; }
.about__badge span { font-size: .82rem; color: var(--muted); }

.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--ink-soft); margin-bottom: 16px; }
.about__list { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.about__list li { position: relative; padding-left: 28px; color: var(--ink); font-weight: 500; }
.about__list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ===== Cards (serviços) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--green); transform: translateY(-3px); }
.card__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 9px;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 28px;
}
.feature__num {
  font-size: .85rem; font-weight: 700; color: var(--green);
  display: block; margin-bottom: 12px; letter-spacing: .05em;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .94rem; }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery__item {
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform .25s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(160deg, rgba(0,0,0,.05), rgba(0,0,0,.22));
  background-size: 26px 26px, 26px 26px, 100% 100%;
}
.gallery__item:hover { transform: scale(1.015); }
.gallery__item[data-img="1"] { background-image: linear-gradient(135deg,#2a7d5d,#15402f); grid-row: span 2; }
.gallery__item[data-img="2"] { background-image: linear-gradient(135deg,#3a8f6e,#1c5340); }
.gallery__item[data-img="3"] { background-image: linear-gradient(135deg,#21664c,#0f2e22); }
.gallery__item[data-img="4"] { background-image: linear-gradient(135deg,#4a9c7c,#226048); }
.gallery__item[data-img="5"] { background-image: linear-gradient(135deg,#1d5e45,#10352780); grid-column: span 2; }
.gallery__item[data-img="6"] { background-image: linear-gradient(135deg,#2f8463,#163f2f); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 25, 20, .9);
  display: none;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { width: min(80vw, 900px); }
.lightbox__img {
  width: 100%; height: min(70vh, 560px);
  border-radius: 12px;
  background-size: cover; background-position: center;
}
.lightbox__close {
  position: absolute; top: 22px; right: 28px;
  font-size: 2.4rem; line-height: 1; color: #fff;
  background: none; border: 0; cursor: pointer;
}
.lightbox__nav {
  background: rgba(255,255,255,.12);
  border: 0; color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 2rem; cursor: pointer;
  margin: 0 12px;
  transition: background .2s var(--ease);
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }

/* ===== Clients marquee ===== */
.clients .section__head { margin-bottom: 40px; }
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.client-logo {
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #aeb6b0;
  display: inline-flex;
  align-items: center;
  transition: color .2s var(--ease);
}
.client-logo:hover { color: var(--green); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Contato ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.contact__info h2 { margin-bottom: 16px; }
.contact__info > p { color: var(--ink-soft); }
.contact__list { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__ic {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green);
  border-radius: 9px;
}
.contact__list div { display: flex; flex-direction: column; }
.contact__list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.contact__list a, .contact__list span { color: var(--ink); }
.contact__list a:hover { color: var(--green); }

.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}
.field textarea { resize: vertical; }
.form__note { font-size: .9rem; color: var(--green); font-weight: 500; }

/* ===== Map ===== */
.map { line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.15); }

/* ===== Footer ===== */
.footer { background: var(--green-dark); color: #cfe0d8; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer__brand p { margin-top: 16px; font-size: .92rem; color: #a8c2b6; }
.footer__col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-size: .92rem; color: #a8c2b6; margin-bottom: 10px; transition: color .2s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 20px 24px;
  font-size: .85rem; color: #92ab9f;
}
.footer__rating { color: #f5c451; font-weight: 600; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  box-shadow: 0 6px 18px rgba(37,211,102,.4);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .3s var(--ease);
    box-shadow: 0 14px 24px rgba(0,0,0,.06);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; border-bottom: 0 !important; }
  .nav-toggle { display: flex; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stat:nth-child(2) { border-left: 0; }
  .stat:nth-child(3) { border-left: 0; }

  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__badge { right: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item[data-img="5"] { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
}
