/* ==========================================
   PAVAGRO INFRAESTRUTURA — Main Stylesheet
   Palette: Green #4CAF50 / #5CB85C, Teal #1A6B5A / #176B5D, Dark Teal #0D4F4F
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --green-light: #6ECB63;
    --green: #4CAF50;
    --green-dark: #388E3C;
    --teal: #176B5D;
    --teal-dark: #0D4F4F;
    --teal-darker: #0A3D3D;
    --cream: #F5F2EB;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.25; color: var(--gray-900); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99999;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.preloader-logo { width: 120px; height: auto; margin: 0 auto 24px; border-radius: var(--radius-md); }
.preloader-bar { width: 200px; height: 4px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.preloader-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--teal)); border-radius: 4px; animation: preloaderAnim 1.5s ease-in-out forwards; }
@keyframes preloaderAnim { to { width: 100%; } }

/* ---------- Navbar ---------- */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    transition: var(--transition);
}
#header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}
.navbar { padding: 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
#header.scrolled .nav-container { height: 70px; }
.nav-logo img { height: 55px; border-radius: var(--radius-sm); transition: var(--transition); }
#header.scrolled .nav-logo img { height: 45px; }
.nav-menu { display: flex; align-items: center; }
.nav-list { display: flex; gap: 8px; }
.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    color: var(--white);
    transition: var(--transition);
}
#header.scrolled .nav-link { color: var(--gray-700); }
.nav-link:hover, .nav-link.active { color: var(--green); background: rgba(76,175,80,0.1); }
#header:not(.scrolled) .nav-link:hover, #header:not(.scrolled) .nav-link.active { color: var(--green-light); background: rgba(255,255,255,0.1); }
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: var(--white);
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
    padding: 10px 22px; border-radius: 50px;
    transition: var(--transition);
}
.nav-cta:hover { background: #1EBE5A; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); border-radius: 3px; transition: var(--transition); }
#header.scrolled .nav-toggle span { background: var(--gray-700); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ---------- Hero Slider ---------- */
.hero-section { position: relative; height: 100vh; min-height: 650px; overflow: hidden; }
.hero-slider { position: relative; height: 100%; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,61,61,0.75) 0%, rgba(13,79,79,0.55) 50%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: center;
    height: 100%; padding-top: 80px; padding-bottom: 120px;
    max-width: 800px;
}
.hero-badge {
    display: inline-block; width: fit-content;
    background: rgba(76,175,80,0.2); border: 1px solid rgba(76,175,80,0.4);
    color: var(--green-light); font-family: var(--font-heading);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    padding: 8px 20px; border-radius: 50px; margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
    color: var(--white); margin-bottom: 16px; line-height: 1.15;
}
.hero-text {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem); color: rgba(255,255,255,0.9);
    max-width: 620px; margin-bottom: 24px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700;
    padding: 14px 32px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(76,175,80,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--teal); border-color: var(--white); transform: translateY(-3px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--teal); transform: translateY(-3px); }
.btn-whatsapp { background: #25D366; color: var(--white); border-color: #25D366; }
.btn-whatsapp:hover { background: #1EBE5A; border-color: #1EBE5A; transform: translateY(-3px); box-shadow: 0 8px 25px rgba(37,211,102,0.35); }
.btn-full { width: 100%; justify-content: center; }

/* Hero controls */
.hero-controls {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; align-items: center; gap: 20px;
}
.hero-prev, .hero-next {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white); font-size: 1rem;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.hero-prev:hover, .hero-next:hover { background: var(--green); border-color: var(--green); }
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.3); border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: var(--green); border-color: var(--green); width: 36px; border-radius: 6px; }
.hero-scroll-down {
    position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    z-index: 10; color: rgba(255,255,255,0.7); text-align: center;
    font-size: 0.7rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px;
    animation: scrollBounce 2s infinite;
}
.hero-scroll-down span { display: block; margin-bottom: 4px; }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* Hero animations */
.animate-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.hero-slide.active .animate-fade-up { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.section-tag {
    display: inline-block;
    font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--green); margin-bottom: 12px;
}
.section-tag.light { color: var(--green-light); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-title.light { color: var(--white); }
.text-green { color: var(--green); }
.text-teal { color: var(--teal); }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--green), var(--teal)); margin: 0 auto 20px; border-radius: 4px; }
.section-divider.light { background: linear-gradient(90deg, var(--green-light), var(--white)); }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); line-height: 1.8; }

