/* =====================================================================
   HOME — hero, manifesto, categorias
   Depende de: main.css (reset, :root, fontes)
===================================================================== */


/* =====================================================================
   ██ HERO CAROUSEL
===================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
    background: var(--verde);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 1s var(--ease);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 1.6s var(--ease);
}

.carousel-slide.active .slide-bg {
    transform: scale(1);
}

.slide-bg-1 { background-color: #1a5c35; }
.slide-bg-2 { background-color: #024d20; }
.slide-bg-3 { background-color: #013318; }
.slide-bg-4 { background-color: #044e23; }

.slide-bg[style] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 38, 17, 0.28);
    z-index: 2;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 160px 80px 80px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s var(--ease) 0.4s;
}

.carousel-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-eyebrow {
    font-family: var(--font-corpo);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 14px;
}

.slide-title {
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: clamp(30px, 5.5vw, 58px);
    color: var(--branco);
    line-height: 1.05;
    letter-spacing: -1px;
    max-width: 700px;
    margin-bottom: 28px;
}

.slide-title em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.60);
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: var(--branco);
    color: var(--verde-medio);
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--branco);
    transition: var(--smooth);
    width: fit-content;
}

.slide-cta:hover {
    background: transparent;
    color: var(--branco);
}

.slide-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Navegação prev/next */
.carousel-nav {
    position: absolute;
    bottom: 80px;
    right: 80px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--branco);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: var(--fast);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 1.5px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--smooth);
    border: none;
    padding: 0;
}

.dot.active {
    background: var(--branco);
    width: 24px;
    border-radius: 3px;
}

/* Contador lateral */
.slide-counter {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    z-index: 10;
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slide-counter span {
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}

.slide-counter .current {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.counter-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    margin: 4px 0;
    position: relative;
    overflow: hidden;
}

.counter-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    animation: lineProgress 5s linear infinite;
}

@keyframes lineProgress {
    0%   { height: 0%; }
    100% { height: 100%; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 80px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
    0%   { top: -100%; }
    100% { top: 100%; }
}

.scroll-label {
    font-family: var(--font-corpo);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
}


/* =====================================================================
   ██ MANIFESTO
===================================================================== */
.section-manifesto {
    padding: 120px 80px;
    background: linear-gradient(to bottom, var(--off-white), var(--branco));
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}

.manifesto-left {
    flex: 0 0 auto;
}

.manifesto-label {
    font-family: var(--font-corpo);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cinza);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.manifesto-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--cinza);
}

.manifesto-brand {
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--verde-medio);
    writing-mode: vertical-rl;
}

.manifesto-right {
    flex: 1;
}

.manifesto-heading {
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 52px);
    color: var(--verde-medio);
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.manifesto-heading em {
    font-style: italic;
    font-weight: 400;
    color: var(--cinza);
}

.manifesto-body {
    font-family: var(--font-corpo);
    font-size: 19px;
    letter-spacing: 0.3px;
    color: var(--cinza);
    max-width: 560px;
    line-height: 1.9;
    margin-bottom: 40px;
}

.manifesto-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--verde-medio);
    text-decoration: none;
    border-bottom: 1px solid var(--borda-forte);
    padding-bottom: 6px;
    transition: var(--smooth);
}

.manifesto-cta:hover {
    gap: 20px;
    border-bottom-color: var(--verde-medio);
}

.manifesto-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}


/* =====================================================================
   ██ CATEGORIAS
===================================================================== */
.section-categorias {
    padding: 0 0 100px 0;
    background: var(--branco);
}

.section-header {
    padding: 0 80px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
}

.section-label {
    font-family: var(--font-corpo);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cinza);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--cinza);
}

.section-title {
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--verde-medio);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cinza);
    text-decoration: none;
    transition: var(--smooth);
}

.section-link:hover {
    color: var(--verde-medio);
    gap: 16px;
}

.section-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.cats-grid-outer {
    padding: 0 80px;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
    background: var(--creme);
    aspect-ratio: 4/3;
    border-radius: 12px;
}

.cat-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 0.9s var(--ease);
}

