/* ========================================================= 
   Variaveis Premium 
========================================================= */
:root {
    --primary: #0a1128; /* Azul Escuro / Marinho Sóbrio */
    --secondary: #172a5a;
    --gold: #d4af37; /* Ouro mais requintado */
    --gold-hover: #b5952f;
    --light: #fcfcfc;
    --text-color: #333333;
    --text-muted: #666666;
    --soft-bg: #f5f7fa; /* Fundo suave para contraste de seções */
    --white: #ffffff;
    
    /* Tipografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* ========================================================= 
   Básicos e Tipografia
========================================================= */
body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

/* Respiro / Utilities */
.py-100 {
    padding: 100px 0;
}
.bg-soft {
    background-color: var(--soft-bg);
}
.z-index-2 {
    z-index: 2;
}

/* ========================================================= 
   Marca d'água Fundo / Logo
========================================================= */
.site-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 100vh;
    background: url('../images/logo.png') center center/contain no-repeat;
    opacity: 0.03; /* Oculto o suficiente para ser apenas uma marca de autoridade */
    z-index: -1;
    pointer-events: none; /* Não atrapalha cliques */
}

/* ========================================================= 
   Header e Navegação (Clean, Responsivo, Transparente)
========================================================= */
.navbar {
    padding: 20px 0;
    transition: all 0.4s ease-in-out;
    background-color: transparent; /* Transparente no Hero */
}
/* Classe adicionada via JS após Scroll */
.navbar.scrolled {
    background-color: var(--primary);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.nav-logo {
    height: 50px;
    background: rgba(255,255,255,0.9);
    padding: 5px;
    border-radius: 4px;
    transition: 0.3s;
}
.navbar.scrolled .nav-logo {
    height: 45px;
}
.brand-text {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.2;
}
.brand-text small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--white) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px 20px !important;
    transition: color 0.3s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold);
    transition: 0.3s ease-out;
}
.nav-link:hover {
    color: var(--gold) !important;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.custom-toggler.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ========================================================= 
   Botões
========================================================= */
.btn-gold {
    background-color: var(--gold);
    color: var(--primary);
    border: 2px solid var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
    transform: translateY(-2px);
}
.btn-outline-gold {
    color: var(--gold);
    border: 2px solid var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--primary);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
}

/* ========================================================= 
   Vídeo & Hero Section 
========================================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-background-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at right, rgba(23, 42, 90, 0.4) 0%, var(--primary) 70%);
}

.hero-video-col {
    position: relative;
    z-index: 10;
}

.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 950px; /* Expande bastante no desktop */
    margin: 0 auto;
    /* Adotamos contain pra respeitar as bordas do vídeo original, centralizado sem truncar */
    height: 75vh;
    max-height: 800px;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: #000;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4) !important;
}

.hero-video-poster {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    background: #000;
    transition: opacity 0.5s ease-in-out;
}
.hero-video-poster.hidden {
    opacity: 0;
    pointer-events: none;
}
.custom-poster-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Pra capa também ficar bonita sem cortes feios */
    opacity: 0.6;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gold);
    color: var(--primary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.play-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translate(-50%, -50%) scale(1.05);
}

.custom-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Usa contain para nunca estourar a cena que você quer que os clientes vejame e escutem perfeitamente */
    object-fit: contain;
    z-index: 2;
    background: #000;
}

.video-overlay-end {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 17, 40, 0.9);
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    backdrop-filter: blur(5px);
}
.video-overlay-end.visible {
    opacity: 1;
    pointer-events: all;
}

.hero-content {
    z-index: 10;
}
.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
}
.hero-title {
    font-size: 3.5rem; /* Levemente menor para acomodar o vídeo colosso */
    color: var(--white);
    line-height: 1.15;
    font-weight: 700;
}
.hero-title span {
    font-style: italic;
    color: var(--gold);
}

.premium-quote {
    border-left: 2px solid var(--gold);
    padding-left: 25px;
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    line-height: 1.8;
}
.premium-quote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-style: normal;
}

/* ========================================================= 
   Títulos Padrões
========================================================= */
.sub-title {
    display: block;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2.8rem;
    margin-bottom: 0;
}
.title-separator {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin-top: 20px;
}
.section-description {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* ========================================================= 
   Cards e Features (Especialidades)
========================================================= */
.feature-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease-in-out;
    transform-origin: left;
}
.feature-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--soft-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: 0.4s;
}
.feature-card:hover .icon-wrapper {
    background: var(--primary);
    color: var(--gold);
}
.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.feature-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================================= 
   Perfil: Imagem e Textos Fortes
========================================================= */
.about-image-wrapper {
    position: relative;
    padding: 20px;
}
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 40px; right: 40px;
    border: 3px solid var(--gold);
    z-index: -1;
}
.image-box img {
    width: 100%;
    /* Truque p/ garantir altura perfeita */
    aspect-ratio: 4 / 5;
    object-position: top;
}
.experience-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background-color: var(--primary);
    color: white;
    padding: 25px 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}
