/* =========================================
   STYLES.CSS - Arquivo de estilos do site
   =========================================
   ESTRUTURA DO ARQUIVO:
   1. Variáveis de cores e fontes
   2. Reset e estilos base
   3. Header (topo fixo)
   4. Container (área central)
   5. Hero (banner principal)
   6. Seções gerais
   7. Sobre nós
   8. Serviços
   9. Segmentos
   10. Portfólio
   11. Depoimentos (slider)
   12. CTA WhatsApp
   13. Contato e formulário
   14. Rodapé (footer)
   15. WhatsApp flutuante
   16. LGPD (banner de cookies)
   17. Voltar ao topo
   18. Modo escuro
   19. Animações
   20. Responsivo (celular/tablet)
   ========================================= */

/* =========================================
   VARIÁVEIS DE CORES - Modo Claro
   ========================================= */
:root {
    /* Cores - Identidade Visual GVitorassi */
    --color-primary: #0088aa;
    --color-primary-dark: #006d88;
    --color-primary-light: #00a5cc;
    --color-secondary: #162d50;
    --color-accent: #F59E0B;

    --color-text: #162d50;
    --color-text-light: #4a5568;
    --color-text-lighter: #718096;

    --color-bg: #FFFFFF;
    --color-bg-alt: #f7fafc;
    --color-bg-dark: #162d50;
    --color-bg-card: #FFFFFF;

    --color-border: #e2e8f0;
    --color-border-light: #edf2f7;

    --color-success: #10B981;
    --color-error: #EF4444;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #0088aa 0%, #162d50 100%);
    --gradient-dark: linear-gradient(135deg, #162d50 0%, #0d1b33 100%);

    /* Tipografia */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Espaçamento */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(108, 60, 225, 0.15);

    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Header */
    --header-height: 72px;
}

/* =========================================
   VARIÁVEIS DE CORES - Modo Escuro
   ========================================= */
[data-theme="dark"] {
    --color-text: #e2e8f0;
    --color-text-light: #a0aec0;
    --color-text-lighter: #718096;

    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-bg-dark: #0f172a;
    --color-bg-card: #1e293b;

    --color-border: #334155;
    --color-border-light: #475569;

    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* =========================================
   RESET E ESTILOS BASE
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* =========================================
   UTILITIES: Container e classes utilitárias
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(22, 45, 80, 0.06);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* =========================================
   BOTÕES: Estilos de botões
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 60, 225, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* =========================================
   HEADER: Topo fixo
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: all var(--transition-base);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.9);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

.nav-list {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.hamburger {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-base);
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   HERO: Banner principal (tela cheia)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(108, 60, 225, 0.12);
    top: -200px;
    right: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.1);
    bottom: -100px;
    left: -100px;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.08);
    top: 50%;
    left: 40%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(108, 60, 225, 0.08);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    display: flex;
    align-items: baseline;
}

.stat-prefix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    position: absolute;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 60, 225, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.hero-card span {
    font-weight: 600;
    font-size: 0.9375rem;
}

.hero-card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-card-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.hero-card-3 {
    top: 50%;
    right: 0%;
    animation-delay: 4s;
}

.hero-bg-card {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    max-width: 700px;
    height: 650px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 0;
}

.hero-bg-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   ANIMAÇÕES
   ========================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* =========================================
   SOBRE NÓS
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-success);
    flex-shrink: 0;
}

