/* RESET DE LAYOUT EQUILIBRADO */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
}

/* GPU-Accelerated Hardware Layer Promotion to prevent scroll stutter/lag */
.hero-section,
.concept-section,
.services-section,
.service-card-premium,
.phrase-bg-section,
.gallery-section-full,
.contact-section,
.glass-form {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #000000; 
}
::-webkit-scrollbar-thumb {
    background: #9ab899; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7a9879; 
}

/* Custom Text Selection */
::selection {
    background: #9ab899;
    color: #ffffff;
}
::-moz-selection {
    background: #9ab899;
    color: #ffffff;
}

/* Fallback e configuração de largura para Swiper 'auto' */
.swiper-services .swiper-slide {
    width: 300px;
}

@media (min-width: 768px) {
    .swiper-services .swiper-slide {
        width: 380px;
    }
}

@media (min-width: 1024px) {
    .swiper-services .swiper-slide {
        width: 420px;
    }
    .swiper-gallery .swiper-slide {
        width: 33.33% !important; /* Garante que 3 fotos apareçam lado a lado */
    }
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Truque para fechar riscos entre formas no Lottie */
#lottie-container svg path {
    stroke: #fff;
    stroke-width: 0.5px;
    paint-order: stroke fill;
}

:root {
    --primary-color: #008080;
    --accent-color: #f1f100;
    --bg-dark: #000000;
    --bg-dark-secondary: #0d0d0d;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

/* Navbar Minimalista Topo */
.floating-nav-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 0;
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease;
    z-index: 1100;
}

.floating-nav-top.scrolled {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate3d(0, 0, 0); /* Força aceleração de hardware para o backdrop-filter */
    will-change: transform;
}

.navbar-logo {
    height: 25px;
    transition: height 0.3s ease;
}

.floating-nav-top .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.floating-nav-top .nav-link {
    font-family: 'Inter', sans-serif;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-nav-top .nav-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-cta-nav {
    color: #ffffff !important;
    background: #9ab899 !important;
    border-radius: 50px;
    padding: 8px 25px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.btn-cta-nav:hover {
    background: #ffffff !important;
    color: #9ab899 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden !important;
    background: #000 url('BG_SESSAO_CONCEITO.jpg') no-repeat center center / cover;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #000 url('BG_SESSAO_CONCEITO.jpg') no-repeat center center / cover;
}

.bg-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: rgba(255,255,255,0.2);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

iframe.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    transform: translate3d(-50%, -50%, 0) scale(1.15); /* Centraliza e corta barras e logos do YouTube fora da tela */
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 100; /* Prioridade máxima sobre o vídeo */
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 40px;
}

.hero-content p {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Base Section Styles */
section {
    position: relative;
    background: var(--bg-dark);
    width: 100%;
}

/* Concept Section */
.concept-section {
    position: relative;
    background: url('BG_SESSAO_CONCEITO.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.concept-section .container {
    position: relative;
    z-index: 2;
}

.feature-box {
    background: transparent;
    border: none;
    backdrop-filter: none;
    padding: 0 !important;
}

.feature-box h4 {
    border-left: 2px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

/* Services Section (Swiper Draggable) */
.swiper-services {
    width: 100%;
    overflow: visible !important; /* Para mostrar a sobra do próximo card */
}

.service-card-premium {
    width: 100%; /* Agora controlado pelo Swiper para garantir a sobra */
    height: 580px;
    position: relative;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 40px 70px 40px; /* Maior padding na parte inferior para subir o título */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    cursor: grab;
    will-change: transform; /* Pré-carrega e decodifica a imagem de fundo na GPU para rolagem fluida */
}

.service-card-premium:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.card-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    transform: translateY(0); /* Removido o 30px que colava o texto no chão */
    transition: transform 0.5s ease;
}

.service-card-premium h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0;
    line-height: 1.5;
}

.service-card-premium:hover .card-content {
    transform: translateY(0);
}

.service-card-premium:hover .card-description {
    max-height: 120px;
    opacity: 1;
    margin-top: 15px;
}

.card-yardz-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    height: 24px;
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 2;
    filter: brightness(0) invert(1); /* Deixa a logo toda branca se ela for preta/colorida */
}

.service-card-premium:hover .card-yardz-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Gallery Section Full */
.swiper-gallery {
    width: 100%;
}

.gallery-image {
    height: 85vh;
    background-size: cover;
    background-position: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.5s ease;
    will-change: transform; /* Pré-carrega a imagem de galeria na GPU para transição super fluida */
}

.gallery-image:hover {
    transform: scale(1.02); /* Leve zoom no hover */
}

.swiper-scrollbar {
    display: none !important;
}

/* Phrase BG Section */
.phrase-bg-section {
    position: relative;
    height: 60vh;
    background: url('BG_FRASE.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phrase-bg-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.phrase-bg-section h2 {
    position: relative;
    z-index: 1;
    line-height: 1.2;
    color: #1a3c2a !important; /* Verde escuro */
}

/* Services Section */
.services-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.services-section .row.mb-5 {
    margin-bottom: 6rem !important; /* Maior respiro entre frase e carrossel */
}

.contact-section {
    position: relative;
    background: url('BG_FORMULARIO.png') no-repeat center center;
    background-size: cover;
}

.bg-primary-brand {
    background-color: #9ab899 !important;
}

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

/* Social Icons */
.social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    background: #9ab899;
    color: #ffffff !important;
    border-color: #9ab899;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(154, 184, 153, 0.3);
}

.hero-content .btn-outline-light:hover {
    background-color: #9ab899 !important;
    color: #ffffff !important;
    border-color: #9ab899 !important;
    box-shadow: 0 10px 20px rgba(154, 184, 153, 0.3);
}

/* Formulário Reduzido Uniformemente */
.glass-form {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px !important; /* Redução uniforme */
    box-shadow: none; /* Sombra removida */
    max-width: 550px; /* Limite de largura para não esticar */
    margin-left: auto; /* Alinha à direita na coluna */
    transform: translate3d(0, 0, 0); /* Força aceleração de hardware GPU para backdrop-filter */
    will-change: transform;
}

/* Otimização global de renderização GPU para animações AOS */
[data-aos] {
    will-change: transform, opacity;
}

.premium-input {
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important; /* Redução uniforme */
    color: #ffffff !important;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.premium-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.premium-input option {
    background-color: #222;
    color: #ffffff;
}

.form-label {
    color: #ffffff !important; /* Branco */
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem; /* Aumentado para melhor legibilidade */
    letter-spacing: 0.5px;
    text-transform: none; /* Mais clean sem uppercase forçado */
}

.mb-3 {
    margin-bottom: 0.9rem !important; /* Redução uniforme */
}

.btn-send-premium {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px; /* Minimalist */
    padding: 12px 30px !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-send-premium:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}



.footer-logo {
    height: 18px; /* Bem menor e minimalista */
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1); /* Força a logo a ficar 100% branca */
}

