/* Estética Editorial & Arquitetônica Global - Gesso Central */
body {
    background-color: #F8F9FA;
    color: #0A192F;
}

/* Linhas finas para divisão, remetendo a projetos de arquitetura */
.arch-divider {
    border-top: 1px solid #E5E7EB;
    width: 100%;
}

/* Animações de Entrada (Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito de revelar imagem (Image Reveal Mask) */
.img-reveal-wrapper {
    position: relative;
    overflow: hidden;
}
.img-reveal-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #F8F9FA;
    transform-origin: top;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 10;
}
.reveal.active .img-reveal-wrapper::after {
    transform: scaleY(0);
}

/* Lógica de Exibição de Páginas */
.page-view {
    display: block;
}

/* Customização do Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F8F9FA;
}
::-webkit-scrollbar-thumb {
    background: #163363;
}

/* Link hover effect customizado (Sublinhado animado) */
.hover-underline-animation {
    display: inline-block;
    position: relative;
}
.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Active State no Navbar */
.nav-link.active {
    color: #1D4ED8 !important;
    font-weight: 600;
}

/* Botão CTA na Navbar */
.btn-cta-navbar {
    background-color: #25D366;
    color: #FFFFFF;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}
.btn-cta-navbar:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    background-color: #25D366;
    color: #FFFFFF;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Card CTA WhatsApp (Substituto de Formulário de Email) */
.cta-whatsapp-card {
    background: linear-gradient(135deg, #0A192F 0%, #163363 100%);
    color: #FFFFFF;
    padding: 3rem 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(29, 78, 216, 0.3);
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.15);
}
.cta-whatsapp-card h3 {
    font-family: "Marcellus", serif;
    font-size: 1.875rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: #FFFFFF;
}
.cta-whatsapp-card p {
    color: #E5E7EB;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    font-weight: 300;
}
.cta-whatsapp-card .btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.cta-whatsapp-card .btn-whatsapp:hover {
    background-color: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Ocultar suavemente o Cabeçalho Institucional de Aviso ao scrollar no mobile/tablet */
@media (max-width: 1023px) {
    #institutional-bar {
        max-height: 180px;
        opacity: 1;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.35s ease, border-width 0.35s ease;
    }
    #institutional-bar.mobile-scrolled {
        max-height: 0 !important;
        opacity: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-bottom-width: 0 !important;
        pointer-events: none;
    }
}
