/* style-complexa.css */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --primary-dark: #0056b3;
    --secondary-color: #6c757d; /* Cinza neutro */
    --accent-color: #ffc107; /* Amarelo para destaque */
    --light-bg: #f8f9fa; /* Fundo claro para seções */
    --dark-bg: #343a40; /* Fundo escuro para rodapé */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Merriweather', serif;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-strong: 0 8px 25px rgba(0,0,0,0.15);
    --transition-speed: 0.3s;
}

/* Reset básico e configurações globais */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para REM */
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden; /* Previne scroll horizontal */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Navbar --- */
.navbar {
    background-color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: padding var(--transition-speed) ease;
}
.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-medium);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
}
.nav-links ul {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Botão Hamburger para Mobile */
.nav-toggle {
    display: none; /* Escondido por padrão */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    position: relative;
    transition: background-color 0s 0.1s; /* Delay para sumir a barra do meio */
}
.hamburger::before, .hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    position: absolute;
    left: 0;
    transition: transform 0.2s ease-in-out, top 0.2s 0.2s ease-in-out;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-open .hamburger { background-color: transparent; } /* Barra do meio some */
.nav-open .hamburger::before { top: 0; transform: rotate(45deg); transition: top 0.2s ease-in-out, transform 0.2s 0.2s ease-in-out; }
.nav-open .hamburger::after { top: 0; transform: rotate(-45deg); transition: top 0.2s ease-in-out, transform 0.2s 0.2s ease-in-out;}

/* --- Seções Comuns --- */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Botões --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}
.hero-complex .btn-outline { /* Específico para Hero */
    color: #fff;
    border-color: #fff;
}
.hero-complex .btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* --- Hero Complexo --- */
.hero-complex {
    min-height: 90vh;
    background: url('https://via.placeholder.com/1920x1080?text=Sua+Imagem+Hero+Impactante') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 100px 0; /* Padding para conteúdo não ficar colado nas bordas */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay escuro */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-complex h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero-complex p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
.hero-cta-buttons .btn {
    margin: 0 10px;
    padding: 15px 35px;
    font-size: 1.1rem;
}
/* Animação Pop-in */
.animate-pop-in {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    animation: popIn 0.6s ease-out forwards;
}
@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Funcionalidades Detalhadas --- */
.features-detailed {
    background-color: var(--light-bg);
}
.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-item-detailed {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: flex-start; /* Alinha ícone e texto no topo */
    gap: 20px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.feature-item-detailed:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.feature-icon-container {
    color: var(--primary-color);
    background-color: rgba(0,123,255,0.1); /* Fundo suave para o ícone */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Impede que o ícone encolha */
}
.feature-item-detailed h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.feature-item-detailed p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Depoimentos (Testimonials) --- */
.testimonials {
    background-color: #fff; /* Ou uma cor de fundo sutil */
}
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Essencial para o slider */
}
.testimonial-card {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-light);
    display: none; /* Escondido por JS */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.testimonial-card.current {
    display: block;
    opacity: 1;
}
.testimonial-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}
.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}
.testimonial-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}
.slider-controls {
    position: absolute;
    top: 50%;
    left: -20px; /* Ajustar para fora do card */
    right: -20px; /* Ajustar para fora do card */
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10; /* Para ficar sobre os cards */
}
.slider-controls button {
    background-color: rgba(255,255,255,0.8);
    border: none;
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-light);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}
.slider-controls button:hover {
    background-color: var(--primary-color);
    color: #fff;
}
.slider-dots {
    text-align: center;
    margin-top: 30px;
}
.slider-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}
.slider-dots .dot.active {
    background-color: var(--primary-color);
}


/* --- Tabela de Preços (Pricing Table) --- */
.pricing-table {
    background-color: var(--light-bg);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Para que os cards tenham a mesma altura se o conteúdo variar */
}
.pricing-plan {
    background-color: #fff;
    padding: 35px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}
.pricing-plan.recommended {
    border: 3px solid var(--primary-color);
    transform: scale(1.05); /* Destaca o plano */
    position: relative;
}
.pricing-plan.recommended:hover {
     transform: scale(1.08) translateY(-5px);
}
.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}
.pricing-plan h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.pricing-plan.recommended h3 {
    color: var(--primary-color); /* Manter a cor ou ajustar */
}
.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-plan ul {
    list-style: none;
    margin: 25px 0;
    text-align: left;
    flex-grow: 1; /* Faz a lista crescer para empurrar o botão para baixo */
}
.pricing-plan ul li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.pricing-plan ul li i {
    color: var(--success-color);
    margin-right: 10px;
}
.pricing-plan ul li i.fa-times-circle {
    color: var(--danger-color);
}
.pricing-plan .btn {
    margin-top: auto; /* Empurra o botão para o final do card */
    width: 100%;
}

