/* ==========================================
   DECACAU - CONARH LANDING PAGE DESIGN SYSTEM
   PALETA OFICIAL: AZUL DECACAU (#080B40) & DOURADO
   ========================================== */

:root {
    /* Cores Principais DeCacau Blue */
    --color-dark: #080B40;        /* Azul Escuro DeCacau */
    --color-medium: #0F145B;      /* Azul Royal Médio */
    --color-light-blue: #1A2380;  /* Azul Royal Elevado */
    --color-card-blue: rgba(15, 20, 91, 0.85);
    
    /* Cores de Destaque */
    --color-cream: #F4E6D0;       /* Creme Luxo */
    --color-cream-light: #FAF3E8;
    --color-gold: #C8A46A;        /* Dourado Metálico */
    --color-gold-hover: #D8B47A;
    --color-white: #FFFFFF;
    
    /* WhatsApp */
    --wa-color: #25D366;
    --wa-hover: #20BA5A;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-soft: 0 12px 35px rgba(2, 3, 20, 0.6);
    --shadow-gold: 0 10px 25px rgba(200, 164, 106, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basic Rules */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-cream);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 164, 106, 0.3);
}

/* ==========================================
   HERO SECTION (AZUL ESCURO #080B40 COM DEGRADÊ SUAVE DE 200PX)
   ========================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 520px;
    max-height: 850px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--color-dark);
}

/* Degradê suave de 200px na parte inferior para transição contínua */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(8, 11, 64, 0) 0%, rgba(8, 11, 64, 0.7) 50%, #080B40 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 11, 64, 0.65) 0%, rgba(8, 11, 64, 0.6) 50%, rgba(8, 11, 64, 0.95) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding-top: 1.2rem;
    padding-bottom: 1.8rem;
}

/* Barra Superior da Hero (Logo 2x Maior + Botão) */
.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
}

.hero-top-bar .logo img {
    height: 108px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

/* Conteúdo Centralizado do Hero */
.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    margin: auto 0;
    max-width: 800px;
    width: 100%;
    align-self: center;
    gap: 1.2rem;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.7rem);
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.hero-title span {
    color: var(--color-gold);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    color: var(--color-cream);
    opacity: 0.95;
    margin: 0 auto;
    max-width: 640px;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Location Card integrado no centro da Hero */
.location-card {
    background: rgba(15, 20, 91, 0.85);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(200, 164, 106, 0.4);
    border-radius: 20px;
    padding: 1.4rem 1.8rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(2, 3, 20, 0.7);
    max-width: 640px;
    width: 100%;
    margin-top: 1.2rem;
    position: relative;
    overflow: hidden;
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-light-blue), var(--color-gold), var(--color-light-blue));
}

.location-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(200, 164, 106, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--color-gold);
    border: 1px solid rgba(200, 164, 106, 0.35);
}

.location-card h2 {
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.location-card .stand-info {
    font-size: 1.05rem;
    color: var(--color-gold);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.location-card .venue-info {
    font-size: 0.88rem;
    color: var(--color-cream);
    opacity: 0.9;
}

/* ==========================================
   LIVE GALLERY SECTION (ESTANDE AO VIVO)
   ========================================== */
.gallery-section {
    padding: 75px 0;
    background-color: var(--color-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: #ffffff;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1rem;
    color: var(--color-cream);
    opacity: 0.88;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
    min-height: 120px;
}

.gallery-item {
    background: rgba(15, 20, 91, 0.5);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(200, 164, 106, 0.22);
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.96);
    transition: var(--transition);
}

.gallery-item.loaded {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 11, 64, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.expand-btn {
    width: 44px;
    height: 44px;
    background: var(--color-gold);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    background: rgba(15, 20, 91, 0.4);
    border: 1px dashed rgba(200, 164, 106, 0.35);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    color: var(--color-cream);
    opacity: 0.92;
    font-size: 1.05rem;
}

/* ==========================================
   CORPORATE SOLUTIONS (SLIDER HORIZONTAL COM ESPAÇAMENTO AUMENTADO)
   ========================================== */
.solutions-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-medium) 20%, var(--color-medium) 80%, var(--color-dark) 100%);
}

.slider-wrapper {
    position: relative;
    margin-top: 2rem;
}

.products-slider-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 5px 48px; /* Aumentado padding inferior para 48px */
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) transparent;
}

.products-slider-track::-webkit-scrollbar {
    height: 6px;
}

.products-slider-track::-webkit-scrollbar-track {
    background: rgba(8, 11, 64, 0.7);
    border-radius: 10px;
}

