/* Custom CSS for Brasil Digital Landing Page */

:root {
    --primary-color: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-muted: #6b7280;
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
}

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

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

/* Custom Bootstrap Overrides */
.bg-primary {
    background: var(--gradient-primary) !important;
}

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

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-ctas {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
    margin-top: auto;
}

.hero-ctas .btn {
    flex: 1 1 100%;
    max-width: 300px;
}

.hero-apps {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.app-logo {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Benefit Cards */
.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    animation: none !important;
    opacity: 1 !important;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

/* Plan Cards */
.plan-card {
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.popular-badge {
    z-index: 10;
}

.plan-speed {
    font-size: 2.5rem;
    line-height: 1;
}

.plan-price {
    font-size: 1.5rem;
    line-height: 1;
}

/* CTA Final Section */
.cta-final {
    background: var(--gradient-primary);
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

/* Apps Section */
.apps-grid {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.app-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.app-item img {
    transition: all 0.3s ease;
}

.app-item:hover img {
    transform: scale(1.1);
}

/* Hero Image */
.hero-image img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Benefit Cards with Images */
.benefit-card .benefit-icon img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: none !important;
}

.benefit-card:hover .benefit-icon img {
    transform: scale(1.05);
}

/* Background Image Fallback */
.hero-bg-image {
    z-index: 0;
}

/* Logo Styles */
.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* WhatsApp Button Image */
.whatsapp-float img {
    transition: all 0.3s ease;
}

.whatsapp-float:hover img {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(30, 64, 175, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}



@media (max-width: 576px) {

    .plan-card {
        margin-bottom: 2rem;
    }

    .benefit-card {
        margin-bottom: 2rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        var(--gradient-primary) border-box;
}


/* Footer Styles */
footer {
    background-color: var(--dark-color) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
    transition: color 0.3s ease;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* Reviews Section Styles */
.review-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.review-stars {
    font-size: 1.2rem;
}

.review-stars i {
    margin: 0 2px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
}

/* Responsive adjustments for reviews */
@media (max-width: 768px) {
    .review-card {
        min-height: 250px;
        padding: 1.5rem !important;
    }

    .review-avatar {
        width: 50px;
        height: 50px;
    }

    .review-stars {
        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .review-author {
        flex-direction: column;
        text-align: center !important;
    }

    .review-author .text-start {
        text-align: center !important;
        margin-top: 0.5rem;
    }

    .review-avatar {
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
}

/* Destaque Section */
.destaque-content {
    animation: fadeInLeft 1s ease-out;
}

.destaque-image {
    animation: fadeInRight 1s ease-out;
}

.destaque-image img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
}

.destaque-image img:hover {
    transform: scale(1.02);
}

.destaque-features .d-flex {
    transition: all 0.3s ease;
}

.destaque-features .d-flex:hover {
    transform: translateX(10px);
}

.destaque-features i {
    transition: all 0.3s ease;
}

.destaque-features .d-flex:hover i {
    transform: scale(1.2);
}

/* Cobertura Section */
.cobertura-content {
    animation: fadeInRight 1s ease-out;
}

.cobertura-image {
    animation: fadeInLeft 1s ease-out;
}

.cobertura-image img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.2));
}

.cobertura-image img:hover {
    transform: scale(1.02);
}

.stat-highlight {
    transition: all 0.3s ease;
}

.stat-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Desabilitar animaÃ§Ãµes na seÃ§Ã£o de benefÃ­cios */
#beneficios * {
    animation: none !important;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}


/* Configuração base */
.hero-section {
    background-image: url('../images/fundo_capa.png');
    background-color: #f5f5f5;
    /* Cor de fallback */
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Estrategia para imagem sem corte */
@media (min-width: 992px) {
    .hero-section {
        /* Forçar proporção 1350x855 (16:10) */
        background-size: 1350px 855px;
        min-height: 855px;
        justify-content: center;
    }

    /* Adiciona espaço laterais quando tela > 1350px */
    @media (min-width: 1351px) {
        .hero-section {
            background-image: url('../images/fundo_capa.png');            
            background-position: top center;
            background-size: cover;
            background-repeat: no-repeat;
            position: relative;            
            margin-top: 66px; /* ajuste aqui conforme o espaço desejado */
            width: 100%;
            height: 100%;
        }
    }
}

/* Tablet - imagem contida proporcionalmente */
@media (max-width: 991px) {
    .hero-section {
        background-size: contain;
        min-height: 0;
        padding-bottom: 63.33%;
        /* ProporÃ§Ã£o 16:10 (855/1350) */
    }
}

/* Mobile - ajuste especial */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('../images/fundo_capa_mobile.png');
        background-position: top center;
        background-size: contain;
        background-repeat: no-repeat;
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 50vw; /* controla altura proporcional à largura */
        margin-top: 66px; /* ajuste aqui conforme o espaço desejado */
        height: 500px;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background-color: rgba(0, 0, 0, 0.5);*/
    }
}

/* Overlay para melhor contraste */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.5);*/
}

/* ConteÃºdo principal */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0;
}

/* BotÃµes CTAs */
.hero-buttons {
    margin-top: 2rem;
}

.btn-success {
    background-color: #25D366;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* SeÃ§Ã£o de logos */
.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-item img {
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* AJUSTES PARA MOBILE */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding: 2rem 0;
        /*width: 200px;*/
        transform: translateY(0px);
        padding-bottom: 0px;
        padding-top: 0px;

    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-success,
    .btn-outline-light {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 12px auto;
    }

    .hero-stats {
        margin-top: 2rem;
    }

    .stat-item img {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .btn-success,
    .btn-outline-light {
        padding: 10px 20px;        
    }

    .stat-item img {
        height: 25px;
    }
}