/* ==========================================================================
   Base & Variáveis
   ========================================================================== */
:root {
    --primary-color: #0A2540;
    --secondary-color: #20C997;
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --transition-speed: 0.3s;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--text-color); line-height: 1.6; background-color: var(--white); scroll-behavior: smooth; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ==========================================================================
   Tipografia & Botões
   ========================================================================== */
h1, h2, h3, h4 { color: var(--primary-color); }

.btn {
    padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer;
    border: none; transition: all var(--transition-speed) ease; font-size: 1rem;
}
.btn-primary { background-color: var(--secondary-color); color: var(--white); }
.btn-primary:hover { background-color: #17a57c; transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }
.btn-large { padding: 15px 30px; font-size: 1.1rem; }
.btn-secondary { background-color: var(--primary-color); color: var(--white); }
.btn-secondary:hover { background-color: #07192b; transform: translateY(-2px); }
.btn-block { width: 100%; margin-top: 10px; padding: 15px; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar { padding: 20px 0; background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; }
.logo span { color: var(--secondary-color); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: 500; transition: color var(--transition-speed); }
.nav-links a:hover { color: var(--secondary-color); }
.nav-actions { display: flex; gap: 15px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { background-color: var(--primary-color); color: var(--white); padding: 100px 0; text-align: center; }
.hero h2 { color: var(--white); font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px auto; opacity: 0.9; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }

/* ==========================================================================
   Depoimentos (Imagem com Baixa Opacidade)
   ========================================================================== */
.depoimentos-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1920&q=80'); 
    background-size: cover; background-position: center; background-attachment: fixed; padding: 100px 0;
}
.overlay-idosos { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 37, 64, 0.85); z-index: 1; }
.relative-content { position: relative; z-index: 2; }
.text-white { color: var(--white) !important; }
.section-subtitle { text-align: center; font-size: 1.2rem; margin-top: -40px; margin-bottom: 50px; opacity: 0.9; }

.testimonial-card { display: flex; flex-direction: column; gap: 15px; border-top: 4px solid var(--secondary-color); }
.testimonial-card.bg-secondary { background-color: var(--secondary-color); border-top: 4px solid var(--white); color: var(--white); transform: scale(1.05); }
.testimonial-card.bg-secondary p, .testimonial-card.bg-secondary h5, .testimonial-card.bg-secondary span { color: var(--white); }
.testimonial-author { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.testimonial-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); }
.testimonial-author h5 { margin: 0; font-size: 1.1rem; color: var(--primary-color); }
.testimonial-author span { font-size: 0.85rem; color: #888; }

/* ==========================================================================
   Seções & Cards
   ========================================================================== */
.section { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform var(--transition-speed); }
.card:hover { transform: translateY(-5px); }
.card h4 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-color); }
.footer { background-color: var(--primary-color); color: var(--white); text-align: center; padding: 30px 0; font-size: 0.9rem; opacity: 0.8; }

/* ==========================================================================
   Modais (Waitlist & App)
   ========================================================================== */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(10, 37, 64, 0.8); backdrop-filter: blur(5px); align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background-color: var(--white); padding: 40px; border-radius: 12px; width: 90%; max-width: 450px;
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: modalFadeIn 0.3s ease; text-align: left;
}
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; color: #999; cursor: pointer; }
.close-modal:hover { color: var(--primary-color); }
.modal-content h3 { font-size: 1.6rem; margin-bottom: 10px; color: var(--primary-color); }
.modal-content p { font-size: 0.95rem; margin-bottom: 25px; color: #666; }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: var(--primary-color); }
.input-group input, .input-group select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem;
    font-family: var(--font-family); transition: border-color var(--transition-speed); background-color: var(--white);
}
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2); }

/* Feedback Visual (Inputs) */
.input-group input.is-valid { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2); }
.input-group input.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2); }

/* ==========================================================================
   Toast Notification (À Prova de Falhas)
   ========================================================================== */
.toast {
    opacity: 0; pointer-events: none; min-width: 300px; max-width: 400px; background-color: var(--white);
    color: var(--primary-color); text-align: left; border-radius: 8px; padding: 16px; position: fixed;
    z-index: 99999; right: 20px; bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 6px solid var(--secondary-color); display: flex; align-items: flex-start; gap: 15px;
    transform: translateX(50px); transition: all 0.4s ease;
}
.toast.show { opacity: 1; pointer-events: auto; transform: translateX(0); }
.toast-icon { font-size: 1.5rem; }
.toast-content { flex-grow: 1; }
.toast-title { margin: 0 0 5px 0; font-size: 1.1rem; color: var(--primary-color); }
.toast-message { margin: 0; font-size: 0.9rem; color: #555; line-height: 1.4; }
.close-toast { cursor: pointer; font-size: 1.2rem; color: #999; }
.close-toast:hover { color: var(--primary-color); }

/* ==========================================================================
   Responsividade (Mobile Gold Standard)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .logo { font-size: 1.4rem; }
    .nav-actions .btn { padding: 8px 15px; font-size: 0.9rem; }
    .hero h2 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .testimonial-card.bg-secondary { transform: scale(1); }
}