/* ==========================================================================
   DESIGN SYSTEM (CLEAN PREMIUM & PERFECT GRID)
   ========================================================================== */
:root {
    /* Colors - Light & Clean */
    --color-bg-white: #ffffff;
    --color-bg-slate: #f8fafc; /* Very light slate for contrast against white */
    --color-bg-slate-darker: #f1f5f9;
    
    --color-primary: #0450a5; /* Pantone Azul VNEK Oficial */
    --color-primary-hover: #033a7a;
    
    --color-orange: #f97316; /* VNEK Orange */
    --color-orange-hover: #ea580c;
    
    --color-text-dark: #0f172a; /* Slate 900 for high contrast text */
    --color-text-muted: #475569; /* Slate 600 for paragraphs */
    
    --color-border: #e2e8f0;
    --color-border-hover: #cbd5e1;
    
    --color-emerald: #10b981;
    
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Variables */
    --max-width: 1240px;
    --header-height: 110px; /* Header mais alto para acomodar logo grande */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE & TEXTURES
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--color-bg-slate);
    /* Subtle dot grid pattern for a premium "tech" feel instead of plain white */
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; outline: none; }

/* FIX 1: Scroll Margin Top ensures header doesn't cover section titles */
section { 
    padding: 60px 0; 
    position: relative; 
    scroll-margin-top: calc(var(--header-height) - 40px); 
}

.container { 
    width: 90%; 
    max-width: var(--max-width); 
    margin: 0 auto; 
    position: relative; 
    z-index: 10; 
}

/* ==========================================================================
   TYPOGRAPHY & GRADIENTS
   ========================================================================== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
p { font-size: 1.05rem; text-align: justify; }
strong { font-weight: 700; color: var(--color-primary); }

.text-gradient-blue {
    background: linear-gradient(135deg, #4b8bc0 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* RICH TEXT CONTENT (WYSIWYG) */
.rich-text-content { font-size: 1.15rem; line-height: 1.8; color: var(--color-text-muted); margin-bottom: 40px; }
.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 { color: var(--color-primary); margin-top: 60px; margin-bottom: 24px; }
.rich-text-content h2 { font-size: 2.2rem; border-bottom: 2px solid var(--color-border); padding-bottom: 16px; }
.rich-text-content h3 { font-size: 1.6rem; }
.rich-text-content p { margin-bottom: 24px; text-align: justify; }

/* Transforma citações (blockquote) em um lindo bloco de destaque */
.rich-text-content blockquote { 
    display: block; 
    color: var(--color-primary); 
    background: rgba(4, 80, 165, 0.04); 
    padding: 16px 20px; 
    border-radius: 8px; 
    border-left: 4px solid var(--color-primary); 
    margin: 0 0 24px 0; 
    font-size: 1.15rem;
    font-weight: 600;
}

.rich-text-content ul, .rich-text-content ol { margin-bottom: 24px; padding-left: 20px; list-style: inherit; }
.rich-text-content li { margin-bottom: 10px; }
.rich-text-content img { border-radius: 12px; margin: 20px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* VNEK Grid System for Rich Text (Cards) */
.rich-text-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.rich-text-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--card-color, var(--color-primary));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.rich-text-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, var(--card-bg, rgba(4,80,165,0.03)) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.rich-text-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--card-color, var(--color-primary));
}
.rich-text-card:hover::before {
    opacity: 1;
}
.rich-text-card h3 {
    margin-top: 0 !important;
    font-size: 1.4rem !important;
    color: var(--color-text-dark) !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
}
.rich-text-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--card-bg, rgba(4, 80, 165, 0.1));
    color: var(--card-color, var(--color-primary));
    display: flex; align-items: center; justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.rich-text-card:hover .rich-text-card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--card-color, var(--color-primary));
    color: #ffffff;
    box-shadow: 0 10px 20px var(--card-bg, rgba(4,80,165,0.2));
}
.rich-text-card h3 svg {
    width: 24px;
    height: 24px;
}
.rich-text-card .subtitle {
    display: inline-block;
    color: var(--card-color, var(--color-primary));
    background: var(--card-bg, rgba(4, 80, 165, 0.05));
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid var(--card-bg, rgba(4, 80, 165, 0.1));
}
.rich-text-card p {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: var(--transition-normal); border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #4b8bc0 0%, var(--color-primary) 100%); color: #ffffff;
    box-shadow: 0 4px 12px rgba(49, 112, 167, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%); transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 112, 167, 0.4);
}

