/* Brinda — built from the Figma screen "Frame 168" (1440 wide, 84px margins) */

:root {
  --fundo: #FFFBEF;
  --fundo-nav: #FFFAF0;
  --tinta: #083306;
  --corpo: #636A57;
  --borda: #8B9174;
  --grafite: #45493D;
  --cartao: #FFFFFF;
  --esqueleto: #EFEBE0;
  --journal: #C1C8B5;
  --copos: #E7D4BF;
  --laranja: #E88B33;
  --texto-card: #4E4E4E;

  --margem: clamp(20px, 5.834vw, 84px);
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }

/* ---------- shared buttons ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--serif);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
/* "Card chamada / envio" in the Figma library */
.botao--grafite,
.botao--branco {
  min-width: 291px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--borda);
  border-radius: 7px;
  font-size: 18px;
  line-height: 24px;
}
.botao--grafite { background: var(--grafite); color: var(--fundo); justify-content: flex-start; }
.botao--grafite:hover { background: #363a30; }
.botao--branco { background: var(--cartao); color: var(--tinta); justify-content: space-between; }
.botao--branco:hover { border-color: var(--tinta); }

.botao--creme {
  min-width: 291px;
  min-height: 46px;
  padding: 12px 16px;
  background: var(--fundo);
  color: var(--tinta);
  border: .9px solid var(--borda);
  border-radius: 6.2px;
  font-size: 18px;
  line-height: 21px;
}
.botao--creme:hover { background: #fff; }

.botao--tinta,
.botao--contorno {
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 20px;
}
.botao--tinta { background: var(--tinta); color: var(--fundo); border: 1.2px solid var(--tinta); }
.botao--tinta:hover { background: #0c4709; }
.botao--contorno { color: var(--tinta); border: 1.2px solid var(--tinta); }
.botao--contorno:hover { background: rgba(8, 51, 6, .06); }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 var(--margem);
  background: var(--fundo-nav);
}
.nav__marca {
  font-weight: 700;
  font-size: 29.28px;
  line-height: 35px;
  text-decoration: none;
}
.nav__links { display: flex; gap: 43px; }
.nav__links a {
  font-size: 24.08px;
  line-height: 35px;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover,
  .rodape__links a:hover { text-decoration: underline; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 616px;
  padding: 40px var(--margem);
  background: var(--esqueleto) url("../img/hero.webp") center / cover no-repeat;
}
.hero__conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 29px;
  width: min(724px, 100%);
}
.hero__titulo {
  font-weight: 700;
  font-size: clamp(76px, 9.15vw, 131.77px);
  line-height: 1.184;
  text-align: center;
}
.hero__sub {
  font-weight: 700;
  font-size: 19.26px;
  line-height: 29px;
  text-align: center;
}

/* search row: bar 559 + filter 58 + Pair! 79, 14 apart */
.busca {
  position: relative;
  display: flex;
  gap: 14px;
  width: 100%;
}
.busca__campo {
  flex: 1 1 559px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 34px;
  height: 58px;
  padding: 0 20px 0 44px;
  background: var(--cartao);
  border: 1.2px solid var(--borda);
  border-radius: 8.4px;
  cursor: text;
}
.busca__campo:focus-within { border-color: var(--tinta); box-shadow: 0 0 0 1px var(--tinta); }
.busca__lupa { flex: none; }
.busca__campo input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 19.26px;
  line-height: 29px;
  color: var(--tinta);
  text-overflow: ellipsis;
}
.busca__campo input::placeholder { color: var(--corpo); opacity: 1; }
.busca__campo input::-webkit-search-cancel-button { -webkit-appearance: none; }

.busca__filtro {
  flex: none;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  background: var(--cartao);
  border: 1.2px solid var(--borda);
  border-radius: 8.4px;
  cursor: pointer;
}
.icone-filtro path { fill: none; stroke: var(--corpo); transition: fill .15s ease, stroke .15s ease; }
.busca__filtro:hover { border-color: var(--tinta); }
/* pressed: filled, darker icon and dark border (Estado=Ativo in the library) */
.busca__filtro[aria-expanded="true"] { border: 1.6px solid var(--tinta); }
.busca__filtro[aria-expanded="true"] .icone-filtro path { fill: var(--tinta); stroke: var(--tinta); }

.busca__pair {
  flex: none;
  width: 79px;
  height: 58px;
  padding: 0;
  background: var(--grafite);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 7px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, .6);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease, box-shadow .1s ease;
}
.busca__pair:hover { background: #363a30; }
.busca__pair:active { transform: translate(2px, 2px); box-shadow: 1px 1px 3px rgba(0, 0, 0, .6); }

/* ---------- preferences card ---------- */
.filtro-aberto .busca { z-index: 60; }   /* the search row stays lit above the dim */
.veu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .25);
  animation: aparecer .2s ease;
}
.filtros {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  gap: 22px;
  padding: 24px;
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(8, 51, 6, .18);
  text-align: left;
  animation: descer .2s ease;
}
.filtros[hidden] { display: none; }
@keyframes aparecer { from { opacity: 0; } }
@keyframes descer { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .veu, .filtros { animation: none; } }

