:root {
  --green: #78b83d;
  --green-dark: #5a9330;
  --green-light: #eef7e6;
  --dark: #16241b;
  --black: #171a17;
  --text: #333c33;
  --text-light: #647161;
  --bg-alt: #f6f9f4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 36, 27, 0.08);
  --nav-height: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: #fff;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 700; color: var(--dark); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 46px;
  width: auto;
}

.nav-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.25s ease;
}

.navbar.scrolled .nav-logo span { color: var(--dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-link {
  font-weight: 500;
  font-size: 0.98rem;
  color: #fff;
  position: relative;
  transition: color 0.25s ease;
}

.navbar.scrolled .nav-link { color: var(--dark); }

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.25s ease;
}

.nav-link:hover::after { width: 100%; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 50px;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle span { background: var(--dark); }

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #14261c;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 18, 12, 0.72) 0%, rgba(10, 22, 15, 0.6) 45%, rgba(6, 14, 10, 0.85) 100%);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-arrow:hover {
  background: var(--green);
  border-color: var(--green);
}

.hero-arrow svg { width: 22px; height: 22px; }

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-arrow:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 768px) {
  .hero-arrow {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 28px;
    transform: none;
  }
  .hero-arrow svg { width: 18px; height: 18px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
  .hero-arrow:hover { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 22px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-actions .btn-whatsapp.large {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--dark) !important;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 50px;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.section-head.light h2,
.section-head.light p { color: #fff; }

.section-head.light p { opacity: 0.92; }

.eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* ---------- Sobre ---------- */
.sobre {
  padding: 110px 0 100px;
  background: #fff;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.sobre-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 20px; }

.sobre-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.sobre-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mini-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px 28px;
  border: 1px solid #eaf1e4;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mini-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.mini-icon svg { width: 24px; height: 24px; }

.mini-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.mini-card p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Servicos ---------- */
.servicos {
  padding: 100px 0;
  background: var(--bg-alt);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.service-card:hover { transform: translateY(-6px); }

.service-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon svg { width: 30px; height: 30px; }

.service-card h3 { font-size: 1.2rem; margin-bottom: 12px; }

.service-card p { color: var(--text-light); font-size: 0.96rem; }

/* ---------- Diferenciais ---------- */
.diferenciais {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.dif-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(2px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.dif-box:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.dif-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
}

.dif-icon svg { width: 26px; height: 26px; }

.dif-box h3 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }

.dif-box p { color: rgba(255, 255, 255, 0.88); font-size: 0.88rem; }

/* ---------- Contato ---------- */
.contato {
  padding: 110px 0;
  background: #fff;
  text-align: center;
}

.contato-inner { max-width: 680px; margin: 0 auto; }

.contato h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.contato > .container > .contato-inner > p,
.contato-inner p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 38px;
}

.contato-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.btn-whatsapp.large {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 50px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--dark);
  transition: color 0.2s ease;
}

.phone-link svg { color: var(--green); }

.phone-link:hover { color: var(--green-dark); }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: #cfd6cc;
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.6fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img { height: 42px; width: auto; }

.footer-logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand p {
  color: #9aa596;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #cfd6cc;
  font-size: 0.95rem;
}

.footer-info svg { color: var(--green); flex-shrink: 0; }

.footer-info a:hover { color: var(--green); }

.footer-social {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfd6cc;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.86rem;
  color: #8a9587;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 0.8, 0.24, 1), transform 0.8s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-left.in-view {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-right.in-view {
  transform: translateX(0);
}

.sobre-cards .mini-card:nth-child(1) { transition-delay: 0s; }
.sobre-cards .mini-card:nth-child(2) { transition-delay: 0.12s; }
.sobre-cards .mini-card:nth-child(3) { transition-delay: 0.24s; }

.servicos-grid .service-card:nth-child(1) { transition-delay: 0s; }
.servicos-grid .service-card:nth-child(2) { transition-delay: 0.12s; }
.servicos-grid .service-card:nth-child(3) { transition-delay: 0.24s; }

.diferenciais-grid .dif-box:nth-child(1) { transition-delay: 0s; }
.diferenciais-grid .dif-box:nth-child(2) { transition-delay: 0.1s; }
.diferenciais-grid .dif-box:nth-child(3) { transition-delay: 0.2s; }
.diferenciais-grid .dif-box:nth-child(4) { transition-delay: 0.3s; }
.diferenciais-grid .dif-box:nth-child(5) { transition-delay: 0.4s; }

.contato-inner p.reveal { transition-delay: 0.1s; }
.contato-inner .contato-actions.reveal { transition-delay: 0.2s; }

.footer-info.reveal { transition-delay: 0.1s; }
.footer-social.reveal { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 36, 27, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease, visibility 0.3s ease;
  z-index: 999;
}

.back-to-top svg { width: 22px; height: 22px; }

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--green-dark); }

@media (max-width: 768px) {
  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .sobre-grid { grid-template-columns: 1fr; gap: 48px; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .diferenciais-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-social { justify-content: flex-start; grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
    padding: 10px 24px 26px;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link {
    color: var(--dark) !important;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-whatsapp {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }

  .servicos-grid { grid-template-columns: 1fr; }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }
  .contato-actions { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .diferenciais-grid { grid-template-columns: 1fr; }
  .sobre, .servicos, .diferenciais, .contato { padding: 70px 0; }
}
