/* CSS Otimizado - Mobile First */

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #004AAD 0%, #0066CC 100%) !important;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    text-align: center;
    color: white;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Botão Hero */
.btn-hero {
    display: inline-block;
    background: #E30613;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.btn-hero:hover {
    background: #B8050F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Carrossel Otimizado */
.gallery-carousel {
    position: relative;
    background: #f8f9fa;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

/* Botões do carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #004AAD;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: #003080;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #004AAD;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navigation Links Hover Effect */
.nav-link-hover {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E30613;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.nav-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f2937;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsivo */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 16px;
        right: 16px;
    }
    
    /* Ajustes de padding/margin no mobile */
    section {
        padding: 3rem 0 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
}

/* Performance Optimizations */
.contain-layout { contain: layout; }
.will-change-transform { will-change: transform; }
.gpu-acceleration { transform: translateZ(0); }