/* 
   MAGPAY - CSS stylesheet
   Aesthetics: Premium, Modern Fintech, Smooth Micro-animations, Harmonious Green/Dark Palettes
*/

/* ---------------------------------- */
/* 1. Design System & CSS Variables   */
/* ---------------------------------- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Color Palette */
    --color-primary: #1ECA53;        /* Verde MagPay Vibrante */
    --color-primary-hover: #17A343;  /* Verde Escuro */
    --color-primary-light: #ecfdf5;  /* Verde ultra leve */
    --color-primary-glow: rgba(16, 185, 129, 0.25);
    
    --color-dark: #0f172a;           /* Slate 900 (Fundo escuro premium) */
    --color-dark-soft: #1e293b;      /* Slate 800 */
    --color-dark-light: #334155;     /* Slate 700 */
    
    --color-light: #f8fafc;          /* Slate 50 (Fundo claro suave) */
    --color-light-card: #ffffff;     /* Card puro */
    
    --color-text-dark: #0f172a;      /* Texto principal escuro */
    --color-text-muted: #64748b;     /* Texto secundário (Slate 500) */
    --color-text-light: #f1f5f9;     /* Texto claro em fundos escuros */
    --color-text-gray: #94a3b8;      /* Cinza intermediário */
    
    --border-color: #e2e8f0;         /* Slate 200 */
    --border-color-glow: rgba(16, 185, 129, 0.15);

    /* Layout & Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -10px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 15px 30px -10px rgba(16, 185, 129, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------- */
/* 2. Resets & Base Styles            */
/* ---------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-dark);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

.container-sm {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-text-light);
}

.text-white {
    color: #ffffff !important;
}

.text-gray {
    color: var(--color-text-gray) !important;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.align-center {
    align-items: center;
}

/* ---------------------------------- */
/* 3. Buttons & UI Elements           */
/* ---------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-hover);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Tags */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-hover);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 15px;
}

.tag-primary {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--color-primary);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.section-subtitle-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------------------------------- */
/* 4. Navbar Styles (Glassmorphism)   */
/* ---------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    color: var(--color-dark);
}

.logo span {
    color: var(--color-primary);
}

.nav-menu {
    display: none; /* Mobile first hidden */
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn-desktop {
    display: none;
}

/* Hamburger menu */
.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1010;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-fast);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Menu Opened State */
@media (max-width: 991px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        padding: 100px 40px 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.08);
        z-index: 1005;
        gap: 25px;
    }

    .nav-link {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--color-dark);
        border-bottom: 2px solid transparent;
        padding-bottom: 5px;
    }

    .nav-link.active, .nav-link:hover {
        color: var(--color-primary);
        border-color: var(--color-primary);
    }
}

/* ---------------------------------- */
/* 5. Hero Section & Profile Cards   */
/* ---------------------------------- */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: #ffffff;
    overflow: hidden;
}

/* Glow effects in Hero background */
.hero-glow-1 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    left: -200px;
    z-index: 1;
    filter: blur(40px);
}

.hero-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(255,255,255,0) 70%);
    bottom: -150px;
    right: -200px;
    z-index: 1;
    filter: blur(40px);
}

.hero-container {
    position: relative;
    z-index: 5;
}

.hero-header {
    margin-bottom: 60px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--color-dark);
    line-height: 1.15;
}

.hero-title span {
    color: var(--color-primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(16, 185, 129, 0.2);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-top: 15px;
    font-weight: 500;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.profile-card {
    position: relative;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-slow);
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
    z-index: 1;
}

/* Fallback Gradients & Generated Image Backdrops */
#bg-igrejas {
    background-color: #1e293b;
    background-image: url('assets/igrejas.png');
}
#bg-futebol {
    background-color: #064e3b;
    background-image: url('assets/futebol.png');
}
#bg-ongs {
    background-color: #0c4a6e;
    background-image: url('assets/ongs.png');
}
#bg-prefeituras {
    background-color: #312e81;
    background-image: url('assets/prefeituras.png');
}
#bg-caps {
    background-color: #701a75;
    background-image: url('assets/caps.png');
}
#bg-influenciadores {
    background-color: #581c87;
    background-image: url('assets/influenciadores.png');
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
    transition: var(--transition-normal);
}

