:root {
  --verde: #8DC63F;
  --verde-escuro: #6FA32E;
  --cinza-escuro: #3D3D3D;
  --cinza: #6B7280;
  --claro: #F6F8F4;
  --branco: #FFFFFF;
  --texto: #2A2E33;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--branco);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-block: .75rem;
  gap: .5rem 1rem;
}

.header__logo {
  height: 32px;
  width: auto;
}

.header__nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: .25rem;
  padding-top: .5rem;
}

.header__nav--open {
  display: flex;
}

.header__nav a {
  text-decoration: none;
  color: var(--cinza-escuro);
  font-weight: 600;
  font-size: 1rem;
  padding: .5rem 0;
}

.header__nav a:hover {
  color: var(--verde-escuro);
}

.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid #E3E7E1;
  border-radius: 6px;
  cursor: pointer;
}

.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cinza-escuro);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background-color: #0A0A0A;
  background-image: image-set(url('assets/hero.webp') type('image/webp'), url('assets/hero.png') type('image/png'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__overlay {
  background: linear-gradient(180deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .55) 100%);
  padding: 4.5rem 0;
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  color: var(--branco);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__subtitle {
  color: #E8EAE6;
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
}

/* Botoes */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .2s ease, transform .15s ease;
}

.btn--primary {
  background: var(--verde);
  color: #14210A;
}

.btn--primary:hover {
  background: var(--verde-escuro);
  color: var(--branco);
  transform: translateY(-2px);
}

/* Secoes genericas */
.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__text {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--cinza);
}

/* Linha CJA */
.linha {
  background: var(--claro);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.linha__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.linha__selos {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.linha__selo {
  height: 44px;
  width: auto;
}

.linha__visual {
  background: #0A0A0A;
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 1.5rem;
}

.linha__img {
  width: 100%;
  height: auto;
}

.linha__legenda {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem 1.25rem 0;
}

.legenda__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.legenda__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
}

.legenda__swatch--laranja { background: #F28C28; }
.legenda__swatch--amarelo { background: #F5C518; }
.legenda__swatch--vermelho { background: #D93A3A; }
.legenda__swatch--verde { background: #3FA34D; }
.legenda__swatch--azul { background: #2E6FB7; }
.legenda__swatch--marrom { background: #8A5A2B; }

.legenda__nome {
  font-size: .8rem;
  color: #D6D9D4;
  font-weight: 600;
}

/* Sobre */
.sobre {
  background: var(--branco);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.sobre__inner {
  max-width: 760px;
}

.sobre .section__text {
  margin-bottom: 1rem;
}

/* Contato */
.contato {
  background: var(--cinza-escuro);
  color: var(--branco);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
}

.contato__inner {
  max-width: 720px;
}

.contato .section__text {
  color: #C9CCC9;
  margin-bottom: 2rem;
}

/* Rodape */
.footer {
  background: #2F2F2F;
  color: #D6D9D4;
  padding: 2.5rem 0;
  text-align: center;
  font-size: .95rem;
}

.footer__inner {
  display: grid;
  gap: .35rem;
}

.footer__link {
  color: var(--verde);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

/* Tablet e desktop */
@media (min-width: 768px) {
  .container {
    width: min(1120px, 100% - 3rem);
  }

  .header__inner {
    flex-wrap: nowrap;
  }

  .header__logo {
    height: 44px;
  }

  .header__nav {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    gap: 1.5rem;
    padding-top: 0;
  }

  .header__nav a {
    font-size: .95rem;
    padding: 0;
  }

  .header__toggle {
    display: none;
  }

  .hero {
    background-position: right center;
  }

  .hero__overlay {
    background: linear-gradient(90deg, rgba(10, 12, 10, .88) 0%, rgba(10, 10, 10, .62) 45%, rgba(10, 10, 10, .15) 100%);
    padding: clamp(5rem, 12vw, 9rem) 0;
  }

  .btn {
    padding: .9rem 2rem;
    font-size: 1rem;
  }

  .linha__selos {
    gap: 2rem;
  }

  .linha__selo {
    height: 56px;
  }
}

@media (min-width: 900px) {
  .linha__grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
  }
}
