/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --gren-logo: #46994B;
    --primary-color: #0B3D91;
    /* Azul profundo */
    --secondary-color: #DFA54B;
    /* Dourado suave */
    --light-gray: #E8E8E8;
    /* Cinza metálico */
    --white-color: #FFFFFF;
    --dark-color: #0a192f;
    --red-logo: #C53E3A;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white-color);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    color: var(--gren-logo);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

/* --- 1. CABEÇALHO --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(11, 145, 80, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 4px;
    transition: height 0.4s ease, transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(207, 175, 110, 0.3);
}

/* --- 2. HERO SECTION --- */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(11, 60, 145, 0.349) 0%, rgba(10, 25, 47, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* --- 3. FORMULÁRIO DE BUSCA --- */
#search-form-section {
    padding: 60px 0;
    background-image: url('https://images.unsplash.com/photo-1570710891163-6d8b74735c05?q=80&w=1974&auto=format&fit=cro');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.flight-search-form {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--gren-logo);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.form-group input {
    background: rgba(255, 255, 255, 0.8);
    border: solid 1px #098f3a;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    color: #098f3a;
    outline: none;
    transition: box-shadow 0.3s;
}

.form-group input:focus {
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.passenger-counter {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.passenger-counter input {
    width: 100%;
    text-align: center;
    border: none;
    background: transparent;
    -moz-appearance: textfield;
}

.passenger-counter input::-webkit-outer-spin-button,
.passenger-counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.counter-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 30px;
    height: 100%;
    font-size: 1.2rem;
    cursor: pointer;
}

.counter-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.counter-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.search-button {
    width: 100%;
    padding: 18px;
    background: var(--secondary-color);
    color: var(--white-color);
    border: none;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: #e0c582;
    transform: scale(1.02);
}

/* Container das sugestões */
.autocomplete-list {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

/* Cada item da lista */
.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

/* Último item sem borda */
.autocomplete-item:last-child {
    border-bottom: none;
}

/* Efeito ao passar o mouse */
.autocomplete-item:hover {
    background-color: #f6f6f6;
}


/* --- 4. DESTINOS --- */
.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.destino-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 400px;
}

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

.destino-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px 20px 20px;
    color: var(--white-color);
    transform: translateY(40%);
    transition: transform 0.5s ease;
}

.destino-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.card-overlay p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.cta-button-small {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.destino-card:hover .cta-button-small {
    opacity: 1;
}

/* --- SEÇÃO NOSSA EQUIPE --- */
#equipe {
    background-color: #f7f9fc;
    /* Fundo suave para alternar com seções brancas */
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
}

.equipe-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.equipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(11, 61, 145, 0.15);
}

.equipe-card-img {
    height: 300px;
    overflow: hidden;
}

.equipe-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Ajusta a imagem para focar no rosto */
    transition: transform 0.5s ease;
}

.equipe-card:hover .equipe-card-img img {
    transform: scale(1.05);
}

.equipe-card-info {
    padding: 30px;
}

.equipe-nome {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--gren-logo);
    margin-bottom: 5px;
}

.equipe-cargo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.equipe-descricao {
    color: #555;
    margin-bottom: 25px;
}

/* Reutilizando e ajustando o estilo do botão para este contexto */
.equipe-card .cta-button-small {
    display: inline-block;
    /* Garante que o botão seja visível */
    opacity: 1;
    /* Garante que o botão seja visível */
    background: var(--red-logo);
    color: var(--white-color);
    transition: background-color 0.3s ease;
}

.equipe-card .cta-button-small:hover {
    background: var(--gren-logo);
    color: var(--white-color);
}


/* --- Ajuste na Responsividade para a Nova Seção --- */
@media (max-width: 768px) {
    .equipe-grid {
        grid-template-columns: 1fr;
        /* Um card por linha em telas menores */
    }
}

/* --- SEÇÃO COMUNIDADE --- */
#comunidade {
    background-color: #f7f9fc;
}

.comunidade-container {
    display: flex;
    gap: 30px;
}

.comunidade-card {
    flex: 1;
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    color: var(--white-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comunidade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.whatsapp-card {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.instagram-card {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.comunidade-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.comunidade-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.comunidade-card .cta-button-small {
    margin-top: 20px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
}

a.btn-primario {
    display: inline-block;
    background: var(--white-color);
    color: var(--gren-logo);
    padding: 12px 20px;
    border-radius: 40px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 1s;
    box-shadow: 0 6px 18px rgba(243, 106, 2, 0.2);
}

.btn-primario:hover {
    background-color: var(--gren-logo);
    color: var(--white-color);
    transition: 1s;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);

}

a.btn-insta {
    display: inline-block;
    background: var(--white-color);
    color: #9336A1;
    padding: 12px 20px;
    border-radius: 40px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 1s;
    box-shadow: 0 6px 18px rgba(243, 106, 2, 0.2);
}

.btn-insta:hover {
    background-color: #EF212F;
    color: var(--white-color);
    transition: 1s;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);

}

/* --- 5. DIFERENCIAIS --- */
#diferenciais {
    background-image: linear-gradient(rgba(11, 145, 85, 0.9), rgba(11, 61, 145, 0.9)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=2074&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white-color);
}

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

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.diferencial-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.diferencial-item:hover i {
    transform: scale(1.2);
}

.diferencial-item h3 {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- 6. DEPOIMENTOS --- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-slide img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}

.testimonial-slide h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--gren-logo);
}

.stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* --- 7. PROMOÇÕES --- */
#promocoes {
    background-color: #f7f9fc;
}

.promocoes-grid {
    display: grid;
    gap: 30px;
}

.promo-card {
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.promo-header span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gren-logo);
}

.promo-header .price {
    color: var(--secondary-color);
    font-weight: 700;
}

.promo-body p {
    margin-bottom: 10px;
}

.countdown {
    background: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--red-logo);
}


/* --- 8. CONTATO --- */
.contato-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background: #fdfdfd;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contato-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--gren-logo);
    box-shadow: 0 0 0 2px rgba(11, 61, 145, 0.2);
}

.contato-info h3 {
    font-family: var(--font-secondary);
    color: var(--gren-logo);
    margin-bottom: 20px;
}

.contato-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contato-info i {
    color: var(--secondary-color);
    margin-right: 15px;
    width: 20px;
}

.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- 9. RODAPÉ --- */
#main-footer {
    background-color: var(--dark-color);
    color: var(--light-gray);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-content h3,
.footer-content h4 {
    color: var(--white-color);
    font-family: var(--font-secondary);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s, text-shadow 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #2a3a50;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.webcodex {
    display: flex;
    justify-content: center;

}

.webcodex a {
    text-decoration: none;
    color: var(--light-gray);
    transition: 0.7s;
}

.webcodex a:hover {
    color: var(--gren-logo);

}

/* --- ANIMAÇÕES --- */
[data-anim] {
    opacity: 0;
    transition: opacity 1s, transform 0.8s;
}

[data-anim="fade-in"] {
    transform: translateY(30px);
}

[data-anim="slide-in-left"] {
    transform: translateX(-50px);
}

[data-anim="slide-in-right"] {
    transform: translateX(50px);
}

.animated {
    opacity: 1;
    transform: translate(0, 0);
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    /* Em um projeto real, aqui entraria um menu hamburguer */
    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .contato-wrapper {
        grid-template-columns: 1fr;
    }

    .promo-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .comunidade-container {
        flex-direction: column;
    }

    #main-header nav {
        padding: 0 10px;
    }

    .cta-button {
        display: none;
    }

    /* Esconder o botão principal em telas pequenas */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}