/* style.css */
/* === VARIÁVEIS (exatamente as mesmas do original) === */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --background: hsl(210, 40%, 98%);
    --foreground: hsl(215, 50%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(215, 50%, 15%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 40%, 96%);
    --secondary-foreground: hsl(215, 50%, 25%);
    --muted: hsl(210, 30%, 94%);
    --muted-foreground: hsl(215, 20%, 50%);
    --border: hsl(214, 32%, 91%);
    --blue-50: hsl(214, 100%, 97%);
    --blue-100: hsl(214, 95%, 93%);
    --blue-200: hsl(213, 97%, 87%);
    --blue-400: hsl(213, 94%, 68%);
    --blue-500: hsl(217, 91%, 60%);
    --blue-600: hsl(221, 83%, 53%);
    --blue-700: hsl(224, 76%, 48%);
    --starter: hsl(142, 76%, 36%);
    --starter-light: hsl(142, 72%, 94%);
    --pro: hsl(217, 91%, 60%);
    --pro-light: hsl(214, 100%, 97%);
    --enterprise: hsl(24, 95%, 53%);
    --enterprise-light: hsl(38, 100%, 95%);
    --ultra: hsl(271, 91%, 65%);
    --ultra-light: hsl(270, 100%, 98%);
    --basico: hsl(210, 14%, 53%);
    --basico-light: hsl(210, 16%, 93%);
    --inicial: hsl(173, 58%, 39%);
    --inicial-light: hsl(173, 55%, 93%);
    --profissional: hsl(217, 91%, 60%);
    --profissional-light: hsl(214, 100%, 97%);
    --avancado: hsl(24, 95%, 53%);
    --avancado-light: hsl(38, 100%, 95%);
    --empresarial: hsl(271, 91%, 65%);
    --empresarial-light: hsl(270, 100%, 98%);
    --gradient-hero: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(224, 76%, 48%) 50%, hsl(226, 71%, 40%) 100%);
    --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, hsla(217, 91%, 60%, 0.3), transparent);
    --shadow-sm: 0 1px 2px 0 hsla(215, 50%, 15%, 0.05);
    --shadow-md: 0 4px 6px -1px hsla(215, 50%, 15%, 0.1), 0 2px 4px -2px hsla(215, 50%, 15%, 0.1);
    --shadow-lg: 0 10px 15px -3px hsla(215, 50%, 15%, 0.1), 0 4px 6px -4px hsla(215, 50%, 15%, 0.1);
    --shadow-xl: 0 20px 25px -5px hsla(215, 50%, 15%, 0.1), 0 8px 10px -6px hsla(215, 50%, 15%, 0.1);
    --shadow-glow: 0 0 40px hsla(217, 91%, 60%, 0.3);
}
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}
.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    width: 100%;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

/* ========== RESPONSIVIDADE GLOBAL ========== */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem !important; }
    .section-title { font-size: 2rem !important; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.8rem !important; }
    .section-title { font-size: 1.8rem !important; }
}

/* ===== HEADER COM MENU SANDUÍCHE ===== */
.site-header {
    padding: 1rem 0;
    background-color: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    width: 100%;
}
.header-flex { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo { 
    font-size: clamp(1.6rem, 5vw, 2rem); 
    font-weight: 800; 
    background: var(--gradient-hero); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    z-index: 60;
}

/* Menu desktop */
.nav-links { 
    display: flex; 
    gap: clamp(1rem, 3vw, 2rem); 
    color: var(--secondary-foreground); 
    font-weight: 500;
    flex-wrap: wrap;
}
.nav-links a { text-decoration: none; color: inherit; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* Botão sanduíche (visível apenas em mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--foreground);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Responsivo: mobile menu */
@media (max-width: 600px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--card);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 55;
        border-left: 1px solid var(--border);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
    }
    /* Animação do ícone sanduíche quando ativo */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* hero responsivo */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 0 5rem;
    position: relative;
    width: 100%;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { 
    font-size: clamp(2rem, 6vw, 3.5rem); 
    line-height: 1.2; 
    max-width: 800px; 
    margin-bottom: 1rem; 
}
.hero p { 
    font-size: clamp(1.1rem, 3vw, 1.3rem); 
    opacity: 0.9; 
    max-width: 600px; 
    margin-bottom: 2.5rem; 
}
.hero-stats {
    display: flex; 
    gap: clamp(1.5rem, 4vw, 3rem); 
    flex-wrap: wrap;
    background: rgba(0,0,0,0.2); 
    padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem); 
    border-radius: 60px; 
    backdrop-filter: blur(4px);
    width: fit-content; 
    border: 1px solid rgba(255,255,255,0.15);
}
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
.stat-label { font-size: 0.9rem; opacity: 0.8; }
@media (max-width: 550px) {
    .hero-stats { flex-direction: column; gap: 1rem; width: 100%; border-radius: 2rem; }
}

