/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: rgba(148, 163, 184, 0.35);
    --shadow-sm: 0 1px 2px 0 rgba(2, 6, 23, 0.06);
    --shadow-md: 0 6px 16px -10px rgba(2, 6, 23, 0.25);
    --shadow-lg: 0 18px 30px -18px rgba(2, 6, 23, 0.28);
    --shadow-xl: 0 28px 60px -30px rgba(2, 6, 23, 0.35);
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --focus: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:where(a, button) {
    outline: none;
}

:where(a, button):focus-visible {
    box-shadow: var(--focus);
    border-radius: 0.5rem;
}

/* Layout helpers */
main { display: block; }

/* Header/nav responsiveness */
.navbar .container {
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-link {
    gap: 0.65rem;
}

.nav-menu {
    flex-wrap: wrap;
}

/* Ensure anchor scroll doesn't hide behind sticky header */
section[id] {
    scroll-margin-top: 92px;
}

/* Cards: ensure padding + smooth hover only when hover exists */
.feature-card,
.service-card,
.testimonial-card,
.plan-card,
.benefit-card {
    padding: 2rem;
    background: var(--bg-white);
}

@media (hover: none) {
    .feature-card:hover,
    .service-card:hover,
    .testimonial-card:hover,
    .plan-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0.9rem 0;
}

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

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
    gap: 0.65rem;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    display: inline-block;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 550;
    transition: color 0.2s ease;
    display: block;
    padding: 0.9rem 0.9rem;
    border-radius: 0.75rem;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.35);
    margin-left: auto;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 6.5rem 0 5.5rem;
    text-align: center;
    background:
      radial-gradient(900px 450px at 15% 20%, rgba(37, 99, 235, 0.55), transparent 60%),
      radial-gradient(700px 380px at 85% 25%, rgba(16, 185, 129, 0.35), transparent 60%),
      linear-gradient(135deg, #0b1220 0%, #0b1b3a 45%, #122a63 100%);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 240px at 50% 0%, rgba(255,255,255,0.14), transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    font-weight: 850;
    margin-bottom: 1.25rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.88);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.96);
    color: var(--primary-color);
    padding: 1rem 2.25rem;
    border-radius: 0.9rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px -26px rgba(0, 0, 0, 0.6);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sections */
.services-section,
.ia-section,
.process-section,
.services-detailed,
.testimonials-section,
.plans-section,
.benefits-section,
.faq-section,
.contact-section {
    padding: 5rem 0;
}

.services-section,
.process-section,
.services-detailed {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 850;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    background: var(--bg-white);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    background: var(--bg-white);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    line-height: 1.8;
}

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

.testimonial-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    background: var(--bg-white);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.plan-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    padding: 2rem;
    background: var(--bg-white);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.plan-card.featured {
    border-color: rgba(255,255,255,0.25);
    background:
      radial-gradient(900px 450px at 0% 0%, rgba(255,255,255,0.16), transparent 60%),
      linear-gradient(135deg, #2563eb 0%, #1e40af 55%, #0b1220 100%);
    color: white;
}

.plan-card.featured .plan-title,
.plan-card.featured .plan-features {
    color: white;
}

.plan-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.plan-card.featured .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.btn-plan {
    display: block;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-plan:hover {
    background: var(--primary-dark);
}

.plan-card.featured .btn-plan {
    background: white;
    color: var(--primary-color);
}

.plan-card.featured .btn-plan:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Benefits */
.benefits-content {
    text-align: center;
}

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

.benefit-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    background: var(--bg-white);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.benefit-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-section .section-title,
.contact-section .section-description {
    color: white;
}

/* Footer */
.footer {
    background: #0b1220;
    color: white;
    padding: 3.5rem 0 1.5rem;
}

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

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

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

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    display: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: white;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cookie:hover {
    background: var(--primary-dark);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (max-width: 980px) {
    .btn-whatsapp {
        padding: 0.7rem 1rem;
        border-radius: 0.75rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .nav-menu {
        gap: 1.25rem;
    }
}

@media (max-width: 860px) {
    /* Move CTA to next line and avoid overlap */
    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-brand {
        flex: 1 1 auto;
    }

    .btn-whatsapp {
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
        margin-left: 0.75rem;
    }

    .nav-menu {
        position: fixed;
        inset: 68px 0 0 0;
        left: 0;
        top: 68px;
        height: calc(100dvh - 68px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1.25rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(148, 163, 184, 0.25);
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.9rem 0.9rem;
        border-radius: 0.75rem;
    }

    .nav-link:hover {
        background: rgba(37, 99, 235, 0.08);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .logo-img {
        height: 40px;
        max-width: 180px;
    }

    .nav-menu {
        top: 68px;
        border-top: 1px solid rgba(148, 163, 184, 0.25);
    }

    .hero {
        padding: 5.25rem 0 4.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .logo-img {
        height: 36px;
        max-width: 160px;
    }

    .btn-whatsapp {
        width: 100%;
        text-align: center;
        order: 3;
    }

    .menu-toggle {
        order: 2;
    }

    .hero {
        padding: 4rem 0 3.75rem;
    }

    .feature-card,
    .service-card,
    .testimonial-card,
    .plan-card,
    .benefit-card {
        padding: 1.5rem;
    }

    .plans-grid {
        gap: 1.25rem;
    }
}

/* ===== Desktop/tablet responsiveness (container gets tight) ===== */

/* Keep the desktop header stable at intermediate widths */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0.6rem;
        border-radius: 0.65rem;
        white-space: nowrap;
    }

    .btn-whatsapp {
        padding: 0.65rem 0.95rem;
        font-size: 0.95rem;
    }
}

/* On narrow desktop (but not mobile), keep menu on one row with horizontal scroll instead of breaking layout */
@media (max-width: 980px) {
    .nav-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: min(56vw, 620px);
        white-space: nowrap;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .nav-menu li {
        flex: 0 0 auto;
    }

    .btn-whatsapp {
        flex: 0 0 auto;
    }
}

/* Only apply big padding for links inside the overlay menu */
@media (min-width: 861px) {
    .nav-link {
        background: transparent;
    }

    .nav-link:hover {
        background: transparent;
    }
}

@media (max-width: 860px) {
    .nav-link {
        padding: 0.9rem 0.9rem;
    }

    .nav-link:hover {
        background: rgba(37, 99, 235, 0.08);
    }
}

