/*
Theme Name: DGBV - Gestão de Milhas (1:1 Edition)
Theme URI: https://diegoborba.com.br
Author: Antigravity
Description: Tema 100% editável e idêntico ao protótipo HTML. Containers configurados para 100% de largura.
Version: 2.0
Text Domain: dgbv-theme
*/

:root {
    --primary-color: #1a3fd3;
    --primary-hover: #122faa;
    --dark-bg: #0b1528;
    --light-bg: #f8f9fc;
    --text-main: #101828;
    --text-muted: #667085;
    --gold-accent: #c4a141;
    --font-primary: 'Montserrat', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-primary); color: var(--text-main); background-color: #ffffff; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding { padding: 100px 0; }
.center { text-align: center; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.logo img { height: 45px; width: auto; }
.nav ul { display: flex; gap: 30px; }
.nav a { font-weight: 500; font-size: 0.95rem; color: var(--text-main); position: relative; }
.nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--primary-color); transition: var(--transition); }
.nav a:hover::after { width: 100%; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background-color: var(--light-bg); color: var(--text-main); font-size: 0.9rem; }
.social-icons a:hover { background-color: var(--primary-color); color: #fff; transform: translateY(-2px); }
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; }

/* Mobile Nav */
.mobile-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background-color: #fff; z-index: 2000; box-shadow: -5px 0 30px rgba(0,0,0,0.1); transition: right 0.4s ease; display: flex; flex-direction: column; padding: 80px 40px; }
.mobile-nav.open { right: 0; }
.close-menu-btn { position: absolute; top: 25px; right: 25px; font-size: 1.8rem; cursor: pointer; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 30px; }
.mobile-nav a { font-size: 1.2rem; font-weight: 500; }

/* Sections */
.top-headline { margin-top: 76px; background-color: #fff; }
.hero { width: 100%; background-color: var(--light-bg); }
.video-container { width: 100%; max-width: 1400px; margin: 0 auto; border-radius: var(--border-radius-md); overflow: hidden; box-shadow: var(--shadow-lg); background-color: #000; }
.video-container video { width: 100%; height: auto; display: block; max-height: 80vh; }

/* Custom Video Player Controls — Modern Pill Bar */
.custom-video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.custom-video-player video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}

/* Fullscreen: preenche a tela sem barras pretas */
.custom-video-player:fullscreen,
.custom-video-player:-webkit-full-screen,
.custom-video-player:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-video-player:fullscreen video,
.custom-video-player:-webkit-full-screen video,
.custom-video-player:-moz-full-screen video {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: cover;
}

/* Gradient fade at bottom so controls are readable */
.custom-video-player::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}
.custom-video-player:hover::after,
.custom-video-player.controls-visible::after {
    opacity: 1;
}

.video-controls {
    position: absolute;
    bottom: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 20, 0.45);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 6px 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 10;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
}
.custom-video-player:hover .video-controls,
.custom-video-player.controls-visible .video-controls {
    opacity: 1;
    transform: translateY(0);
}

/* Thin separator between the two buttons */
.video-controls-sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.18);
    border-radius: 1px;
    flex-shrink: 0;
}

.video-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.video-btn i {
    font-size: 0.95rem;
    line-height: 1;
}
.video-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.video-btn.is-active {
    color: var(--primary-color);
}
/* Hide text label on very small screens */
@media (max-width: 480px) {
    .video-btn .btn-label { display: none; }
    .video-controls { padding: 5px 8px; }
}