.products-slider-track::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 10px;
}

/* Fundo dos cards em Azul Escuro #080B40 */
.product-card-slide {
    flex: 0 0 290px;
    scroll-snap-align: start;
    background: var(--color-dark);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(200, 164, 106, 0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card-slide:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 164, 106, 0.6);
    box-shadow: 0 15px 35px rgba(2, 3, 20, 0.85);
}

.product-slide-img {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.product-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-slide:hover .product-slide-img img {
    transform: scale(1.08);
}

.product-slide-info {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-slide-info h3 {
    font-size: 1.25rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-slide-info p {
    font-size: 0.9rem;
    color: var(--color-cream);
    opacity: 0.9;
    line-height: 1.45;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(200, 164, 106, 0.15);
    border: 1px solid rgba(200, 164, 106, 0.35);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav-btn:hover {
    background: var(--color-gold);
    color: var(--color-dark);
}

/* ==========================================
   HR DIFFERENTIALS
   ========================================== */
.differentials-section {
    padding: 75px 0;
    background-color: var(--color-dark);
}

.cards-differentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.diff-card {
    background: rgba(15, 20, 91, 0.5);
    backdrop-filter: blur(10px);
    padding: 2.2rem 1.6rem;
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(200, 164, 106, 0.22);
    transition: var(--transition);
}

.diff-card:hover {
    transform: translateY(-6px);
    background: rgba(15, 20, 91, 0.75);
    border-color: rgba(200, 164, 106, 0.45);
    box-shadow: var(--shadow-soft);
}

.diff-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 164, 106, 0.15);
    border-radius: 50%;
    border: 1px solid rgba(200, 164, 106, 0.3);
    color: var(--color-gold);
}

.diff-icon img,
.diff-icon svg {
    width: 30px;
    height: 30px;
}

.diff-card h3 {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.diff-card p {
    font-size: 0.9rem;
    color: var(--color-cream);
    opacity: 0.88;
    line-height: 1.45;
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.float-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--wa-color);
    color: #ffffff;
    border-radius: 50px;
    padding: 12px 22px 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
    animation: waPulse 2.2s infinite;
    transition: var(--transition);
}

.float-wa:hover {
    transform: translateY(-4px);
    background-color: var(--wa-hover);
}

@keyframes waPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   LIGHTBOX MODAL
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(2, 3, 20, 0.96);
    backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.lightbox-container {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(200, 164, 106, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -45px; right: -10px;
    color: #ffffff;
    background: rgba(200, 164, 106, 0.2);
    border: 1px solid rgba(200, 164, 106, 0.4);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================
   FOOTER (AZUL ULTRAMARINO ULTRA ESCURO)
   ========================================== */
footer {
    background-color: #020418;
    padding: 35px 0;
    border-top: 1px solid rgba(200, 164, 106, 0.25);
    text-align: center;
}

footer p {
    font-size: 0.88rem;
    color: var(--color-cream);
    opacity: 0.75;
}

/* ==========================================
   MOBILE RESPONSIVE & HERO 65VH CENTERING
   ========================================== */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    /* Hero no Mobile com 65vh */
    .hero {
        height: 65vh;
        min-height: 440px;
        max-height: 65dvh;
        display: flex;
        flex-direction: column;
    }

    .hero::after {
        height: 120px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        min-height: 100%;
        padding-top: 0.8rem;
        padding-bottom: 1.2rem;
        box-sizing: border-box;
    }
    
    .hero-top-bar {
        width: 100%;
    }

    .hero-top-bar .logo img {
        height: 64px;
    }
    
    .hero-center-content {
        margin: auto 0 !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.35;
        padding: 0 0.2rem;
    }
    
    .location-card {
        padding: 0.8rem 0.8rem;
        margin-top: 0.4rem;
        width: 100%;
    }

    .location-icon-wrapper {
        width: 32px;
        height: 32px;
        margin-bottom: 0.2rem;
    }

    .location-card h2 { font-size: 1rem; }
    .location-card .stand-info { font-size: 0.88rem; }
    .location-card .venue-info { font-size: 0.75rem; }

    .solutions-section {
        padding: 65px 0;
    }

    .products-slider-track {
        padding-bottom: 35px;
    }

    /* Galeria no Mobile: Exatamente 2 por linha */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-slide { flex: 0 0 240px; }
    
    .float-wa {
        bottom: 20px; right: 20px;
        padding: 12px; border-radius: 50%;
    }
    .float-wa span { display: none; }
}
