/* ==========================================================================
   inc/home.css — Home (v3). Depende de inc/theme.css.
   Segue as telas de referência em ideias/astra/site-1..3.png.
   ========================================================================== */

/* ---------- Abertura em slides: texto sobre o papel, foto sangrando embaixo ---------- */
.h-sl { position: relative; overflow: hidden; }
.h-sl-t { display: grid; }
.h-ab { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.h-ab.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); z-index: 1; }
.h-ab-ft { position: absolute; left: 0; right: 0; bottom: 0; height: min(38vw, 62vh); max-height: 100%; z-index: 0; }
.h-ab-ft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 10%, #000 52%); mask-image: linear-gradient(to bottom, transparent 0, transparent 10%, #000 52%); }
.h-ab .c { position: relative; z-index: 1; padding-top: clamp(2.6rem, 5vw, 5rem); padding-bottom: min(21vw, 32vh); }
.h-ab h1, .h-ab h2 { font: 900 clamp(2.1rem, 4.7vw, 4.6rem)/.98 var(--fd); letter-spacing: -.05em; color: var(--r); margin: 0 0 .28em; }
.h-ab h1 span, .h-ab h2 span { display: block; white-space: nowrap; }
.h-ab p { font: 500 clamp(1rem, 1.5vw, 1.45rem)/1.35 var(--fb); letter-spacing: -.01em; color: var(--ink); margin-bottom: clamp(1.1rem, 1.8vw, 1.8rem); max-width: 44ch; }
.h-ab-b { display: flex; gap: .9rem; flex-wrap: wrap; }
.h-ab-b .bp, .h-ab-b .bk { min-height: 54px; padding: .75rem 1.6rem; font-size: clamp(1rem, 1.15vw, 1.12rem); }
/* QR de verdade no slide do rastreamento */
.h-ab-qr { position: absolute; right: 3.5rem; bottom: clamp(1.5rem, 4vw, 4rem); z-index: 2; background: #fff; border-radius: var(--r3); padding: .9rem .9rem .7rem; width: clamp(150px, 15vw, 230px); text-align: center; box-shadow: var(--sh2); text-decoration: none; }
.h-ab-qr img { width: 100%; height: auto; display: block; }
.h-ab-qr b { display: block; font: 800 .88rem var(--fd); letter-spacing: -.01em; color: var(--ink); margin-top: .45rem; }
/* controles */
.h-sl-c { position: absolute; left: 0; right: 0; bottom: clamp(1rem, 1.8vw, 1.8rem); z-index: 3; pointer-events: none; }
.h-sl-c .c { display: flex; align-items: center; gap: .8rem; }
.h-sl-c button { pointer-events: auto; cursor: pointer; }
.h-sl-d { display: flex; gap: .45rem; background: rgba(247,243,236,.92); border-radius: var(--r2); padding: .5rem .6rem; }
.h-sl-d button { border: 0; background: none; padding: .35rem .2rem; min-height: 32px; display: flex; align-items: center; gap: .5rem; font: 700 .82rem var(--fb); color: var(--ink); }
.h-sl-d button::before { content: ''; width: 34px; height: 5px; border-radius: 3px; background: #bdb5a8; transition: background .2s, width .2s; }
.h-sl-d button span { display: none; }
.h-sl-d button[aria-selected=true]::before { background: var(--r); width: 52px; }
.h-sl-d button[aria-selected=true] span { display: inline; }
.h-sl-s { width: 46px; height: 46px; border: 0; border-radius: var(--r2); background: rgba(247,243,236,.92); color: var(--ink); font: 700 1.3rem/1 var(--fb); }
.h-sl-s:hover { background: var(--r); color: #fff; }
.h-sl-s.pv { margin-left: auto; }
@media (max-width: 700px) {
  .h-ab h1 span, .h-ab h2 span { white-space: normal; }
  .h-ab .c { padding-bottom: 60vw; }
  .h-ab-ft { height: 78vw; }
  .h-ab-b > * { flex: 1 1 100%; }
  .h-ab-ft img { object-position: 30% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 45%); mask-image: linear-gradient(to bottom, transparent 0, #000 45%); }
  .h-ab-qr { display: none; }
  .h-sl-d button span { display: none !important; }
  .h-sl-s { display: none; }
}

/* ---------- Faixa de dados ---------- */
.h-dd { border-top: 1px solid var(--br); border-bottom: 1px solid var(--br); background: rgba(250,248,244,.9); }
.h-dd ul { list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center; min-height: clamp(60px, 4.8vw, 76px); }
.h-dd li { font: 800 clamp(.98rem, 1.45vw, 1.4rem) var(--fd); letter-spacing: -.03em; color: var(--ink); padding: 0 clamp(1rem, 3vw, 3.4rem); border-left: 1px solid #b9b1a4; white-space: nowrap; line-height: 2.3; }
.h-dd li:first-child { border-left: 0; padding-left: 0; }
.h-dd li:last-child { padding-right: 0; }
.h-dd a { color: inherit; text-decoration: none; }
.h-dd a:hover { color: var(--r); }
@media (max-width: 900px) { .h-dd ul { grid-template-columns: 1fr 1fr; padding: .6rem 0; } .h-dd li { border: 0; padding: 0; white-space: normal; line-height: 2; } }

/* ---------- Ferramentas ---------- */
.h-fe { position: relative; overflow: hidden; }
.h-fe-top { position: relative; }
.h-fe-top .c { position: relative; z-index: 1; padding-top: clamp(3rem, 5.5vw, 5.5rem); padding-bottom: clamp(8rem, 17vw, 17rem); }
.h-fe-ft { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 0; }
.h-fe-ft img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 78%); mask-image: linear-gradient(to bottom, transparent 30%, #000 78%); }
.h-fe-l { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5.5rem); }
.h-fe-l a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; padding: clamp(1rem, 1.7vw, 1.6rem) 0; border-bottom: 1px solid #b9b1a4; text-decoration: none; }
.h-fe-l b { display: block; font: 800 clamp(1.2rem, 1.8vw, 1.75rem)/1.1 var(--fd); letter-spacing: -.045em; color: var(--ink); transition: color .15s; }
.h-fe-l span { display: block; font: 500 clamp(.95rem, 1.1vw, 1.08rem)/1.35 var(--fb); color: var(--ink); margin-top: .15em; }
.h-fe-l i { font: 500 clamp(1.4rem, 2.4vw, 2.3rem)/1 var(--fb); font-style: normal; color: var(--r); opacity: 0; transform: translateX(-10px); transition: opacity .15s, transform .15s; }
.h-fe-l a:hover b { color: var(--r); }
.h-fe-l a:hover i { opacity: 1; transform: none; }
.h-fe .k-faixa { margin: clamp(1.75rem, 3vw, 3rem) 0 0; }
.h-fe-fim { padding-bottom: clamp(3rem, 5.5vw, 5.5rem); }
@media (max-width: 760px) { .h-fe-l { grid-template-columns: 1fr; } .h-fe-l i { opacity: 1; transform: none; } }

/* ---------- Produtos ---------- */
.h-pr-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 1.1vw, 1.1rem); }
.h-pr-g a { text-decoration: none; display: block; }
.h-pr-g figure { overflow: hidden; background: var(--s2); aspect-ratio: 1.17; }
.h-pr-g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.h-pr-g a:hover img { transform: scale(1.05); }
.h-pr-g b { display: block; font: 800 clamp(1.05rem, 1.9vw, 1.8rem)/1.05 var(--fd); letter-spacing: -.045em; color: var(--ink); padding: .65em .35em 0 .45em; max-width: 9.5ch; transition: color .15s; }
.h-pr-g a:hover b { color: var(--r); }
.h-pr-r { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #b9b1a4; margin-top: clamp(1.5rem, 2.6vw, 2.6rem); padding: clamp(.9rem, 1.4vw, 1.4rem) 0 clamp(1.1rem, 1.8vw, 1.8rem); }
@media (max-width: 760px) { .h-pr-g { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; } }

/* ---------- Estrutura própria (fotos reais) ---------- */
.h-es { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.h-es-ft { position: relative; }
.h-es-ft img { width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; display: block; }
.h-es-ft figcaption, .h-leg { font: 600 .92rem var(--fb); color: var(--mu); padding-top: .6rem; }
.h-es-l { border-top: 1px solid #b9b1a4; }
.h-es-l div { display: grid; grid-template-columns: clamp(84px, 9vw, 132px) 1fr; gap: clamp(.9rem, 1.6vw, 1.6rem); align-items: center; padding: clamp(.8rem, 1.2vw, 1.2rem) 0; border-bottom: 1px solid #b9b1a4; }
.h-es-l img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.h-es-l b { display: block; font: 800 clamp(1.15rem, 1.6vw, 1.5rem)/1.1 var(--fd); letter-spacing: -.045em; color: var(--ink); }
.h-es-l span { display: block; font: 500 clamp(.93rem, 1.05vw, 1.02rem)/1.45 var(--fb); color: var(--tx); margin-top: .25em; }
@media (max-width: 900px) { .h-es { grid-template-columns: 1fr; } }

/* ---------- Aplicação (foto larga) ---------- */
.h-ap { position: relative; min-height: clamp(380px, 46vw, 680px); display: flex; align-items: flex-end; overflow: hidden; background: #b08a2a; }
.h-ap > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.h-ap .c { position: relative; width: 100%; padding-bottom: clamp(1.25rem, 3vw, 3rem); }
.h-ap-cx { background: var(--pp); border-radius: var(--r3); padding: clamp(1.3rem, 2.6vw, 2.6rem); max-width: 720px; }
.h-ap-cx h2 { font: 900 clamp(1.8rem, 3.2vw, 3rem)/1 var(--fd); letter-spacing: -.045em; color: var(--r); margin-bottom: .35em; }
.h-ap-cx p { font: 500 clamp(.98rem, 1.15vw, 1.1rem)/1.45 var(--fb); color: var(--ink); margin-bottom: 1.1rem; }

/* ---------- Rastreabilidade ---------- */
.h-rt { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.h-rt table { width: 100%; border-collapse: collapse; border-top: 1px solid #b9b1a4; margin-top: clamp(1.4rem, 2.4vw, 2.4rem); }
.h-rt th, .h-rt td { text-align: left; padding: clamp(.75rem, 1.15vw, 1.15rem) 0; border-bottom: 1px solid #b9b1a4; vertical-align: baseline; }
.h-rt th { font: 800 clamp(1.05rem, 1.45vw, 1.35rem) var(--fd); letter-spacing: -.045em; color: var(--ink); width: 34%; }
.h-rt td { font: 500 clamp(.93rem, 1.05vw, 1.02rem) var(--fb); color: var(--tx); padding-right: 1rem; }
.h-rt td:last-child { text-align: right; padding-right: 0; font-weight: 800; color: var(--r); white-space: nowrap; }
.h-rt td.dv { color: var(--mu); }
.h-rt-qr { background: #fff; border: 1px solid var(--br); border-radius: var(--r3); padding: clamp(1.1rem, 2vw, 2rem); text-align: center; text-decoration: none; display: block; }
.h-rt-qr img { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto .9rem; }
.h-rt-qr b { display: block; font: 800 1.25rem var(--fd); letter-spacing: -.03em; color: var(--ink); }
.h-rt-qr span { font: 500 .98rem var(--fb); color: var(--mu); }
@media (max-width: 900px) { .h-rt { grid-template-columns: 1fr; } .h-rt td:nth-child(2) { display: none; } }

/* ---------- Catálogos ---------- */
.h-ct { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.6rem, 1.1vw, 1.1rem); }
.h-ct a { display: block; text-decoration: none; color: inherit; }
.h-ct figure { margin: 0 0 .7rem; background: #fff; border: 1px solid var(--br); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.h-ct a:hover figure { transform: translateY(-5px); box-shadow: var(--sh2); }
.h-ct b { display: block; font: 800 clamp(.92rem, 1.05vw, 1.02rem)/1.18 var(--fd); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.h-ct span { display: block; margin-top: .3rem; font: 600 .8rem var(--fb); color: var(--mu); }
.h-ct a:hover b { color: var(--r); }

.h-ct img { width: 100%; height: auto; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; display: block; }
@media (max-width: 900px) { .h-ct { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.6rem; } }
@media (max-width: 560px) { .h-ct { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Avaliações ---------- */
.h-av { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.5rem, 3.4vw, 3.6rem); border-top: 1px solid #b9b1a4; }
.h-av blockquote { padding: clamp(1.2rem, 2vw, 2rem) 0; border-bottom: 1px solid #b9b1a4; }
.h-av .e { color: var(--r); letter-spacing: .14em; font-size: 1.15rem; }
.h-av p { font: 600 clamp(1rem, 1.15vw, 1.1rem)/1.5 var(--fb); color: var(--ink); margin: .7rem 0 1rem; }
.h-av footer { font: 800 1.02rem var(--fd); letter-spacing: -.02em; color: var(--ink); }
.h-av footer span { display: block; font: 500 .88rem var(--fb); color: var(--mu); letter-spacing: 0; }
.h-nota { margin-top: .5em; font: 900 clamp(1.7rem, 2.8vw, 2.6rem)/1 var(--fd); letter-spacing: -.045em; color: var(--ink); }
.h-nota small { font: 500 clamp(1rem, 1.3vw, 1.25rem) var(--fb); letter-spacing: 0; color: var(--tx); margin-left: .5rem; }
@media (max-width: 860px) { .h-av { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.h-bl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 2.4rem); }
.h-bl a { text-decoration: none; display: block; }
.h-bl img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--s2); }
.h-bl small { display: block; font: 700 .82rem var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--r); margin: 1rem 0 .4rem; }
.h-bl b { display: block; font: 800 clamp(1.1rem, 1.4vw, 1.3rem)/1.15 var(--fd); letter-spacing: -.04em; color: var(--ink); transition: color .15s; }
.h-bl a:hover b { color: var(--r); }
@media (max-width: 860px) { .h-bl { grid-template-columns: 1fr; } }

/* ---------- Orçamento ---------- */
.h-or .k-t { font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.h-or { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.h-or .tel { display: block; font: 900 clamp(2rem, 3.6vw, 3.4rem)/1 var(--fd); letter-spacing: -.05em; color: #fff; text-decoration: none; margin-top: .5em; }
.h-or .tel:hover { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 4px; }
.h-or-f { background: var(--pp); border-radius: var(--r3); padding: clamp(1.3rem, 2.6vw, 2.6rem); }
@media (max-width: 900px) { .h-or { grid-template-columns: 1fr; } }

/* cabeçalho de seção com link à direita */
.h-cb { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 2.8vw, 2.8rem); }
.h-cb .k-t { margin-bottom: 0; }

/* ---------- ContiTech: selo no banner e faixa de parceiros ---------- */
.h-ct-selo { display: inline-flex; align-items: center; gap: .9rem; margin-top: clamp(1.1rem, 1.8vw, 1.8rem); padding: .7rem 1.1rem; background: rgba(255,255,255,.86);
  border: 1px solid var(--br); border-radius: var(--r2); text-decoration: none; }
.h-ct-selo img { height: 1.75rem; width: auto; max-width: none; display: block; }
.h-ct-selo span { font: 700 .74rem/1.1 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.h-ct-selo span:last-child { color: var(--mu); padding-left: .9rem; border-left: 1px solid #b9b1a4; }
@media (max-width: 700px) { .h-ct-selo { flex-wrap: wrap; gap: .5rem .8rem; } .h-ct-selo span:last-child { border: 0; padding: 0; } }
.h-pc { border-top: 1px solid var(--br); background: #fff; }
.h-pc-g { display: grid; grid-template-columns: 1.1fr .9fr; }
.h-pc-ct { padding: clamp(2rem, 3.6vw, 3.6rem) clamp(1.5rem, 3.6vw, 3.6rem) clamp(2rem, 3.6vw, 3.6rem) 0; border-right: 1px solid var(--br); }
.h-pc-ct img { display: block; height: clamp(34px, 3.6vw, 52px); width: auto; max-width: 100%; margin: .4rem 0 1.2rem; }
.h-pc-ct h2 { font: 900 clamp(1.5rem, 2.5vw, 2.3rem)/1.05 var(--fd); letter-spacing: -.045em; color: var(--ink); margin-bottom: .35em; }
.h-pc-ct p { font: 500 clamp(.98rem, 1.15vw, 1.1rem)/1.45 var(--fb); color: var(--tx); }
.h-pc-m { padding: clamp(2rem, 3.6vw, 3.6rem) 0 clamp(2rem, 3.6vw, 3.6rem) clamp(1.5rem, 3.6vw, 3.6rem); display: flex; flex-direction: column; justify-content: center; }
.h-pc-m small { font: 700 .76rem var(--fb); letter-spacing: .09em; text-transform: uppercase; color: var(--r); margin-bottom: .6rem; }
.h-pc-m ul { list-style: none; }
.h-pc-m li { font: 900 clamp(1.3rem, 2.2vw, 2rem)/1 var(--fd); letter-spacing: -.045em; color: var(--ink); padding: .5em 0; border-bottom: 1px solid var(--br); }
.h-pc-m li:last-child { border: 0; }
/* grade de logos dos parceiros (8): 2 colunas com fios, logos na mesma altura visual */
.h-pc-m ul.h-pc-logos { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--br); margin-top: .4rem; }
.h-pc-m ul.h-pc-logos li { display: flex; align-items: center; justify-content: center; height: clamp(74px, 7vw, 96px); padding: .9rem 1rem; border-bottom: 1px solid var(--br); }
.h-pc-m ul.h-pc-logos li:nth-child(odd) { border-right: 1px solid var(--br); }
.h-pc-m ul.h-pc-logos li:nth-last-child(-n+2) { border-bottom: 0; }
.h-pc-m ul.h-pc-logos li:nth-last-child(2), .h-pc-m ul.h-pc-logos li:nth-last-child(3) { border-bottom: 1px solid var(--br); }
.h-pc-m ul.h-pc-logos li.h-pc-mais { grid-column: 1 / -1; border-right: 0; border-bottom: 0; height: auto; padding: 1rem; font-weight: 800; font-size: clamp(.95rem, 1.1vw, 1.1rem); color: #9c2529; letter-spacing: .01em; }
.h-pc-m ul.h-pc-logos img { max-height: clamp(30px, 3vw, 44px); max-width: 82%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 800px) { .h-pc-g { grid-template-columns: 1fr; } .h-pc-ct { border-right: 0; border-bottom: 1px solid var(--br); padding-right: 0; } .h-pc-m { padding-left: 0; } }
