/* Versão: 2.3 */
/* --- Reset e Configurações Globais --- */
:root {
    --dark-blue: #0D244F; /* Azul escuro para textos e títulos */
    --light-blue: #4DB6AC; /* Verde-água/azul claro para detalhes */
    --gold: #FFC107; /* Dourado para CTAs e destaques */
    --background: #FFFFFF;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --whatsapp-green: #25D366;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-blue);
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

section {
    border-bottom: 1px solid #e0e0e0;
    padding-top: var(--nav-height); /* Adiciona padding para compensar o menu fixo */
    margin-top: -var(--nav-height); /* Move a seção para cima para o ID ficar no topo */
}

#hero {
     padding-top: 0; 
     margin-top: 0;
}

section:last-of-type {
    border-bottom: none;
}

/* --- Menu de Navegação Fixo --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: var(--nav-height);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
}
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}
.nav-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}
.nav-link:hover {
    color: var(--light-blue);
}
.nav-link.nav-cta-button {
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.nav-link.nav-cta-button:hover {
    background-color: var(--dark-blue);
    color: var(--background);
    transform: translateY(-2px);
}
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-blue);
    border-radius: 2px;
}

/* --- Botão Call-to-Action (CTA) --- */
.cta-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: #ffca2c;
    transform: translateY(-3px);
}

/* --- Seção Hero --- */
#hero {
    padding-top: var(--nav-height); /* Espaçamento para o menu fixo */
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-image {
   flex: 1;
   max-width: 400px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* --- Seção Hero - Bandeiras --- */
.hero-flags {
    margin-top: 40px;
}
.hero-flags p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    font-weight: 600;
}
.flags-container {
    display: flex;
    align-items: center;
    gap: 15px;
}
.flags-container .fi {
    font-size: 1.8rem; /* Controla o tamanho das bandeiras */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Seção Sobre --- */
#sobre .about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

#sobre .about-text {
    flex: 1;
}

#sobre h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

#sobre .about-video {
    flex: 1;
    max-width: 500px;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.video-thumbnail-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-thumbnail {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}
.about-video:hover .video-thumbnail {
    transform: scale(1.05);
}
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    pointer-events: none;
}
.about-video:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--gold);
}

/* --- Video Lightbox Modal --- */
.video-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    padding-bottom: 50.625%; /* 16:9 */
    height: 0;
}
.lightbox-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}
.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
}

/* --- Seção Livros --- */
#livros {
    background-color: var(--light-gray);
}
#livros h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.book-card {
    background-color: var(--background);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.book-cover-wrapper {
    height: 280px; /* Altura fixa para o container da imagem */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.book-cover-wrapper img {
    max-height: 100%; /* Imagem se ajusta à altura do container */
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 5px;
}
.book-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    flex-grow: 1; /* Faz o título ocupar o espaço disponível */
}

/* --- Seção Palestras (COM IMAGEM DE FUNDO) --- */
#palestras {
    position: relative;
    background-image: url('https://kareemi.com.br/imgs/kareemi-vestido-branco.jpg');
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff; 
}
#palestras::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 36, 79, 0.85); /* Overlay escuro (azul da paleta) */
    z-index: 1;
}
#palestras .container {
    position: relative;
    z-index: 2; /* Garante que o conteúdo fique acima do overlay */
}
#palestras h2,
#palestras .intro-text,
#palestras h4,
#palestras p {
    color: #ffffff;
}
#palestras .talk-item .icon {
    color: var(--gold); /* Destaque dourado para os ícones */
}

#palestras h2, #midia h2, #clientes h2, #depoimentos h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
}
#palestras .intro-text, #midia .intro-text, #depoimentos .intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}
.talks-list {
    display: grid;
    grid-template-columns: 1fr; /* Uma coluna por padrão */
    gap: 25px;
    margin-bottom: 40px;
}

