/* ==========================================================================
   1. IMPORTS E FONTES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wdth,wght@0,75..100,400..700;1,75..100,400..700&family=Darker+Grotesque:wght@300..900&display=swap');

/* ==========================================================================
   2. RESETS GLOBAIS
   ========================================================================== */
html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.container,
.container-fluid {
    overflow: hidden;
}

/* ==========================================================================
   3. TIPOGRAFIA GERAL
   ========================================================================== */
h1,
.h1,
.display-1 {
    color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
}

h2,
.h2,
.display-2 {
    color: #F0EAD6;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 200;
    line-height: 1.2;
    margin-top: 1rem;
}

section.about-section h3.card-title {
    color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

p {
    color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.2;
}

/* ==========================================================================
   4. COMPONENTES REUTILIZÁVEIS
   ========================================================================== */
.card {
    background-color: transparent;
    border: none;
}

/* Botão Principal (Hero) */
.btn-cta {
    display: flex;
    padding: 16px 20px 16px 16px;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    background: linear-gradient(93deg, rgba(0, 122, 104, 0.31) 0%, #00473D 100%);
    border: none;
    color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
}

.btn-cta:hover {
    background: linear-gradient(93deg, rgba(0, 122, 104, 0.5) 100%, #002e27 0%);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Botão Secundário Customizado (Mirante) */
.btn-mirante {
    background-color: #007A68;
    color: #FFFFFF;
    border: none;
    border-radius: 24px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s ease-in-out;
}

.btn-mirante:hover {
    background-color: #03483D;
    color: #FFFFFF;
}

/* Seta Animada */
.arrow img {
    width: 40px;
    animation: elevator 2.5s infinite ease-in-out;
}

@keyframes elevator {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ==========================================================================
   5. NAVEGAÇÃO E OFFCANVAS
   ========================================================================== */
.nav-mirante-pill {
    background: rgba(246, 189, 109, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    padding: 0 24px;
    height: 48px;
    align-items: center;
}

.nav-link {
    color: #FEFFFE;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    gap: 20px;
}

/* Fundo do Hamburguer */
.custom-toggler {
    position: fixed !important;
    top: 24px;
    right: 24px;
    z-index: 1040;
    /* <--- Fica acima do site, mas abaixo do Modal (1055) */
    background-color: #006b59b7 !important;
    border-radius: 12px;
    padding: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.mirante-menu {
    width: 260px !important;
    background: rgba(3, 72, 61, 0.7) !important;
    backdrop-filter: blur(6px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}



/* Ícone Hambúrguer customizado Verde  */
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke='%23E5E3D5' stroke-width='4' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
    width: 28px;
    height: 28px;
}

/* Fundo do Menu Offcanvas */
.offcanvas {
    background-color: #006b5963 !important;
    max-width: 40%;
}


/* Titulo do Offcanvas */
.offcanvas h5 {
    color: #e2ecdf;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    font-weight: 200;
    line-height: 1.2;
}

/* Links do Offcanvas */
.offcanvas a {
    color: #c9d1d9;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: end;
}

/* ==========================================================================
   6. ESTRUTURA DE SEÇÕES (LAYOUT)
   ========================================================================== */
/* HERO SECTION */
section.hero-section {
background-color: #001a14;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../img/fundo-placa.webp);
    background-size: cover;
    background-position: top right;
}

.hero-responsive-align {
    text-align: center;
    padding-top: 10rem;
}

.hero-btn-container {
    justify-content: center;
}

/* SOBRE NÓS */
section.about-section {
    background: #006B5A;
}

section.about-section p {
    color: #F0EAD6;
    font-size: 16px;
    font-weight: 300;
    line-height: 120%;
}

span.about-span {
    color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 200;
    line-height: 120%;
}

/* SERVIÇOS */
section.services-section {
    background: url("../img/fundo-terraco-meiacor.png") no-repeat center / cover, #F0EAD6;
}

section.services-section h2 {
    color: #03483D;
}

/* Card Base Serviços */
.service-card {
    background-color: #B26227;
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
    padding-top: 110px;
    margin-top: 95px;
    position: relative;
    box-shadow: 0 1px 9.1px 0 rgba(0, 0, 0, 0.244) inset;
}

/* Imagem Flutuante Circular */
.service-img {
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.315);
    z-index: 2;
}

/* Corpo do Texto Serviços */
.service-card .card-body {
    padding: 0 16px 24px 16px;
}

/* Titulo do card (h5) */
.service-card .card-title {
    color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Texto do Card (p) */
.service-card .card-text {
    color: #FFF;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
    /* Distribui o espaço entre palavras, não letras */
}

/* Modificador de Tema do Card (Refatorado do #card-2) */
.card-theme-green {
    background: #006B5A;
}

.card-theme-green .btn-service {
    background: #007A68;
}

.card-theme-green .btn-service:hover {
    background: #03483D;
}

/* Botão Serviços Base */
.btn-service {
    background-color: #cc722d;
    color: #F8F9FA;
    border: none;
    border-radius: 24px;
    padding: 8px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.088);
}

.btn-service:hover {
    background-color: #be5e19;
    color: #FFF;
}

/* ITENS IFRAME SIMPLYBOOK */
/* Café da Manhã */
.modal-header h5 {
    color: #006b5a;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 2vw, 2rem);
    font-weight: 300;
    line-height: 120%;
    text-align: center;
}

/* DIAS FUNCIONAMENTO MODAL */
p.modal-days {
    font-size: clamp(1.2rem, 0.9vw, 1rem) !important;
    ;
}


/* Asteríscos */
.pricing-info p.little-text {
    font-family: 'Poppins', sans-serif !important;
    ;
    font-size: clamp(0.85rem, 0.9vw, 0.1rem) !important;
    ;
    font-weight: 400 !important;
    ;
}


/* LOCALIZAÇÃO */

/* Fundo da Seção */
section.local-section {
    background: #006B5A;
}

/* Título da Seção (h2) */
section.local-section h2 {
    color: #fafffe;
}

/* Texto da Seção (p) */
section.local-section p {
    color: #ffffff;
    font-weight: 300;
}

/* Botão da Localização */
section.local-section button {
    background: #005244;
}

/* Botão da Localização com :Hover */
section.local-section button:hover {
    background: #015b4c;
}

/* Botão Whatsapp */
section.local-section .btn-whatsapp {
    background: #1ec45b;
    color: #03483D;
}

/* Botão Whatsapp com :Hover */
section.local-section .btn-whatsapp:hover {
    background: #18a34b;
    color: #03483D;
}

/* Textinho com Endereço */
section.local-section span {
    color: #F8F9FA;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 200;
    line-height: 120%;
    text-align: center;
}

/* Cortar mapa para sumir Titulos */
.map-clipping-wrapper {
    width: 100%;
    height: 550px;
    /* Esta é a altura real que o mapa terá na sua tela */
    overflow: hidden;
    /* Esconde tudo o que vazar desta altura */
    border-radius: 24px;
    /* Mantém a identidade visual dos seus outros cards */
    position: relative;
    background-color: #f0f0f0;
    /* Cor de fundo caso o mapa demore a carregar */
}

.map-clipping-wrapper iframe {
    position: absolute;
    /* Puxamos o iframe para cima para esconder o cabeçalho do Google */
    top: -150px;
    left: 0;
    /* Aumentamos a altura para compensar o deslocamento acima e não faltar mapa embaixo */
    height: 800px;
    width: 100%;
}





/* ==========================================================================
   7. CARROSSEIS E IMAGENS GERAIS (SOBRE NÓS)
   ========================================================================== */

/* Aqui fica a responsabilidade de sobrepor a esteira pequena */
#carouselExampleAutoplaying {
    position: relative;
    z-index: 2;
}

/* --- O MOLDE DA IMAGEM GRANDE --- */
#carouselExampleAutoplaying .carousel-inner {
    border-radius: 24px;
    width: 100%;
    /* REMOVIDO: z-index: 2 (Libera o clique nos botões) */
    /* REMOVIDO: max-width: 360px (Deixe o HTML de 600px controlar a largura) */

    max-height: 500px;
    aspect-ratio: 320 / 500;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Herança de altura e recorte perfeito */
#carouselExampleAutoplaying .carousel-item {
    height: 100%;
}

#carouselExampleAutoplaying .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- AJUSTE DAS IMAGENS PEQUENAS --- */
.carousel-mini-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    clip-path: inset(-20px 0px -20px -150px);
    z-index: 1;
}

.carousel-track {
    display: flex;
    gap: 15px;
    /* Espaço entre as fotos */
    width: max-content;
    /* O trilho se expande conforme o número de fotos */
    animation: esteira-infinita 20s linear infinite;
}

@keyframes esteira-infinita {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move para a ESQUERDA (negativo) */
        transform: translateX(calc(-50% - 7.5px));
    }
}

.mini-img {
    flex-shrink: 0;
    width: 140px;
    height: auto;
    border-radius: 12px;
    /* 0 (x) 6px (y) 12px (blur) */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   8. MEDIA QUERIES (RESPONSIVIDADE GERAL)
   ========================================================================== */

/* --- Desktop (A partir de 801px) --- */
@media (min-width: 801px) {
    .hero-responsive-align {
        text-align: left;
        padding-top: 15rem;
    }

    .hero-btn-container {
        justify-content: flex-start;
    }
}

/* --- Tablets e Mobile (Até 990px) --- */
@media (max-width: 990px) {


    /* Hero */
    section.hero-section {
        background-size: cover !important;
        background-position: 100% center !important;
        transition: background-position 0.2s ease-in-out;
    }

    section.hero-section .hero-text {
        margin-top: auto;
    }

    /* Sobre Nós */

    /* --- CONFIGURAÇÃO DA IMAGEM GRANDE NO MOBILE --- */
    #carouselExampleAutoplaying {
        /* 1. Aumente aqui a largura máxima. */
        /* Se quiser que ocupe quase a tela toda, use 90% ou um valor como 600px */
        max-width: 900px;
        margin: 0 auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    #carouselExampleAutoplaying .carousel-inner {
        border-radius: 24px;
        width: 100%;
        aspect-ratio: 3/ 4;
        max-width: 900px;
    }

    /* Garante que a imagem preencha o novo espaço maior */
    #carouselExampleAutoplaying .carousel-item {
        height: 100%;
    }

    #carouselExampleAutoplaying .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-card .card-body {
        padding: 0 8px 24px 8px;
    }

    .carousel-mini-wrapper {
        width: 100%;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    /* Serviços */
    #modalDetalhesEvento .btn-close {
        filter: invert(1);

        opacity: 1;
    }

    #modalDetalhesCafe .btn-close {
        filter: invert(1);

        opacity: 1;
    }

    /* Localização */

    /* Ajuste para mobile: reduzir a altura total para caber melhor na tela */
    @media (max-width: 990px) {
        .map-clipping-wrapper {
            height: 450px;
        }

        .map-clipping-wrapper iframe {
            top: -160px;
            /* No mobile a barra do Google costuma ser um pouco maior */
            height: 700px;
        }
    }
}

