/* ========================================================================
   ACFINTEC — Design System
   Paleta: azul de confiança (fintech) sobre neutros frios, com navy profundo
   para hero/CTA. Tipografia: Sora (títulos, geométrica, moderna) + Inter
   (corpo, alta legibilidade em textos financeiros/tabelas).
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Cor de marca */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #93c5fd;
    --navy: #1a365d;

    /* Estado */
    --success: #059669;
    --danger-color: #dc2626;
    --warning: #f59e0b;

    /* Neutros */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Tipografia */
    --font-display: 'Sora', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --header-height: 68px;
    --mobile-nav-height: 64px;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: var(--gray-900);
}
p { margin: 0 0 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* ===== Botões genéricos ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--primary-color); color: var(--white); padding: 0.75rem 2rem; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 0.875rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* ===== Layout principal ===== */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1 0 auto; }

/* ========================================================================
   NAVBAR (cliente) — topo fixo com blur; vira barra de app no mobile
   quando o usuário está logado (nav inferior fixa com ícones).
   ======================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--gray-900); }
.navbar-brand .mark { background: var(--primary-color); color: var(--white); padding: 0.2rem 0.5rem; border-radius: 0.35rem; font-size: 1rem; }
.navbar-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.navbar-links a { text-decoration: none; color: var(--gray-600); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.navbar-links a:hover, .navbar-links a[aria-current="page"] { color: var(--primary-color); }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.navbar-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--gray-800); cursor: pointer; padding: 0.5rem; }

.navbar-mobile-panel {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--white);
    z-index: 99;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}
.navbar-mobile-panel.open { display: block; }
.navbar-mobile-panel a {
    display: block;
    padding: 0.9rem 0.5rem;
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--gray-100);
}

/* ========================================================================
   NAVEGAÇÃO INFERIOR ESTILO APP (mobile/tablet, área logada do cliente)
   Elemento "assinatura" responsivo: em telas pequenas, a área logada do
   cliente se comporta como um app nativo com tab bar fixa.
   ======================================================================== */
.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--mobile-nav-height);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--gray-200);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.app-bottom-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    height: var(--mobile-nav-height);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}
.app-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 0.7rem;
    font-weight: 600;
}
.app-bottom-nav a i { font-size: 1.2rem; }
.app-bottom-nav a[aria-current="page"] { color: var(--primary-color); }

/* ========================================================================
   ÁREA ADMINISTRATIVA — sidebar no desktop, vira tab bar/drawer no mobile
   ======================================================================== */
.admin-shell { display: flex; min-height: 100vh; background: var(--gray-50); }
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--gray-900);
    color: var(--gray-200);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-sidebar-brand { display: flex; align-items: center; gap: 0.6rem; padding: 1.5rem 1.25rem; font-family: var(--font-display); font-weight: 700; color: var(--white); }
.admin-sidebar-brand .mark { background: var(--primary-color); padding: 0.2rem 0.5rem; border-radius: 0.35rem; }
.admin-nav { list-style: none; margin: 0; padding: 0.5rem; flex: 1; }
.admin-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-radius: 0.5rem;
    text-decoration: none; color: var(--gray-300); font-size: 0.92rem; font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.admin-nav a[aria-current="page"] { background: var(--primary-color); color: var(--white); }
.admin-nav a i { width: 1.2rem; text-align: center; }
.admin-sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-footer a { color: var(--gray-300); text-decoration: none; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }

.admin-content { flex: 1; min-width: 0; }
.admin-topbar {
    height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; background: var(--white); border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; z-index: 10;
}
.admin-topbar-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray-700); }
.admin-page { padding: 1.5rem; }

.admin-mobile-tabbar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--gray-900); height: var(--mobile-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.admin-mobile-tabbar ul { list-style: none; margin: 0; padding: 0; height: var(--mobile-nav-height); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.admin-mobile-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; text-decoration: none; color: var(--gray-400); font-size: 0.68rem; font-weight: 600; }
.admin-mobile-tabbar a i { font-size: 1.15rem; }
.admin-mobile-tabbar a[aria-current="page"] { color: var(--primary-light); }

/* ===== Cards de dashboard (cliente e admin) ===== */
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.stat-card .stat-label { color: var(--gray-500); font-size: 0.85rem; font-weight: 500; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--gray-900); margin-top: 0.25rem; }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(37,99,235,0.1); color: var(--primary-color); margin-bottom: 0.75rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

