/* Visimob - Branding Imobiliário | Design System Minimalista */

:root {
    /* Cores principais */
    --color-primary: #d54f4a;
    --color-primary-dark: #b83832;
    --color-primary-light: #e66962;
    --color-black: #000000;
    --color-dark: #1A1A1A;
    --color-gray-900: #2D2D2D;
    --color-gray-800: #404040;
    --color-gray-700: #525252;
    --color-gray-600: #666666;
    --color-gray-500: #808080;
    --color-gray-400: #999999;
    --color-gray-300: #B3B3B3;
    --color-gray-200: #CCCCCC;
    --color-gray-100: #F8F9FA;
    --color-gray-50: #F5F5F5;
    --color-white: #FFFFFF;
    --color-success: #00CC66;
    --color-warning: #FFAA00;
    --color-danger: #d54f4a;
    
    /* Tipografia Roboto */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombras minimalistas */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    
    /* Espaçamento (8px grid) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Tipografia Roboto */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

/* Hierarquia tipográfica */
h1 { 
    font-size: 3.5rem; 
    font-weight: var(--font-weight-black);
    line-height: 1.05;
    margin-bottom: var(--space-xl);
}

h2 { 
    font-size: 2.5rem; 
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

h3 { 
    font-size: 1.875rem; 
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-md);
}

h4 { 
    font-size: 1.5rem; 
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-sm);
}

h5 { 
    font-size: 1.25rem; 
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-sm);
}

h6 { 
    font-size: 1rem; 
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-xs);
}

/* Texto corpo */
p {
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.text-large {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    line-height: 1.7;
}

.text-small {
    font-size: 0.875rem;
    font-weight: var(--font-weight-light);
    line-height: 1.5;
}

/* Espaçamento de seções */
section {
    padding: var(--space-3xl) 0;
}

/* Remove bottom padding/margin from last sections before footer */
section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

section.cta-section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure no gap between CTA and footer */
.cta-section + footer,
main .cta-section:last-child + * {
    margin-top: 0 !important;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Main Layout */
main {
    flex: 1;
    padding-top: 0; /* Remove top padding so header touches navbar */
}

/* Page Headers for Internal Pages */
.page-header {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-900) 100%);
    color: var(--color-white);
    padding: 10rem 0 4rem; /* Increased top padding to account for navbar */
    margin-top: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-900) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-lg);
    color: var(--color-white);
}

.page-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-white);
}

/* Navbar (já está no componente) */

/* Botões minimalistas */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.025em;
    line-height: 1;
    white-space: nowrap;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(213, 79, 74, 0.2);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: var(--color-gray-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: calc(var(--space-md) - 2px) calc(var(--space-xl) - 2px);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    padding: calc(var(--space-md) - 2px) calc(var(--space-xl) - 2px);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    transform: translateY(-1px);
}

/* Tamanhos de botões */
.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.813rem;
    font-weight: var(--font-weight-regular);
}

.btn-xl {
    padding: var(--space-xl) var(--space-2xl);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--color-gray-200);
    background-color: var(--color-white);
    transition: border-color var(--transition-fast);
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Cards */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2.5rem;
}

/* Footer (já está no componente) */

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border: none;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: var(--color-success);
    color: var(--color-white);
}

.alert-error,
.alert-danger {
    background-color: var(--color-danger);
    color: var(--color-white);
}

.alert-warning {
    background-color: var(--color-warning);
    color: var(--color-white);
}

.alert-info {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1200;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #d54f4a;
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-dark { color: var(--color-dark); }
.text-muted { color: var(--color-gray-600); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }
.fw-normal { font-weight: 400; }
.fw-light { font-weight: 300; }

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.animated {
    opacity: 1;
}

/* CTA Sections */
.cta-section {
    background: #d54f4a;
    color: var(--color-white);
    text-align: center;
    padding: var(--space-3xl) 0;
    margin: 0;
    margin-bottom: 0 !important;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: var(--space-3xl); /* Add bottom padding to content instead */
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-lg);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Better readability */
}

.cta-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-2xl);
    color: var(--color-white);
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Better readability */
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Button variants for CTA */
.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    transform: translateY(-1px);
}

