:root {
    --brand-brown: #6b4522; /* Marrom do logo */
    --light-grey: #e9e9e9;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ==================================================
   LOGO FLUTUANTE SUPERIOR
================================================== */
.logo-header-box {
    position: absolute;
    top: 0;
    left: 10%;
    z-index: 1050;
    background-color: var(--brand-brown);
    padding: 25px 15px;
    width: 150px;
    text-align: center;
}

.logo-header-box img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
}

.logo-header-box span {
    color: white;
    font-size: 0.6rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================================================
   NAVBAR
================================================== */
.navbar {
    padding: 1.5rem 0;
}

.nav-link {
    font-size: 0.6rem;
    color: #888 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem !important;
}

/* ==================================================
   TÍTULOS DE SEÇÃO
================================================== */
.section-title {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 25px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ==================================================
   INDICADORES DO CARROSSEL (BARRAS)
================================================== */
.carousel-indicators {
    position: relative;
    margin-top: 30px;
    margin-bottom: 0;
    bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 70px;
    height: 4px;
    background-color: var(--light-grey);
    border: none;
    opacity: 1;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: var(--brand-brown);
}

/* Versão branca */
.bg-brown-section {
    background-color: var(--brand-brown);
    color: white;
    padding: 70px 0;
}

.bg-brown-section .section-title {
    color: rgba(255,255,255,0.6);
}

.bg-brown-section .carousel-indicators [data-bs-target] {
    background-color: rgba(255,255,255,0.3);
}

.bg-brown-section .carousel-indicators .active {
    background-color: #000;
}

/* ==================================================
   PADRONIZAÇÃO DOS CARROSSEIS (GRID)
================================================== */

/* Altura fixa do slide */
.carousel .carousel-item {
    height: 520px;
}

/* Garante estrutura ocupando 100% */
.carousel .carousel-item > .row {
    height: 100%;
}

.carousel .carousel-item .col-4 {
    height: 100%;
}

/* Imagens sempre iguais */
.carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
}

.img-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.img-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Evita variação de altura */
.carousel-inner {
    overflow: hidden;
}

/* ==================================================
   HERO (CARROSSEL PRINCIPAL)
================================================== */
#carouselHero .splide__slide {
    height: 90vh;
}

#carouselHero img {
    height: 100%;
    object-fit: cover;
}

/* ==================================================
   MOSAICO / GALERIA
================================================== */
.mosaic-grid {
    display: flex;
    gap: 15px;
    height: 550px;
}

.mosaic-left {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mosaic-right {
    flex: 1;
}

.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f4f4f4;
}

/* ==================================================
   ANIMAÇÕES DO CARROSSEL
================================================== */
.carousel-item {
    transition: transform 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) !important;
}

/* Cross-fade opcional */
.carousel-fade .carousel-item {
    transition-property: opacity;
    transition-duration: 1.2s;
}

/* ==================================================
   FOOTER
================================================== */
footer {
    padding: 60px 0;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

.footer-logo img {
    width: 140px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-item {
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.icon-circle {
    width: 35px;
    height: 35px;
    background: var(--brand-brown);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* ==================================================
   SPLIDE – PAGINATION NO PADRÃO DO PROJETO
================================================== */

/* Container da paginação */
.splide__pagination {
    position: relative;
    margin-top: 30px;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Cada indicador (barra) */
.splide__pagination__page {
    width: 70px;
    height: 4px;
    background-color: var(--light-grey);
    border-radius: 0;
    opacity: 1;
    transition: background-color 0.3s ease;
}

/* Estado ativo */
.splide__pagination__page.is-active {
    background-color: var(--brand-brown);
    transform: none;
}
.bg-brown-section .splide__pagination__page.is-active {
    background-color: #be844e;    
}


.splide__pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.splide__pagination__page {
    width: 70px;
    height: 4px;
    background-color: var(--light-grey);
    border-radius: 0;
    opacity: 1;
}

.splide__pagination__page.is-active {
    background-color: var(--brand-brown);
}

/* Desktop */
.splide-mobile {
    display: none;
}


/* Ícone do menu (hambúrguer) */
.navbar-toggler {
    border: none;
    padding: 6px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Cor do ícone */
.navbar-toggler-icon {
    filter: invert(40%);
}

.offcanvas-close {
    display: none;
}

.offcanvas-menu {
    justify-content: flex-end;
}


/* ================================
   MENU MOBILE OFFCANVAS
================================ */

/* Desktop continua normal */
@media (min-width: 992px) {
    .offcanvas-menu {
        position: static !important;
        transform: none !important;
        width: auto;
        height: auto;
        background: transparent;
        transition: none;
    }
}

@media (max-width: 991px) {
    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }
}

/* ================================
   BOTÃO FECHAR MENU MOBILE
================================ */

@media (max-width: 991px) {

    .offcanvas-close {
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1060;
        opacity: 1;
        display: block;
    }

    .offcanvas-close:focus {
        box-shadow: none;
    }
}


/* Mobile */
@media (max-width: 991px) {

    .offcanvas-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 90%;
        background: #fff;
        padding: 80px 30px 30px;
        z-index: 1050;

        transform: translateX(100%);
        transition: transform 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    /* Quando aberto */
    .offcanvas-menu.show {
        transform: translateX(0);
    }

    /* Links */
    .offcanvas-menu .nav-link {
        font-size: 0.85rem;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        color: #333 !important;
    }

    /* Ícone hambúrguer alinhado à direita */
    .navbar-toggler {
        border: none;
        padding: 6px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler-icon {
        filter: invert(40%);
    }
}


/* Mobile */
@media (max-width: 991px) {

    .navbar-nav {
        gap: 12px;
        padding: 20px 0;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 8px 0 !important;
    }
}


/* ==================================================
   MOBILE
================================================== */
@media (max-width: 768px) {

    #carouselHero .splide__slide {
        height: 65vh;
    }

    .logo-header-box {
        width: 110px;
        left: 5%;
    }

    /* Altura menor no mobile */
    .carousel .carousel-item {
        height: 340px;
    }

    /* Apenas 1 imagem por slide */
    .carousel .carousel-item .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .carousel .carousel-item .col-4:not(:first-child) {
        display: none;
    }

    .mosaic-grid {
        flex-direction: column;
        height: auto;
    }

    .mosaic-left {
        flex: none;
    }

    .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

      .splide-desktop {
        display: none;
    }

    .splide-mobile {
        display: block;
    }

    .splide__pagination__page {
        width: 20px;
        margin: 0;
    }
}