/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilitários */
.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    background: #333;
    color: white;
    border-color: #333;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand img {
    height: 40px; /* Ajuste conforme necessário */
    vertical-align: middle;
}

.nav-brand h2 {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
}

.nav-brand i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23667eea" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
}

.logo-reveal {
    width: 100%;
    opacity: 1;
    transform: none;
    transition: none;
}

.hero-image .logo-float-wrapper {
    width: 100%;
    animation: float 3s ease-in-out infinite;
}

.hero-image .logo-canvas {
    display: block;
    width: 100%;
    height: 700px;
    min-height: 600px;
    border-radius: 20px;
    background: transparent;
    cursor: grab;
    touch-action: none;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1.5s ease,
                transform 1.5s ease,
                filter 0.4s;
}

.hero-image .logo-canvas.visible {
    opacity: 1;
    transform: translateX(0);
}

.hero-image .logo-canvas:active {
    cursor: grabbing;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Seções */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Intro */
.portfolio-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.portfolio-intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-intro-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-intro-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
}

.portfolio-intro-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Serviços */
.services {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: #667eea;
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

/* Portfolio - Work Items (editorial) */
.work-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.work-item {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.work-item:first-child {
    padding-top: 0;
}

.work-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.work-item-image-link {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.work-item-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f9fa;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.work-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.work-item-image-link:hover .work-item-image img {
    transform: scale(1.03);
}

.work-item-content {
    margin-top: 30px;
    max-width: 720px;
}

.work-item-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.work-item-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.work-item-desc {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 560px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.work-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.work-item-tags li {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.work-item-tags li:nth-child(1) { transition-delay: 0ms; }
.work-item-tags li:nth-child(2) { transition-delay: 80ms; }
.work-item-tags li:nth-child(3) { transition-delay: 160ms; }
.work-item-tags li:nth-child(4) { transition-delay: 240ms; }

.work-item.in-view .work-item-image,
.work-item.in-view .work-item-type,
.work-item.in-view .work-item-title,
.work-item.in-view .work-item-desc,
.work-item.in-view .work-item-tags li {
    opacity: 1;
    transform: translateY(0);
}

.work-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.work-item-link span {
    position: relative;
}

.work-item-link span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.work-item-link:hover span::after {
    width: 100%;
}

.work-item-link svg {
    transition: transform 0.3s ease;
}

.work-item-link:hover svg {
    transform: translateX(4px);
}

/* Depoimentos */
.testimonials {
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-content p {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffc107;
}

/* Preços */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border-color: #667eea;
    transform: scale(1.05);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.price {
    margin-bottom: 10px;
}

.currency {
    font-size: 1.2rem;
    color: #666;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
}

.period {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #667eea;
    margin-right: 10px;
}

/* FAQ */
.faq {
    background: #f8f9fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.faq-question i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* Contato */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-section .social-links a {
    background: #34495e;
    color: #bdc3c7;
}

.footer-section .social-links a:hover {
    background: #667eea;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .services-grid,
    .testimonials-grid,
    .pricing-grid,
    .contact-content,
    .footer-content,
    .portfolio-intro {
        grid-template-columns: 1fr;
    }

    .portfolio-intro {
        text-align: center;
        gap: 30px;
        margin-bottom: 50px;
    }

    .portfolio-intro-text h2 {
        font-size: 1.8rem;
    }

    .work-item {
        padding: 40px 0;
    }

    .service-card.featured,
    .pricing-card.featured {
        transform: scale(1);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .service-card,
    .testimonial-card,
    .pricing-card,
    .faq-item,
    .contact-form {
        padding: 25px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .nav-brand img {
        height: 35px; /* Ajuste para telas menores */
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #667eea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 30px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button at the right side */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #667eea; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 50%; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #764ba2;
    transform: translateY(-3px);
}

/* Parallax Effect (optional, for hero section) */
.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Ajustes para a logo */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 40px; /* Altura padrão para a logo */
    width: auto;
}

@media (max-width: 480px) {
    .nav-brand img {
        height: 35px; /* Ajuste para telas menores */
    }
}


/* MODAL — Redesenhado */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

/* Fundo escuro com blur */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.93);
  backdrop-filter: blur(6px);
}

/* Wrapper central */
.modal-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
}

/* Cabeçalho: contador + fechar */
.modal-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
}

.close-button {
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  line-height: 1;
  user-select: none;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  transform: rotate(90deg);
}

/* Área principal da imagem */
.modal-content {
  position: relative;
  width: 100%;
  height: 62vh;
  background: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Wrapper da imagem com estado de loading */
.modal-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  transition: opacity 0.25s ease;
}

.modal-image-wrapper.loading img {
  opacity: 0;
}

/* Spinner de loading */
.modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-image-wrapper.loading .modal-loading {
  opacity: 1;
}

/* Botões de navegação */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  user-select: none;
  z-index: 10;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev:hover, .next:hover {
  background: rgba(102, 126, 234, 0.75);
  border-color: #667eea;
  transform: translateY(-50%) scale(1.08);
}

.prev { left: 14px; }
.next { right: 14px; }

/* Faixa de thumbnails */
.modal-thumbnails {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.modal-thumbnails::-webkit-scrollbar {
  height: 4px;
}

.modal-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.thumb {
  flex-shrink: 0;
  width: 72px;
  height: 50px;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.45;
  transition: all 0.2s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  opacity: 0.8;
  border-color: rgba(102, 126, 234, 0.6);
}

.thumb.active {
  opacity: 1;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Foco acessibilidade */
.close-button:focus,
.prev:focus,
.next:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Responsividade */
@media (max-width: 768px) {
  .modal-content {
    height: 52vh;
    border-radius: 8px;
  }

  .thumb {
    width: 56px;
    height: 40px;
  }

  .prev, .next {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .prev { left: 8px; }
  .next { right: 8px; }
}



/* Estilo para links do WhatsApp - evita cor azul */
.whatsapp-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #25D366 !important; /* Cor verde do WhatsApp no hover */
}

.whatsapp-link:visited {
    color: inherit !important;
}

.whatsapp-link:active {
    color: inherit !important;
}

/* ===== SISTEMA SAAS ===== */
.sistema {
    background: white;
}

.sistema-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.sistema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.sistema-card {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.sistema-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
}

.sistema-card.featured {
    border-color: #667eea;
    transform: scale(1.04);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
}

.sistema-card.featured:hover {
    transform: scale(1.04) translateY(-6px);
}

.plan-medal-svg {
    width: 58px;
    height: 74px;
    margin: 0 auto 12px;
    display: block;
}

.sistema-card .pricing-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.sistema-card .price .amount {
    font-size: 2.8rem;
    font-weight: 700;
    color: #667eea;
}

.sistema-card .period {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.sistema-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.sistema-features li {
    padding: 7px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f3f3f3;
}

.sistema-features li:last-child {
    border-bottom: none;
}

.feat-ok {
    color: #333;
}

.feat-ok i {
    color: #667eea;
    width: 16px;
    flex-shrink: 0;
}

.feat-no {
    color: #bbb;
}

.feat-no i {
    color: #ddd;
    width: 16px;
    flex-shrink: 0;
}

.feat-addon {
    color: #996AEA;
    font-size: 0.88rem;
    border-top: 1px dashed rgba(153, 106, 234, 0.35) !important;
    margin-top: 6px;
    padding-top: 10px !important;
}

.feat-addon i {
    color: #996AEA;
    width: 16px;
    flex-shrink: 0;
}

/* Showcase notebook + recursos */
.sistema-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 50px;
    max-width: 1050px;
    margin: 0 auto 40px;
}

.sistema-showcase-img img {
    width: 100%;
    height: auto;
    display: block;
}

.sistema-showcase-list {
    margin-bottom: 0;
}

.sistema-showcase-list li {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .sistema-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Banner NF-e */
.addon-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f0ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    padding: 20px 28px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.addon-banner > i {
    font-size: 1.8rem;
    color: #667eea;
    flex-shrink: 0;
}

.addon-banner div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.addon-banner strong {
    font-size: 1rem;
    color: #333;
}

.addon-banner span {
    font-size: 0.95rem;
    color: #666;
}

/* Tabela comparativa */
.compare-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.compare-wrapper h3 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

.compare-table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

.compare-table thead th {
    padding: 18px 20px;
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
    border-bottom: 2px solid #e8e8e8;
    text-align: center;
    white-space: nowrap;
}

.compare-table thead th:first-child {
    text-align: left;
}

.compare-table thead th span {
    display: block;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
    margin-top: 4px;
}

.compare-table thead th.col-featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.compare-table thead th.col-featured span {
    color: rgba(255, 255, 255, 0.8);
}

.compare-table tbody td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.compare-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody td.col-featured {
    background: rgba(102, 126, 234, 0.04);
    border-left: 1px solid rgba(102, 126, 234, 0.15);
    border-right: 1px solid rgba(102, 126, 234, 0.15);
}

.compare-table tbody tr:hover td {
    background: #fafafa;
}

.compare-table tbody tr:hover td.col-featured {
    background: rgba(102, 126, 234, 0.08);
}

.ct-ok {
    color: #667eea;
    font-size: 1rem;
}

.ct-no {
    color: #ddd;
    font-size: 1rem;
}

.addon-row td {
    background: #fafafa !important;
    color: #667eea !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.addon-row td:first-child {
    color: #555 !important;
}

.sistema-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-ver-sistema {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35);
    transition: all 0.3s ease;
}

.btn-ver-sistema i {
    font-size: 1.2rem;
}

.btn-ver-sistema:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(102, 126, 234, 0.45);
    color: white;
}

@media (max-width: 768px) {
    .sistema-card.featured {
        transform: scale(1);
    }

    .sistema-card.featured:hover {
        transform: translateY(-6px);
    }

    .addon-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Links legais no rodapé */
.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 12px;
}

.footer-legal a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #667eea;
}