/* Performance Enhancements */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Skeleton Screens */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: 1em;
    border-radius: 4px;
}

.skeleton-image {
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1em;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 10;
    border-radius: inherit;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Back to Top Button Enhanced */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #d54f4a;
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-normal);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: white;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    justify-content: center;
    padding: var(--space-md) 0;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.trust-badge i {
    color: var(--color-success);
}

/* Improved Hover Effects */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: transform var(--transition-fast);
}

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

/* Advanced Image Loading States */
.img-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-lazy.loaded {
    opacity: 1;
}

.img-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.img-error {
    background: var(--color-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-500);
    font-size: 0.875rem;
    border: 1px dashed var(--color-gray-300);
}

/* Content Loading States */
.content-loading {
    pointer-events: none;
    opacity: 0.6;
}

.fade-in-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-ready.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimization Classes */
.gpu-accelerate {
    transform: translateZ(0);
    will-change: transform;
}

.preload-critical {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

/* Video Loading Optimization */
.hero-video-container {
    position: relative;
    overflow: hidden;
    background: var(--color-gray-900);
}

.hero-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    z-index: 2;
}

.hero-video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    text-align: center;
    z-index: 2;
}

/* Responsive Image Support */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.responsive-img-container {
    position: relative;
    overflow: hidden;
}

/* Progressive Loading */
.progressive-img {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.progressive-img.loaded {
    filter: blur(0);
}

/* Content Visibility Optimization */
.defer-render {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Loading Spinner for Dynamic Content */
.content-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-300);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
}

/* Enhanced Button Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: var(--color-white);
}

/* Classes utilitárias */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-dark { color: var(--color-dark); }
.text-muted { color: var(--color-gray-600); }
.text-white { color: var(--color-white); }

.fw-light { font-weight: var(--font-weight-light); }
.fw-regular { font-weight: var(--font-weight-regular); }
.fw-medium { font-weight: var(--font-weight-medium); }
.fw-bold { font-weight: var(--font-weight-bold); }
.fw-black { font-weight: var(--font-weight-black); }

/* Espaçamento utilitário */
.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* Responsividade melhorada */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 768px) {
    /* Page Header Mobile */
    .page-header {
        padding: 8rem 0 3rem; /* Account for navbar on mobile */
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    /* Tipografia mobile */
    h1 { 
        font-size: 2.5rem;
        line-height: 1.1;
    }
    h2 { 
        font-size: 2rem;
        line-height: 1.15;
    }
    h3 { 
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Espaçamento mobile */
    section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    /* Grid mobile */
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Botões mobile */
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Cookie consent mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Flash messages mobile */
    .flash-messages {
        left: var(--space-sm);
        right: var(--space-sm);
        max-width: none;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: var(--space-2xl) 0 0 0;
    }
    
    .cta-content {
        padding-bottom: var(--space-2xl);
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.875rem;
    }
}

/* ===================================
   Services Slider Styles
   =================================== */

.services-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px; /* Space for navigation buttons */
}

.services-slider {
    overflow: hidden;
}

.services-track {
    display: flex;
    transition: transform 0.5s ease;
}

.service-slide {
    flex: 0 0 100%;
    padding: 0 15px;
}

/* Service Card (for slider) */
.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(213, 79, 74, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: rgba(213, 79, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
}

.service-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    color: var(--color-black);
}

.service-description {
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.service-link:hover {
    gap: var(--space-sm);
    color: var(--color-primary-dark);
}

/* Navigation Buttons */
.services-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
    font-size: 1.25rem;
    color: var(--color-gray-600);
}

.services-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.services-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.services-nav:disabled:hover {
    background: var(--color-white);
    border-color: var(--color-gray-200);
    color: var(--color-gray-600);
}

.services-prev {
    left: 0;
}

.services-next {
    right: 0;
}

/* Dots Indicator */
.services-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.service-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gray-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.service-dot:hover {
    background: var(--color-gray-500);
}

.service-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}

