:root {
  --green-950: #173b1f;
  --green-850: #21552d;
  --green-700: #347642;
  --green-100: #e8f1e5;
  --maize: #f3c744;
  --tomato: #c94332;
  --ink: #182018;
  --muted: #5c695b;
  --line: #d9e2d5;
  --paper: #fffdf7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 59, 31, 0.14);
  --radius: 8px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.topbar {
  background: var(--green-950);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar .wrap,
.site-header .wrap,
.section .wrap,
.footer .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 1px solid rgba(217, 226, 213, 0.85);
  backdrop-filter: blur(10px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--green-950);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

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

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--green-950);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--green-100);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-950);
  font-size: 1.35rem;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(23, 59, 31, 0.88), rgba(23, 59, 31, 0.5), rgba(23, 59, 31, 0.2)),
    url("../assets/uploads/Totopos-fondo-Cariocas.png") center / cover;
}

.hero .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 86px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--maize);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--green-950);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  max-width: 880px;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.button-secondary,
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button {
  background: var(--maize);
  color: var(--green-950);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.inline-action {
  color: var(--green-950);
  background: var(--green-100);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: #1f8f4c;
  box-shadow: 0 14px 34px rgba(23, 59, 31, 0.28);
  font-weight: 900;
  text-decoration: none;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--white);
}

.section.green {
  background: var(--green-950);
  color: var(--white);
}

.section.green h2,
.section.green h3 {
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 0.55fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.section.green .lead {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 36px;
  align-items: center;
}

.split img,
.wide-image img,
.post-hero img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-section {
  display: grid;
  gap: 28px;
}

.video-embed {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-950);
  box-shadow: var(--shadow);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature-grid,
.value-grid,
.timeline,
.retail-grid,
.contact-grid,
.stats-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.value-grid,
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
}

.timeline {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.value,
.timeline-item,
.contact-panel,
.form-panel,
.post-card,
.policy-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.certificate-panel img {
  max-height: 720px;
  object-fit: contain;
  background: var(--white);
  padding: 12px;
}

.section.green .feature,
.section.green .value {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature h3,
.value h3,
.timeline-item h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.stat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--green-100);
}

.stat strong {
  display: block;
  color: var(--green-950);
  font-size: 2rem;
  line-height: 1;
}

.retail-grid {
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.retail-logo {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.retail-logo img {
  max-height: 74px;
  object-fit: contain;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-950);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--green-950);
  color: var(--white);
  border-color: var(--green-950);
}

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

.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f8f5ea;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.product-copy {
  padding: 22px;
}

.product-copy h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.presentation {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.dynamic-section {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f5ea;
}

.dynamic-section[hidden] {
  display: none;
}

.dynamic-section h3 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 1.2rem;
}

label {
  font-weight: 800;
  color: var(--green-950);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 138px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: center;
}

.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-body {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  font-size: 1.08rem;
}

.post-body p,
.post-body ul {
  margin: 0 0 20px;
}

.post-body li {
  margin-bottom: 8px;
}

.asset-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.asset-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.footer {
  padding: 42px 0;
  color: var(--white);
  background: var(--green-950);
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer img {
  width: 70px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 900px) {
  .topbar .wrap,
  .site-header .wrap,
  .section-head,
  .split,
  .contact-grid,
  .footer .wrap {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .feature-grid,
  .value-grid,
  .timeline,
  .retail-grid,
  .product-grid,
  .stats-grid,
  .asset-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar .wrap {
    display: grid;
  }

  .hero {
    min-height: 560px;
  }

  .section {
    padding: 58px 0;
  }

  .feature-grid,
  .value-grid,
  .timeline,
  .retail-grid,
  .product-grid,
  .stats-grid,
  .form-grid,
  .dynamic-section,
  .asset-gallery {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }
}