.feature span {
    font-size: 0.9375rem;
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================
   SERVIÇOS: Cards de serviços
   ========================================= */
.section-services {
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(108, 60, 225, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 136, 170, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    margin: 0 auto var(--space-lg);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
    justify-content: center;
    min-height: 88px;
    align-content: flex-start;
}

.service-list li {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    background: var(--color-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.service-link:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 170, 0.3);
}

/* =========================================
   SEGMENTOS: Faixa animada
   ========================================= */
.section-segments {
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.segments-track {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.segments-list {
    display: flex;
    gap: var(--space-md);
    animation: scroll 30s linear infinite;
    width: max-content;
}

.segment-item {
    flex-shrink: 0;
}

.segment-item span {
    display: block;
    padding: 12px 28px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: all var(--transition-base);
}

.segment-item:hover span {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Animação de scroll infinito */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   PORTFÓLIO: Galeria de trabalhos
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-light);
    margin-bottom: 4px;
}

.portfolio-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

/* =========================================
   DEPOIMENTOS: Slider/carrossel
   ========================================= */
.section-testimonials {
    background: var(--color-bg-alt);
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    gap: var(--space-xl);
    transition: transform 0.8s ease-in-out;
}

.testimonial-card {
    min-width: calc(50% - var(--space-xl) / 2);
    max-width: calc(50% - var(--space-xl) / 2);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    justify-content: center;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-style: italic;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    transition: all var(--transition-base);
}

.testimonial-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* =========================================
   CTA WHATSAPP
   ========================================= */
.cta-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-4xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
}

.cta-content p {
    color: var(--color-text-light);
    font-size: 1.0625rem;
}

/* =========================================
   CONTATO: Formulário
   ========================================= */
.section-contact {
    background: var(--color-bg-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
}

.contact-info {
    background: var(--color-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: var(--space-xl);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 60, 225, 0.08);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item a,
.contact-item span {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: var(--space-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-light);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Formulário */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    background: var(--color-bg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-lighter);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Efeito Neon no Card do Formulário - Modo Escuro */
[data-theme="dark"] .contact-form {
    box-shadow: 0 0 20px rgba(0, 136, 170, 0.15),
                0 0 40px rgba(0, 136, 170, 0.08);
}

.btn-submit {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Checkbox Personalizado */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    position: relative;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(0, 136, 170, 0.15);
}

.checkbox-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.checkbox-text a:hover {
    color: var(--color-primary-dark);
}

.form-group.error .checkbox-custom {
    border-color: var(--color-error);
}

/* =========================================
   RODAPÉ
   ========================================= */
.footer {
    background: var(--color-bg-dark);
    padding: var(--space-4xl) 0 var(--space-xl);
    color: var(--color-text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
    margin-top: var(--space-md);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: var(--space-lg);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: var(--color-text-lighter);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.footer-links h3,
.footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--color-text-lighter);
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.875rem;
}

/* =========================================
   ALTERNÂNCIA DE TEMA: Botão Sol/Lua
   ========================================= */
.theme-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--color-text);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all var(--transition-base);
}

/* Modo claro - mostra lua */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

/* Modo escuro - mostra sol */
[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--color-primary-light);
    color: var(--color-primary-light);
}

[data-theme="dark"] .theme-toggle:hover {
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    background: rgba(0, 165, 204, 0.1);
}

[data-theme="dark"] .logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: block;
}

[data-theme="dark"] .nav-link {
    color: var(--color-text);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--color-primary-light);
}

[data-theme="dark"] .service-list li {
    background: rgba(0, 136, 170, 0.15);
    box-shadow: 0 2px 8px rgba(0, 136, 170, 0.2);
}

[data-theme="dark"] .service-card {
    border-color: var(--color-border);
}

[data-theme="dark"] .cta-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* =========================================
   WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

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

/* Animação de pulso para WhatsApp */
@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* =========================================
   BANNER LGPD
   ========================================= */
.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    padding: var(--space-lg) 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

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

.lgpd-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.lgpd-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lgpd-text svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.lgpd-text p {
    font-size: 0.9375rem;
    color: var(--color-text-lighter);
    line-height: 1.6;
}

.lgpd-text a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.lgpd-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.lgpd-buttons .btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.lgpd-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* =========================================
   VOLTAR AO TOPO
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* =========================================
   REDUÇÃO DE MOVIMENTO: Acessibilidade
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-card {
        animation: none;
    }
    
    .segment-track {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}

/* =========================================
   RESPONSIVO: Celular e tablet
   ========================================= */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
    }

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

    .contact-info {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .contact-social {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-bg);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        transition: right var(--transition-slow);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }

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

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

    .testimonials-slider {
        max-width: 100%;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        padding: var(--space-lg);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .testimonial-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

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

    .footer-brand,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .lgpd-content {
        flex-direction: column;
        text-align: center;
    }

    .lgpd-text {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: center;
    }

    .hero-stats .stat {
        align-items: center;
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }

    .about-features .feature {
        justify-content: center;
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cta-card {
        padding: var(--space-xl);
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

    .back-to-top {
        bottom: 16px;
        left: 16px;
    }
}

/* =========================================
   OVERLAY: Menu mobile
   ========================================= */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* =========================================
   ANIMAÇÕES: Entrada com Intersection Observer
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}