.card-content {
    position: relative;
    z-index: 4;
    padding: 30px;
    width: 100%;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    margin-bottom: 20px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-normal);
}

.card-action svg {
    transition: var(--transition-fast);
}

/* Hover States */
.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.profile-card:hover::before {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.profile-card:hover .card-bg {
    transform: scale(1.08);
}

.profile-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.profile-card:hover .card-content {
    transform: translateY(0);
}

.profile-card:hover .card-desc {
    opacity: 1;
    height: auto;
    margin-top: 5px;
}

.profile-card:hover .card-action {
    color: #ffffff;
}

.profile-card:hover .card-action svg {
    transform: translateX(4px);
}

/* ---------------------------------- */
/* 6. "Liberdade é tudo" & App Mockup */
/* ---------------------------------- */
.liberdade-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* App Mockup Rendering */
.liberdade-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.glowing-blob {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    filter: blur(20px);
}

.phone-mockup {
    position: relative;
    width: 290px;
    height: 580px;
    background-color: #000000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(0,0,0,0.1);
    z-index: 5;
    border: 4px solid var(--color-dark-light);
}

.phone-speaker {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 12px;
    background-color: #1e293b;
    border-radius: 6px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
}

/* Inner App styles */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 16px 15px;
    background-color: #ffffff;
}

.app-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.app-logo span {
    color: var(--color-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.app-balance-card {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    color: #ffffff;
    margin: 0 16px 15px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15,23,42,0.15);
}

.balance-label {
    font-size: 0.75rem;
    color: var(--color-text-gray);
    display: block;
    margin-bottom: 5px;
}

.balance-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
}

.balance-meta {
    margin-top: 10px;
}