.filtros__grupo { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.filtros__linha { display: flex; flex-wrap: wrap; gap: 22px 40px; }
.rotulo {
  padding: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--corpo);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* "Chip adega" in the library */
.chip {
  height: 30px;
  padding: 0 15px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: var(--fundo);
  color: var(--corpo);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--tinta); }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--fundo); font-weight: 500; }

/* "Seletor álcool" in the library */
.segmentos {
  display: inline-flex;
  width: 296px;
  max-width: 100%;
  border: 1px solid var(--borda);
  border-radius: 6px;
  overflow: hidden;
  background: var(--cartao);
}
.segmentos label { flex: 1; position: relative; }
.segmentos label + label { border-left: 1px solid var(--borda); }
.segmentos input { position: absolute; opacity: 0; pointer-events: none; }
.segmentos span {
  display: grid;
  place-items: center;
  height: 40px;
  padding: 0 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--corpo);
  cursor: pointer;
  white-space: nowrap;
}
.segmentos input:checked + span { background: var(--tinta); color: #fff; font-weight: 500; }
.segmentos input:focus-visible + span { outline: 2px solid var(--tinta); outline-offset: -4px; }

.filtros__divisor { width: 100%; height: 1px; margin: 0; border: 0; background: rgba(139, 145, 116, .45); }
.filtros__rodape { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* "Interruptor" in the library */
.interruptor { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.interruptor__trilho {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--borda);
  transition: background-color .2s ease;
}
.interruptor__trilho::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.interruptor input:checked + .interruptor__trilho { background: var(--tinta); }
.interruptor input:checked + .interruptor__trilho::after { transform: translateX(18px); }
.interruptor input:focus-visible + .interruptor__trilho { outline: 2px solid var(--tinta); outline-offset: 3px; }

.filtros__limpar {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--corpo);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.filtros__limpar:hover { color: var(--tinta); }

/* ---------- journal ---------- */
/* in the Figma the content overflows its 588px frame and is centred: 49px above, 91px below the cards */
.journal { padding: 49px 0 83px; background: var(--journal); }
.journal__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  padding: 0 var(--margem);
}
.journal__titulo { font-weight: 700; font-size: 45px; line-height: 75px; }
.journal__sub { font-weight: 500; font-size: 25px; line-height: 55px; }
.journal__topo > div { flex: 1 1 auto; min-width: 0; }
.journal__acoes { flex: none; display: flex; gap: 36px; }

/* the cards live only between the margins: photo and text are cut at the same line,
   and the margins (where the arrows sit) stay clean */
.carrossel { position: relative; margin-top: 20px; padding: 0 var(--margem); }
.carrossel__trilho {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }
.card { flex: 0 0 384px; scroll-snap-align: start; }
.card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card h3 {
  margin-top: 12px;
  font-weight: 500;
  font-size: 17px;
  line-height: 22px;
  color: #000;
}
.card__pessoa { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--texto-card); }
.card__pessoa strong { font-weight: 700; }
.card__rodape {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--texto-card);
}
.card__rodape a:first-child { text-decoration: underline; text-underline-offset: 2px; }
.card__rodape a:last-child { text-decoration: none; }
.card__rodape a:last-child:hover { text-decoration: underline; }

/* tall arrow columns, same colour as the section */
.carrossel__seta {
  position: absolute;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--margem);
  height: 192px;
  padding: 0;
  border: 0;
  background: var(--journal);
  cursor: pointer;
}
.carrossel__seta--prox { right: 0; }
.carrossel__seta--ant { left: 0; }
.carrossel__seta[hidden] { display: none; }
.carrossel__seta svg { transition: transform .2s ease; }
.carrossel__seta--prox:hover svg { transform: translateX(3px); }
.carrossel__seta--ant:hover svg { transform: translateX(-3px); }

/* ---------- cellar ---------- */
.cellar { padding: 96px var(--margem); background: var(--tinta); color: var(--fundo); }
.cellar__linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1272px;
  margin: 0 auto;
}
.cellar__foto {
  width: 100%;
  aspect-ratio: 636 / 333;
  object-fit: cover;
  border: 2px solid var(--fundo);
}
.cellar__texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  padding: 0 clamp(24px, 5.5vw, 79px);
  text-align: center;
}
.cellar__texto h2 { font-weight: 700; font-size: 45px; line-height: 44px; }
.cellar__texto p { font-weight: 500; font-size: 25px; line-height: 35px; max-width: 520px; }

/* ---------- drinks loop ---------- */
.copos {
  --h: clamp(280px, 33.27vw, 479px);              /* band height (479 at 1440) */
  --w: calc(var(--h) * 1440 / 479);                /* one copy of the strip */
  --passo: calc(var(--w) - var(--h) * 2 / 479);    /* copies overlap 2px, like the Figma loop */
  position: relative;
  height: var(--h);
  overflow: hidden;
  background: var(--copos);
}
.copos__trilho {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  animation: deslizar 30s linear infinite;
  will-change: transform;
}
.copos__trilho img {
  flex: none;
  width: var(--w);
  height: var(--h);
  max-width: none;
  margin-right: calc(var(--h) * -2 / 479);
}
@keyframes deslizar { to { transform: translateX(calc(-1 * var(--passo))); } }
@media (prefers-reduced-motion: reduce) { .copos__trilho { animation: none; } }