.bg-balancos       { background-color: #1a5c35; }
.bg-cadeiras       { background-color: #024d20; }
.bg-mesas          { background-color: #013318; }
.bg-sofas          { background-color: #1a3d28; }
.bg-poltronas      { background-color: #023318; }
.bg-espreguicadeiras { background-color: #044e23; }
.bg-bistro         { background-color: #023318; }
.bg-complementos   { background-color: #023318; }
.bg-acessorios     { background-color: #023318; }

.cat-card:hover .cat-card-bg {
    transform: scale(1);
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.cat-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.cat-card-name {
    font-family: var(--font-titulo);
    font-weight: 600;
    font-size: 20px;
    color: var(--branco);
    letter-spacing: -0.3px;
    line-height: 1.1;
    transition: var(--smooth);
}

.cat-card:hover .cat-card-name {
    letter-spacing: 0px;
}

.cat-card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--smooth);
    backdrop-filter: blur(6px);
}

.cat-card:hover .cat-card-arrow {
    background: var(--branco);
    border-color: var(--branco);
    transform: scale(1.08) rotate(-45deg);
}

.cat-card-arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--branco);
    fill: none;
    stroke-width: 1.5px;
    transition: var(--smooth);
}

.cat-card:hover .cat-card-arrow svg {
    stroke: var(--verde-medio);
}

/* Desktop: mostra desktop, esconde mobile */
.cat-bg-mobile { display: none; }


/* =====================================================================
   RESPONSIVO — HOME
===================================================================== */
@media (max-width: 1024px) {
    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-content {
        padding: 130px 48px 60px;
    }

    .section-manifesto {
        flex-direction: column;
        gap: 40px;
        padding: 80px 48px;
    }
}

@media (max-width: 768px) {
    .slide-content {
        padding: 110px 28px 48px;
    }

    .slide-eyebrow  { margin-bottom: 8px; }
    .slide-title    { margin-bottom: 16px; }
    .slide-cta{
        font-size: 9px;
    }

    .carousel-nav {
        right: 32px;
        bottom: 56px;
    }

    .slide-counter  { display: none; }

    .scroll-indicator { left: 32px; }

    .section-manifesto { padding: 60px 28px; }
    
    .manifesto-body {
        font-size: 16px;
    }

    .section-header {
        padding: 0 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .section-link{
        display:none;
    }

    .cats-grid-outer { padding: 0 20px; }

    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cat-card {
        aspect-ratio: 3/4;
    }

    .cat-card-content { padding: 16px; }
    .cat-card-name    { font-size: 16px; }
    .cat-card-arrow   { display: none; }

    /* Versões mobile das imagens */
    .cat-bg-desktop { display: none; }
    .cat-bg-mobile  { display: block; }

    /* Enquadramento por slide no mobile */
    #slide-0 .slide-bg { background-position: 55% center; }
    #slide-1 .slide-bg { background-position: 46% center; }
    #slide-2 .slide-bg { background-position: 70% center; }
    #slide-3 .slide-bg { background-position: 48% center; }

    /* Enquadramento por card no mobile */
    #card-espreguicadeiras .cat-card-bg { background-position: 54% center; }
    #card-sofas            .cat-card-bg { background-position: 55% center; }
    #card-mesas            .cat-card-bg { background-position: 55% center; }
    #card-poltronas        .cat-card-bg { background-position: 55% center; }
    #card-cadeiras         .cat-card-bg { background-position: 50% center; }
    #card-acessorios       .cat-card-bg { background-position: 50% center; }
}

@media (min-width: 1920px) {
    .slide-content {
        padding: 200px 160px 100px;
    }

    .slide-title { max-width: 900px; }

    .carousel-nav {
        right: 160px;
        bottom: 120px;
    }

    .slide-counter   { right: 160px; }
    .scroll-indicator { left: 160px; }

    .section-manifesto {
        padding: 160px;
    }

    .manifesto-body {
        max-width: 760px;
        font-size: 21px;
    }

    .section-header  { padding: 0 160px; }
    .cats-grid-outer { padding: 0 160px; }
    .cats-grid       { gap: 28px; }
}