/* ============================================
   CREDISFERA LTDA - STYLESHEET
   Cores: Verde Água + Branco + Roxo Claro
============================================ */

:root {
    --verde-agua: #40E0D0;
    --verde-agua-dark: #2BB8AA;
    --roxo-claro: #B19CD9;
    --roxo-medio: #9370DB;
    --branco: #FFFFFF;
    --cinza-claro: #F8F9FA;
    --cinza-medio: #6C757D;
    --preto: #1A1A1A;
    --sombra: rgba(64, 224, 208, 0.2);
    --sombra-hover: rgba(64, 224, 208, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--preto);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVBAR
============================================ */

.header {
    background: var(--branco);
    box-shadow: 0 2px 15px var(--sombra);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--verde-agua);
}

.logo i {
    font-size: 2rem;
    color: var(--roxo-medio);
}

.logo strong {
    color: var(--roxo-medio);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--preto);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--verde-agua);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-agua);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-header {
    background: linear-gradient(135deg, var(--verde-agua), var(--roxo-medio));
    color: var(--branco);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--sombra-hover);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--verde-agua);
    cursor: pointer;
}

/* ============================================
   HERO SECTION
============================================ */

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--verde-agua) 0%, var(--roxo-medio) 100%);
    padding: 150px 0 100px;
    color: var(--branco);
    overflow: hidden;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-title .highlight {
    color: var(--roxo-claro);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1.4s ease;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--branco);
    color: var(--verde-agua);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--branco);
    border: 2px solid var(--branco);
}

.btn-secondary:hover {
    background: var(--branco);
    color: var(--verde-agua);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat i {
    font-size: 2rem;
    color: var(--roxo-claro);
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   SECTIONS
============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--preto);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: var(--verde-agua);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--cinza-medio);
}

/* ============================================
   SOBRE
============================================ */

.about {
    padding: 80px 0;
    background: var(--cinza-claro);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--branco);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--sombra);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--sombra-hover);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--verde-agua), var(--roxo-medio));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--branco);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--preto);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--cinza-medio);
    line-height: 1.8;
}

/* ============================================
   VANTAGENS
============================================ */

.benefits {
    padding: 80px 0;
    background: var(--branco);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--cinza-claro);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: linear-gradient(135deg, var(--verde-agua), var(--roxo-medio));
    color: var(--branco);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--sombra-hover);
}

.benefit-card i {
    font-size: 3rem;
    color: var(--verde-agua);
    margin-bottom: 1rem;
}

.benefit-card:hover i {
    color: var(--branco);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   DEPOIMENTOS
============================================ */

.testimonials {
    padding: 80px 0;
    background: var(--cinza-claro);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--branco);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--sombra);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--sombra-hover);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--cinza-medio);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--verde-agua), var(--roxo-medio));
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author strong {
    display: block;
    color: var(--preto);
    font-size: 1rem;
}

.author span {
    display: block;
    color: var(--cinza-medio);
    font-size: 0.85rem;
}

/* ============================================
   FORMULÁRIO
============================================ */

.form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--verde-agua) 0%, var(--roxo-medio) 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--branco);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 3rem;
    color: var(--verde-agua);
    margin-bottom: 1rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--preto);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--cinza-medio);
}

.loan-form .form-group {
    margin-bottom: 1.5rem;
}

.loan-form label {
    display: block;
    font-weight: 600;
    color: var(--preto);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loan-form label i {
    color: var(--verde-agua);
}

.loan-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.loan-form input:focus {
    outline: none;
    border-color: var(--verde-agua);
    box-shadow: 0 0 0 3px var(--sombra);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--cinza-medio);
    font-size: 0.85rem;
}

.form-hint i {
    color: var(--roxo-medio);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--verde-agua), var(--roxo-medio));
    color: var(--branco);
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--sombra-hover);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: #D1FAE5;
    color: #065F46;
    display: block;
}

.form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    display: block;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E9ECEF;
    color: var(--cinza-medio);
    font-size: 0.9rem;
}

.form-footer i {
    color: var(--verde-agua);
    margin-right: 0.3rem;
}

/* ============================================
   FOOTER
============================================ */

.footer {
    background: var(--preto);
    color: var(--branco);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-agua);
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--roxo-medio);
}

.footer-logo strong {
    color: var(--roxo-medio);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(64, 224, 208, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-agua);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--verde-agua);
    color: var(--branco);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--verde-agua);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li i {
    color: var(--roxo-claro);
    margin-right: 0.5rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--verde-agua);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

/* ============================================
   WHATSAPP FLUTUANTE
============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: var(--branco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

/* ============================================
   ANIMATIONS
============================================ */

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 768px) {
    .nav-menu,
    .btn-header {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat {
        padding: 0.75rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .form-container {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .about-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
