/* 
===================================================
    Recarga Unitv Oficial - Style System
===================================================
*/

:root {
    /* Colors */
    --primary: #e60000;
    --primary-hover: #c40000;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --border-color: #e5e7eb;
    --alert-text: #b91c1c;
    --alert-bg: #fef2f2;
    --success: #10b981;
    --whatsapp: #25D366;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-red: 0 4px 14px 0 rgba(230, 0, 0, 0.39);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

/* Typography Classes */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
    border-radius: 40px;
}

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

/* Topbar */
.topbar {
    background-color: var(--bg-gray);
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.icon-secure {
    margin-right: 5px;
}

/* Header */
.header {
    background-color: var(--bg-light);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.9375rem;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-alerts {
    background-color: var(--alert-bg);
    border-left: 4px solid var(--alert-text);
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 30px;
    text-align: left;
    max-width: 600px;
    font-size: 0.875rem;
}

.hero-alerts p {
    color: var(--alert-text);
    margin-bottom: 4px;
}
.hero-alerts p:last-child {
    margin-bottom: 0;
}

.hero-image {
    margin-top: 50px;
    max-width: 800px;
    width: 100%;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-wave .shape-fill {
    fill: var(--primary); /* Dark red wave separator as seen in image */
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: var(--primary); /* Wave connects to this */
    color: #fff;
}

.pricing .section-title {
    color: #fff;
}

.alert-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    font-size: 0.9375rem;
    margin-bottom: 50px;
    backdrop-filter: blur(5px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-light);
    color: var(--text-main);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pricing-logo {
    height: 30px;
}

.pricing-img {
    margin-bottom: 20px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-img img {
    max-height: 100%;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    margin-top: 10px;
    margin-right: 4px;
}

.cents {
    font-size: 1.5rem;
    margin-top: 10px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 12px;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check {
    color: var(--success);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.125rem;
}

.about-content p {
    margin-bottom: 16px;
}

.about-cta {
    margin-top: 24px;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
}

.features-text {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.features-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.features-text h4 {
    margin: 24px 0 12px;
    font-size: 1.125rem;
}

.features-text p, .features-text ul {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.features-text ul {
    padding-left: 20px;
    list-style: disc;
}

/* Tips Section */
.tips {
    padding: 80px 0;
}

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

.tip-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tip-card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.tip-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Showcase Section */
.showcase {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-gray) 0%, #fff 100%);
}

.showcase-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.showcase-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.showcase-img {
    flex: 1;
    text-align: center;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Tutorials */
.tutorials {
    padding: 80px 0;
}

.tutorial-cta {
    margin-bottom: 50px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.device-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.device-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.device-card img {
    height: 90px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.device-card h4 {
    font-size: 1.25rem;
    color: var(--text-main);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

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

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

/* Reseller */
.reseller {
    padding: 80px 0;
    background-color: var(--primary);
    color: #fff;
}

.reseller-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.reseller-text {
    flex: 1;
}

.reseller-text .section-title {
    color: #fff;
    text-align: left;
}

.reseller-text p {
    margin-bottom: 30px;
    font-size: 1.125rem;
}

.reseller-text .btn-outline {
    border-color: #fff;
    color: #fff;
}

.reseller-text .btn-outline:hover {
    background-color: #fff;
    color: var(--primary);
}

.reseller-img {
    flex: 1;
}

/* Support Box */
.support-box {
    padding: 60px 0;
    background-color: #111;
    color: #fff;
}

.support-box h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.support-box p {
    color: #ccc;
    margin-bottom: 30px;
}

.support-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.support-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.faq-header {
    flex: 1;
}

.faq-header .section-title {
    text-align: left;
    font-size: 2.5rem;
}

.faq-img {
    max-width: 300px;
    margin-top: 30px;
}

.faq-accordion {
    flex: 2;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-btn {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: var(--bg-light);
    border: none;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.accordion-btn:hover {
    background-color: var(--bg-gray);
}

.accordion-btn::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-btn.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-light);
}

.accordion-content p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--text-main);
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 0.875rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-link::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--whatsapp);
    border-radius: 50%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.875rem;
}

/* Floating WhatsApp */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

/* Content Pages (Static) */
.content-page {
    padding: 80px 0;
    min-height: calc(100vh - var(--header-height) - 400px); /* 400px is approx footer height */
}

.content-page h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    text-align: center;
}

.content-page h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-page p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-page ul {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.content-page li {
    margin-bottom: 8px;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.speedtest-container {
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #fff;
    padding: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .showcase-content, .reseller-content, .faq-layout {
        flex-direction: column;
    }
    
    .showcase-text, .reseller-text, .faq-header {
        text-align: center;
    }
    
    .reseller-text .section-title, .faq-header .section-title {
        text-align: center;
    }
    
    .faq-img {
        margin: 0 auto 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }
    
    .navbar {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .btn-header {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .float-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .float-whatsapp svg {
        width: 24px;
        height: 24px;
    }
}

/* Animations System */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Tipos de Animação */
.slide-up {
    transform: translateY(40px);
}
.slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
}
.fade-in.is-visible {
    opacity: 1;
}

.scale-in {
    transform: scale(0.95);
}
.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Efeito de delay nas grades (cards aparecem um por um) */
.pricing-grid > *,
.tips-grid > *,
.devices-grid > *,
.testimonial-grid > *,
.faq-accordion > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.is-visible.pricing-grid > *,
.is-visible.tips-grid > *,
.is-visible.devices-grid > *,
.is-visible.testimonial-grid > *,
.is-visible.faq-accordion > * {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering Delays */
.is-visible.pricing-grid > *:nth-child(1), .is-visible.tips-grid > *:nth-child(1), .is-visible.devices-grid > *:nth-child(1) { transition-delay: 0.1s; }
.is-visible.pricing-grid > *:nth-child(2), .is-visible.tips-grid > *:nth-child(2), .is-visible.devices-grid > *:nth-child(2) { transition-delay: 0.2s; }
.is-visible.pricing-grid > *:nth-child(3), .is-visible.tips-grid > *:nth-child(3), .is-visible.devices-grid > *:nth-child(3) { transition-delay: 0.3s; }
.is-visible.devices-grid > *:nth-child(4) { transition-delay: 0.4s; }

