/* ==========================================================================
   LA VIERRO — VERSÃO 1 · EDITORIAL
   Referência: COS, Massimo Dutti, Zara. Luxo silencioso, tipografia serifada,
   respiro largo, fotografia comandando a página.
   ========================================================================== */

:root {
  --bg: #f4f1ec;
  --fg: #1c1a18;
  --muted: #7a736a;
  --line: rgba(28, 26, 24, 0.13);
  --surface: #fffdfa;
  --accent: #ad906e;
  --accent-fg: #fff;
  --pad: clamp(20px, 5vw, 72px);
}

body { font-size: 15px; }

.wrap { width: 100%; padding-inline: var(--pad); }

/* --------------------------------------------------------------- TOPBAR -- */
.top {
  background: var(--fg); color: var(--bg);
  display: flex; justify-content: center; align-items: center;
  min-height: 40px; padding: 7px var(--pad); text-align: center;
}
.top .lv-frete { --frete-bg: transparent; --frete-fg: var(--bg); font-weight: 500; letter-spacing: 0.04em; padding: 0; }

/* --------------------------------------------------------------- HEADER -- */
.hd {
  position: sticky; top: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; padding: 20px var(--pad);
  background: rgba(244, 241, 236, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}
.hd.is-small { padding-block: 12px; }

.hd__nav { display: flex; gap: 26px; }
.hd__nav a {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 550;
  position: relative; padding-bottom: 3px;
}
.hd__nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: currentColor; transition: width 0.3s var(--ease);
}
.hd__nav a:hover::after { width: 100%; }

.hd__mid { display: grid; place-items: center; }
.hd__acts { display: flex; gap: 22px; justify-content: flex-end; align-items: center; }
.hd__acts button {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 550;
}
.hd__burger { display: none; }

@media (max-width: 880px) {
  .hd { grid-template-columns: auto 1fr auto; padding-inline: 18px; }
  .hd__nav { display: none; }
  .hd__burger { display: block; font-size: 22px; line-height: 1; }
  .hd__acts button span.t { display: none; }
}

/* menu mobile */
.mob {
  position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); z-index: 95;
  background: var(--surface); padding: 84px 30px 30px;
  transform: translateX(101%); transition: transform 0.36s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.mob.is-open { transform: none; }
.mob a { font-family: var(--ff-display); font-size: 26px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mob__x { position: absolute; top: 22px; right: 26px; font-size: 26px; line-height: 1; }

/* ----------------------------------------------------------------- HERO -- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 84vh; }
.hero__img { position: relative; overflow: hidden; background: #ddd8d0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 45%);
}
.hero__txt {
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: clamp(40px, 6vw, 80px);
}
.hero__kick { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin: 0; }
.hero h1 {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(42px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.015em;
  margin: 0;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 42ch; margin: 0; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__img { aspect-ratio: 4/3; }
  .hero__txt { padding: 44px 20px 54px; }
}

/* ------------------------------------------------------------ MANIFESTO -- */
.mani { padding: clamp(72px, 10vw, 130px) var(--pad); text-align: center; }
.mani__in { max-width: 760px; margin: 0 auto; }
.mani p {
  font-family: var(--ff-display); font-size: clamp(22px, 2.9vw, 34px);
  line-height: 1.42; font-weight: 400; margin: 0 0 22px;
}
.mani small { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* -------------------------------------------------------------- SEÇÕES -- */
.sec { padding: clamp(48px, 7vw, 90px) var(--pad); }
.sec__hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 38px; }
.sec__ttl { font-family: var(--ff-display); font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.05; margin: 0; }
.sec__kick { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

/* filtros de categoria */
.cats { display: flex; gap: 4px; flex-wrap: wrap; }
.cats button {
  padding: 9px 18px; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
  border-radius: 99px; transition: all 0.22s var(--ease); color: var(--muted);
}
.cats button:hover { color: var(--fg); }
.cats button.is-on { background: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------------- GRID -- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px) clamp(14px, 1.8vw, 26px); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.lv-card { opacity: 0; transform: translateY(16px); animation: cardIn 0.6s var(--ease) forwards; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.lv-card:nth-child(2) { animation-delay: 0.05s; }
.lv-card:nth-child(3) { animation-delay: 0.1s; }
.lv-card:nth-child(4) { animation-delay: 0.15s; }
.lv-card:nth-child(5) { animation-delay: 0.2s; }
.lv-card:nth-child(6) { animation-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) { .lv-card { animation: none; opacity: 1; transform: none; } }

.lv-card__img {
  position: relative; display: block; width: 100%; aspect-ratio: 3/4;
  overflow: hidden; background: #e6e1d9; padding: 0;
}
.lv-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.5s var(--ease); }
.lv-card__alt { position: absolute; inset: 0; opacity: 0; }
.lv-card:hover .lv-card__alt { opacity: 1; }
.lv-card:hover .lv-card__img img { transform: scale(1.045); }
.lv-card__tag { position: absolute; top: 12px; left: 12px; }

.lv-card__info { padding: 15px 2px 0; }
.lv-card__tipo { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 5px; }
.lv-card__nome { margin: 0 0 7px; font-family: var(--ff-display); font-size: 20px; font-weight: 500; line-height: 1.2; }
.lv-card__nome button { text-align: left; }
.lv-card__nome button:hover { color: var(--accent); }
.lv-card__preco { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 14.5px; }
.lv-card__preco b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lv-card__preco s { color: var(--muted); font-size: 12.5px; }
.lv-card__preco em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--wine); }
.lv-card__parc { font-size: 12px; color: var(--muted); margin: 3px 0 0; }
.lv-vazio { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--muted); }