.trend {
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.trend.positive {
    color: var(--color-primary);
}

.app-quick-actions {
    display: flex;
    justify-content: space-between;
    margin: 0 16px 20px;
    gap: 8px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    cursor: pointer;
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: var(--transition-fast);
    border: 1px solid #f1f5f9;
}

.action-btn:hover .action-icon {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.action-btn span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.app-transactions {
    background-color: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.02);
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.transactions-header h4 {
    font-size: 0.8rem;
    color: var(--color-dark);
}

.transactions-header a {
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 600;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-icon.success {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.tx-icon.logo-tx {
    background-color: #eff6ff;
    color: #3b82f6;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
}

.tx-icon.alert-tx {
    background-color: #fff1f2;
    color: #f43f5e;
}

.tx-info {
    flex: 1;
}

.tx-info h5 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.tx-info span {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.tx-amount {
    font-size: 0.75rem;
    font-weight: 700;
}

.tx-amount.positive {
    color: var(--color-primary);
}

.tx-amount.negative {
    color: #f43f5e;
}

.app-footer {
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 24px;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.app-nav-item {
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.app-nav-item.active, .app-nav-item:hover {
    color: var(--color-primary);
}

/* ---------------------------------- */
/* 7. Benefícios Cards                */
/* ---------------------------------- */
.benefit-card {
    background-color: var(--color-light-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color-glow);
}

.benefit-icon {
    width: 54px;
    height: 54px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ---------------------------------- */
/* 8. Moeda Social (Coin Animation)   */
/* ---------------------------------- */
.coin-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.coin {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: spinCoin 6s infinite linear;
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    border: 8px solid #f59e0b; /* Bronze/Gold */
}

.coin-front {
    background: radial-gradient(circle, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 5rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.coin-back {
    background: radial-gradient(circle, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    transform: rotateY(180deg);
    font-size: 2.2rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.coin-shadow {
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80%;
    height: 15px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    filter: blur(8px);
    animation: shadowPulse 6s infinite linear;
}

@keyframes spinCoin {
    0% { transform: rotateY(0deg) translateY(0); }
    50% { transform: rotateY(180deg) translateY(-15px); }
    100% { transform: rotateY(360deg) translateY(0); }
}

@keyframes shadowPulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(0.8); opacity: 0.15; }
    100% { transform: scale(1); opacity: 0.4; }
}

.moeda-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--color-text-gray);
}

/* ---------------------------------- */
/* 9. FAQ (Accordion)                 */
/* ---------------------------------- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--color-light-card);
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding: 0 24px;
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding-bottom: 24px;
}

/* Active FAQ states */
.faq-item.active {
    border-color: var(--border-color-glow);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if content is long */
}

/* ---------------------------------- */
/* 10. Mídia Section                  */
/* ---------------------------------- */
.media-card {
    background-color: var(--color-light-card);
    border-radius: var(--radius-md);
    padding: 35px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.media-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.media-quote {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.media-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ---------------------------------- */
/* 11. Contato Section                */
/* ---------------------------------- */
.contato-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contato-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contato-detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contato-detail-item .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contato-detail-item h5 {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}

.contato-detail-item p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
}

.contato-form-container {
    background-color: var(--color-light-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--color-light);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* ---------------------------------- */
/* 12. Footer Styles                  */
/* ---------------------------------- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-text-gray);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-dark-soft);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.8rem;
}

/* ---------------------------------- */
/* 13. Animations & Reveal Effects    */
/* ---------------------------------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

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

/* Scroll reveal initial state (activated via JS) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--transition-normal);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------- */
/* 14. Responsive Media Queries       */
/* ---------------------------------- */

/* Tablet & Smaller Desktop */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .navbar {
        padding: 30px 0;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 35px;
    }
    
    .nav-link {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--color-dark-light);
        position: relative;
        padding: 5px 0;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-primary);
        transition: var(--transition-fast);
    }
    
    .nav-link.active, .nav-link:hover {
        color: var(--color-dark);
    }
    
    .nav-link.active::after, .nav-link:hover::after {
        width: 100%;
    }
    
    .nav-btn-desktop {
        display: inline-flex;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1.5fr 2fr;
        gap: 100px;
    }
}

/* ---------------------------------- */
/* 15. Liberdade Banner (Full-width)  */
/* ---------------------------------- */
.liberdade-banner {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a2f 50%, #064e3b 100%);
}

/* Animated gradient mesh in background */
.liberdade-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.liberdade-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.liberdade-banner-content {
    position: relative;
    z-index: 5;
}

.liberdade-banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.liberdade-banner-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* ---------------------------------- */
/* 16. App Services Section           */
/* ---------------------------------- */
.app-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.app-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.app-checklist li svg {
    flex-shrink: 0;
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    padding: 3px;
    border-radius: 50%;
    width: 22px;
    height: 22px;
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-dark);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-badge:hover {
    background-color: var(--color-dark-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: #ffffff;
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.badge-text span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.badge-text strong {
    font-size: 0.95rem;
    font-family: var(--font-heading);
}

/* ---------------------------------- */
/* 17. Dark Quote Banner              */
/* ---------------------------------- */
.quote-banner {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
    overflow: hidden;
}

.quote-banner::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.quote-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.quote-banner-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.quote-banner-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: -0.5px;
    border-left: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.quote-banner-text::before {
    content: '"';
    display: block;
    font-size: 5rem;
    color: var(--color-primary);
    line-height: 0.6;
    margin-bottom: 20px;
    font-family: Georgia, serif;
    opacity: 0.6;
}

/* ---------------------------------- */
/* 18. MAGPAY Empresas Section        */
/* ---------------------------------- */
.empresas-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.empresas-img-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.empresas-img-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: cover;
    background-position: center;
}

/* Decorative geometric shapes over the empresas card */
.empresas-img-bg::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    top: -60px;
    right: -60px;
}

.empresas-img-bg::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.2);
    bottom: 20px;
    left: 20px;
}

.empresas-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 5;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.empresas-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---------------------------------- */
/* Responsive for new sections        */
/* ---------------------------------- */
@media (min-width: 992px) {
    .liberdade-banner-title {
        font-size: 4.5rem;
    }

    .quote-banner-text {
        font-size: 2.8rem;
        max-width: 800px;
        margin: 0 auto;
    }
}

/* ---------------------------------- */
/* NEW STYLES FOR MAGPAY REDESIGN     */
/* ---------------------------------- */

/* Hero Section */
.hero-new {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background: url('assets/hero_bg_v3.png') center/cover no-repeat;
    display: flex;
    align-items: center;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}
.hero-container-new {
    position: relative;
    z-index: 5;
    padding-left: 80px;
    width: 100%;
}
.hero-text-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Sidebar */
.hero-social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}
.hero-social-sidebar a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: 0.3s;
    background: rgba(0,0,0,0.2);
}
.hero-social-sidebar a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Empresas Image Wrapper */
.empresas-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
.empresas-green-outline {
    position: absolute;
    inset: -15px 30px 15px -15px;
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    transform: rotate(-3deg);
    z-index: 1;
}
.empresas-image {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Cartão Section */
#cartao {
    padding: 0;
}
.cartao-green-box {
    background: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
    margin: -50px 0 50px;
    position: relative;
    z-index: 10;
}
.cartao-content {
    padding: 50px;
    color: #ffffff;
    flex: 1;
}
.cartao-title {
    font-size: 2.5rem;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 10px;
}
.cartao-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0.9;
}
.cartao-desc {
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}
.cartao-highlight {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
}
.cartao-app-text {
    font-size: 0.95rem;
    opacity: 0.9;
}
.cartao-image {
    flex: 1;
    background: url('assets/cartao_man.png') center/cover no-repeat;
    min-height: 400px;
}

/* Vantagens Grid */
.vantagens-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.vantagem-card {
    background: #ffffff;
    border: 1px solid var(--color-primary);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.vantagem-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.vantagem-card h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.vantagem-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Rede Nacional Section */
.rede-nacional-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('assets/remote_bg.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.rede-nacional-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 1;
}
.rede-title {
    font-size: 2.8rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 40px;
    line-height: 1.2;
}
.rede-list {
    list-style: none;
    text-align: left;
    display: inline-block;
}
.rede-list li {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 991px) {
    .vantagens-grid {
        grid-template-columns: 1fr;
    }
    .cartao-green-box {
        flex-direction: column;
    }
    .hero-text-content h1 {
        font-size: 2.5rem;
    }
    .rede-title {
        font-size: 2rem;
    }
}

/* Blog Section */
.blog-section {
    position: relative;
    min-height: 420px;
    background: url('https://images.unsplash.com/photo-1531123897727-8f129e1bf98c?auto=format&fit=crop&q=80&w=1600') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}
.blog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.9) 0%, rgba(16, 185, 129, 0.82) 100%);
    z-index: 1;
}
.blog-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.blog-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}
.blog-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}
.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.btn-blog:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}
.btn-blog svg {
    transition: transform 0.3s ease;
}
.btn-blog:hover svg {
    transform: translateX(5px);
}


/* --- FIXED RESPONSIVENESS --- */
@media (max-width: 767px) {
    html, body { overflow-x: hidden; }
    .hero-title, .hero-new h1, .hero-text-content h1, .liberdade-banner-title { font-size: 2.2rem !important; }
    .quote-banner-text { font-size: 1.5rem !important; }
    .hero-contato h1 { font-size: 2.2rem !important; }
    .hero, .hero-new, .hero-contato, .page-header { padding-top: 100px !important; }
    .profile-card { margin-bottom: 15px; }
    .container { padding-left: 15px; padding-right: 15px; }
    h1, h2 { word-wrap: break-word; }
}

