/**
 * CYBER IT - Style Sheet
 * Tema escuro | Cores: Azul (#0044FF), Vermelho (#FF0000)
 * 
 * Estrutura:
 * 1. Reset & Base
 * 2. Navbar
 * 3. Hero
 * 4. Seções
 * 5. Destaques
 * 6. Serviços (Acordeão)
 * 7. Sobre
 * 8. Contato
 * 9. Footer
 * 10. WhatsApp Float
 * 11. Responsivo
 */

/* =================== 1. RESET & BASE =================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a12;
    --bg-secondary: #12121e;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;
    --blue: #0044FF;
    --blue-light: #0066FF;
    --blue-glow: rgba(0, 68, 255, 0.3);
    --red: #FF0000;
    --red-light: #FF3333;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --transition: 0.3s ease;
    --nav-height: 70px;
    --card-bg: #1a1a2e;
    --topbar-height: 36px;
}

/* ========== TEMA CLARO ========== */
body.light-theme {
    --bg-primary: #f5f5fa;
    --bg-secondary: #e8e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --blue: #0044FF;
    --blue-light: #0055EE;
    --blue-glow: rgba(0, 68, 255, 0.15);
    --red: #E00000;
    --red-light: #FF2222;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
}

body.light-theme .navbar {
    background: rgba(245, 245, 250, 0.95);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: calc(var(--nav-height) + var(--topbar-height));
}

a {
    color: var(--blue-light);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--red-light); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* =================== TOP BAR =================== */
.topbar {
    height: var(--topbar-height);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    font-size: 0.75rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topbar-phone {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-sep {
    opacity: 0.3;
}

.topbar-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.topbar-link:hover {
    color: var(--text-secondary);
}

.topbar-langs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all var(--transition);
    opacity: 0.6;
    border: 1px solid transparent;
}

.lang-flag:hover {
    opacity: 1;
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--blue);
    background: rgba(0, 68, 255, 0.15);
}

.lang-flag img {
    display: block;
    border-radius: 2px;
}

/* =================== 2. NAVBAR =================== */
.navbar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 8px 0;
}
.nav-logo img {
    height: 38px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-icone { font-size: 16px; }

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0, 68, 255, 0.15), rgba(255, 0, 0, 0.10));
    border: 1px solid rgba(0, 68, 255, 0.2);
}

.nav-whatsapp-link {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white !important;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
}
.nav-whatsapp-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Esconder WhatsApp mobile no desktop */
.mobile-only { display: none; }

/* =================== SUBMENUS DROPDOWN =================== */
.nav-has-sub { position: relative; }

.sub-arrow {
    font-size: 9px;
    margin-left: 4px;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.nav-has-sub:hover .sub-arrow {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1001;
}

.nav-has-sub:hover .submenu,
.nav-has-sub:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(4px);
}

.submenu-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    font-size: 0.85rem;
}

