/* =======================
   VARIÁVEIS DE COR E FONTES
   ======================== */
:root {
    /* Cores principais */
    --navy-blue: #001122; /* Azul Marinho (Escuro e moderno) */
    --golden: #b49f58;    /* Dourado (Tom clássico) */
    --dark-bg: #121212;   /* Fundo escuro alternativo */
    --white: #ffffff;     /* Branco puro */
    --light-gray: #b4b4b4; /* Cinza claro para fundos secundários */

    /* Fontes */
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: #f8f9fa;
    position: relative; /* Necessário para o ScrollSpy */
}

/* =======================
   COMPONENTES GLOBAIS
   ======================== */
.text-golden {
    color: var(--golden) !important;
}

.text-white {
    color: var(--white) !important;
}

.text-light-gray {
    color: var(--light-gray) !important;
}

.bg-dark-blue {
    background-color: var(--navy-blue) !important;
}

.btn-golden {
    background-color: var(--golden);
    color: var(--navy-blue);
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-golden:hover {
    background-color: #c09e32; /* Dourado um pouco mais escuro */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline-golden {
    border-color: var(--golden);
    color: var(--golden);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-golden:hover {
    background-color: var(--golden);
    color: var(--navy-blue);
}

/* Divisor de título */
.title-divider {
    width: 80px;
    height: 4px;
    background-color: var(--golden);
    margin: 15px 0;
}

.title-divider-left {
    width: 60px;
    height: 3px;
    background-color: var(--golden);
    margin: 15px 0;
}

/* =======================
   HEADER / MENU (NAVBAR)
   ======================== */
#mainNavbar {
    background-color: transparent;
    transition: background-color 0.4s ease-out;
}

#mainNavbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

#mainNavbar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.3s;
}

#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Classe aplicada via JS no scroll */
#mainNavbar.navbar-scrolled {
    background-color: var(--navy-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#mainNavbar.navbar-scrolled .navbar-brand,
#mainNavbar.navbar-scrolled .nav-link:hover,
#mainNavbar.navbar-scrolled .nav-link.active {
    color: #fff;
}

#mainNavbar.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#mainNavbar.navbar-scrolled .btn-outline-golden {
    border-color: var(--golden);
    color: var(--golden);
}

#mainNavbar.navbar-scrolled .btn-outline-golden:hover {
    background-color: var(--golden);
    color: var(--navy-blue);
}

/* =======================
   HOME SLIDER (COM EFEITO 'V')
   ======================== */
.home-slider {
    height: 100vh;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.home-slider #mainSlider,
.home-slider .carousel-inner {
    height: 100%;
}

.home-slider .carousel-item {
    height: 100%;
}

.home-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.home-slider .carousel-caption {
    bottom: 20%;
}

/* =======================
   SEÇÃO SOBRE NÓS
   ======================== */
#sobre-nos img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

/* =======================
   SEÇÃO SERVIÇOS
   ======================== */
.service-card {
    background-color: #ffffff10;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #ffffff20;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    color: var(--golden);
}

/* =======================
   SEÇÃO APP (Case Study Overlap)
   ======================== */
.app-showcase-text {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.app-showcase-img {
    position: relative;
    z-index: 1;
}

/* =======================
   SEÇÃO SUBSCRIBE (Formulário Contato)
   ======================== */
#subscribe .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1rem;
}

#subscribe .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#subscribe .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: var(--golden);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* =======================
   FOOTER (Ajustes e Form Newsletter)
   ======================== */
.footer-social a {
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--golden);
    transform: translateY(-3px);
}

footer .form-control {
    background-color: #495057;
    border-color: #6c757d;
    color: #fff;
}

footer .form-control::placeholder {
    color: #adb5bd;
}

footer .form-control:focus {
    background-color: #495057;
    color: #fff;
    border-color: var(--golden);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* =======================
   BOTÃO FLUTUANTE WHATSAPP
   ======================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration-line: none;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.1);
}

/* =======================
   RESPONSIVO - TABLETS E DESKTOPS
   ======================== */
/* Efeito de Overlap em telas grandes */
@media (min-width: 992px) {
    .app-showcase-text {
        margin-right: -60px;
    }
}

/* Desfaz o overlap em telas menores (tablet) */
@media (max-width: 991.98px) {
    .app-showcase-text {
        margin-right: 0;
    }

    .app-showcase-img {
        margin-top: -30px;
    }

    .footer-social,
    footer p {
        text-align: center !important;
    }
}

/* =======================
   RESPONSIVO - MOBILE
   ======================== */
@media (max-width: 767.98px) {
    /* HOME SLIDER */
    .home-slider {
        height: 90vh;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
    }

    .home-slider .carousel-caption {
        bottom: 15%;
        padding-bottom: 20px;
    }

    .home-slider .carousel-caption h1 {
        font-size: 2rem;
        font-weight: 600;
    }

    .home-slider .carousel-caption p {
        font-size: 1rem;
    }

    /* NAVBAR - CONTAINER */
    #mainNavbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* NAVBAR - LOGO SEMPRE À ESQUERDA */
    #mainNavbar .navbar-brand {
        margin-right: 0;
        margin-left: -70px;
        flex-shrink: 0;
    }

    /* MENU HAMBÚRGUER À DIREITA */
    .navbar-toggler {
        margin-left: auto;
        margin-right: 0;
    }

    /* Menu mobile com fundo azul-marinho com transparência */
    .navbar-collapse {
        background-color: rgba(0, 17, 34, 0.95);
        padding: 15px;
        border-radius: 5px;
        margin-top: 10px;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
    }

    /* Links do menu mobile */
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Botão login no menu mobile */
    .navbar-nav .btn-outline-golden {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    /* Footer no mobile */
    .footer-social,
    footer p {
        text-align: center !important;
    }
}