/* <-- CORREÇÃO AQUI: Faltava fechar o @media (max-width: 990px) */




/* --- Mobile Extra Pequeno (Até 550px) --- */
@media (max-width: 550px) {
    section.hero-section {
        background-position: 95% center !important;
    }
}



/* ==========================================================================
   9. EDIÇÃO DE MODAL (RESPONSIVIDADE GERAL)
   ========================================================================== */

/* MODAL CAFÉ DA MANHÃ */
#modalDetalhesCafe .modal-content {
    background: #f7ece4;

    /* Título do Modal */
    & h3 {
        color: #006B5A;
        font-family: 'Poppins', sans-serif;
        font-weight: 300;
        line-height: 1.2;
        font-size: clamp(1.75rem, 3vw, 2.5rem);
    }

    /* Paragrafo do Modal */
    & p {
        color: #000000;
        font-size: clamp(1.1rem, 1vw, 1.1rem);
    }
}

/* Modal Evento */
#modalDetalhesEvento .modal-content {
    background: #f7ece4;

    /* Título do Modal */
    & h3 {
        color: #006B5A;
        font-family: 'Poppins', sans-serif;
        font-weight: 300;
        line-height: 1.2;
        font-size: clamp(1.75rem, 3vw, 2.5rem);
    }

    /* Paragrafo do Modal */
    & p {
        color: #000000;
        font-size: clamp(1.1rem, 1vw, 1.1rem);
    }

}




/* Imagem G rande */
.carousel-item img {
    border-radius: 0.7rem;
}

/* Interior do Slide */
.carousel-inner {
    border-radius: 0.7rem;
}