.btn-secondary {
    background-color: #ffffff; color: var(--color-text-dark);
    border-color: var(--color-border); box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.btn-secondary:hover {
    border-color: var(--color-primary); color: var(--color-primary);
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.btn-orange {
    background: linear-gradient(135deg, #ff9248 0%, var(--color-orange) 100%); color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.btn-orange:hover {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-hover) 100%); transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    display: flex; align-items: center; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-normal);
}
.main-header.scrolled { height: 85px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.header-container { display: flex; align-items: center; justify-content: space-between; }
.logo { height: 75px; width: auto; transition: var(--transition-normal); } /* Logo aumentado para nitidez */
.main-header.scrolled .logo { height: 55px; }
.nav-wrapper { display: flex; align-items: center; gap: 40px; }
.nav-menu ul { display: flex; gap: 32px; }
.nav-link { 
    font-size: 0.95rem; font-weight: 600; color: var(--color-text-muted); 
    padding: 5px 0; position: relative; transition: color 0.3s ease;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--color-primary); transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-highlight {
    background-color: rgba(4, 80, 165, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--color-primary);
    border: 1px solid rgba(4, 80, 165, 0.15);
}
.nav-highlight::after { display: none; }
.nav-highlight:hover { background-color: rgba(4, 80, 165, 0.1); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.phone-link { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-primary); }
.phone-link svg { color: var(--color-primary); }
.btn-header { padding: 10px 20px; font-size: 0.9rem; }

/* ==========================================================================
   HERO SECTION (CLEAN & BRIGHT)
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 15px);
    padding-bottom: 100px;
    background: transparent; /* Lets the dot grid show through */
}

.hero-container {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}

.hero-badge {
    display: inline-block; padding: 6px 14px;
    background: #ffffff; border: 1px solid var(--color-border);
    color: var(--color-primary); border-radius: 100px;
    font-size: 0.8rem; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.hero-title { font-size: 3.8rem; margin-bottom: 24px; color: var(--color-text-dark); }
.hero-subtitle { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; }

.hero-carousel { position: relative; width: 100%; max-width: 550px; margin: 0 auto; aspect-ratio: 4/3; }
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    border-radius: 24px; box-shadow: 0 30px 60px rgba(4, 80, 165, 0.15);
    border: 1px solid var(--color-border);
    opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }

/* ==========================================================================
   STATS BAR (INDIVIDUAL CARDS)
   ========================================================================== */
.stats-section { padding: 0 0 60px; background: transparent; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item { 
    background: #ffffff; 
    border-radius: 16px; 
    padding: 30px 20px; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(4, 80, 165, 0.05);
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    transition: var(--transition-normal);
    display: flex; flex-direction: column; gap: 8px;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(4, 80, 165, 0.1);
}
.stat-num { 
    font-size: 3.2rem; font-weight: 800; font-family: var(--font-heading); line-height: 1; 
    background: linear-gradient(135deg, #4b8bc0 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-lbl { font-size: 0.95rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-badge {
    display: inline-block; padding: 6px 14px;
    background: rgba(29, 78, 216, 0.08); color: var(--color-primary);
    border-radius: 100px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 16px;
}
.section-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--color-text-dark); }
.section-desc { font-size: 1.1rem; color: var(--color-text-muted); }

/* ==========================================================================
   SERVICES (PERFECT FLEX GRID - 4 COLUMNS)
   ========================================================================== */
.services-section { 
    background-color: #ffffff; 
    border-top: 1px solid var(--color-border); 
    border-bottom: 1px solid var(--color-border); 
    position: relative;
}
.services-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('vnek_mesh_bg.png'); background-size: cover; background-position: center; background-attachment: fixed;
    opacity: 0.03; pointer-events: none; z-index: 0;
}
.services-section .container { position: relative; z-index: 1; }

/* FIX 4: 8 services / 4 columns = perfect mathematical alignment with no empty spaces */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* FIX 3: Flexbox card to push the link to the bottom */
.service-card {
    background: var(--color-bg-slate);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column; /* Allows pushing content */
    height: 100%; /* Fill grid cell */
}

.service-card:hover {
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--color-primary);
}

.service-icon-wrapper {
    width: 50px; height: 50px;
    background: #ffffff; color: var(--color-primary);
    border: 1px solid var(--color-border); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrapper { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); }

.svg-container { color: var(--color-primary); display:flex; align-items:center; justify-content:center; width:28px; height:28px; transition: var(--transition-fast); }
.svg-container svg { width: 100%; height: 100%; }
.service-card:hover .svg-container { color: #ffffff; }

.service-card-title { font-size: 1.25rem; margin-bottom: 12px; }
.service-card-desc { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 24px; line-height: 1.5; text-align: justify; }

.btn-saiba-mais {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-saiba-mais svg { transition: var(--transition-fast); }
.btn-saiba-mais:hover svg { transform: translateX(5px); }

/* ==========================================================================
   ABOUT SECTION (FIXED LAYOUT)
   ========================================================================== */
.about-section { 
    background-color: var(--color-bg-slate); 
    position: relative;
}
.about-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('vnek_mesh_bg.png'); background-size: cover; background-position: center; background-attachment: fixed;
    opacity: 0.03; pointer-events: none; z-index: 0;
}
.about-section .container { position: relative; z-index: 1; }

/* FIX 2: Restored grid to 2 equal columns */
.grid-about {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.about-content h2 { font-size: 2.2rem; margin-bottom: 24px; }
.about-content p { margin-bottom: 20px; }

.values-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.value-item { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 600; color: var(--color-text-dark); background: #ffffff; padding: 16px; border-radius: 12px; border: 1px solid var(--color-border); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.value-item svg { color: var(--color-emerald); }

.about-visual img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }

/* ==========================================================================
   DIFERENCIAIS SECTION
   ========================================================================== */
.diferenciais-section { background: #ffffff; border-top: 1px solid var(--color-border); }
.grid-diferenciais { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.diferenciais-list { display: flex; flex-direction: column; gap: 30px; }
.diferencial-item { display: flex; gap: 20px; }
.diferencial-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(29, 78, 216, 0.1); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diferencial-text h4 { font-size: 1.25rem; margin-bottom: 8px; }

.cta-banner-box { background: var(--color-bg-slate); border: 1px solid var(--color-border); padding: 50px; border-radius: 24px; text-align: center; }
.cta-banner-box h3 { font-size: 1.8rem; margin-bottom: 16px; }

/* ==========================================================================
   CALCULATOR
   ========================================================================== */
.calculator-box { background: #ffffff; border: 1px solid var(--color-border); padding: 40px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.calc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; }
.calc-icon { color: var(--color-primary); background: rgba(4, 80, 165, 0.1); padding: 12px; border-radius: 12px; width: 48px; height: 48px; box-sizing: border-box; }
.calc-header h3 { font-size: 1.4rem; margin: 0; }

.calc-input-group { margin-bottom: 24px; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calc-label-row label { font-weight: 600; font-size: 0.95rem; color: var(--color-text-dark); }
.val-badge { background: var(--color-bg-slate-darker); padding: 4px 12px; border-radius: 20px; font-weight: 700; color: var(--color-primary); font-size: 0.9rem; border: 1px solid var(--color-border); }

.calc-slider { width: 100%; height: 6px; background: var(--color-bg-slate-darker); border-radius: 4px; outline: none; -webkit-appearance: none; accent-color: var(--color-primary); }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--color-primary); cursor: pointer; border: 3px solid #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }

.calc-results { background: var(--color-bg-slate); border-radius: 16px; padding: 24px; margin-top: 30px; border: 1px solid var(--color-border); }
.calc-result-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.95rem; color: var(--color-text-muted); font-weight: 500; }
.calc-total { border-top: 1px dashed var(--color-border-hover); padding-top: 16px; margin-top: 16px; font-size: 1.1rem; color: var(--color-text-dark); }
.calc-total strong { font-size: 1.5rem; color: #ef4444; }

.calc-cta-row { margin-top: 24px; text-align: center; }
.calc-cta-row p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 16px; line-height: 1.5; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section { 
    background-color: var(--color-bg-slate-darker); 
    border-top: 1px solid var(--color-border); 
    overflow: hidden; 
    position: relative;
}
.testimonials-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('vnek_mesh_bg.png'); background-size: cover; background-position: center; background-attachment: fixed;
    opacity: 0.04; pointer-events: none; z-index: 0;
}
.testimonials-section .container { position: relative; z-index: 1; }
.testimonials-carousel { overflow: hidden; position: relative; width: 100%; padding: 20px 0; }
.testimonials-track { display: flex; gap: 30px; transition: transform 0.5s ease; cursor: grab; }
.testimonials-track:active { cursor: grabbing; }

.testimonial-card { 
    background: #ffffff; border: 1px solid var(--color-border); border-radius: 20px; padding: 40px; 
    display: flex; flex-direction: column; justify-content: space-between; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.testimonial-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.testimonial-icon { 
    width: 64px; height: 64px; border-radius: 50%; 
    background: rgba(4, 80, 165, 0.08); color: var(--color-primary); 
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(4, 80, 165, 0.15); box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}
.stars { color: #eab308; font-size: 1.2rem; letter-spacing: 2px; }

.testimonial-text { font-size: 1.1rem; font-style: italic; color: var(--color-text-dark); margin-bottom: 30px; line-height: 1.6; position: relative; z-index: 1; }
.testimonial-text::before {
    content: '"'; position: absolute; top: -20px; left: -10px; font-size: 4rem; color: rgba(4, 80, 165, 0.05); z-index: -1; font-family: serif;
}

.author-info { border-top: 1px solid var(--color-border); padding-top: 20px; }
.author-name { display: block; font-weight: 700; color: var(--color-text-dark); font-size: 1.05rem; }
.author-role { display: block; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 4px; }

@media (max-width: 1024px) {
    .testimonial-card { flex: 0 0 calc((100% - 30px) / 2); }
}
@media (max-width: 768px) {
    .testimonial-card { flex: 0 0 100%; padding: 30px; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section { background: #ffffff; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.contact-info-panel { background: var(--color-bg-slate); padding: 40px; border-radius: 20px; border: 1px solid var(--color-border); }
.contact-method-item { display: flex; align-items: center; gap: 20px; padding: 20px; background: #ffffff; border: 1px solid var(--color-border); border-radius: 12px; margin-bottom: 16px; transition: var(--transition-fast); }
.contact-method-item:hover { border-color: var(--color-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.method-icon { width: 48px; height: 48px; background: rgba(29, 78, 216, 0.08); color: var(--color-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-whatsapp-bg { background: rgba(16, 185, 129, 0.1); color: var(--color-emerald); }
.method-details span { font-size: 0.8rem; text-transform: uppercase; color: var(--color-text-muted); display: block; }
.method-details strong { font-size: 1.1rem; color: var(--color-text-dark); }

.contact-form-panel { background: #ffffff; padding: 40px; border-radius: 20px; border: 1px solid var(--color-border); box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label { font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 16px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-bg-slate); font-family: inherit; font-size: 1rem; transition: var(--transition-fast); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-primary); background: #ffffff; box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer { background: #0f172a; color: #94a3b8; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { height: 40px; margin-bottom: 24px; filter: brightness(0) invert(1); }
.footer-grid h4 { color: #ffffff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 12px; }
.footer-grid a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.85rem; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition-normal); }
.modal.active { opacity: 1; visibility: visible; }
.modal-content { background: #ffffff; border-radius: 16px; padding: 40px; width: 90%; max-width: 600px; position: relative; transform: scale(0.95); transition: var(--transition-normal); box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.modal.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; background: var(--color-bg-slate); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--color-text-muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--color-border); color: var(--color-text-dark); }

/* Reveal Classes */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    background: var(--color-orange);
    transform: translateY(-3px);
}

/* WhatsApp Floating */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.whatsapp-floating:hover {
    transform: scale(1.1);
}
.whatsapp-floating svg { width: 32px; height: 32px; }
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.whatsapp-floating:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* --- RESPONSIVIDADE E MENU MOBILE --- */

/* Esconde o burger no desktop */
.btn-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}
.btn-burger .burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

/* Overlay para escurecer o fundo quando o menu está aberto */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modificações Mobile (Tablet e Celular) */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 991px) {
    /* Mostra o burger */
    .btn-burger {
        display: flex;
    }
    
    /* Configura o container de navegação para virar um menu lateral */
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding: 80px 30px 40px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    /* Menu Ativo (Aberto) */
    .nav-wrapper.active {
        right: 0;
    }
    
    /* Ajustes internos do menu mobile */
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }
    .nav-menu ul li a {
        font-size: 1.1rem;
    }
    
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #eee;
        gap: 20px;
    }
    
    /* Animação do Burger */
    .btn-burger.open .burger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .btn-burger.open .burger-bar:nth-child(2) { opacity: 0; }
    .btn-burger.open .burger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Grid adjustments */
    .hero-container, .grid-about, .grid-diferenciais, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
    .hero-section { text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    
    .section {
        padding: 50px 0; /* Menos padding no mobile */
    }
}

@media (max-width: 768px) {
    .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .hero-title { font-size: 2rem; }
    .btn { width: 100%; justify-content: center; }
    .hero-ctas { flex-direction: column; gap: 15px; }
    .calc-label-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .calc-result-row { flex-direction: column; text-align: center; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Menu Área do Cliente (Dropdown) */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 5px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.dropdown-item:hover {
    background: #fff7ed;
    color: var(--color-orange-hover);
}

/* ==========================================================================
   DIAGONAL COMPARE (2008 vs HOJE)
   ========================================================================== */
.diagonal-compare {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: #000;
}

.compare-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.compare-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.diagonal-compare:hover .compare-img img {
    transform: scale(1.05);
}

/* A nova imagem fica por cima com o clip-path */
.new-img {
    /* Corte poligonal: começa no topo esquerdo 0%, topo direito 100%, base direita 100% */
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 2;
}

/* Divisoria visual luminosa */
.new-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(to top right, transparent 49.8%, rgba(255,255,255,1) 50%, transparent 50.2%);
    pointer-events: none;
    transform: translate(-25%, 25%);
}

/* Rótulos */
.compare-label {
    position: absolute;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.15);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.5s ease;
}

.label-old {
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
}

.label-new {
    top: 20px;
    right: 20px;
    background: rgba(4, 80, 165, 0.9);
    color: white;
}