/* ==========================================================================
   Variáveis e Reset 
   ========================================================================== */
:root {
    --gold-gradient: linear-gradient(45deg, #5B3C19, #FAD5A4, #FCE3BA);
    --bg-color: #EFE9DF;
    --text-primary: #000000;
    --text-secondary: #333333;
    --white-translucent: rgba(255, 255, 255, 0.15);
    --border-soft: rgba(91, 60, 25, 0.2);
    --font-main: 'Arboria', 'Aileron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-secondary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Navbar 
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    background: lab(27.12% -3.55 -4.66 / 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(250, 213, 164, 0.1);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #EFE9DF; 
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    color: #FCE3BA;
    opacity: 1;
    letter-spacing: 2px;
}

.btn-cta-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #FAD5A4;
    border-radius: 8px;
    text-decoration: none;
    color: #FAD5A4;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cta-nav:hover {
    background: var(--gold-gradient);
    color: #1A140E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 60, 25, 0.4);
}

/* ==========================================================================
   Hero Section 
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    max-width: 800px;
}

/* Ajuste solicitado: Instituto Jovanelli menor que o restante */
.hero-brand {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.gold-gradient-text {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subheadline {
    color: #EFE9DF;
    font-size: 1.15rem;
    margin-bottom: 35px;
    font-weight: 300;
    line-height: 1.7;
    max-width: 550px;
}

.btn-main-gold {
    padding: 16px 45px;
    background: var(--gold-gradient);
    color: #33210e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s ease;
    display: inline-block;
    margin-top: 40px;
}

.btn-main-gold:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #FAD5A4;
    width: 30px;
    border-radius: 8px;
}

/* ==========================================================================
   Seção Instituto 
   ========================================================================== */
.container-custom {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0;
}

.instituto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.img-instituto {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0px #FAD5A4;
}

.eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #5B3C19;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Ajuste solicitado: Título fino e preto */
.section-title-thin {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 300; /* Fonte mais fina */
    line-height: 1.2;
    margin-bottom: 25px;
}

/* Melhoria na Lista de Features (Organização) */
.features-list {
    list-style: none;
    margin: 40px 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.features-list i {
    color: #5B3C19;
    font-size: 1.8rem;
    margin-top: 5px;
}

.features-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 700;
}

.features-list span {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-outline-gold {
    padding: 15px 35px;
    border: 2px solid #FAD5A4;
    border-radius: 8px;
    color: #5B3C19;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
}

/* ==========================================================================
   Especialidades 
   ========================================================================== */
.especialidades-section {
    background-color: #f7f3ed;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card-especialidade {
    background: #fff;
    padding: 50px 40px;
    border-radius: 8px;
    border: 1px solid rgba(91, 60, 25, 0.1);
    transition: all 0.4s ease;
}

.card-especialidade:hover {
    transform: translateY(-12px);
    border-color: #FAD5A4;
    box-shadow: 0 20px 40px rgba(91, 60, 25, 0.08);
}

.card-icon i {
    font-size: 3rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: block;
}

.card-especialidade h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1A140E;
}

.cta-central {
    text-align: center;
    margin-top: 80px;
}

/* ==========================================================================
   Responsividade 
   ========================================================================== */
@media (max-width: 992px) {
    .instituto-grid { grid-template-columns: 1fr; gap: 60px; }
    .gold-gradient-text { font-size: 2.8rem; }
    .section-title-thin { font-size: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content { text-align: center; padding: 0 20px; width: 100%; }
    .hero-brand { font-size: 1.1rem; }
    .overlay { background: rgba(0,0,0,0.7); }
}
/* Estilização do Link "Ver detalhes" nos Cards */
.link-mais {
    text-decoration: none;
    color: #1A140E; /* Preto para contraste e leitura */
    font-weight: 700;
    font-size: 11px; /* Tamanho refinado */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 4px;
    border-bottom: 1px solid #FAD5A4; /* A linha dourada que dá o toque premium */
    transition: all 0.3s ease;
}

.link-mais i {
    font-size: 14px;
    color: #5B3C19; /* Ícone no dourado mais escuro */
    transition: transform 0.3s ease;
}

/* Efeito Hover Aprimorado */
.link-mais:hover {
    gap: 15px; /* O link "estica" suavemente */
    color: #5B3C19;
    border-bottom-color: #5B3C19; /* A borda escurece no hover */
}

.link-mais:hover i {
    transform: translateX(5px); /* A setinha dá um leve pulo para a direita */
}
/* Seção de Vídeos Experience */
.video-experience {
    background-color: var(--bg-color);
}

.main-video-wrapper {
    max-width: 900px;
    margin: 0 auto 60px auto;
}

/* Container de Vídeo com Borda Dourada */
.video-container {
    position: relative;
    border-radius: 8px;
    padding: 3px; /* Espessura da borda dourada */
    background: var(--gold-gradient);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px; /* Levemente menor que o container */
    display: block;
    transition: filter 0.4s ease;
}

/* Formato Vertical (Reels/Shorts) */
.vertical-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.video-container.vertical {
    aspect-ratio: 9 / 16; /* Formato Celular */
}

.video-container.horizontal {
    aspect-ratio: 16 / 9; /* Formato Cinema */
}

/* Ícone de Play Centralizado */
.play-overlay {
    position: absolute;
    z-index: 2;
    transition: all 0.4s ease;
}

.play-overlay i {
    font-size: 80px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}

.play-overlay.sm i {
    font-size: 50px;
}

/* Interatividade */
.video-container:hover .play-overlay {
    transform: scale(1.1);
}

.video-container:hover .video-player {
    filter: brightness(0.7);
}

/* Responsividade */
@media (max-width: 768px) {
    .vertical-videos-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    .play-overlay i { font-size: 60px; }
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px; /* Travado na parte inferior esquerda como solicitado */
    background-color: #25d366; /* Verde Oficial WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e; /* Tom mais escuro no hover */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Animação de Pulso sutil */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
/* --- Botão WhatsApp Minimalista (Sem Fundo) --- */
.whatsapp-minimal {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Mantido na direita */
    z-index: 9999;
    text-decoration: none;
    
    /* Estilo do Ícone */
    color: #25d366; /* Verde Oficial do WhatsApp */
    font-size: 45px; /* Tamanho maior para compensar a falta de fundo */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Transições Suaves */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Sombra sutil apenas no ícone para destacar do fundo */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.15));
}

/* Efeito Hover */
.whatsapp-minimal:hover {
    transform: scale(1.15) rotate(-10deg); /* Leve aumento e rotação "brincalhona" */
    color: #128c7e; /* Verde um pouco mais escuro no hover */
    filter: drop-shadow(0 5px 15px rgba(37, 211, 102, 0.4)); /* Brilho verde suave */
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .whatsapp-minimal {
        font-size: 38px;
        bottom: 20px;
        right: 20px;
    }
}
/* --- Botão WhatsApp SVG (Fundo Verde / Ícone Branco) --- */
.whatsapp-svg-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px; /* Tamanho do círculo */
    height: 60px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Estilo do Botão Redondo */
    background-color: #25d366; /* Verde Oficial do WhatsApp */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Sombra para profundidade */
    
    /* Transições */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

/* Estilização do Ícone SVG Interno */
.whatsapp-svg-btn svg {
    width: 35px; /* Tamanho do ícone dentro do círculo */
    height: 35px;
    fill: #ffffff; /* Ícone BRANCO */
    transition: transform 0.3s ease;
}

/* Interatividade (Hover) */
.whatsapp-svg-btn:hover {
    transform: scale(1.1); /* Aumenta o botão todo */
    background-color: #128c7e; /* Verde um pouco mais escuro no hover */
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); /* Sombra verde brilhante */
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .whatsapp-svg-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-svg-btn svg {
        width: 28px;
        height: 28px;
    }
}
@media (max-width: 768px) {
    /* Esconder botão principal da nav no mobile para não amontoar */
    .hide-mobile { display: none; }

    .menu-mobile {
        display: block;
        font-size: 32px;
        color: #FAD5A4;
        cursor: pointer;
        z-index: 1001;
    }

    /* Estilização do Menu Lateral (Nav Links) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido fora da tela */
        width: 80%;
        height: 100vh;
        background: rgba(18, 14, 10, 0.98); /* Fundo Ébano denso */
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0; /* Desliza para dentro da tela */
    }

    .nav-links a {
        font-size: 18px;
        letter-spacing: 3px;
    }

    /* Estilo do botão dentro do menu mobile */
    .btn-nav-mobile {
        margin-top: 20px;
        padding: 15px 30px;
        background: var(--gold-gradient);
        color: #120E0A !important;
        border-radius: 8px;
        font-weight: 700;
        text-align: center;
        width: 100%;
    }
}