.branding-section { padding: 40px 0 80px; background-color: #fff; }
.branding-grid { 
    display: flex; 
    flex-direction: row;
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
    width: 100%;
    text-align: left;
}
.brand-text { flex: 1.5; }
.brand-tagline { 
    font-size: 1.4rem; 
    font-weight: 500; 
    line-height: 1.5; 
    color: var(--text-main); 
    margin-bottom: 35px; 
    max-width: 650px;
    border-left: 4px solid var(--gold-accent);
    padding-left: 25px;
}
.btn-primary { display: inline-block; background: linear-gradient(135deg, var(--primary-color), #2d55ff); color: #fff; padding: 15px 35px; border-radius: 30px; font-weight: 600; box-shadow: 0 8px 20px rgba(26, 63, 211, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(26, 63, 211, 0.4); }
.brand-logo { flex: 1; display: flex; justify-content: flex-end; }
.brand-logo img { max-width: 300px; width: 100%; height: auto; }

.sobre-mim { background-color: var(--light-bg); }
.sobre-mim-grid { 
    display: flex; 
    flex-direction: row;
    align-items: center; 
    justify-content: space-between; 
    gap: 60px; 
    width: 100%;
    text-align: left;
}
.sobre-mim-img { 
    flex: 1;
    border-radius: var(--border-radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-lg); 
}
.sobre-mim-img img { width: 100%; transition: transform 0.5s ease; }
.sobre-mim-img:hover img { transform: scale(1.05); }
.sobre-mim-content { flex: 1; }
.sobre-mim-content h2 { font-size: 2.5rem; margin-bottom: 25px; font-weight: 400; }

/* Nossa Solução (Cards - Estilo Original) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background: #fff;
    padding: 45px 35px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--gold-accent); }
.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; color: var(--text-main); }
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Timeline Vertical Artística (Zig-Zag PREMIUM) */
.timeline-section { 
    background-color: #0b1528; 
    color: #fff; 
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 0;
}

/* Linha Central Dourada */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--gold-accent), var(--gold-accent), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Alternância dos cards */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    border: 3px solid var(--gold-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 15px var(--gold-accent);
}

.step-number {
    color: var(--gold-accent);
    font-weight: 800;
    font-size: 1rem;
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(196, 161, 65, 0.2);
    transition: var(--transition);
    position: relative;
}

/* Efeito de brilho na borda ao passar o mouse */
.timeline-item:hover .timeline-content {
    border-color: var(--gold-accent);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.timeline-content h3 {
    color: var(--gold-accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsividade Mobile para a Timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: row;
        margin-bottom: 40px;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
}

/* Seção de Comparativo (Versão Mobile Corrigida) */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.compare-card {
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.compare-card.self { background: #f8f9fc; }
.compare-card.diego { 
    background: linear-gradient(135deg, #0b1528, #1a3fd3); 
    color: #fff;
    transform: scale(1.05);
}

.compare-card h3 { margin-bottom: 30px; text-align: center; font-size: 1.4rem; }
.compare-card ul li { margin-bottom: 15px; display: flex; gap: 12px; align-items: flex-start; }
.compare-card.self i { color: #f43f5e; }
.compare-card.diego i { color: #10b981; }

/* Garante texto preto no card Gestão Própria em todos os tamanhos */
.compare-card.self,
.compare-card.self h3,
.compare-card.self ul li {
    color: #101828;
}

@media (max-width: 900px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }
    .compare-card.diego {
        transform: none;
    }
    /* Garante texto preto no card "Gestão Própria" no mobile */
    .compare-card.self,
    .compare-card.self h3,
    .compare-card.self ul li {
        color: #101828;
    }
}

/* Seção de Resultados (Testimonials PREMIUM) */
.resultados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    height: 450px;
    border-radius: var(--border-radius-md);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.testimonial-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.9) 90%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card:hover .testimonial-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0.95) 90%);
}

.quote-icon {
    font-size: 2rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
    opacity: 0.8;
}

.testimonial-text {
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-name {
    color: var(--gold-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Seção Viagens */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item .overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff; transform: translateY(10px); opacity: 0; transition: var(--transition);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .overlay { transform: translateY(0); opacity: 1; }

.filter-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-buttons li { padding: 10px 25px; background: var(--light-bg); border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.85rem; border: 1px solid transparent; }
.filter-buttons li.active { background: var(--primary-color); color: #fff; }
.filter-buttons li:hover { border-color: var(--primary-color); }

/* FAQ Accordion */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { margin-bottom: 15px; border-radius: var(--border-radius-sm); overflow: hidden; border: 1px solid #eaecf0; }
.accordion-header { width: 100%; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; background: #fff; border: none; font-size: 1.1rem; font-weight: 600; cursor: pointer; color: var(--text-main); text-align: left; }
.accordion-header i { transition: var(--transition); font-size: 0.9rem; color: var(--text-muted); }
.accordion-content { padding: 0 25px; max-height: 0; overflow: hidden; background: #fff; transition: all 0.4s ease-out; color: var(--text-muted); }
.accordion-item.active .accordion-header { background: var(--light-bg); }
.accordion-item.active .accordion-header i { transform: rotate(45deg); }
.accordion-item.active .accordion-content { padding: 0 25px 25px; max-height: 500px; }

/* Contact Section & Footer */
.contato-section { background-color: var(--dark-bg); color: #fff; }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contato-info h2 { font-size: 2.5rem; margin-bottom: 30px; }
.contato-info p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.info-list li { margin-bottom: 25px; display: flex; gap: 20px; align-items: center; }
.info-list i { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gold-accent); }

.contact-form { background: rgba(255,255,255,0.05); padding: 50px; border-radius: var(--border-radius-md); border: 1px solid rgba(255,255,255,0.1); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--border-radius-sm); color: #fff; font-family: var(--font-primary); }
.form-group textarea { height: 120px; resize: none; }
.btn-submit { width: 100%; padding: 18px; background: var(--gold-accent); color: #000; border: none; border-radius: var(--border-radius-sm); font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition); text-transform: uppercase; }
.btn-submit:hover { background: #d4b455; transform: scale(1.02); }

.footer { padding: 80px 0 40px; background-color: #050a14; color: #fff; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-logo img { height: 50px; margin-bottom: 25px; }
.footer-col h4 { margin-bottom: 25px; font-size: 1.2rem; color: var(--gold-accent); }
.footer-col ul li { margin-bottom: 15px; opacity: 0.7; }
.footer-bottom { padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; opacity: 0.6; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .branding-grid, .sobre-mim-grid, .contato-grid { flex-direction: column; text-align: center; }
    .branding-grid { text-align: center; }
    .brand-logo { justify-content: center; }
    .sobre-mim-img { order: -1; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .brand-text h1 { font-size: 3rem; }
}

@media (max-width: 600px) {
    .footer-top { grid-template-columns: 1fr; }
    .branding-section { padding-top: 30px; }
}
