/* ══════════════════════════════════════════
   SUSTENTAVEL.CSS — Página institucional Kapão
   Seções: Hero · Qualidade & Sustentabilidade · Linha Eco · CTA
   Reusa: --navy, --teal, .home-eyebrow, .reveal, .split-reveal
   ══════════════════════════════════════════ */

:root {
    --navy: #01182D;
    --teal: #1CB7B7;
    --teal-soft: rgba(28, 183, 183, 0.10);
    --branco: #ffffff;
    --cinza-claro: #F4F5F7;
    --cinza-medio: #E5E7EB;
    --texto-secundario: #5B6573;
}

/* ── HERO sticky (mesma lógica de home/sobre) ── */
.hero {
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 0;
}

.hero-content { will-change: transform; }

.sust-hero { overflow: hidden; }

.sust-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sust-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(1, 24, 45, 0.55) 0%,
        rgba(1, 24, 45, 0.78) 100%
    );
    z-index: 1;
}

.sust-hero-content {
    max-width: 860px;
    padding: 0 24px;
    gap: 18px;
}

.sust-hero-titulo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1.04;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0;
}

.sust-hero-titulo span:not(.sw):not(.sw-i) {
    color: var(--teal);
}

.sust-hero-sub {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    margin-top: 8px;
}

/* ── WRAPPER — sobe sobre o hero (mesmo padrão) ── */
.home-conteudo-wrapper {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    border-radius: 28px 28px 0 0;
    background: #ffffff;
    box-shadow: 0 -10px 48px rgba(1, 24, 45, 0.18);
    overflow: hidden;
}

/* ── SCROLL INDICATOR (mesmo da home) ── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    z-index: 3;
    padding: 6px 12px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-scroll-indicator:hover .scroll-text { letter-spacing: 0.34em; }

.hero-scroll-indicator .scroll-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
    transition: letter-spacing 0.3s ease;
    animation: scrollBounce 1.6s ease-in-out infinite;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-scroll-indicator .scroll-track {
    position: relative;
    width: 18px;
    height: 18px;
    background: transparent;
    overflow: visible;
    animation: scrollBounce 1.6s ease-in-out infinite;
    animation-delay: 0.08s;
}

.hero-scroll-indicator .scroll-track::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    width: 9px;
    height: 9px;
    border-right: 1.8px solid #fff;
    border-bottom: 1.8px solid #fff;
    transform: translateX(-50%) rotate(45deg);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.hero-scroll-indicator.escondido {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(16px);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ── REVEAL + EYEBROW (compartilhados) ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    will-change: opacity, transform;
}
.reveal.visivel {
    opacity: 1;
    transform: translateY(0);
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.home-eyebrow::before,
.home-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--teal);
    opacity: 0.6;
}

/* ══════════════════════════════════════════
   INTRO — Qualidade e Sustentabilidade (2 colunas)
   ══════════════════════════════════════════ */
.sust-intro {
    background: #ffffff;
    padding: clamp(80px, 11vw, 140px) 24px;
}

.sust-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.sust-intro-titulo-wrap {
    position: sticky;
    top: 80px;
}

.sust-intro-titulo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin: 0 0 20px;
}

.sust-intro-titulo span:not(.sw):not(.sw-i) {
    color: var(--teal);
}

.sust-intro-traco {
    width: 64px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
}

.sust-intro-texto-wrap p {
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.8;
    color: var(--texto-secundario);
}

.sust-intro-texto-wrap p + p {
    margin-top: 18px;
}

/* ══════════════════════════════════════════
   LINHA ECO — vitrine navy gradient
   ══════════════════════════════════════════ */
.sust-linha-eco {
    position: relative;
    padding: clamp(80px, 11vw, 140px) 24px;
    background: linear-gradient(160deg, #01182D 0%, #04284B 60%, #1CB7B7 200%);
    color: #fff;
    overflow: hidden;
}

.sust-linha-eco::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(28, 183, 183, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.sust-linha-eco::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: -10%;
    width: 55%;
    height: 75%;
    background: radial-gradient(circle, rgba(28, 183, 183, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.sust-linha-eco-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sust-linha-eco-header {
    text-align: center;
    margin-bottom: 56px;
}

.sust-linha-eco-titulo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    color: #fff;
    letter-spacing: -0.01em;
}

.sust-linha-eco-titulo span:not(.sw):not(.sw-i) {
    color: var(--teal);
}

.sust-linha-eco-sub {
    margin-top: 18px;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

.sust-linha-eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.eco-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.eco-card:hover {
    transform: translateY(-6px);
    border-color: rgba(28, 183, 183, 0.50);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.eco-card-media {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--cinza-claro);
}

.eco-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.eco-card:hover .eco-card-media img {
    transform: scale(1.06);
}

.eco-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(28, 183, 183, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eco-card-badge i { font-size: 13px; }

.eco-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: rgba(1, 24, 45, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eco-card-nome {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(18px, 1.8vw, 22px);
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0;
}

.eco-card-gramatura {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   CTA FINAL
   ══════════════════════════════════════════ */
.sust-cta {
    background: #ffffff;
    padding: clamp(80px, 11vw, 140px) 24px;
}

.sust-cta-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.sust-cta-titulo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.sust-cta-titulo span:not(.sw):not(.sw-i) {
    color: var(--teal);
}

.sust-cta-sub {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.7;
    color: var(--texto-secundario);
    max-width: 580px;
    margin: 0 auto 36px;
}

.sust-cta-btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.sust-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.sust-cta-btn i {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.sust-cta-btn:hover i { transform: translateX(4px); }

.sust-cta-btn-primario {
    background: var(--navy);
    color: #fff;
}

.sust-cta-btn-primario:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

.sust-cta-btn-secundario {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

.sust-cta-btn-secundario:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.sust-cta-btn-secundario:hover i { transform: translateX(0) scale(1.1); }

/* ══════════════════════════════════════════
   SPLIT-REVEAL
   ══════════════════════════════════════════ */
.split-reveal { overflow: visible; opacity: 0; transition: opacity 0.2s ease; }
.split-reveal.split-pronto { opacity: 1; }

.split-reveal .sw {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    line-height: 1.05;
}

.split-reveal .sw-i {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.split-reveal.revelado .sw-i { transform: translateY(0); }

/* ══════════════════════════════════════════
   LENIS — scroll suave
   ══════════════════════════════════════════ */
html.lenis,
html.lenis body { height: auto; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ══════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════ */
@media (max-width: 960px) {
    .sust-intro-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sust-intro-titulo-wrap {
        position: static;
    }

    .sust-linha-eco-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-scroll-indicator {
        bottom: 96px;
        gap: 6px;
    }

    .hero-scroll-indicator .scroll-text {
        font-size: 9px;
        letter-spacing: 0.22em;
    }

    .hero-scroll-indicator .scroll-track {
        width: 14px;
        height: 14px;
    }

    .hero-scroll-indicator .scroll-track::after {
        width: 7px;
        height: 7px;
        border-right-width: 1.5px;
        border-bottom-width: 1.5px;
    }

    .sust-hero-titulo {
        font-size: clamp(36px, 11vw, 56px);
    }

    .sust-linha-eco-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .sust-cta {
        padding-bottom: 140px;
    }

    .sust-cta-btns {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .sust-cta-btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .split-reveal .sw-i { transform: none !important; transition: none !important; }
}