/* Em telas maiores, volta para o grid dinâmico */
@media (min-width: 768px) {
    .talks-list {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}
.talk-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.talk-item .icon {
    font-size: 1.8rem;
    margin-top: 5px;
}
.talk-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.talks-cta {
    text-align: center;
}

/* --- Seção Depoimentos --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.testimonial-card {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--light-blue);
}
.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    position: relative;
}
.testimonial-text::before {
    content: '\f10d'; /* Ícone de aspas da Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--light-blue);
    font-size: 2rem;
    position: absolute;
    top: -15px;
    left: -15px;
    opacity: 0.1;
}
.testimonial-author {
    font-weight: bold;
    color: var(--dark-blue);
}
.testimonial-author span {
    display: block;
    font-weight: normal;
    color: #777;
    font-size: 0.9rem;
}


/* --- Seção Clientes (ESTRUTURA DO PRINT) --- */
#clientes {
    background-color: var(--light-gray);
}
.client-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-top: 40px;
}
.client-category-card {
    background: linear-gradient(145deg, #eaf2ff, #f9faff);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #ffffff;
}
.client-category-card.full-width-card {
    grid-column: 1 / -1;
}
.client-category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 25px;
    text-align: left;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.client-category-card .logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 25px 35px;
}

.logo-image {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- Seção Mídia (COM OVERLAY) --- */
#midia {
    background-color: #fff;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.media-card {
    background-color: var(--background);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.media-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.media-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.media-card a.open-media-video {
    cursor: pointer;
}
.media-image-wrapper {
    position: relative;
    height: 220px; /* Altura fixa para a imagem */
}
.media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 30px 15px 15px;
}
.media-vehicle-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: block; /* Garante comportamento consistente */
    width: 100%;   /* Garante comportamento consistente */
}
.media-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.media-card-content h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 15px; /* Reduzida a margem */
    flex-grow: 1;
}
.media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Alinha o link na parte inferior */
    color: var(--light-blue);
    font-weight: bold;
    text-decoration: none;
}
.media-link i {
    transition: transform 0.3s;
}
.media-card:hover .media-link i.fa-arrow-right {
    transform: translateX(5px);
}
.load-more-wrapper {
    display: none;
}

/* --- Footer (Contato) --- */
footer {
    background-color: var(--dark-blue);
    color: #f0f0f0;
    padding: 60px 20px 20px;
    text-align: center;
}

footer h2 {
    color: var(--background);
    font-size: 2rem;
    margin-bottom: 15px;
}
footer .footer-intro-text {
    max-width: 500px;
    margin: 0 auto 30px auto;
}
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.contact-info a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.contact-info a:hover {
    color: var(--gold);
}
.contact-info i {
    margin-right: 8px;
    color: var(--light-blue);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #4a5a70;
    background-color: #1a325f;
    color: #f0f0f0;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}
.form-input::placeholder, .form-textarea::placeholder {
    color: #a0b3d1;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-textarea {
    resize: vertical;
    min-height: 120px;
}
.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--gold);
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #ffca2c;
}

/* Estilos para a mensagem de sucesso */
#form-success-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a325f;
    border-radius: 10px;
    border: 1px solid var(--light-blue);
    max-width: 600px;
    margin: 40px auto;
}
.success-icon {
    font-size: 4rem;
    color: var(--light-blue);
    margin-bottom: 20px;
}
#form-success-message h2 {
    color: var(--background);
    margin-bottom: 15px;
}
#form-success-message p {
    color: #a0b3d1;
    margin-bottom: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}
#form-success-message .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    border-top: 1px solid #2c3e50;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    z-index: 100;
    transition: transform 0.3s ease;
}
.whatsapp-float i {
    line-height: 60px;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Responsividade --- */
@media (max-width: 820px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        gap: 0;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        align-items: stretch;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: 1.2rem 0;
    }
    .nav-link.nav-cta-button {
        display: inline-block;
        margin: 1rem auto;
        width: auto;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1, h2 { 
        font-size: 1.8rem; 
    }
    
    #hero h1 {
        font-size: 1.7rem;
    }
    
    .container {
        padding: 40px 15px;
    }

    #hero {
        min-height: auto;
        padding-top: var(--nav-height);
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 60px 15px;
    }
    
    .hero-flags {
        justify-content: center;
    }
    .flags-container {
        justify-content: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 30px;
        width: 70%;
        max-width: 300px;
    }

    #sobre .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    #sobre .about-text {
         order: 1;
    }
    
    #sobre .about-video {
        order: 2;
        max-width: 100%;
    }

    #sobre .about-text {
        margin-top: 30px;
    }
    
    .client-categories-grid {
        grid-template-columns: 1fr;
    }

    /* Estilos para o botão "Ver mais" e cards ocultos no mobile */
    .media-card.mobile-hidden {
        display: none;
    }
    .load-more-wrapper {
        display: block;
        text-align: center;
        margin-top: 30px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    .whatsapp-float i {
        line-height: 50px;
    }
}