/* títulos */
.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem); 
    margin-bottom: 2rem; 
    color: var(--foreground);
    border-left: 8px solid var(--primary); 
    padding-left: 1.5rem;
}
.tagline { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

/* serviços grid (cards responsivos) */
.services-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem;
}
.service-card {
    background: var(--card); 
    border-radius: 2rem; 
    padding: 1.8rem 1.5rem; 
    box-shadow: var(--shadow-lg); 
    border: 1px solid var(--border);
    transition: 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--primary); }
.service-card p { 
    color: var(--muted-foreground); 
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

/* Botões de serviço (CTAs individuais) */
.btn-servico {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1.2rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: var(--shadow-md);
    width: 100%;
    text-align: center;
}

.btn-servico:hover {
    background: var(--blue-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-servico:active {
    transform: translateY(0);
}

/* cases grid */
.cases-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem;
}
.case-card {
    background-color: var(--card); 
    border-radius: 1.8rem; 
    padding: 1.5rem; 
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md); 
    transition: 0.15s;
    height: 100%;
}
.case-card:hover { box-shadow: var(--shadow-lg); }
.case-rank { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.rank-badge { 
    background: var(--primary); 
    color: white; 
    font-weight: 700; 
    padding: 0.2rem 1rem; 
    border-radius: 40px; 
    font-size: 0.8rem; 
}
.case-url { 
    font-family: monospace; 
    color: var(--primary); 
    font-size: 0.9rem; 
    word-break: break-all; 
}
.case-equivalent { 
    font-size: 0.9rem; 
    color: var(--muted-foreground); 
    border-top: 1px dashed var(--border); 
    margin-top: 1rem; 
    padding-top: 0.8rem; 
}

/* para quem grid */
.para-quem-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); 
    gap: 0.8rem; 
    margin: 2rem 0 3rem;
}
.nicho-item {
    background: var(--card); 
    padding: 0.8rem 1rem; 
    border-radius: 60px; 
    border: 1px solid var(--border);
    font-weight: 500; 
    color: var(--foreground); 
    box-shadow: var(--shadow-sm); 
    transition: 0.1s; 
    text-align: center; 
    font-size: 0.95rem;
}
.nicho-item:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
    transform: scale(1.02); 
}

/* tecnologia grid */
.tecnologia-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem;
}
.tecnologia-card {
    background: var(--card); 
    border-radius: 2rem; 
    padding: 1.8rem 1.5rem; 
    box-shadow: var(--shadow-lg); 
    border: 1px solid var(--border);
    height: 100%;
}
.tecnologia-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1.2rem; 
    color: var(--primary); 
}
.tecnologia-list { list-style: none; }
.tecnologia-list li { 
    margin-bottom: 0.8rem; 
    padding-left: 1.8rem; 
    position: relative; 
    color: var(--foreground); 
}
.tecnologia-list li::before { 
    content: "▹"; 
    color: var(--primary); 
    font-weight: 700; 
    position: absolute; 
    left: 0; 
}
.tecnologia-list strong { color: var(--blue-700); }

/* depoimentos grid */
.testimonials-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); 
    gap: 1.5rem; 
    margin: 2rem 0;
}
.testimonial-card {
    background: var(--card); 
    border-radius: 2rem; 
    padding: 2rem 2rem 1.8rem;
    box-shadow: var(--shadow-lg); 
    border: 1px solid var(--border); 
    position: relative;
}
.testimonial-card::before {
    content: "“"; 
    font-size: 6rem; 
    color: var(--blue-200); 
    position: absolute; 
    top: -0.5rem; 
    left: 1rem; 
    opacity: 0.4; 
    font-family: serif;
}
.testimonial-quote { 
    font-size: 1.2rem; 
    font-weight: 500; 
    margin-bottom: 1.5rem; 
    position: relative; 
    z-index: 2; 
    color: var(--foreground); 
}
.testimonial-author { 
    font-weight: 700; 
    color: var(--primary); 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
}
.testimonial-author::before { 
    content: "—"; 
    color: var(--muted-foreground); 
}

