/* =========================================
   DESIGN SYSTEM (Variáveis de Tema)
   ========================================= */
:root {
    --bg-dark: #0a0a0a;       
    --bg-card: #151515;       
    --primary-color: #D4AF37; 
    --primary-hover: #C5A028; 
    --highlight: #FFD700;     
    --text-light: #ffffff;
    --text-muted: #a3a3a3;
    --border-color: #2a2a2a;
    
    --font-title: 'Montserrat', sans-serif;
    --font-text: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* =========================================
   RESET E BASE
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: var(--font-text);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.text-center { 
    text-align: center; 
}

/* =========================================
   TIPOGRAFIA
   ========================================= */
h1, h2, h3, h4 { 
    font-family: var(--font-title); 
    font-weight: 800; 
}

h1 { 
    font-size: 3.5rem; 
    line-height: 1.2; 
    margin-bottom: 1.5rem; 
}

h2.section-title { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 3rem; 
}

h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    color: var(--primary-color); 
}

p { 
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
}

.highlight-text { 
    color: var(--highlight); 
}

/* =========================================
   BOTÕES
   ========================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary { 
    background-color: var(--primary-color); 
    color: #000; 
}

.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4); 
}

.btn-secondary { 
    background-color: transparent; 
    border: 2px solid var(--primary-color); 
    color: var(--primary-color); 
}

.btn-secondary:hover { 
    background-color: var(--primary-color); 
    color: #000; 
}

.btn-large { 
    font-size: 1rem; 
    padding: 18px 36px; 
}

.btn-full { 
    width: 100%; 
}

/* =========================================
   CABEÇALHO (HEADER) E LOGO
   ========================================= */
.header { 
    padding: 15px 0; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    background: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(8px); 
    z-index: 1000; 
    border-bottom: 1px solid var(--border-color); 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

/* =========================================
   SECÇÃO HERO E ANIMAÇÕES INICIAIS
   ========================================= */
.hero { 
    padding: 160px 0 100px; 
    text-align: center; 
    background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.95)), url('img/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero p { 
    max-width: 750px; 
    margin: 0 auto 2.5rem; 
    font-size: 1.2rem; 
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 { animation: fadeInUp 0.8s ease-out forwards; }
.hero-content p { animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0; }
.hero-content .btn-primary { animation: fadeInUp 0.8s ease-out 0.4s forwards; opacity: 0; }

/* =========================================
   LAYOUTS E GRIDS
   ========================================= */
section { 
    padding: 80px 0; 
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 40px; 
    justify-content: center; 
}

/* =========================================
   CARDS DE BENEFÍCIOS
   ========================================= */
.card { 
    background: var(--bg-card); 
    padding: 40px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    transition: var(--transition); 
}

.card:hover { 
    border-color: var(--primary-color); 
    transform: translateY(-5px); 
}

.card-icon { 
    font-size: 2.5rem; 
    color: var(--highlight); 
    margin-bottom: 20px; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.2) translateY(-5px);
    text-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* =========================================
   SECÇÃO DE PACOTES (Efeitos Premium)
   ========================================= */
.pacotes {
    background: radial-gradient(circle at center, #151515 0%, var(--bg-dark) 80%);
    position: relative;
}

.price-card { 
    position: relative; 
    background: linear-gradient(145deg, #151515, #0d0d0d);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--primary-color);
}

.price-card ul { list-style: none; margin-bottom: 2rem; }
.price-card li { margin-bottom: 15px; color: var(--text-light); display: flex; align-items: center; gap: 10px; }
.price-card li i { color: var(--highlight); }
.price { font-family: var(--font-title); font-size: 2rem; font-weight: 800; color: var(--text-light); margin-bottom: 1.5rem; }

.highlight-card { 
    border: 2px solid var(--primary-color); 
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.05); }
    50% { box-shadow: 0 0 50px rgba(212, 175, 55, 0.4), inset 0 0 30px rgba(212, 175, 55, 0.1); }
    100% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.05); }
}

.highlight-card:hover {
    animation: glowPulse 2s infinite;
}

.badge { 
    position: absolute; 
    top: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--highlight); 
    color: #000; 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-weight: 800; 
    font-size: 0.8rem; 
    font-family: var(--font-title); 
    text-transform: uppercase; 
}

/* =========================================
   FAQ (Perguntas Frequentes)
   ========================================= */