/* --- FAQ (Perguntas Frequentes) --- */
.faq-section {
    background-color: #fff;
}
.faq-item {
    background-color: var(--light-bg);
    margin-bottom: 15px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    overflow: hidden; /* Para que o conteúdo não vaze durante a animação */
}
.faq-question {
    background-color: transparent;
    border: none;
    width: 100%;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}
.faq-question:hover {
    background-color: rgba(0,123,255,0.05);
}
.faq-question i {
    transition: transform var(--transition-speed) ease;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Transição suave */
}
.faq-answer p {
    padding: 0 20px 20px; /* Padding apenas quando aberto */
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    /* max-height é setado via JS para um valor grande o suficiente */
}


/* --- Formulário de Contato --- */
.contact-form-section {
    background-color: var(--light-bg);
}
.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -40px auto 40px; /* Ajuste para ficar mais próximo do título */
    font-size: 1.05rem;
}
#complexContactForm {
    background-color: #fff;
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-medium);
    max-width: 800px;
    margin: 0 auto;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    flex: 1; /* Ocupa espaço igual na linha */
    margin-bottom: 20px; /* Espaçamento para quando não está em .form-row */
}
#complexContactForm label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}
#complexContactForm input[type="text"],
#complexContactForm input[type="email"],
#complexContactForm input[type="tel"],
#complexContactForm textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
#complexContactForm input:focus,
#complexContactForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#complexContactForm textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
    min-height: 120px;
}
.btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit i {
    font-size: 1rem;
}
.error-message {
    display: block;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1.2em; /* Para não "pular" o layout */
}
.form-feedback-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    font-weight: 500;
    display: none; /* Escondido por padrão */
}
.form-feedback-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
.form-feedback-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}


/* --- Rodapé Complexo --- */
.complex-footer {
    background-color: var(--dark-bg);
    color: #adb5bd; /* Cor de texto mais clara para contraste */
    padding: 60px 0 30px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h4 {
    font-family: var(--font-primary); /* Ou var(--font-secondary) se preferir */
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after { /* Pequena linha decorativa */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}
.footer-column p, .footer-column ul li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul a {
    color: #adb5bd;
    text-decoration: none;
    transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
}
.footer-column ul a:hover {
    color: #fff;
    padding-left: 5px; /* Efeito sutil de hover */
}
.footer-column p i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px; /* Para alinhar os ícones */
    text-align: center;
}
.social-links-footer a {
    color: #adb5bd;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.social-links-footer a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}
.social-links-footer a:last-child {
    margin-right: 0;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #495057; /* Linha sutil */
    font-size: 0.9rem;
}
.copyright i.fa-heart {
    color: var(--primary-color); /* Coração com cor de destaque */
}

/* --- Botão Voltar ao Topo --- */
#scrollTopBtn {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: background-color var(--transition-speed) ease, opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    opacity: 0.8;
}
#scrollTopBtn:hover {
    background-color: var(--primary-dark);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .hero-complex h1 { font-size: 2.8rem; }
    .hero-complex p { font-size: 1.1rem; }
    .section-title { font-size: 2.4rem; }
    .form-row { flex-direction: column; gap: 0; } /* Coloca inputs um abaixo do outro */
}

@media (max-width: 768px) {
    .nav-toggle { display: block; } /* Mostra o hamburger */
    .nav-links {
        position: absolute;
        top: 100%; /* Logo abaixo da navbar */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: var(--shadow-light);
        flex-direction: column;
        align-items: center;
        max-height: 0; /* Escondido por padrão */
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .nav-open .nav-links {
        max-height: 500px; /* Altura suficiente para os links */
        padding: 10px 0;
    }
    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 10px;
    }
    .nav-links a::after { display: none; } /* Remove sublinhado no mobile */

    .hero-complex h1 { font-size: 2.2rem; }
    .hero-complex p { font-size: 1rem; }
    .hero-cta-buttons .btn { margin: 10px 0; display: block; width: fit-content; margin-left:auto; margin-right:auto; }
    .section-title { font-size: 2rem; }
    .features-detailed-grid, .pricing-grid { grid-template-columns: 1fr; } /* Uma coluna */
    .testimonial-slider { padding: 0 15px; /* Espaço para os botões não ficarem colados */ }
    .slider-controls { left: 0; right: 0; }
    .slider-controls button { padding: 8px 12px; font-size: 1rem; }
    .footer-columns { grid-template-columns: 1fr; text-align: center; }
    .footer-column h4::after { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
    .hero-complex h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .price { font-size: 2.5rem; }
    #complexContactForm { padding: 25px; }
    .btn { padding: 10px 20px; font-size: 0.9rem; }
    .hero-cta-buttons .btn { padding: 12px 25px; }
}