/* tabela diferencial */
.diff-table-wrapper {
    background: var(--card); 
    border-radius: 2rem; 
    padding: 1.5rem; 
    box-shadow: var(--shadow-xl); 
    border: 1px solid var(--border); 
    margin: 2rem 0; 
    overflow-x: auto;
}
.diff-table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 600px;
}
.diff-table th, .diff-table td { 
    padding: 1rem 0.8rem; 
    font-size: 0.95rem;
}
.diff-table th { 
    text-align: left; 
    background: var(--muted); 
    color: var(--secondary-foreground); 
    font-weight: 600; 
}
.diff-table td { border-bottom: 1px solid var(--border); }
.diff-table td:last-child { 
    background: var(--blue-50); 
    font-weight: 600; 
    color: var(--blue-700); 
    border-left: 2px solid var(--blue-200); 
}
.diff-table th:last-child { 
    background: var(--blue-100); 
    color: var(--blue-800); 
}
.destaque-positivo { color: var(--blue-600); font-weight: 700; }

/* garantia grid */
.garantia-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); 
    gap: 1.5rem; 
    margin-top: 2rem;
}
.garantia-card {
    background: var(--card); 
    border-radius: 2rem; 
    padding: 2rem 1.5rem;
    border: 1px solid var(--border); 
    box-shadow: var(--shadow-md); 
    transition: 0.2s;
}
.garantia-card:hover { 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-4px); 
}
.garantia-icon { 
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    display: block; 
}
.garantia-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 0.8rem; 
    color: var(--foreground); 
}
.garantia-card p { 
    color: var(--muted-foreground); 
    font-size: 1rem; 
}

/* CTA responsivo */
#cta { scroll-margin-top: 80px; }
.cta-duplo {
    background: linear-gradient(145deg, var(--blue-700) 0%, var(--primary) 40%, var(--blue-400) 100%);
    border-radius: 3rem 3rem 2rem 2rem; 
    margin: 3rem auto; 
    padding: 3rem 1.8rem; 
    color: white;
    box-shadow: var(--shadow-xl), 0 0 60px hsla(217, 91%, 60%, 0.4); 
    width: 100%;
}
.cta-duplo h2 { 
    font-size: clamp(1.8rem, 5vw, 2.8rem); 
    line-height: 1.2; 
    margin-bottom: 1rem; 
    max-width: 700px; 
}
.cta-duplo p { 
    font-size: clamp(1.1rem, 3vw, 1.3rem); 
    margin-bottom: 2rem; 
}
.cta-buttons { 
    display: flex; 
    gap: 1.2rem; 
    flex-wrap: wrap; 
    align-items: center; 
}
.btn-cta-primary {
    background: white; 
    color: var(--blue-700); 
    border: none; 
    padding: 0.9rem 1.8rem; 
    border-radius: 60px; 
    font-weight: 700; 
    font-size: 1.1rem;
    cursor: pointer; 
    box-shadow: var(--shadow-lg); 
    transition: 0.2s; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem;
}
.btn-cta-primary:hover { 
    background: var(--blue-50); 
    transform: scale(1.05); 
}
.btn-cta-secondary {
    background: transparent; 
    color: white; 
    border: 2px solid rgba(255,255,255,0.8); 
    padding: 0.9rem 1.8rem; 
    border-radius: 60px; 
    font-weight: 600;
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: 0.2s; 
    text-decoration: none; 
    backdrop-filter: blur(4px);
}
.btn-cta-secondary:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: white; 
}
@media (max-width: 500px) {
    .cta-buttons { 
        flex-direction: column; 
        align-items: stretch; 
    }
    .btn-cta-primary, .btn-cta-secondary { 
        text-align: center; 
        white-space: normal; 
    }
}
.meta { 
    display: block; 
    margin-top: 2rem; 
    color: rgba(255,255,255,0.7); 
    font-size: 0.95rem; 
}

/* rodapé responsivo */
.footer {
    background: rgb(19, 34, 56);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-col p { max-width: 100%; }
}
.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: white;
}
.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    max-width: 300px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.7rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.1s;
    font-size: 0.95rem;
}
.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.6);
    font-size: 0.9rem;
}

/* IDs para âncoras com offset */
#servicos, #casos, #paraquem, #cta, #top, #diferenciais {
    scroll-margin-top: 80px;
}

img, iframe {
    max-width: 100%;
    height: auto;
}