/* Responsive adjustments for slider */
@media (min-width: 768px) {
    .service-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .service-slide {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    .services-slider-wrapper {
        padding: 0 40px;
    }
    
    .services-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-slider-wrapper {
        padding: 0;
    }
    
    .services-nav {
        display: none;
    }
    
    .service-slide {
        padding: 0 5px;
    }
}



/* Differential Card Specific Styles */
.differential-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.differential-icon {
    background: #d54f4a;
    color: var(--color-white);
}

.differential-card:hover .differential-icon {
    background: #c43530;
    transform: scale(1.1);
}

.differential-metric {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

/* Differentials wrapper adjustments */
.differentials-wrapper .service-slide {
    flex: 0 0 50%; /* 2 cards on desktop */
}

@media (max-width: 768px) {
    .differentials-wrapper .service-slide {
        flex: 0 0 100%; /* 1 card on mobile */
    }
    
    .differential-card {
        min-height: 320px;
        padding: 2rem 1.5rem;
    }
    
    .differential-metric {
        font-size: 1.5rem;
    }
    
    .differential-icon {
        margin-bottom: 1rem;
    }
}

/* ===================================
   Testimonials Grid Styles
   =================================== */

.testimonials-section {
    padding: var(--space-5xl) 0;
    background-color: var(--color-gray-50);
}

.testimonials-grid-wrapper {
    margin-top: var(--space-3xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-item {
    height: 100%;
}

/* Mobile slider styles */
@media (max-width: 767px) {
    .testimonials-grid {
        display: block;
        overflow: hidden;
        position: relative;
    }
    
    .testimonial-item {
        width: 100%;
        margin-bottom: var(--space-xl);
    }
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.testimonial-quote-icon {
    flex-shrink: 0;
}

.testimonial-quote {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    z-index: 10;
}

.testimonial-content {
    margin-bottom: var(--space-xl);
}

.testimonial-content {
    flex: 1;
    margin-bottom: var(--space-xl);
}

.testimonial-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    font-style: italic;
    margin: 0;
    white-space: pre-line;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: auto;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: contain;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin: 0 0 var(--space-xs) 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-title,
.author-company {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    line-height: 1.3;
}

.author-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-black);
    margin-bottom: var(--space-xs);
}

.author-info span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.4;
}

.testimonial-rating {
    display: flex;
    gap: var(--space-xs);
    color: var(--color-warning);
}

/* Remove old navigation styles */
.testimonials-nav-old {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
    font-size: 1.2rem;
    color: var(--color-gray-700);
    box-shadow: var(--shadow-md);
}

.testimonials-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.testimonials-prev {
    left: 0;
}

.testimonials-next {
    right: 0;
}

/* Dots Indicator */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gray-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.testimonial-dot:hover {
    background: var(--color-gray-500);
}

.testimonial-dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-slider-wrapper {
        padding: 0 40px;
    }
    
    .testimonials-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: var(--space-2xl);
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-slider-wrapper {
        padding: 0 30px;
    }
    
    .testimonials-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .testimonial-slide {
        padding: 0 10px;
    }
}

/* ===================================
   Projects Slider Styles
   =================================== */

.projects-slider-wrapper {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.projects-slider {
    overflow: hidden;
    margin: 0 40px;
}

.projects-track {
    display: flex;
    transition: transform 0.6s ease;
}

.project-slide {
    padding: 0 15px;
    transition: all var(--transition-medium);
}

/* Navigation Buttons */
.projects-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border: 2px solid var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.projects-prev {
    left: 0;
}

.projects-next {
    right: 0;
}

.projects-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

/* Dots Indicator */
.projects-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.project-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: var(--color-gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.project-dot.active,
.project-dot:hover {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Portfolio Button Styles */
.btn-portfolio {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: #d54f4a;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-portfolio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #d54f4a;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    overflow: hidden;
}

.btn-icon,
.btn-icon-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-medium);
}

.btn-icon-hover {
    transform: translate(-50%, 150%);
}

.btn-portfolio:hover .btn-icon {
    transform: translate(-50%, -150%);
}

.btn-portfolio:hover .btn-icon-hover {
    transform: translate(-50%, -50%);
}

.btn-portfolio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-portfolio:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-slider {
        margin: 0 20px;
    }
    
    .projects-nav {
        width: 40px;
        height: 40px;
    }
    
    .btn-portfolio {
        font-size: 1rem;
        padding: var(--space-sm) var(--space-lg);
    }
}