footer p {
    color: #ffffff;
    opacity: 0.8;
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVIDADE TOTAL
   ========================================================================== */

/* Mobile e Tablets (Abaixo de 992px) */
@media (max-width: 991.98px) {
    body {
        overflow-x: hidden; /* Segurança extra */
    }

    section {
        padding: 50px 0 !important;
    }

    .concept-section {
        background-attachment: scroll !important; /* Impede que o background fique estourado/zoom no iOS/iPhone */
    }

    /* Remove padding da galeria no mobile para sumir com as bordas pretas */
    #galeria.gallery-section-full {
        padding: 0 !important;
    }

    /* Corrige o menu mobile para ficar sequencial (vertical) */
    .floating-nav-top .navbar-nav {
        flex-direction: column !important;
    }


    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        letter-spacing: 1px !important;
        margin-bottom: 35px; /* Aumentado para dar mais espaço */
    }

    .hero-content p {
        font-size: 1.1rem; /* Aumentado novamente para destaque */
        letter-spacing: 0.5px;
        line-height: 1.5;
        margin-bottom: 40px;
        color: #ffffff;
        font-weight: 300; /* Mais fino para ser elegante */
    }

    .btn-send-premium, .btn-outline-light {
        padding: 15px 45px !important; /* Maior e mais clicável */
        font-size: 0.9rem !important;
        width: auto;
        min-width: 280px;
        margin: 0 auto;
        font-weight: 700;
        text-transform: uppercase;
    }

    .navbar-logo {
        height: 25px;
    }

    .logo-text {
        letter-spacing: 2px !important; /* Logo compacta no mobile */
        font-size: 1.2rem;
    }

    .main-concept-img {
        height: 350px;
        margin-top: 30px;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .glass-form {
        padding: 25px 20px !important;
    }

    .gallery-image {
        height: 75vh !important; /* Aumentado para preencher melhor e ocupar a tela no mobile */
    }

    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 25px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-collapse .nav-link {
        margin: 10px 0 !important;
        font-size: 1.1rem !important;
    }
}

/* Celulares Pequenos (Abaixo de 576px) */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn-send-premium {
        padding: 12px 30px !important;
        font-size: 0.75rem;
    }

    .footer-logo {
        height: 30px;
    }

    /* Ajuste para o carrossel de serviços no mobile */
    .service-card-premium {
        height: 480px;
        padding: 30px 20px;
    }

    .service-card-premium h3 {
        font-size: 1.3rem;
    }
}

/* Ajuste para Telas Altas (Previne quebra de layout em monitores grandes) */
@media (min-width: 2000px) {
    .container {
        max-width: 1600px;
    }
}