/* ------------------------------------------------------------ EDITORIAL -- */
/* 5 looks em grade 4x2 que fecha exatamente:
   o primeiro ocupa 2 colunas por 2 linhas, os outros 4 ocupam 1 célula cada. */
.ed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.ed__i { position: relative; overflow: hidden; aspect-ratio: 3/4; background: #ddd8d0; margin: 0; }
.ed__i:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ed__i img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ed__i:hover img { transform: scale(1.05); }
.ed__cap {
  position: absolute; left: 22px; bottom: 20px; right: 22px; color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}
.ed__cap b { display: block; font-family: var(--ff-display); font-size: 26px; font-weight: 500; }
.ed__cap span { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
@media (max-width: 800px) {
  /* 2 colunas: o destaque vira faixa larga de 1 linha, os 4 restantes fazem 2x2 */
  .ed { grid-template-columns: repeat(2, 1fr); }
  .ed__i:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/3; }
}

/* ------------------------------------------------------------- DETALHE -- */
.det { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; background: var(--surface); }
.det__img { aspect-ratio: 1/1; overflow: hidden; background: #e6e1d9; }
.det__img img { width: 100%; height: 100%; object-fit: cover; }
.det__txt { padding: clamp(40px, 6vw, 84px); display: grid; gap: 20px; }
.det__txt h2 { font-family: var(--ff-display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 500; line-height: 1.1; margin: 0; }
.det__txt p { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 0; }
.det__list { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.det__list li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.det__list b { flex: none; width: 96px; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) { .det { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- FRETE -- */
.frete { background: var(--accent); color: #fff; padding: 34px var(--pad); }
.frete__in { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; text-align: center; }
.frete__it { display: flex; align-items: center; gap: 11px; font-size: 13.5px; font-weight: 550; }
.frete__it svg { flex: none; }

/* -------------------------------------------------------------- FOOTER -- */
.ft { background: var(--fg); color: #cfc8bf; padding: 64px var(--pad) 34px; }
.ft__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ft__top h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); margin: 0 0 16px; }
.ft__top a, .ft__top p { display: block; font-size: 13.5px; margin: 0 0 9px; color: #cfc8bf; }
.ft__top a:hover { color: #fff; }
.ft__brand { color: #fff; }
.ft__brand p { color: #a49c92; font-size: 13.5px; max-width: 34ch; margin-top: 18px; }
.ft__bot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; font-size: 11.5px; color: #8a837a; }
@media (max-width: 760px) { .ft__top { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------------------------------------------- REVEAL --
   Só esconde quando o JS confirmou que está vivo (html.js). Sem JS — ou se o
   script quebrar antes do observer — o conteúdo continua visível. */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] { opacity: 1; transform: none; } }
