/* =================================================================
   CRITICAL CSS - PERFORMANCE OPTIMIZATIONS
   ================================================================= */

/* Font loading optimization */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyeMZhrib2Bg-4.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =================================================================
   BASE STYLES
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    width: 100%;
}

.logo {
    height: 85px;
    width: auto;
    transition: transform 0.3s ease;
    max-width: 100%;
}

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

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #22c55e;
}

.whatsapp-header {
    background: #22c55e;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.whatsapp-header:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: #1f2937;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

/* Hero Section - OPTIMIZED */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed from fixed for better performance */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 90px;
    width: 100%;
    will-change: transform; /* Optimize for animations */
}

/* Lazy load hero background */
.hero.loaded {
    background-image: url('/imagens/hero-background.webp');
}

/* Optimize animations with GPU acceleration */
.hero-content {
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
    width: 100%;
    transform: translateZ(0); /* Force hardware acceleration */
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
}

.hero-cta {
    background: #22c55e;
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta:hover {
    background: #16a34a;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
}

/* Section Base */
.section {
    padding: 100px 0;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 70px;
    color: #1f2937;
    position: relative;
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #22c55e;
    border-radius: 2px;
}

/* Projects Section */
.projects {
    background: #f8fafc;
}

.projects-container {
    position: relative;
    width: 100%;
}

.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.loading-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* CORREÇÃO: Layout melhorado para projetos em grade fixa */
@media (min-width: 768px) and (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1400px;
        margin: 0 auto;
    }
}

@media (min-width: 1600px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
        max-width: 1600px;
        margin: 0 auto;
    }
}

.projects-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 100%;
}

/* Optimize carousel animations */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1); /* Better easing */
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Reduce layout thrashing */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
    will-change: transform; /* Optimize hover effects */
}

.project-card:hover {
    transform: translateY(-15px) translateZ(0);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

/* Lazy loading images optimization */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
}

.project-image img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 25px 25px;
    color: white;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
}

.project-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.project-description {
    padding: 25px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #1f2937;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: #22c55e;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.dot {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #22c55e;
    transform: scale(1.3);
}

.empty-projects {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    opacity: 0.3;
}

/* Services Section - CORRIGIDO para 2 cards no desktop */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.services-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.services-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

/* CORREÇÃO PRINCIPAL: Desktop mostra 2 cards por slide, Mobile 1 card */
.service-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 0 20px;
    flex-shrink: 0;
}

/* Mobile: 1 card por slide, empilhado verticalmente */
@media (max-width: 767px) {
    .services-carousel {
        overflow: hidden !important;
        padding: 0 10px !important;
    }
    
    .service-slide {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        flex-direction: column;
        gap: 20px;
    }
    
    .service-card {
        width: 350px !important;
        max-width: calc(100vw - 40px) !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
    }
    
    /* No mobile, cada slide deve mostrar apenas 1 card */
    .service-slide .service-card:not(:first-child) {
        display: none;
    }
    
    /* Garantir visibilidade correta */
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
}

/* Tablet: ainda mostra 2 cards lado a lado */
@media (min-width: 768px) and (max-width: 991px) {
    .service-slide {
        gap: 25px;
        padding: 0 15px;
    }
}

/* Desktop: 2 cards lado a lado */
@media (min-width: 992px) {
    .service-slide {
        gap: 30px;
        padding: 0 20px;
    }
}

.services-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.service-btn-nav {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #1f2937;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.service-btn-nav:hover {
    background: #22c55e;
    transform: scale(1.1);
}