/* ---------- About ---------- */
.section-about { background: var(--gray-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.about-content h3 { font-size: 1.5rem; color: var(--teal); margin-bottom: 20px; }
.about-content p { margin-bottom: 16px; font-size: 1rem; color: var(--gray-600); }
.about-features { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.about-feature {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px; background: var(--white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.about-feature:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.about-feature i { font-size: 1.5rem; color: var(--green); margin-top: 4px; flex-shrink: 0; }
.about-feature strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; color: var(--gray-800); margin-bottom: 4px; }
.about-feature span { font-size: 0.88rem; color: var(--gray-500); }
.about-img-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-img-wrapper img { width: 100%; height: 450px; object-fit: cover; }
.about-experience {
    position: absolute; bottom: 24px; right: 24px;
    background: linear-gradient(135deg, var(--green), var(--teal));
    color: var(--white); padding: 20px 28px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-lg);
}
.exp-number { display: block; font-family: var(--font-heading); font-size: 3rem; font-weight: 900; line-height: 1; }
.exp-text { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }

/* MVV */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mvv-card {
    background: var(--white); padding: 40px 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); text-align: center;
    border-top: 4px solid transparent;
    transition: var(--transition);
}
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-top-color: var(--green); }
.mvv-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(23,107,93,0.1)); display: flex; align-items: center; justify-content: center; }
.mvv-icon i { font-size: 1.6rem; color: var(--green); }
.mvv-card h4 { font-size: 1.2rem; margin-bottom: 12px; color: var(--teal); }
.mvv-card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    background: var(--white); padding: 40px 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); border-left: 4px solid transparent;
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(76,175,80,0.03), rgba(23,107,93,0.03));
    opacity: 0; transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-left-color: var(--green); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 65px; height: 65px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--green), var(--teal));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; position: relative; z-index: 1;
}
.service-icon i { font-size: 1.5rem; color: var(--white); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 14px; color: var(--teal); position: relative; z-index: 1; }
.service-card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 20px; position: relative; z-index: 1; }
.service-link {
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
    color: var(--green); text-transform: uppercase; letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1;
}
.service-link:hover { color: var(--teal); gap: 12px; }

/* ---------- CTA ---------- */
.section-cta { position: relative; padding: 100px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,61,61,0.9), rgba(13,79,79,0.85)); }
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 750px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--white); margin-bottom: 20px; }
.cta-content p { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; line-height: 1.8; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Portfolio ---------- */
.section-portfolio { background: var(--gray-50); }
.portfolio-filter { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
    padding: 10px 24px; border-radius: 50px; border: 2px solid var(--gray-200);
    background: var(--white); color: var(--gray-600); cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-item { border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); cursor: pointer; }
.portfolio-item.hidden { display: none; }
.portfolio-img { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-img:hover img { transform: scale(1.08); }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,61,61,0.95) 0%, rgba(10,61,61,0.6) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px; opacity: 0; transition: opacity 0.4s ease;
}
.portfolio-img:hover .portfolio-overlay { opacity: 1; }
.portfolio-cat {
    display: inline-block; width: fit-content;
    background: var(--green); color: var(--white);
    font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 4px 12px; border-radius: 50px; margin-bottom: 10px;
}
.portfolio-overlay h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 8px; }
.portfolio-overlay p { color: rgba(255,255,255,0.8); font-size: 0.88rem; line-height: 1.6; }
.portfolio-hidden { display: none; }

/* ---------- Differentials ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.diff-card {
    background: var(--white); padding: 40px 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
    transition: var(--transition);
}
.diff-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.diff-number {
    position: absolute; top: 16px; right: 20px;
    font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900;
    color: rgba(76,175,80,0.08); line-height: 1;
}
.diff-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(23,107,93,0.1));
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.diff-icon i { font-size: 1.4rem; color: var(--green); }
.diff-card h3 { font-size: 1.15rem; color: var(--teal); margin-bottom: 12px; }
.diff-card p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; }

/* ---------- Stats ---------- */
.section-stats { position: relative; padding: 100px 0; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.stats-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,61,61,0.92), rgba(13,79,79,0.88)); }
.section-stats .container { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-card {
    text-align: center; padding: 40px 20px;
    background: rgba(255,255,255,0.06); backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md);
    transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-5px); }