.submenu-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sub-icon {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.sub-label {
    font-weight: 500;
    line-height: 1.3;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

/* Nav Overlay (mobile) */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

/* =================== NAV ACTIONS (TEMA + CTA) =================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--blue-glow);
    color: #fff;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all var(--transition);
    padding: 0;
    line-height: 1;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: rotate(15deg);
}

body.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mostrar/esconder ícones conforme tema */
.theme-icon-light { display: none; }
.theme-icon-dark { display: inline; }
body.light-theme .theme-icon-light { display: inline; }
body.light-theme .theme-icon-dark { display: none; }

/* =================== 3. HERO =================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 68, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 0, 0, 0.06) 0%, transparent 50%),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.015) 40px,
            rgba(255, 255, 255, 0.015) 41px
        );
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    from { transform: translateY(0); }
    to { transform: translateY(41px); }
}

.hero-content { position: relative; z-index: 1; }

.hero-titulo {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-light), var(--text-primary) 40%, var(--red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero-subtitulo {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =================== 4. SEÇÕES =================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Page Header */
.page-header {
    padding: 60px 0 30px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, 
        rgba(0, 68, 255, 0.08), 
        rgba(255, 0, 0, 0.05)
    );
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* =================== 5. BOTÕES =================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
    box-shadow: 0 4px 15px var(--blue-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--blue-glow);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* =================== 6. DESTAQUES =================== */
.destaques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.destaque-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.destaque-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 68, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.destaque-icone {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.destaque-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.destaque-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =================== 7. SERVIÇOS (ACORDEÃO) =================== */
.servicos-lista {
    padding-top: 20px;
}

.categoria-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.categoria-card:hover {
    border-color: rgba(0, 68, 255, 0.2);
}

.categoria-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition);
}
.categoria-header:hover {
    background: var(--bg-card-hover);
}

.categoria-icone {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.categoria-info { flex: 1; }

.categoria-nome {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.categoria-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.categoria-toggle {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.categoria-header.active .categoria-toggle {
    transform: rotate(180deg);
}

.categoria-body {
    padding: 0 24px 24px;
    border-top: 1px solid var(--border);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding-top: 20px;
}

.servico-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.servico-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 68, 255, 0.2);
}

.servico-nome {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--blue-light);
}

.servico-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.sem-servicos {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* =================== 8. SOBRE =================== */
.sobre-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sobre-bloco {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.sobre-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

.sobre-texto {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* =================== 9. APPS PAGE =================== */
.apps-grid-section {
    padding-top: 20px;
}

.app-card-click {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
}
.app-card-click:hover {
    color: var(--text-primary);
    transform: translateY(-4px);
    border-color: var(--blue);
    box-shadow: 0 8px 30px var(--blue-glow);
}

.app-card-icone {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 4px;
}

/* =================== PORTFOLIO GRID =================== */
.portfolio-grid-section { padding-top: 20px; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--case-color, #0044FF);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: var(--case-color, #0044FF);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: var(--text-primary);
}

.portfolio-icone {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.portfolio-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.portfolio-saiba {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--case-color, #0044FF);
}

/* =================== CASE DETAIL =================== */
.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    text-decoration: none;
    transition: color var(--transition);
}
.back-link:hover { color: var(--blue-light); }

.case-detail { padding-top: 20px; }

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.case-meta-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.case-meta-item strong {
    color: var(--text-primary);
}

.case-bloco {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.case-bloco:last-child { border-bottom: none; }

.case-bloco-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blue-light);
}

.case-bloco-texto {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
}

/* =================== SERVIÇO INDIVIDUAL =================== */
.servicos-ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.servico-ind-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}
.servico-ind-card:hover {
    border-color: rgba(0,68,255,0.2);
}

.servico-ind-nome {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blue-light);
}

.servico-ind-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =================== 10. CONTATO =================== */
.contato-grid {
    max-width: 600px;
    margin: 0 auto;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contato-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.contato-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contato-card p,
.contato-card a {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* =================== 11. FOOTER =================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 60px 20px;
}

.footer-brand img {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.3rem;
    transition: all var(--transition);
}
.social-link:hover {
    background: rgba(0, 68, 255, 0.2);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--blue-light);
}

.contact-info li {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =================== 12. WHATSAPP FLOAT =================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* =================== 13. RESPONSIVO =================== */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border);
        padding: 80px 24px 40px;
        gap: 2px;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.open { left: 0; }
    .nav-overlay.open { display: block; }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-toggle { display: block; }

    /* Esconder CTA no mobile */
    .nav-cta-btn { display: none; }

    /* Mobile-only WhatsApp */
    .mobile-only { display: block; }

    /* Submenu acordeão mobile */
    .submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--border);
        margin: 2px 0 2px 0;
        padding: 0;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .submenu.open {
        max-height: 600px;
        padding: 8px;
    }
    .submenu-item { padding: 10px 12px; font-size: 0.85rem; }
    .sub-icon { font-size: 1.2rem; width: 24px; }
    .sub-arrow {
        transition: transform 0.3s ease;
        margin-left: auto;
    }
    .sub-arrow.rotated {
        transform: rotate(180deg);
    }

    /* Botão WhatsApp no menu mobile */
    .nav-whatsapp-link {
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: white !important;
        border-radius: 20px;
        padding: 12px 20px;
        font-weight: 600;
        text-align: center;
        margin-top: 12px;
    }
    .nav-whatsapp-link:hover {
        opacity: 0.9;
        color: white !important;
    }

    /* Hamburger animation when open */
    .nav-toggle.open .hamburger:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.open .hamburger:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open .hamburger:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section { padding: 50px 0; }
    .hero { min-height: 70vh; }

    .destaques-grid {
        grid-template-columns: 1fr;
    }

    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .hero-ctas .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* =================== 13. SCROLLBAR =================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