.faq-list { 
    max-width: 800px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.faq-item { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    overflow: hidden; 
    transition: var(--transition);
}

.faq-item[open] {
    background: rgba(212, 175, 55, 0.03);
    border-color: var(--primary-color);
}

.faq-item summary { 
    padding: 25px; 
    font-family: var(--font-title); 
    font-weight: 600; 
    cursor: pointer; 
    list-style: none; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; /* Cria um espaço de segurança para a seta nunca colar no texto */
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\f0d7'; font-family: 'FontAwesome'; color: var(--primary-color); }
.faq-item[open] summary::after { content: '\f0d8'; }
.faq-item p { padding: 0 25px 25px; margin: 0; border-top: 1px solid var(--border-color); padding-top: 20px; }

/* =========================================
   FORMULÁRIO DE AGENDAMENTO E SELECT CUSTOMIZADO
   ========================================= */
.form-box { 
    background: var(--bg-card); 
    padding: 50px; 
    border-radius: 8px; 
    border: 1px solid var(--border-color); 
    max-width: 600px; 
    margin: 0 auto; 
}

.input-group { margin-bottom: 25px; }
.input-group label { display: block; margin-bottom: 10px; font-weight: 600; font-family: var(--font-title); font-size: 0.9rem; }

/* Campos de texto nativos */
.input-group input { 
    width: 100%; 
    padding: 16px; 
    border-radius: 4px; 
    border: 1px solid var(--border-color); 
    background: var(--bg-dark); 
    color: var(--text-light); 
    font-family: var(--font-text); 
    font-size: 1rem; 
    transition: var(--transition);
}

.input-group input:hover {
    border-color: var(--highlight);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.input-group input:focus { 
    outline: none; 
    border-color: var(--highlight); 
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

/* Estrutura do Select Customizado */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    display: block;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-text);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

/* Brilho dourado/amarelo ao passar o rato ou clicar no campo select */
.custom-select-trigger:hover, 
.custom-select.open .custom-select-trigger {
    border-color: var(--highlight);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.02);
}

.custom-options {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 10;
    margin-top: 5px;
    overflow: hidden;
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    display: block;
    padding: 15px;
    color: var(--text-light);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* A COR DOURADA EXATA AO PASSAR O RATO NAS OPÇÕES */
.custom-option:hover,
.custom-option.selected {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 600;
}

.feedback-msg { 
    text-align: center; 
    margin-top: 20px; 
    font-weight: 600; 
    display: none; 
}

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */
.footer { 
    background: #000; 
    border-top: 1px solid var(--border-color); 
    padding: 60px 0 20px; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.logo-img-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-info p { margin-bottom: 5px; font-size: 0.9rem; }
.footer-info i { color: var(--primary-color); margin-right: 8px; }

.social-links { display: flex; gap: 20px; }
.social-links a { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    background: var(--bg-card); 
    color: var(--primary-color); 
    font-size: 1.2rem; 
    transition: var(--transition); 
    text-decoration: none; 
}

.social-links a:hover { 
    background: var(--primary-color); 
    color: #000; 
    transform: translateY(-3px); 
}

.footer-bottom { 
    border-top: 1px solid var(--border-color); 
    padding-top: 20px; 
    font-size: 0.8rem; 
}

/* =========================================
   ESTILO DE SUBTÍTULOS E LINHAS DECORATIVAS (Desktop & Mobile)
   ========================================= */
.section-subtitle {
    display: block;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 8px;
}

/* Linha fina decorativa elegante abaixo dos títulos em computadores */
h2.section-title {
    position: relative;
    padding-bottom: 15px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* =========================================
   RESPONSIVIDADE PADRÃO (Mobile até 768px)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Trava global: OBRIGA tudo a respeitar as larguras e margens */
    *, *::before, *::after { box-sizing: border-box !important; }
    html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0; }

    /* 2. Container: Respiro padrão de 20px (perfeito para qualquer telemóvel) */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px; 
        margin: 0 auto;
    }

    /* 3. Estruturas Gerais */
    section { padding: 50px 0; }
    .hero { padding: 120px 0 60px; background-attachment: scroll; background-position: center top; }
    
    /* 4. Tipografia Mobile & Ajuste da Linha dos Títulos */
    h1 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 1rem; }
    
    h2.section-title { 
        font-size: 1.4rem; 
        line-height: 1.3; 
        margin-bottom: 1.5rem; 
        padding: 0 0 12px 0; 
        position: relative; 
    }

    h2.section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
    }

    .hero p { font-size: 0.95rem; }

    /* 5. Header */
    .header-flex .btn-primary { display: none; } 
    .logo-img { height: 35px; }

    /* 6. Grids (Força 1 coluna exata) */
    .grid-2, .grid-3 { 
        display: grid; 
        grid-template-columns: 1fr; 
        gap: 30px; 
        width: 100%; 
    }

    /* 7. Blindagem dos Cards e Formulário para não vazarem */
    .card, .price-card, .form-box, .faq-item {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
        margin: 0; 
    }

    /* Ajuste da tag 'MAIS ESCOLHIDO' */
    .price-card { position: relative; }
    .price-card .badge { 
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap; 
    }

    /* 8. Elementos soltos */
    .faq-item summary { padding: 15px; font-size: 0.9rem; gap: 10px; }
    .price { font-size: 1.5rem; }
    .btn-primary:active, .custom-select-trigger:active { transform: scale(0.96); }

    /* 9. Rodapé */
    .logo-img-footer { height: 50px; }
    .footer { padding: 40px 0 20px; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .social-links { justify-content: center; }
    .footer-bottom { 
        font-size: 0.75rem; 
        padding: 15px 10px 0; 
        white-space: normal; 
        text-align: center; 
    }
}