.stat-icon { font-size: 2rem; color: var(--green-light); margin-bottom: 16px; }
.stat-number { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: var(--white); display: inline; }
.stat-suffix { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--green-light); display: inline; }
.stat-label { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--white); margin: 8px 0; }
.stat-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ---------- Process ---------- */
.section-process { background: var(--gray-50); }
.process-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.process-timeline::before {
    content: ''; position: absolute; left: 35px; top: 0; bottom: 0;
    width: 3px; background: linear-gradient(to bottom, var(--green), var(--teal));
}
.process-step { display: flex; gap: 30px; margin-bottom: 40px; position: relative; }
.process-step:last-child { margin-bottom: 0; }
.process-icon {
    width: 70px; height: 70px; min-width: 70px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
}
.process-icon span { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; color: var(--white); }
.process-content {
    background: var(--white); padding: 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); flex: 1; transition: var(--transition);
}
.process-content:hover { box-shadow: var(--shadow-lg); }
.process-content h3 { font-size: 1.2rem; color: var(--teal); margin-bottom: 10px; }
.process-content p { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; }

/* ---------- Testimonials ---------- */
.section-testimonials { background: var(--white); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-card {
    min-width: 100%; padding: 40px; background: var(--gray-50);
    border-radius: var(--radius-md); border-left: 4px solid var(--green);
}
.testimonial-stars { color: #F59E0B; margin-bottom: 16px; font-size: 1.1rem; display: flex; gap: 4px; }
.testimonial-card > p { font-size: 1.05rem; color: var(--gray-600); line-height: 1.8; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem;
}
.testimonial-author strong { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--gray-800); }
.testimonial-author span { font-size: 0.85rem; color: var(--gray-500); }
.testimonial-nav { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
.test-prev, .test-next {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--gray-200);
    color: var(--gray-600); font-size: 1rem;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.test-prev:hover, .test-next:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---------- Contact ---------- */
.section-contact { background: var(--gray-50); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 24px; background: var(--white); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateX(5px); }
.contact-icon {
    width: 50px; height: 50px; min-width: 50px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(23,107,93,0.1));
    display: flex; align-items: center; justify-content: center;
}
.contact-icon i { font-size: 1.3rem; color: var(--green); }
.contact-card h4 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--gray-800); margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 6px; }
.contact-card a { font-size: 0.85rem; color: var(--green); font-weight: 600; }
.contact-card a:hover { color: var(--teal); }
.contact-form-wrapper {
    background: var(--white); padding: 40px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-family: var(--font-heading); font-size: 0.85rem;
    font-weight: 600; color: var(--gray-700); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px; border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm); font-family: var(--font-body);
    font-size: 0.95rem; color: var(--gray-700); background: var(--gray-50);
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--green); background: var(--white);
    box-shadow: 0 0 0 4px rgba(76,175,80,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { height: 60px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 0.95rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.footer-col h4 {
    font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
    color: var(--white); margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 2px solid var(--green);
    display: inline-block;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--green-light); padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact li i { color: var(--green); margin-top: 4px; }
.footer-matrix {
    text-align: center; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0;
}
.footer-matrix p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px; font-family: var(--font-heading); font-weight: 600; }
.matrix-logo { height: 45px; margin: 0 auto; opacity: 0.7; transition: var(--transition); filter: brightness(1.5); }
.matrix-logo:hover { opacity: 1; }
.footer-bottom {
    text-align: center; padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem; color: rgba(255,255,255,0.4);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%;
    background: #25D366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.whatsapp-tooltip {
    position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
    background: var(--gray-800); color: var(--white);
    font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
    padding: 8px 16px; border-radius: var(--radius-sm);
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: var(--transition);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed; bottom: 100px; right: 28px; z-index: 998;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--teal); color: var(--white); border: none;
    font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green); transform: translateY(-3px); }

