/* ===== RESET E VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-rgb: 30, 181, 255;
    --secondary-rgb: 245, 158, 11;
    --primary-color: rgb(var(--primary-rgb));
    --primary-color-strong: #0e7ae5;
    --secondary-color: rgb(var(--secondary-rgb));
    --dark-bg: #020d1a;
    --dark-bg-2: #0b1e2f;
    --light-bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: rgba(var(--primary-rgb), 0.12);
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-soft: #cbd5e1;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --brand-gradient: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-2) 35%, var(--primary-color) 100%);
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-color-strong));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

button,
input,
textarea {
    font: inherit;
}

/* ===== HEADER E NAVEGAÇÃO ===== */
.header {
    background: var(--brand-gradient);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.8);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    padding: 0.7rem 0.6rem;
    transition: all 0.25s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 999px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-soft);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(var(--primary-rgb), 0.9);
}

.btn-contact {
    background: var(--secondary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== SECTION TITLES ===== */
section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ===== SERVIÇOS ===== */
.services {
    padding: 4rem 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
}

/* ===== PREÇOS ===== */
.pricing {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.22);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.period {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.features li {
    padding: 0.7rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

.pricing-note {
    max-width: 900px;
    margin: 2rem auto 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

/* ===== PORTFÓLIO ===== */
.portfolio {
    padding: 4rem 0;
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.video-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .video-thumb {
    transform: scale(1.03);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.portfolio-card:focus-within .overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #d97706;
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--brand-gradient);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* ===== SOBRE ===== */
.about-section,
.contact-section {
    padding: 4rem 0;
}

.about-story {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
}

.story-text h3,
.contact-header h3 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.story-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.08));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.highlight-box h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.highlight-box p {
    color: var(--text-light);
}

.about-grid,
.stats-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card,
.stat-item,
.process-step,
.contact-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.about-card h4,
.stat-item h4,
.process-step h4,
.contact-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.about-card p,
.stat-item p,
.process-step p,
.contact-card p,
.contact-card li {
    color: var(--text-light);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.process-step {
    position: relative;
}

.step-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== CONTATO ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    align-items: start;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-card ul {
    list-style: none;
    margin-top: 1rem;
}

.contact-card li {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font: inherit;
    background: #fff;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }

    .portfolio-card .overlay {
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar .container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        background: rgba(15, 23, 42, 0.98);
        padding: 1rem;
        border-radius: 0.75rem;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.25s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.7rem 0.8rem;
        border-radius: 0.5rem;
        font-size: 0.98rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-links a.active::after {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .about-story,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .service-card,
    .pricing-card,
    .contact-form,
    .about-card,
    .stat-item,
    .process-step,
    .contact-card {
        padding: 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .form-group input,
    .form-group textarea {
        min-height: 48px;
        padding: 0.9rem 0.85rem;
    }

    .contact-card ul,
    .footer-section ul {
        line-height: 1.8;
    }
}