/*
   ---------------------------------
   1. Variáveis e Reset de Estilos
   ---------------------------------
*/

:root {
    /* Cores */
    --primary-color: #0B3D91;
    --primary-dark: #072a66;
    --secondary-color: #00B4D8;
    --secondary-dark: #0096c7;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f5f5f5;
    --form-bg: #f0f9ff;
    --border-color: #ddd;
    --accent-yellow: #FFD700;

    /* Sombras e Transições */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;

    /* Dimensões e Formas */
    --border-radius: 8px;
    --header-height: 70px;
}

/* Reseta estilos padrão de navegadores para garantir consistência */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------------------------
   2. Estilos Gerais e Componentes
   ---------------------------------
*/

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Contêiner principal para centralizar o conteúdo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos de links, botões e imagens */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

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

/* Títulos de seção */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(24px, 5vw, 32px);
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: gray;
}

/* Botão de chamada para ação (CTA) */
.cta-button, .view-all-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 30px);
    border-radius: 4px;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
}

.cta-button:hover, .view-all-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
}

/* ---------------------------------
   3. Estilos de Layout Específicos
   ---------------------------------
*/

/* Cabeçalho */
.main-header {
    background-color: #191970;
    color: white;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: clamp(10px, 2vw, 20px);
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: gray;
    transition: width 0.3s;
}

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

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

.user-actions {
    display: flex;
    gap: 10px;
}

.login-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
    border: none;
}

.login-btn:hover {
    background-color: var(--secondary-dark);
}

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 5px;
}

.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: #191970;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    height: auto;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav ul {
    padding: 20px;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: white;
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

/* Seção Hero (Banner) */
.hero-section {
    height: 80vh;
    min-height: 500px;
    background-image: url('assets/images/baner-index.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Pacotes em Destaque */
.featured-packages {
    padding: clamp(40px, 8vw, 80px) 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(15px, 3vw, 30px);
}

.package-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.package-image {
    position: relative;
    height: 200px;
}

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

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

.package-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.package-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-content h3 {
    font-size: clamp(18px, 3vw, 20px);
    margin-bottom: 10px;
    color: var(--primary-color);
}

.package-location {
    color: black;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.view-details {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
}

.view-details:hover {
    background-color: var(--primary-dark);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* Depoimentos */
.testimonials-section {
    padding: clamp(40px, 8vw, 80px) 0;
}

.testimonials-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 15px;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
}

.testimonial-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: clamp(20px, 4vw, 30px);
    box-shadow: var(--shadow);
    height: 100%;
}

.testimonial-rating {
    margin-bottom: 15px;
    color: var(--accent-yellow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.author-info p {
    font-size: 14px;
    color: black;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-dark);
}

/* Newsletter */
.newsletter-section {
    padding: clamp(40px, 6vw, 60px) 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 15px;
    color: white;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
    font-size: clamp(14px, 2vw, 16px);
}

.newsletter-form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    color: #333;
}

.newsletter-form-group input:focus {
    outline: none;
}

.newsletter-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
    transition: background-color 0.3s;
}

.newsletter-btn:hover {
    background-color: var(--secondary-dark);
}

/* Rodapé */
.main-footer {
    background-color: var(--primary-dark);
    color: white;
    padding: clamp(40px, 6vw, 60px) 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------
   4. Media Queries para Responsividade
   ---------------------------------
*/

/* Estilos aplicados em telas maiores que 992px de largura (desktops e tablets grandes) */
@media (min-width: 993px) {
    .main-nav {
        display: flex;
    }
}

/* Estilos aplicados em telas menores ou iguais a 992px de largura (tablets e smartphones) */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
    }
    .testimonial-slide {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Estilos aplicados em telas menores ou iguais a 768px de largura (smartphones) */
@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 100%;
    }
    .newsletter-form-group {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-form-group input,
    .newsletter-btn {
        border-radius: 4px;
        width: 100%;
    }
}