/* ---------- Scroll Animations ---------- */
[data-animate] { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate].animated { opacity: 1; transform: translate(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .services-grid, .diff-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img-wrapper img { height: 350px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html, body { width: 100%; overflow-x: hidden; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 85%; max-width: 350px; height: 100vh;
        background: var(--white); flex-direction: column; justify-content: flex-start;
        padding: 100px 30px 30px; box-shadow: var(--shadow-xl);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    .nav-menu.open { right: 0; }
    .nav-list { flex-direction: column; gap: 4px; width: 100%; }
    .nav-link { color: var(--gray-700) !important; padding: 14px 16px; font-size: 1rem; border-radius: var(--radius-sm); }
    .nav-link:hover, .nav-link.active { background: rgba(76,175,80,0.1); color: var(--green) !important; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-cta { display: none; }
    .hero-section { min-height: 100vh; width: 100%; }
    .hero-content { padding: 0 10px; padding-top: 80px; }
    .hero-controls { bottom: 60px; }
    .hero-scroll-down { display: none; }
    .section { padding: 70px 0; width: 100%; }
    .section-header { margin-bottom: 40px; }
    .services-grid, .diff-grid, .portfolio-grid, .mvv-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
    .process-timeline::before { left: 25px; }
    .process-icon { width: 50px; height: 50px; min-width: 50px; }
    .process-icon span { font-size: 1.1rem; }
    .process-step { gap: 20px; }
    .process-content { padding: 20px; }
    .testimonial-card { padding: 24px; }
    .hero-buttons .btn { padding: 12px 24px; font-size: 0.85rem; }
    .portfolio-grid { gap: 20px; }
    .container { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
    html, body { width: 100%; overflow-x: hidden; }
    .container { padding: 0 16px; width: 100%; max-width: 100%; }
    .hero-title { font-size: 1.8rem; }
    .hero-text { font-size: 0.95rem; }
    .hero-badge { font-size: 0.7rem; letter-spacing: 2px; padding: 6px 14px; }
    .section-title { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .whatsapp-float { width: 54px; height: 54px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    .back-to-top { bottom: 85px; right: 20px; width: 40px; height: 40px; }
    section { width: 100%; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 15px; }
    .portfolio-item { margin: 0; }
}

/* Mobile menu overlay */
.nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 998; opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------- Fortiq Assessoria Link ---------- */
.fortiq-link { color: var(--green-light); font-weight: 600; transition: var(--transition); }
.fortiq-link:hover { color: var(--green); text-decoration: underline; }


/* ---------- Videos Section ---------- */
.section-videos {
    background: var(--white);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    background: var(--white);
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}


/* ---------- Footer Legal Info ---------- */
.footer-legal-info {
    text-align: center; padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0;
}

.legal-content p {
    font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; line-height: 1.6;
}

.legal-content p:first-child {
    font-weight: 700; color: var(--white); margin-bottom: 12px; font-family: var(--font-heading);
}


/* ========================================== */
/* ---------- LIGHTBOX MODAL STYLES ---------- */
/* ========================================== */

.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-container {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 900px;
    height: 90vh;
    max-height: 700px;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 60%;
    object-fit: contain;
    animation: slideUp 0.4s ease-in-out;
    margin-bottom: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-info {
    text-align: center;
    width: 100%;
    animation: slideUp 0.5s ease-in-out 0.1s both;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    color: var(--teal-dark);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.lightbox-info p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

/* Portfolio Image Clickable */
.portfolio-img-clickable {
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-img-clickable:hover {
    transform: scale(1.02);
}

/* Responsivo para Tablets */
@media (max-width: 768px) {
    .lightbox-container {
        width: 95%;
        max-width: 100%;
        height: 85vh;
        max-height: 600px;
    }

    .lightbox-content {
        padding: 20px;
    }

    .lightbox-image {
        max-height: 50%;
    }

    .lightbox-info h3 {
        font-size: 1.2rem;
    }

    .lightbox-info p {
        font-size: 0.9rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Responsivo para Mobile */
@media (max-width: 480px) {
    .lightbox-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .lightbox-content {
        padding: 15px;
        justify-content: flex-start;
        padding-top: 60px;
    }

    .lightbox-image {
        max-height: 40%;
        margin-bottom: 15px;
    }

    .lightbox-info h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .lightbox-info p {
        font-size: 0.85rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .lightbox-close {
        width: 30px;
        height: 30px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}
