/* Home — hero com vitrine, faixa, categorias, sobre, depoimentos */

.hero {
    position: relative;
    background: var(--blue-ink);
    color: #fff;
    overflow: hidden;
    min-height: 100svh;
    display: grid;
    align-items: center;
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
    opacity: 0.55;
    animation: kb 20s ease-out both;
}
@keyframes kb { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--blue-ink) 0%, rgba(7, 26, 54, 0.92) 30%, rgba(7, 26, 54, 0.35) 62%, rgba(7, 26, 54, 0.2) 100%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    background: linear-gradient(to top, var(--blue-ink), transparent);
}
.hero .wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    padding-top: calc(var(--topo-h) + 42px);
    padding-bottom: 90px;
    width: 100%;
}
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 12ch; }
.hero h1 mark { background: none; color: var(--orange); position: relative; }
.hero h1 mark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 0.14em;
    background: var(--orange);
    opacity: 0.35;
    border-radius: 4px;
}
.hero p { font-size: 1.15rem; max-width: 46ch; margin: 1.5rem 0 2.2rem; color: rgba(255, 255, 255, 0.85); }
.hero-acoes { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.selo-linha {
    display: flex;
    gap: 1.6rem;
    margin-top: 2.6rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
}
.selo-linha span { display: flex; align-items: center; gap: 0.5rem; }
.selo-linha b { color: #fff; }
.hero-texto > * { opacity: 0; transform: translateY(16px); animation: sobe 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hero h1 { animation-delay: 0.05s; }
.hero p { animation-delay: 0.2s; }
.hero-acoes { animation-delay: 0.35s; }
.selo-linha { animation-delay: 0.5s; }

/* Vitrine de ofertas */
.vitrine {
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
    animation: entra 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}
@keyframes entra { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.vitrine header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.vitrine h2 { font-size: 1.15rem; }
.vitrine .tag {
    background: var(--orange);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.vitrine ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vitrine li {
    background: var(--gray);
    border-radius: 12px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 190px;
}
.vitrine li a { display: contents; }
.vitrine img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.vitrine .esq { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 8px; }
.vitrine small {
    font-size: 0.7rem;
    color: var(--mute);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vitrine b { color: var(--preco); font-size: 1rem; letter-spacing: -0.02em; margin-top: auto; white-space: nowrap; }
.vitrine .btn { width: 100%; margin-top: 1rem; padding: 0.8rem; }

/* Faixa de benefícios */
.faixa { background: var(--blue); color: #fff; }
.faixa .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.faixa-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 1.6rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.faixa-item:first-child { border-left: 0; padding-left: 0; }
.faixa-item .ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.faixa-item strong { display: block; font-size: 1.1rem; font-weight: 800; }
.faixa-item span { font-size: 0.9rem; opacity: 0.85; }

/* Categorias */
.categorias { padding: 6rem 0; background: var(--white); }
.grade-cat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat {
    background: var(--gray);
    border-radius: 14px;
    padding: 1.6rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}
.cat::after {
    content: '';
    position: absolute;
    inset: auto -20px -20px auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0;
    transform: scale(0.4);
    transition: 0.3s;
}
.cat:hover { transform: translateY(-4px); background: var(--blue-deep); color: #fff; }
.cat:hover::after { opacity: 0.9; transform: none; }
.cat:hover img { filter: brightness(0) invert(1); }
.cat img { width: 40px; height: 40px; transition: filter 0.2s; }
.cat h3 { font-size: 1.1rem; position: relative; z-index: 1; }

/* Sobre (laranja) */
.sobre-home {
    background: linear-gradient(135deg, var(--orange), #ff8a3d);
    color: #fff;
    padding: 7rem 0;
}
.sobre-home::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -40%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
}
.sobre-home .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.sobre-home .sub { color: rgba(255, 255, 255, 0.9); }
.sobre-home p { margin: 1.3rem 0 2rem; }
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.galeria img {
    border-radius: 14px;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.45);
}
.numeros { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; margin-bottom: 2.2rem; justify-content: start; }
.numeros b { display: block; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.numeros > div > span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }

/* Depoimentos */
.depo { padding: 6rem 0; background: var(--gray); }
.depo .cab { align-items: center; }
.nota { display: flex; align-items: center; gap: 0.9rem; }
.nota b { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.nota span { font-size: 0.9rem; color: var(--mute); line-height: 1.3; }
.nota .estrelas { color: #f5b301; display: block; font-size: 1.05rem; }
.trilho { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 4px solid var(--orange);
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    box-shadow: 0 1px 2px rgba(20, 30, 50, 0.05), 0 14px 30px -16px rgba(13, 44, 88, 0.35);
}
.card .estrelas { color: #f5b301; }
.card p { flex: 1; font-size: 1.02rem; }
.card cite { font-style: normal; font-weight: 800; font-size: 0.95rem; color: var(--blue-deep); }

@media (max-width: 1024px) {
    .hero .wrap { grid-template-columns: 1fr; padding-top: calc(var(--topo-h) + 32px); }
    .vitrine { max-width: 520px; }
    .grade-cat { grid-template-columns: repeat(3, 1fr); }
    .trilho { grid-template-columns: repeat(2, 1fr); }
    .sobre-home .wrap { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .hero { min-height: auto; }
    /* no celular o texto ocupa a largura toda: degradê vertical POR CIMA da foto (o ::before vem antes da <img> no DOM e ficava por baixo dela) */
    .hero::before { z-index: 1; background: linear-gradient(to bottom, rgba(7, 26, 54, 0.85) 0%, rgba(7, 26, 54, 0.8) 40%, rgba(7, 26, 54, 0.35) 70%, rgba(7, 26, 54, 0.1) 100%); }
    .hero .wrap { z-index: 2; }
    .hero .wrap { padding-top: calc(var(--topo-h) + 24px); padding-bottom: 60px; gap: 2.5rem; }
    .hero h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
    .vitrine { padding: 1rem; }
    .vitrine ul { gap: 8px; }
    .vitrine li { padding: 0.5rem; min-height: 0; }
    .vitrine b { font-size: 0.88rem; }
    .faixa .wrap { grid-template-columns: 1fr; }
    .faixa-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 1.1rem 0; }
    .faixa-item:first-child { border-top: 0; }
    .categorias, .sobre-home, .depo { padding: 4rem 0; }
    .grade-cat { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat { padding: 1.2rem 1rem; }
    .numeros { gap: 1.2rem; }
    .trilho {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 8px 20px 20px;
        margin: 0 -20px;
        scroll-padding-left: 20px; /* sem isto o snap cola o 1º card na borda da tela */
        scrollbar-width: none;
    }
    .trilho::-webkit-scrollbar { display: none; }
    .card { flex: 0 0 82vw; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-img, .vitrine, .hero-texto > * { animation: none; opacity: 1; transform: none; }
}
