/* Fonts */
body {
  font-family: "Gabarito", Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--dunkel);
  background: #fff;
}

/* Theme */
:root {
  --red:    #DA251D;
  --dunkel: #263640;
  --light:  #929A9F;
  --ultra:  #F5F8FA;
}

/* Utilities */
* {
  box-sizing: border-box;
}

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

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

.font-gabarito {
  font-family: "Gabarito", Inter, system-ui, sans-serif;
}

.shadow {
  box-shadow: 0 10px 50px rgba(0,0,0,.2);
}

.pop-accent,
.pop-accent-right {
  position: relative;
}

.pop-accent::before {
  content: "";
  position: absolute;
  inset: auto auto -12px -12px;
  background: var(--ultra);
  width: 100%;
  height: 100%;
  z-index: -1;
}

.pop-accent-right::before {
  content: "";
  position: absolute;
  inset: auto -12px -12px auto;
  background: var(--ultra);
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 40px;
  padding: 0 16px;
  border: none;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(.95);
}

.link-accent {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.link-accent:hover {
  text-decoration: underline;
}

.link-light {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.link-light:hover {
  text-decoration: underline;
}

/* Type */
.eyebrow {
  color: var(--light);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.title {
  color: var(--dunkel);
  font-weight: 800;
  line-height: 1.25;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.title.light {
  color: #fff;
}

.lede {
  color: var(--light);
  line-height: 1.75;
}

.lede.light {
  color: #fff;
}

.section-title {
  color: var(--dunkel);
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.section-desc {
  color: var(--light);
  /*max-width: 520px;*/
  line-height: 1.75;
  margin: 0 0 2rem;
}

/* Header base (igual ao que você já tem) */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 20px;
}

.logo {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  transition: all 0.3s ease;
}

.nav-links a {
  color: var(--dunkel);
  font-weight: 700;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dunkel);
}

/* ===== MOBILE MAGIC ===== */
@media (max-width: 768px) {
  /* Header vira "wrap" */
  .nav {
    flex-wrap: wrap;          /* permite quebrar linha */
    justify-content: flex-start; /* alinhamento mais natural */
  }

  .menu-toggle {
    display: block;
    margin-left: auto;        /* empurra pro lado direito */
  }

  /* Botão de contato ocupa a linha inteira */
  .btn.btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 10px;         /* um respiro entre o menu e o botão */
  }

  /* Menu lateral (igual de antes) */
  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    flex-direction: column;
    background: #fff;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
}


/* Hero */
.hero {
  display: grid;
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  padding-block: clamp(1rem, 4vw, 2rem);
}

.hero-content {
  max-width: 470px;
}

.hero-media img {
  height: clamp(300px, 60vw, 750px);
  width: 100%;
  object-fit: cover;
}

/* Products */
.section {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.section-muted {
  background: var(--ultra);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 4vw, 2rem);
}

.product .media img {
  height: clamp(220px, 40vw, 333px);
  width: 100%;
  object-fit: cover;
}

.product h3 {
  margin: .5rem 0;
  color: var(--dunkel);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.product p {
  color: var(--light);
  line-height: 1.75;
}

/* Packaging */
.packaging {
  background: var(--dunkel);
  display: grid;
  grid-template-columns: 1fr 1fr;          /* duas colunas: texto e imagem */
  align-items: center;                     /* centraliza verticalmente */
  gap: 2rem;                               /* espaço entre as colunas */
  position: relative;                      /* para sombra e deslocamentos */
  box-shadow: 0 10px 30px rgba(0,0,0,.2);   /* sombra da “caixa” escura */
  border-radius: 6px;                       /* opcional: canto levemente arredondado */
}

.packaging-text {
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 494px;
  color: #fff;                              /* garante contraste */
}

.packaging-text .divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.2);
  margin: 1rem 0;
}

.packaging-media {
  position: relative;
  transform: translateY(2rem);              /* empurra a imagem para baixo */
}

.packaging-media img {
  width: 100%;
  height: clamp(280px, 50vw, 584px);
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);   /* sombra na própria foto */
}

/* Responsivo: empilha no mobile e remove o deslocamento */
@media (max-width: 768px) {
  .packaging {
    grid-template-columns: 1fr;             /* volta para uma coluna */
  }
  .packaging-media {
    transform: none;                        /* sem deslocamento no celular */
  }
}

/* Clients */
.logos-grid {
  display: grid;
  gap: clamp(.75rem, 2vw, 2rem);
  align-items: center;
  justify-items: center;
}

.logos-grid.top {
  grid-template-columns: repeat(2, 1fr);
}

.logos-grid.bottom {
  grid-template-columns: repeat(2, 1fr);
}

.logos-grid img {
  height: clamp(40px, 8vw, 80px);
  width: auto;
  object-fit: contain;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 4vw, 2rem);
  align-items: center;
  justify-items: center;       /* centraliza cada célula */
  padding-block: clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.contact-text {
  max-width: 333px;
  text-align: left;
}

/* 🔑 Botões: largura fixa SEMPRE */
.contact-text .btn.btn-primary {
  width: 260px;               /* largura constante */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-text {
    text-align: center;
  }

  /* Nada de width:100% aqui — mantemos 260px */
  .contact-text .btn.btn-primary {
    width: 260px;
  }
}

.contact-media img {
  height: clamp(240px, 50vw, 484px);
  width: 100%;
  object-fit: cover;
}

/* Responsive */
@media (min-width: 1024px) {
  .logo {
    height: 131px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .packaging {
    grid-template-columns: 1fr 1fr;
  }
  .logos-grid.top {
    grid-template-columns: repeat(4, 1fr);
  }
  .logos-grid.bottom {
    grid-template-columns: repeat(5, 1fr);
  }
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}
