:root {
  --bg-color: #fafafa;
  --text-main: #1a1a1a;
  --text-muted: #4a4a4a;
  --accent-green: #6bba92;
  --card-bg: #f4f7f5;
  --font-main:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 4rem;
  background-color: var(--bg-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

.logo-icon {
  width: 32px;
  height: 14px;
  background: linear-gradient(90deg, #297461 0%, #6bba92 100%);
  border-radius: 20px;
  position: relative;
}

.logo-icon::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 14px;
  background: transparent;
  border: 2px solid #297461;
  border-radius: 20px;
  top: -6px;
  left: 4px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-green);
}

.cta-btn {
  background-color: var(--accent-green);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #5aa47f;
}

/* --- Main Content --- */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4rem;
}

/* --- Hero Section --- */
.hero-servicos {
  margin-bottom: 5rem;
}

.hero-servicos h1 {
  font-size: 5.5rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-servicos p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* --- Serviços Grid --- */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 6rem;
}

.servico-card {
  display: flex;
  flex-direction: column;
}

.servico-icon-box {
  background-color: var(--card-bg);
  border: 1px solid #eaefea;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  transition: border-color 0.3s ease;
}

.servico-card:hover .servico-icon-box {
  border-color: var(--accent-green);
}

.servico-icon-box svg {
  width: 50%;
  height: 50%;
}

.servico-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.servico-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.servico-link {
  text-decoration: none;
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.servico-card:hover .servico-link {
  opacity: 1;
  transform: translateY(0);
}

/* --- CTA Dark Section --- */
.cta-dark {
  background-color: #1a1c1d;
  color: #ffffff;
  text-align: center;
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-dark h2 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.cta-dark p {
  font-size: 1.2rem;
  color: #a0a0a0;
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.btn-green {
  background-color: var(--accent-green);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.btn-green:hover {
  background-color: #5aa47f;
  transform: translateY(-2px);
}

/* --- Floating Chat --- */
.chat-widget {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 65px;
  height: 65px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(107, 186, 146, 0.4);
  transition: transform 0.3s ease;
  z-index: 1001;
}

.chat-widget:hover {
  transform: scale(1.05);
}

/* --- Animações Globais (Page Load & Scroll) --- */
body {
  animation: fadeInPage 0.6s ease-out forwards;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}
.delay-6 {
  transition-delay: 0.6s;
}

/* =========================================
   RESPONSIVIDADE AJUSTADA PARA TODOS APARELHOS
   ========================================= */

/* Tablets e Telas Menores (até 1024px) */
@media (max-width: 1024px) {
  header {
    padding: 1.5rem 2rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  main {
    padding: 3rem 2rem;
  }

  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .hero-servicos h1 {
    font-size: 4.5rem;
  }

  .cta-dark {
    padding: 6rem 2rem;
  }

  .cta-dark h2 {
    font-size: 3.5rem;
  }
}

/* Mobile Padrão (até 768px) */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }

  main {
    padding: 2rem 1.5rem;
  }

  .hero-servicos {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-servicos h1 {
    font-size: 3.5rem;
  }

  .servicos-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cta-dark {
    padding: 5rem 2rem;
  }

  .cta-dark h2 {
    font-size: 2.8rem;
  }
}

/* Telas muito pequenas / Mobile estreito (até 480px) */
@media (max-width: 480px) {
  .hero-servicos h1 {
    font-size: 2.8rem;
  }

  .servico-card h2 {
    font-size: 1.4rem;
  }

  .cta-btn,
  .btn-green {
    width: 100%;
    justify-content: center;
  }

  .cta-dark h2 {
    font-size: 2.2rem;
  }

  .chat-widget {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
  }

  .chat-widget svg {
    width: 24px;
    height: 24px;
  }
}