.experience-badge h3 {
    color: var(--gold);
    font-size: 1.4rem;
    margin: 0;
}
.experience-badge p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.premium-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.text-gold {
    color: var(--gold);
}

/* ========================================================= 
   Galeria Estilo Flex / Editorial Alternativo ("Opção A")
========================================================= */
.gallery-premium-grid .gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
    background: var(--primary);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.main-gallery-item {
    /* Altura maior pro carro-chefe */
    min-height: 500px;
}
.secondary-gallery-item {
    /* Complementam a grade, altura divide */
    height: 100%;
    min-height: 230px;
}

.gallery-premium-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: contrast(0.95);
}
.gallery-premium-grid .gallery-item:hover img {
    transform: scale(1.02); /* Zoom levíssimo */
}

/* Camada Sobreposta p/ Texto / Efeito Hover Escuro */
.gallery-override, .gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(180deg, rgba(10,17,40,0) 40%, rgba(10,17,40,0.85) 100%);
}
.gallery-item:hover .gallery-overlay {
    background: linear-gradient(180deg, rgba(10,17,40,0.1) 0%, rgba(10,17,40,0.95) 100%);
}
.gallery-overlay span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    border-left: 2px solid var(--gold);
    padding-left: 15px;
    transform: translateY(0);
    transition: color 0.4s ease;
}
.main-gallery-item .gallery-overlay span {
    font-size: 1.8rem;
}
.gallery-premium-grid .gallery-item:hover .gallery-overlay span {
    color: var(--gold);
}

/* ========================================================= 
   FAQ - Accordion Soft
========================================================= */
.premium-accordion .elegant-card {
    background-color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
.premium-accordion .elegant-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
}
.premium-accordion .accordion-header .accordion-button {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 25px;
    box-shadow: none !important;
    border-radius: 4px;
}
.premium-accordion .accordion-button:not(.collapsed) {
    color: var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.premium-accordion .accordion-button:focus {
    box-shadow: none;
    border: none;
}
.premium-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23172a5a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.premium-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d4af37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.premium-accordion .accordion-body {
    padding: 20px 30px 40px;
    font-size: 1rem;
    color: var(--text-muted);
}

/* ========================================================= 
   Footer Elegante / Organizadíssimo 
========================================================= */
.premium-footer {
    background-color: var(--primary);
    color: var(--white);
    border-top: none;
    margin-top: -2px; /* Remove qualquer linha branca do section anterior */
}
.footer-top {
    background: var(--primary);
    padding-top: 80px;
}
.footer-logo-fixed {
    max-height: 75px;
    object-fit: contain;
}
.footer-about {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.8;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}
.social-links a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
}
.footer-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0;
}
.footer-separator {
    width: 30px;
    height: 2px;
    background: var(--gold);
    margin-top: 15px;
}
.footer-nav li {
    margin-bottom: 15px;
}
.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}
.footer-nav a:hover {
    color: var(--gold);
    padding-left: 5px;
}
.footer-contact li {
    display: flex;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}
.footer-contact li i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 4px;
}
.footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.footer-contact a:hover {
    color: var(--gold);
}
.fs-7 {
    font-size: 0.85rem;
}

/* ========================================================= 
   WhatsApp Float Clean
========================================================= */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: 0.4s;
}
.float-whatsapp:hover {
    background-color: #1ebe57;
    color: white;
    transform: scale(1.08);
}

/* ========================================================= 
   Responsivo
========================================================= */
@media (max-width: 991px) {
    .navbar {
        background-color: var(--primary); /* Sólido sempre no Mobile */
        padding: 15px 0;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-content {
        margin-top: 50px;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(10, 17, 40, 0.95) 0%, rgba(10, 17, 40, 0.7) 100%);
    }
    .gallery-item {
        aspect-ratio: 16 / 9; /* No mobile, exibe com proporção um pouquinho mais retangular */
    }
}
@media (max-width: 768px) {
    .about-image-wrapper {
        padding: 0;
    }
    .about-image-wrapper::before {
        display: none;
    }
}

/* Modificadores extras - Video Mobile vs Desktop */
@media (max-width: 768px) {
    .hero-video-container {
        height: 50vh;
        min-height: 300px;
    }
    .gallery-premium-grid .main-gallery-item {
        min-height: 350px;
    }
}
/* ========================================================= 
   Nova Galeria Nossa Atuação / Refinada
========================================================= */
.gallery-item-refined {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--primary);
    cursor: pointer;
}
.gallery-item-refined img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item-refined:hover img {
    transform: scale(1.03);
}
.gallery-item-refined:not(.small) img {
    height: 550px;
    object-position: center 20%;
}
.gallery-item-refined.small img {
    height: 260px;
    object-position: center 25%;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(10,17,40,0.95) 80%);
    color: var(--white);
    padding: 40px 25px 25px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    border-bottom: 3px solid var(--gold);
    transition: color 0.3s;
    letter-spacing: 0.5px;
}
.gallery-item-refined:hover .gallery-caption {
    color: var(--gold);
}
@media (max-width: 991px) {
    .gallery-item-refined:not(.small) img,
    .gallery-item-refined.small img {
        height: 300px;
    }
}