.copos__titulo {
  position: absolute;
  top: calc(var(--h) * 47 / 479);
  left: 50%;
  width: min(744px, calc(100% - 2 * var(--margem)));
  transform: translateX(-50%);
  text-align: center;
}
.copos__titulo h2 { font-weight: 700; font-size: clamp(26px, 3.125vw, 45px); line-height: 1.11; }
.copos__titulo p { font-weight: 400; font-size: clamp(19px, 2.22vw, 32px); line-height: 1.56; }

/* ---------- brinda for business ---------- */
.negocio {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 96px var(--margem);
  background: var(--fundo);
}
.negocio__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.negocio h2 { font-weight: 700; font-size: clamp(30px, 3.47vw, 50px); line-height: 1.24; }
.negocio__texto > p { max-width: 560px; font-size: 18px; line-height: 30px; color: var(--corpo); }

.beneficios { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.beneficios li { display: flex; align-items: center; gap: 14px; font-size: 17px; line-height: 21px; }
.beneficios svg { flex: none; }

.negocio__botoes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qr {
  display: grid;
  place-items: center;
  width: 102px;
  height: 102px;
  margin-left: 16px;
  padding: 10px;
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 8px;
}
.qr svg { width: 80px; height: 80px; }

.negocio__foto {
  flex: none;
  width: clamp(280px, 29.2vw, 420px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- partners ---------- */
.parceiros { padding: 96px var(--margem) 80px; background: var(--corpo); }
.parceiros__titulo h2 { font-weight: 700; font-size: 44px; line-height: 54px; color: var(--laranja); }
.parceiros__titulo p {
  max-width: 692px;
  margin-top: 14px;
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: var(--laranja);
  opacity: .72;
}
.parceiros__grupos {
  display: grid;
  grid-template-columns: 402fr 435fr 435fr;
  margin-top: 48px;
}
.grupo { padding: 4px 32px; }
.grupo:first-child { padding-left: 0; }
.grupo + .grupo { border-left: 1px solid rgba(255, 251, 239, .25); }
.grupo h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--laranja);
  opacity: .72;
}
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin-top: 22px; }

/* ---------- footer ---------- */
.rodape { background: var(--fundo); overflow: hidden; }
.rodape__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 36px var(--margem);
}
.rodape__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.rodape__links a { font-size: 14px; line-height: 18px; text-decoration: none; text-underline-offset: 4px; }
.rodape__credito { font-family: var(--sans); font-size: 13px; line-height: 16px; color: var(--corpo); }

.assinatura { padding: 8px var(--margem) 0; }
.assinatura svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .negocio { gap: 48px; }
  .journal__topo { flex-direction: column; align-items: flex-start; }
  .journal__topo > div { flex: none; }
  .journal__acoes { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 900px) {
  .nav__marca { font-size: 24px; }
  .nav__links { gap: 22px; }
  .nav__links a { font-size: 18px; }

  .hero { min-height: 520px; padding: 64px var(--margem); }

  .journal { padding: 64px 0; }
  .journal__titulo { font-size: 36px; line-height: 48px; }
  .journal__sub { font-size: 20px; line-height: 30px; }
  .botao--grafite, .botao--branco { min-width: 0; }
  .card { flex-basis: 300px; }
  .carrossel__seta { display: none; }

  .cellar { padding: 64px var(--margem); }
  .cellar__linha { grid-template-columns: 1fr; gap: 40px; }
  .cellar__texto { padding: 0; gap: 24px; }
  .cellar__texto h2 { font-size: 36px; }
  .cellar__texto p { font-size: 19px; line-height: 29px; }

  .negocio { flex-direction: column-reverse; align-items: flex-start; gap: 40px; padding: 64px var(--margem); }
  .negocio__foto { align-self: center; }

  .parceiros { padding: 64px var(--margem); }
  .parceiros__titulo h2 { font-size: 34px; line-height: 42px; }
  .parceiros__titulo p { font-size: 19px; line-height: 27px; }
  .parceiros__grupos { grid-template-columns: 1fr; margin-top: 36px; }
  .grupo, .grupo:first-child { padding: 24px 0; }
  .grupo + .grupo { border-left: 0; border-top: 1px solid rgba(255, 251, 239, .25); }

  .rodape__barra { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 16px; }
  .busca { gap: 8px; }
  .busca__campo { gap: 12px; padding-left: 16px; padding-right: 12px; }
  .busca__campo input { font-size: 16px; }
  .busca__filtro { width: 52px; }
  .busca__pair { width: 64px; }
  .filtros { padding: 18px; }
  .filtros__rodape { flex-wrap: wrap; }
  .card { flex-basis: 260px; }
  .journal__acoes, .journal__acoes .botao { width: 100%; }
  .negocio__botoes .botao { flex: 1 1 auto; }
  .qr { margin-left: 0; }
}
