:root {
  --verde: #31572c;
  --verde-medio: #4f772d;
  --verde-claro: #90a955;
  --areia: #f5f0e6;
  --branco: #ffffff;
  --texto: #202820;
  --suave: #667064;
  --borda: #e3dac8;
  --sombra: 0 20px 50px rgba(49, 87, 44, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--areia);
  color: var(--texto);
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 240, 230, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borda);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--verde);
  text-decoration: none;
  font-size: 23px;
  font-weight: 800;
}

.logo i {
  font-size: 28px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

nav a:hover {
  color: var(--verde-medio);
}

.btn-login {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--verde);
  color: white !important;
}

.menu-btn {
  display: none;
  border: none;
  background: var(--verde);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  font-size: 26px;
}

.hero {
  min-height: 100vh;
  padding: 130px 7% 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tag,
.section-tag {
  display: inline-block;
  color: var(--verde-medio);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  color: var(--verde);
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--suave);
  max-width: 590px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 25px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary {
  background: var(--verde);
  color: white;
  box-shadow: var(--sombra);
}

.btn-secondary {
  background: white;
  color: var(--verde);
  border: 1px solid var(--borda);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.hero-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: var(--sombra);
}

main {
  padding: 0 7% 80px;
}

.section {
  margin-bottom: 110px;
  scroll-margin-top: 120px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--verde);
  margin-bottom: 24px;
}

.about,
.publico {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.about p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--suave);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid var(--borda);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--sombra);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card i {
  font-size: 36px;
  color: var(--verde-medio);
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  color: var(--verde);
  margin-bottom: 12px;
}

.card p {
  color: var(--suave);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  overflow: hidden;
  background: white;
  border-radius: 28px;
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card div {
  padding: 24px;
}

.product-card h3 {
  color: var(--verde);
  margin-bottom: 8px;
}

.product-card p {
  color: var(--suave);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tags span {
  background: white;
  border: 1px solid var(--borda);
  color: var(--verde);
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(49, 87, 44, 0.08);
}

.cta {
  text-align: center;
  background:
    linear-gradient(rgba(49, 87, 44, 0.82), rgba(49, 87, 44, 0.82)),
    url("https://images.unsplash.com/photo-1495107334309-fcf20504a5ab?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 30px;
  border-radius: 36px;
  box-shadow: var(--sombra);
}

.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 15px;
}

.cta p {
  color: #edf5e9;
  margin-bottom: 28px;
}

.cta a {
  display: inline-block;
  background: white;
  color: var(--verde);
  padding: 15px 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #e3dac8;
}

.voltar-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #31572c;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
}

.voltar-home:hover {
    color: #4f772d;
    transform: translateX(-4px);
}

footer p {
    color: #667064;
    font-size: 14px;
}

/* RESPONSIVO */

@media (max-width: 950px) {
  .menu-btn {
    display: block;
  }

  nav {
    position: absolute;
    top: 82px;
    left: 7%;
    right: 7%;
    background: white;
    border: 1px solid var(--borda);
    border-radius: 20px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    display: none;
    box-shadow: var(--sombra);
  }

  nav.ativo {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    height: 400px;
  }

  .about,
  .publico {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 16px 5%;
  }

  .logo {
    font-size: 20px;
  }

  .hero {
    padding: 115px 5% 55px;
  }

  main {
    padding: 0 5% 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .hero-image img {
    height: 300px;
    border-radius: 24px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .section {
    margin-bottom: 80px;
  }

  .cta {
    border-radius: 26px;
    padding: 55px 22px;
  }
}

#temaBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 55px;
    height: 55px;

    border: none;
    border-radius: 50%;

    background: #31572c;
    color: white;

    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,.15);

    transition: .3s;
    z-index: 9999;
}

#temaBtn:hover {
    transform: translateY(-3px);
    background: #4f772d;
}

body.dark {
    background: #101411;
    color: #f5f5f5;
}

body.dark .header {
    background: rgba(16,20,17,.95);
    border-bottom: 1px solid #253227;
}

body.dark nav a {
    color: #f5f5f5;
}

body.dark .card,
body.dark .product-card {
    background: #18201a;
    border-color: #2a382c;
}

body.dark .card h3,
body.dark .product-card h3,
body.dark .section h2,
body.dark .hero h1 {
    color: #ffffff;
}

body.dark .hero p,
body.dark .card p,
body.dark .product-card p,
body.dark footer {
    color: #b5c0b7;
}

body.dark .tags span {
    background: #18201a;
    border-color: #2a382c;
    color: white;
}

body.dark footer {
    border-top-color: #253227;
}

body.dark #temaBtn {
    background: #f5f5f5;
    color: #31572c;
}