.data-table-wrapper { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; overflow-x: auto; }
.data-table-search { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--gray-200); background: var(--white); }
.data-table-search input { max-width: 320px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; padding: 0.9rem 1.25rem; background: var(--gray-50); color: var(--gray-500); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.data-table td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: var(--gray-100); color: var(--gray-600); }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--gray-500); }
.empty-state i { font-size: 2.5rem; color: var(--gray-300); margin-bottom: 0.75rem; display: block; }

/* ===== Formulários (auth, contato, admin) ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; color: var(--gray-700); margin-bottom: 0.3rem; font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 0.7rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius);
    font-size: 1rem; font-family: inherit; color: var(--gray-800); background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* ===== Páginas de autenticação (login/registro de cliente) ===== */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1rem; background: var(--gray-50);
}
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 420px; width: 100%; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .auth-subtitle { text-align: center; color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--gray-500); }
.auth-footer a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ===== Páginas simples (about/contact/404 etc.) ===== */
.page-hero { background: var(--gray-50); padding: 3rem 1rem; text-align: center; border-bottom: 1px solid var(--gray-200); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p { color: var(--gray-500); max-width: 600px; margin: 0 auto; }
.page-section { padding: 3rem 1rem; }

/* ===== Rodapé (cliente) ===== */
.site-footer { background: var(--gray-900); color: var(--gray-300); padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--gray-400); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--white); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; color: var(--gray-500); }

/* ========================================================================
   COMPONENTES DE MARKETING (home, services, advantages, faq, cta, impact)
   Centralizados aqui para não duplicar CSS entre a home e as páginas
   standalone equivalentes (services.php, faq.php etc. reaproveitam as
   mesmas classes via include).
   ======================================================================== */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-eyebrow {
    display: inline-block; background: rgba(37, 99, 235, 0.1); color: var(--primary-color);
    padding: 0.25rem 1rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--gray-900); }
.section-title-highlight { color: var(--primary-color); }
.section-subtitle { color: var(--gray-500); max-width: 600px; margin: 0.5rem auto 0; font-size: clamp(0.95rem, 1.2vw, 1.05rem); }