.services-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.service-dot {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-dot.active {
    background: #22c55e;
    transform: scale(1.3);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Service card optimizations */
.service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 350px;
    min-height: 450px;
    flex-shrink: 0;
    margin: 0 auto;
    will-change: transform;
    contain: layout style paint; /* CSS containment for performance */
}

/* Responsividade para cards de serviço */
@media (max-width: 767px) {
    .service-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .service-card {
        width: 320px;
    }
}

@media (min-width: 992px) {
    .service-card {
        width: 380px;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: scale(1.1);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
}

.service-list {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.service-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    color: #64748b;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
}

.service-btn {
    background: #1f2937;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.contact .section-title {
    color: white;
    position: relative;
    z-index: 2;
    word-break: keep-all;
    hyphens: none;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    line-height: 1.2;
}

/* No mobile muito pequeno, reduzir ainda mais o texto se necessário */
@media (max-width: 360px) {
    .contact .section-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
    }
}

.contact-subtitle {
    text-align: center;
    color: #d1d5db;
    font-size: 1.2rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

/* CORREÇÃO: Formulário mais equilibrado no desktop */
.contact .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.contact-form {
    max-width: 600px;
    width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 25px;
    color: #1f2937;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

/* Mobile e tablet pequeno: largura total */
@media (max-width: 767px) {
    .contact-form {
        width: calc(100% - 30px) !important;
        max-width: none !important;
        margin: 0 15px !important;
        padding: 30px 25px !important;
    }
}

/* Tablet: formulário um pouco maior mas controlado */
@media (min-width: 768px) and (max-width: 1024px) {
    .contact-form {
        max-width: 500px !important;
        width: 500px !important;
        padding: 35px !important;
    }
}

/* Desktop médio: bem compacto */
@media (min-width: 1025px) and (max-width: 1399px) {
    .contact-form {
        max-width: 580px !important;
        width: 580px !important;
        padding: 32px !important;
    }
}

/* Desktop grande: compacto e centralizado */
@media (min-width: 1400px) {
    .contact-form {
        max-width: 600px !important;
        width: 600px !important;
        padding: 35px !important;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    box-sizing: border-box !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.2);
}

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

.form-submit {
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box !important;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.form-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 5px 10px;
    background: #fee2e2;
    border-radius: 5px;
    border-left: 3px solid #ef4444;
}

/* Location Section */
.location {
    background: #f8fafc;
}

.location-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 800px;
    margin: 0 auto;
}

.address-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.address-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.address-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.address-details p {
    color: #64748b;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.6;
}

.location-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.location-btn:not(.secondary) {
    background: #22c55e;
    color: white;
}

.location-btn:not(.secondary):hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.location-btn.secondary {
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
}

.location-btn.secondary:hover {
    border-color: #22c55e;
    color: #22c55e;
    transform: translateY(-2px);
}

.map-section {
    position: relative;
    width: 100%;
}

.map-container-large {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.map-iframe-large {
    width: 100%;
    height: 500px;
    border: none;
    filter: grayscale(10%);
    transition: filter 0.3s ease;
    display: block;
}

.map-iframe-large:hover {
    filter: grayscale(0%);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #1f2937;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #22c55e;
    border-radius: 2px;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 25px;
    max-width: 100%;
}

.footer-about {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.contact-item:hover {
    color: #22c55e;
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

/* CORREÇÃO: Email responsivo no footer */
.contact-item span {
    word-break: break-all;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        align-items: center;
    }
    
    .contact-item span {
        font-size: 0.85rem;
        word-break: break-all;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .contact-item span {
        font-size: 0.8rem;
    }
}

.footer-quote {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    font-style: italic;
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 0.9rem;
}

/* Social Links - Cores originais das plataformas */
.social-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.3rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Instagram - Gradiente oficial */
.social-link.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040, #f77737, #fcaf45, #ffdc80);
    box-shadow: 0 4px 15px rgba(193, 53, 132, 0.4);
}

.social-link.instagram:hover {
    box-shadow: 0 8px 25px rgba(193, 53, 132, 0.6);
}

/* Facebook - Azul oficial */
.social-link.facebook {
    background: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-link.facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.6);
}

/* LinkedIn - Azul oficial */
.social-link.linkedin {
    background: #0077b5;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.4);
}

.social-link.linkedin:hover {
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.6);
}

/* YouTube - Vermelho oficial */
.social-link.youtube {
    background: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.social-link.youtube:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float-btn {
    width: 65px;
    height: 65px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.6);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    max-width: 450px;
    margin: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.4s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 1.8rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.modal-text {
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-btn {
    background: #1f2937;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modal-btn:hover {
    background: #374151;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design - Mobile First */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .contact-form {
        margin: 0 10px;
        padding: 20px 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-container {
        padding: 0 10px;
    }
}

@media (max-width: 375px) {
    .header-container {
        padding: 0 12px;
    }
    
    .logo {
        height: 50px;
    }
    
    .hero-cta {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .whatsapp-header {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 414px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 40px;
    }
    
    .project-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
        height: 70px;
    }

    .logo {
        height: 55px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .hero-cta {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .address-card {
        padding: 20px;
    }

    .address-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .contact-form {
        border-radius: 15px;
        margin: 0 10px;
        padding: 25px 20px;
    }
    
    .service-card {
        width: 100%;
        max-width: 400px;
        padding: 20px 15px;
    }
    
    .footer-logo {
        width: 150px;
        margin: 0 auto 20px auto;
    }
    
    .social-links {
        gap: 12px;
        justify-content: center;
    }
    
    .services-carousel {
        max-width: 100%;
    }
    
    .service-slide {
        padding: 0 10px;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .header-container {
        height: 70px;
    }

    .logo {
        height: 60px;
    }

    .hero {
        padding-top: 70px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 15px;
    }

    .section {
        padding: 80px 0;
    }

    .container {
        padding: 0 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
    }

    .location-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .address-card {
        padding: 25px;
        text-align: center;
    }
    
    .location-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .location-btn {
        min-width: auto;
        width: 100%;
    }
    
    .map-iframe-large {
        height: 350px;
    }

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

    .contact-form {
        padding: 30px 25px;
        margin: 0 15px;
        max-width: none;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    /* Mobile: Centralizar logo, redes sociais, mas contatos à esquerda */
    .footer-section:first-child {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 25px auto;
        display: block;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-quote {
        text-align: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    /* Redes sociais centralizadas */
    .footer-section:nth-child(3) {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin: 0 auto;
    }
    
    /* Contatos à esquerda para evitar "pirâmide" */
    .footer-section:nth-child(2) {
        text-align: left;
    }
    
    .contact-item {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .contact-form {
        max-width: 450px;
        padding: 35px;
    }
    
    .location-info {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .contact-form {
        max-width: 400px;
    }
    
    .container {
        max-width: 1000px;
        padding: 0 40px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1200px) {
    .contact-form {
        max-width: 380px;
        padding: 30px;
    }
    
    .location-info {
        max-width: 900px;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .contact-form {
        max-width: 400px;
        padding: 35px;
    }
    
    .location-info {
        max-width: 1000px;
    }
    
    .service-slide {
        max-width: 1200px;
    }
}

/* Correções para Samsung e outros dispositivos */
@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
    }
    
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Garantir que elementos críticos não excedam viewport */
.hero-content,
.container,
.contact-form,
.project-card,
.service-card,
.address-card,
.modal-content {
    max-width: 100%;
    box-sizing: border-box;
} {
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.location-btn