/* ===== Hero ===== */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-color) 50%, var(--primary-dark) 100%);
    color: var(--white); padding: 4rem 1rem; position: relative; overflow: hidden;
    min-height: 500px; display: flex; align-items: center; justify-content: center; width: 100%;
}
.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255,255,255,0.03); }
.hero-blob-top { top: -200px; right: -100px; width: 500px; height: 500px; }
.hero-blob-bottom { bottom: -200px; left: -100px; width: 600px; height: 600px; background: rgba(255,255,255,0.02); }
.hero-container { position: relative; z-index: 2; }
.hero-content { text-align: center; animation: fadeInUp 0.8s ease; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.12); padding: 0.4rem 1.2rem; border-radius: 50px; font-size: 0.875rem; margin-bottom: 1rem; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; line-height: 1.15; }
.hero-title-highlight { color: var(--primary-light); background: linear-gradient(135deg, var(--primary-light), #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-title-highlight-solid { color: var(--primary-light); }
.hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,0.9); margin: 0 auto 1.5rem; max-width: 650px; line-height: 1.6; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.btn-hero-primary, .btn-hero-outline { padding: 0.75rem 2rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease; text-decoration: none; }
.btn-hero-primary { background: var(--white); color: var(--primary-color); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-hero-outline { border: 2px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-hero-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.hero-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; opacity: 0.9; }
.hero-trust-item i { color: var(--primary-light); font-size: 1.2rem; }

/* ===== Impact ===== */
.impact-section { padding: 3rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); width: 100%; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.impact-card { text-align: center; padding: 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.impact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.impact-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.impact-number { font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 700; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.impact-label { color: var(--gray-500); font-size: 0.875rem; font-weight: 500; }

/* ===== Services ===== */
.services-section { padding: 4rem 1rem; width: 100%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, transform 0.3s ease; border-top: 4px solid var(--service-color); display: flex; flex-direction: column; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.service-icon { font-size: 2.5rem; margin-bottom: 0.5rem; background: var(--service-color); padding: 0.5rem; border-radius: var(--radius); color: white; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-title { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--gray-900); font-weight: 700; }
.service-description { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.5; flex-grow: 1; }
.service-features { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.service-features li { padding: 0.2rem 0; font-size: 0.875rem; color: var(--gray-600); display: flex; align-items: center; gap: 0.5rem; }
.service-features li i { color: var(--service-color); }
.service-cta { width: 100%; border-radius: 50px; font-weight: 500; border: 1px solid var(--service-color); color: var(--service-color); background: transparent; text-align: center; padding: 0.5rem; transition: background 0.3s ease, color 0.3s ease; text-decoration: none; display: block; }
.service-cta:hover { background: var(--service-color); color: white; }
.services-footer { text-align: center; margin-top: 2rem; }
.services-footer p { color: var(--gray-500); margin-bottom: 1rem; }
.services-footer-cta { padding: 0.75rem 2.5rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }

/* ===== Advantages ===== */
.advantages-section { padding: 4rem 1rem; background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%); width: 100%; }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.advantage-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.advantage-item:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.advantage-icon { flex-shrink: 0; font-size: 2rem; background: rgba(37, 99, 235, 0.1); padding: 0.5rem; border-radius: var(--radius); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.advantage-title { font-size: 1.05rem; margin-bottom: 0.25rem; color: var(--gray-900); font-weight: 600; }
.advantage-description { color: var(--gray-500); font-size: 0.875rem; margin: 0; line-height: 1.5; }

/* ===== FAQ ===== */
.faq-section { padding: 4rem 1rem; background: var(--gray-50); width: 100%; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question { width: 100%; padding: 1rem 1.25rem; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; font-weight: 500; color: var(--gray-800); text-align: left; gap: 1rem; transition: background 0.2s ease; }
.faq-question:hover { background: var(--gray-50); }
.faq-icon { flex-shrink: 0; font-size: 1.2rem; color: var(--primary-color); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 1.25rem; background: var(--gray-50); transition: max-height 0.4s ease; }
.faq-answer p { padding: 1rem 0; margin: 0; color: var(--gray-600); line-height: 1.6; font-size: 0.95rem; opacity: 0; transition: opacity 0.3s ease 0.1s; }
.faq-question[aria-expanded="true"] + .faq-answer p { opacity: 1; }

/* ===== CTA ===== */
.cta-section { padding: 3rem 1rem; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); position: relative; overflow: hidden; width: 100%; }
.cta-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.cta-blob-top { top: -200px; right: -100px; width: 600px; height: 600px; background: rgba(255,255,255,0.03); }
.cta-blob-bottom { bottom: -150px; left: -100px; width: 400px; height: 400px; background: rgba(255,255,255,0.02); }
.cta-container { position: relative; z-index: 2; text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-emoji { font-size: 3rem; margin-bottom: 1rem; }
.cta-title { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-title-highlight { color: var(--primary-light); }
.cta-subtitle { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; font-size: clamp(0.95rem, 1.2vw, 1.1rem); line-height: 1.6; }
.cta-btn-primary, .cta-btn-outline { padding: 0.875rem 2.5rem; border-radius: 50px; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease; }
.cta-btn-primary { background: var(--white); color: var(--primary-color); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.cta-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.cta-btn-outline { border: 2px solid rgba(255,255,255,0.4); color: var(--white); }
.cta-btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.cta-footnote { margin-top: 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.cta-footnote i { color: var(--success); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 3rem 1rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: clamp(1.5rem, 8vw, 2rem) !important; }
    .hero-actions .btn, .cta-actions .btn, .hero-actions a, .cta-actions a { width: 100%; justify-content: center; }
    .hero-actions, .cta-actions { flex-direction: column; width: 100%; }
}

/* ========================================================================
   RESPONSIVIDADE — comportamento "estilo app" em smartphones/tablets
   (nav inferior, sidebar admin vira drawer/tabbar).
   ======================================================================== */
@media (max-width: 900px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: inline-flex; }

    .admin-sidebar {
        display: flex;
        position: fixed;
        top: 0; bottom: 0; left: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 200;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-topbar-toggle { display: inline-flex; }
    .admin-sidebar-overlay {
        display: none;
        position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 190;
    }
    .admin-sidebar-overlay.open { display: block; }
}

@media (max-width: 640px) {
    /* Cliente logado: navegação vira barra inferior fixa, como um app. */
    body.is-app-mode { padding-bottom: var(--mobile-nav-height); }
    body.is-app-mode .app-bottom-nav { display: block; }
    body.is-app-mode .site-footer { display: none; }

    /* Admin: sidebar já ocultada acima; no celular vira tab bar inferior. */
    body.is-admin-app .admin-page { padding-bottom: calc(var(--mobile-nav-height) + 1rem); }
    body.is-admin-app .admin-mobile-tabbar { display: block; }

    .container { padding: 0 0.875rem; }
    .auth-card { padding: 1.75rem; }
}
