/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-green: #4CAF50;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Mobile Performance Optimizations - ENHANCED */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Disable ALL animations and transitions on mobile for better performance */
    /* EXCETO carrossel de depoimentos */
    *:not(.testimonial-carousel):not(.testimonial-slide):not(.carousel-dot):not(.carousel-prev):not(.carousel-next), 
    *:not(.testimonial-carousel):not(.testimonial-slide):not(.carousel-dot):not(.carousel-prev):not(.carousel-next)::before, 
    *:not(.testimonial-carousel):not(.testimonial-slide):not(.carousel-dot):not(.carousel-prev):not(.carousel-next)::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Simplify shadows and effects for better performance */
    .service-card,
    .testimonial,
    .modal-content,
    .carousel-container,
    .cities .city {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Testimonial slides têm suas próprias configurações */
    .testimonial-slide {
        box-shadow: 0 3px 15px rgba(0,0,0,0.1) !important;
    }
    
    /* Disable complex gradients on mobile */
    .hero::before,
    .hero::after,
    .service-area::before,
    .service-area::after,
    .cities .city::before,
    .cities .city::after,
    .cities .city .city-bg::before,
    .cities .city .city-bg::after {
        display: none !important;
    }
    
    /* Reduce blur effects */
    .testimonial-fade {
        background: linear-gradient(transparent, white) !important;
    }
    
    /* Force GPU acceleration off for better battery life */
    .cities .city,
    .cities .city .city-bg {
        will-change: auto !important;
        transform: none !important;
        backface-visibility: visible !important;
    }
}

/* Award link variant with small badge image */
a.feature.feature-link.award-link {
    background: linear-gradient(135deg, #ffd66b, #f3b34c);
    color: #2c2c2c;
    border: none;
    padding: 12px 20px; 
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

a.feature.feature-link.award-link:hover {
    background: linear-gradient(135deg, #ffc84a, #eea63b);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

a.feature.feature-link.award-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 208, 96, 0.5), 0 12px 24px rgba(0,0,0,0.2);
}

a.feature.feature-link.award-link img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

/* Mobile section optimizations */
@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header mobile optimization */
    .header {
        padding: 10px 0;
        min-height: 60px;
    }
    
    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-img {
        height: 35px !important;
        width: auto;
    }
    
    .slogan {
        font-size: 10px !important;
        margin-top: 2px !important;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding-top: 80px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0 30px;
    }
    
    .main-nav li {
        margin: 0 0 20px 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    
    .main-nav a {
        font-size: 18px;
        font-weight: 500;
        display: block;
        padding: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block !important;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 1002;
    }
    
    /* About section mobile */
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        order: 2;
        margin-top: 20px;
    }
    
    .about-image {
        order: 1;
        max-width: 100%;
    }
    
    /* Features section mobile */
    .features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .feature {
        padding: 12px 15px;
        font-size: 14px;
        justify-content: center; /* Centralizar no mobile */
        text-align: center;
    }
    
    /* Services section mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .service-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Section headers mobile */
    .section-header h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #357abd;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 15px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.underline {
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 0 auto 15px;
    border-radius: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 85px; /* Aumentado de 60px para 80px */
    width: auto;
    margin-right: 5px;
    transition: transform 0.3s ease; /* Adiciona transição suave ao redimensionar */
}

.logo-content {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-family: 'Bell MT', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.logo h1 span {
    color: var(--primary-color);
    display: inline;
    font-family: 'Bell MT', serif;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

.slogan {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    margin: 60px 0 0 15px;
    padding: 4px 10px;
    opacity: 0.85;
    color: var(--secondary-color);
    white-space: nowrap;
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
    letter-spacing: 0.3px;
    background-color: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
}

/* Ajuste para telas menores */
@media (max-width: 768px) {
    .logo-img {
        height: 60px; /* Aumentado de 50px para 60px em telas menores */
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .slogan {
        font-size: 0.7rem;
        margin: 45px 0 0 10px;
        padding: 3px 8px;
    }
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

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

/* Estilo específico para o botão Contact Us na navegação */
.main-nav .btn {
    color: white !important; /* Força o texto branco */
    background-color: var(--primary-color);
    padding: 8px 20px !important;
    border-radius: 4px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.main-nav .btn:hover {
    color: black !important; /* Texto preto ao passar o mouse */
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Remove a linha de baixo do botão */
.main-nav .btn:after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background:
      radial-gradient(1000px 600px at 75% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%),
      linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
      url('assets/images/hero-cleaning.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 120px 0 90px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
    transition: background-image 0.3s ease;
}

/* Hero overlay: subtle smudges/fog over glass + dynamic clean area that follows mouse */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0; /* behind canvas */
    /* Layered smudge/fog texture to simulate dirty glass */
    background:
      radial-gradient(1200px 800px at 10% 10%, rgba(255,255,255,0.03), rgba(255,255,255,0)) ,
      linear-gradient(rgba(255,255,255,0.10), rgba(0,0,0,0.12)),
      repeating-linear-gradient(
          115deg,
          rgba(255,255,255,0.06) 0px,
          rgba(255,255,255,0.06) 8px,
          rgba(0,0,0,0.04) 8px,
          rgba(0,0,0,0.04) 16px
      );
    backdrop-filter: blur(0.5px) saturate(0.98);
    opacity: 0.4;
    pointer-events: none; /* do not block mouse */
    /* No hole via mask; the trail is drawn on the canvas layer */
    transition: opacity 0.45s ease-out;
}

/* When actively cleaning (hover/focus), slightly reduce fog for a crisper look */
.hero.cleaning-active::before {
    opacity: 0.36;
}

/* Polished shine that follows the cursor across the entire hero - ENHANCED */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2; /* above canvas, below text */
    pointer-events: none;
    /* Default off-screen values are defined in JS via --mx/--my */
    background: 
        radial-gradient(
            300px 300px at var(--mx) var(--my),
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.6) 20%,
            rgba(255, 255, 255, 0.3) 40%,
            rgba(255, 255, 255, 0.0) 70%
        ),
        radial-gradient(
            600px 600px at var(--mx) var(--my),
            rgba(135, 206, 250, 0.4) 0%,
            rgba(135, 206, 250, 0.2) 30%,
            rgba(135, 206, 250, 0.0) 60%
        );
    mix-blend-mode: screen; /* create a light bloom over the image */
    opacity: 0; /* only show when active */
    transition: opacity 0.3s ease-out; /* faster transition */
}

.hero.cleaning-active::after {
    opacity: 1; /* full visibility when active */
}

/* Intensify edge glow and add pulsing effect when cleaning is active */
.hero.cleaning-active {
    box-shadow: 
        inset 0 0 0 2px rgba(74, 144, 226, 0.5), 
        0 0 50px rgba(74, 144, 226, 0.4),
        0 0 100px rgba(135, 206, 250, 0.3);
    animation: cleaningPulse 2s ease-in-out infinite;
}

/* Add pulsing animation for more dramatic effect */
@keyframes cleaningPulse {
    0%, 100% { 
        box-shadow: 
            inset 0 0 0 2px rgba(74, 144, 226, 0.5), 
            0 0 50px rgba(74, 144, 226, 0.4),
            0 0 100px rgba(135, 206, 250, 0.3);
    }
    50% { 
        box-shadow: 
            inset 0 0 0 3px rgba(74, 144, 226, 0.7), 
            0 0 70px rgba(74, 144, 226, 0.6),
            0 0 120px rgba(135, 206, 250, 0.5);
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 3; /* ensure text sits above shine & canvas */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Media query para dispositivos móveis */
@media screen and (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 80px 0 40px 0;
        height: auto;
        min-height: 70vh;
        background: 
            radial-gradient(800px 400px at 50% 30%, rgba(255,255,255,0.15), rgba(255,255,255,0) 60%),
            linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
            url('assets/images/hero-celular.png') no-repeat center center/cover !important;
    }
    
    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 16px !important;
        line-height: 1.4;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .contact-dropdown {
        width: 100%;
        max-width: 280px;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para o menu suspenso de contato */
.contact-dropdown {
    position: relative;
    display: inline-block;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.contact-dropdown-content {
    display: none;
    position: absolute;
    min-width: 180px;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
    right: 0;
}

.contact-dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.contact-dropdown-content a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.contact-dropdown-content a i {
    width: 20px;
    text-align: center;
}

/* Mostrar o dropdown ao passar o mouse */
.contact-dropdown:hover .contact-dropdown-content {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* About Section */
.about {
    background-color: var(--light-color);
}

/* Container principal do conteúdo */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Alinhar ao topo */
    margin-top: 40px;
}

/* Container da imagem */
.about-image {
    flex: 1;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3; /* Proporção 4:3 para a imagem */
    min-height: 300px; /* Altura mínima */
}

/* Estilo da imagem */
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centraliza a imagem */
    display: block;
    transition: transform 0.5s ease;
}

/* Efeito de hover suave */
.about-image:hover img {
    transform: scale(1.03);
}

/* Texto ao lado da imagem */
.about-text {
    flex: 1;
    max-width: 600px;
    padding-right: 20px; /* Espaçamento entre o texto e a imagem */
}

/* Ajuste para telas menores */
@media (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image {
        max-width: 100%;
        margin-top: 30px;
    }
    
    .about-text {
        max-width: 100%;
    }
}



/* Estilo base para todos os botões */
.feature, 
a.feature.feature-link {
    display: flex;
    align-items: center;
    justify-content: center; /* Centralizar conteúdo */
    padding: 14px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center; /* Centralizar texto */
    min-width: 200px;
    flex: 1 1 200px; /* Todos os botões com mesmo flex */
    max-width: none; /* Remover limitação de largura */
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    gap: 12px;
    height: 60px; /* Altura fixa para todos os botões */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Borda sutil */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    margin: 0; /* Remover margens específicas */
}

/* Estilo para o botão de experiência */
.feature.experience-feature {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    border: 1px solid rgba(13, 71, 161, 0.3) !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature.experience-feature i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Estilo para os links de recurso */
a.feature.feature-link {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    border: 1px solid rgba(13, 71, 161, 0.3) !important; /* Borda azul mais visível */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

a.feature.feature-link i {
    color: #1565c0;
}

/* Estilo específico para o botão de certificado */
.feature .fa-certificate {
    color: var(--light-green);
}

.feature .fa-certificate + span {
    color: var(--light-green);
    font-weight: 600;
}

/* Mantém o fundo consistente com os outros botões */
.feature:has(.fa-certificate) {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid rgba(13, 71, 161, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho ao passar o mouse */
.feature:has(.fa-certificate)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.4) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    transition: transform 1s ease-in-out;
    z-index: 1;
}

.feature:has(.fa-certificate):hover::before {
    transform: translateX(200%);
    transition: transform 1s ease-in-out;
}

a.feature.feature-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Estilo para o botão de prêmio */
a.feature.feature-link.award-link {
    background: linear-gradient(135deg, #ffd66b, #f3b34c);
    color: #2c2c2c;
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Borda sutil */
    font-weight: 600;
}

/* Estilo específico para o botão 100% Satisfaction */
a.feature.feature-link[aria-label*="satisfaction"] {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    border: 1px solid #92ee97f5 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    /* Remover largura específica para alinhar com outros botões */
    min-width: 200px;
    flex: 1 1 200px;
    margin: 0;
    justify-content: center; /* Centralizar conteúdo */
    text-align: center;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    a.feature.feature-link[aria-label*="satisfaction"] {
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        margin: 5px 0;
        justify-content: center;
    }
}

a.feature.feature-link[aria-label*="satisfaction"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 94, 32, 0.2);
}

a.feature.feature-link[aria-label*="satisfaction"] i {
    color: #2e7d32;
    font-size: 1.3rem;
    margin-right: 8px;
}

a.feature.feature-link.award-link:hover {
    background: linear-gradient(135deg, #ffc84a, #eea63b);
}

/* Container dos botões */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    align-items: stretch;
    justify-content: flex-start; /* Alinhar botões consistentemente */
}

/* Ícones e imagens dentro dos botões */
.feature i,
a.feature.feature-link i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Ajuste para o ícone de certificado */
.fa-certificate {
    font-size: 1.2rem;
}

/* Ajuste para o ícone de prêmio */
.feature.feature-link.award-link i {
    font-size: 1.2rem;
}

/* Estilo para a imagem do selo */
a.feature.feature-link img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 1px 2px rgba(0,0,0,0.16);
    flex-shrink: 0;
}

/* Texto dos botões */
.feature span,
a.feature.feature-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
}

/* Alinhamento vertical do conteúdo dos botões */
.feature,
a.feature.feature-link {
    display: flex;
    align-items: center;
    justify-content: center; /* Garantir centralização */
}

/* Garantir que o conteúdo do botão fique centralizado verticalmente */
.feature > *,
a.feature.feature-link > * {
    vertical-align: middle;
}

/* Animação de brilho */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Efeito de hover para todos os botões */
.feature,
a.feature.feature-link {
    position: relative;
    overflow: hidden;
}

.feature::before,
a.feature.feature-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.feature:hover,
a.feature.feature-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature:hover::before,
a.feature.feature-link:hover::before {
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
}

/* Garantir que o conteúdo fique na frente do efeito */
.feature > *,
a.feature.feature-link > * {
    position: relative;
    z-index: 2;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    
    .feature,
    a.feature.feature-link {
        width: 100%;
        min-width: 100%;
        flex: 1 1 100%;
        margin: 5px 0;
        justify-content: center; /* Manter centralização no mobile */
        text-align: center;
    }
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    overflow: hidden;
    /* soft blue-green base - cores mais intensas */
    background: linear-gradient(180deg, #e6f7ff 0%, #e0f2f1 100%);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    --rx: 0deg;
    --ry: 0deg;
    --tz: 0px;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz));
    will-change: transform, box-shadow;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Efeito de brilho suave ao passar o mouse */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.18) 0%, rgba(74, 144, 226, 0.05) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

/* Efeito de reflexo ao passar o mouse */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: perspective(900px) rotateX(0) rotateY(0) translateZ(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(74, 144, 226, 0.15);
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

/* Efeito de elevação suave */
@keyframes float {
    0% { transform: translateY(0px) translateZ(0); }
    50% { transform: translateY(-5px) translateZ(5px); }
    100% { transform: translateY(0px) translateZ(0); }
}

.service-card:hover {
    animation: float 4s ease-in-out infinite;
}

/* Subtle decorative background shapes inside each card */
.service-card::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    background:
      radial-gradient( circle at 30% 30%, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0) 60%),
      radial-gradient( circle at 70% 10%, rgba(33, 150, 243, 0.10), rgba(33, 150, 243, 0) 55%);
    transform: rotate(8deg);
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    animation: floatPattern 12s ease-in-out infinite;
}

.service-card:hover::before {
    transform: rotate(12deg) translateY(-6px) scale(1.03);
    animation-duration: 9s;
}

/* Color harmony variations per card - cores mais intensas */
.services-grid .service-card:nth-child(1)::before { 
    background:
      radial-gradient( circle at 30% 30%, rgba(33,150,243,0.25), rgba(33,150,243,0) 70%),
      radial-gradient( circle at 75% 15%, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0) 65%);
}
.services-grid .service-card:nth-child(2)::before {
    background:
      radial-gradient( circle at 30% 30%, rgba(76,175,80,0.25), rgba(76,175,80,0) 70%),
      radial-gradient( circle at 70% 10%, rgba(33,150,243,0.15), rgba(33,150,243,0) 65%);
}
.services-grid .service-card:nth-child(3)::before {
    background:
      radial-gradient( circle at 30% 30%, rgba(0,188,212,0.25), rgba(0,188,212,0) 70%),
      radial-gradient( circle at 70% 10%, rgba(76,175,80,0.15), rgba(76,175,80,0) 65%);
}
.services-grid .service-card:nth-child(4)::before {
    background:
      radial-gradient( circle at 30% 30%, rgba(33,150,243,0.25), rgba(33,150,243,0) 70%),
      radial-gradient( circle at 70% 10%, rgba(0,150,136,0.2), rgba(0,150,136,0) 65%);
}
.services-grid .service-card:nth-child(5)::before {
    background:
      radial-gradient( circle at 30% 30%, rgba(0,150,136,0.25), rgba(0,150,136,0) 70%),
      radial-gradient( circle at 70% 10%, rgba(33,150,243,0.15), rgba(33,150,243,0) 65%);
}
.services-grid .service-card:nth-child(6)::before {
    background:
      radial-gradient( circle at 30% 30%, rgba(76,175,80,0.25), rgba(76,175,80,0) 70%),
      radial-gradient( circle at 70% 10%, rgba(0,188,212,0.2), rgba(0,188,212,0) 65%);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.1), rgba(76, 175, 80, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(24px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
    padding: 10px;
    border: 2px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Estilo para as imagens dentro do service-icon */
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    padding: 5px;
    background: white;
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse */
.service-card:hover .service-icon {
    transform: translateZ(30px) translateY(-5px);
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.2), rgba(76, 175, 80, 0.18));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #43A047;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-icon {
    transform: translateZ(30px) translateY(-5px);
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.3), rgba(76, 175, 80, 0.28));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    transform: translateZ(18px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.service-card p {
    transform: translateZ(12px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

/* Efeito de destaque no título e parágrafo ao passar o mouse */
.service-card:hover h3 {
    color: var(--primary-color);
    transform: translateZ(24px) translateY(-2px);
}

.service-card:hover p {
    transform: translateZ(18px) translateY(2px);
}

@keyframes floatPattern {
    0% {
        transform: rotate(8deg) translateY(0) scale(1);
    }
    50% {
        transform: rotate(9deg) translateY(-8px) scale(1.02);
    }
    100% {
        transform: rotate(8deg) translateY(0) scale(1);
    }
}

.service-card:hover {
    animation: float 4s ease-in-out infinite;
}

/* Service Area */
.service-area {
    position: relative;
    overflow: hidden; /* Changed from visible to prevent overflow issues */
    background: linear-gradient(135deg, #616264b9, #555353, #444443);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    text-align: center;
    padding: 60px 0 40px;
    margin: 20px;
    border-radius: 12px;
    border: 10px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 10 10 10 1px rgba(255, 255, 255, 0.1), 
        inset 10 40px 120px rgba(0,0,0,0.3),
        10 10 10 8px rgba(255, 255, 255, 0.03),
        10 10 10 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    contain: content;
}

/* Glass effect - only on desktop */
@media (min-width: 769px) {
    /* Glass frame effect */
    .service-area::after {
        content: '';
        position: absolute;
        top: -16px;
        left: -16px;
        right: -16px;
        bottom: -16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        pointer-events: none;
        z-index: -1;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    }

    /* Glass texture and sheen */
    .service-area::before,
    .service-area::after {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    /* Simplified texture */
    .service-area::before {
        background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
        opacity: 0.3;
        z-index: 1;
    }

    /* Simplified sheen effect */
    .service-area::after {
        background: linear-gradient(
            110deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.15) 40%,
            rgba(255,255,255,0.4) 50%,
            rgba(255,255,255,0.15) 60%,
            rgba(255,255,255,0) 100%
        );
        transform: translateX(-100%) rotate(15deg);
        opacity: 0;
        z-index: 2;
        will-change: transform, opacity;
        animation: subtleSheen 10s ease-in-out infinite;
    }

    @keyframes subtleSheen {
        0%, 100% {
            opacity: 0;
            transform: translateX(-100%) rotate(15deg);
        }
        50% {
            opacity: 0.6;
            transform: translateX(100%) rotate(15deg);
        }
    }
}

/* Disable animations when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
    .service-area::after {
        animation: none !important;
        opacity: 0.1 !important;
    }
}

.service-area .section-header h2,
.service-area .section-header p {
    color: var(--white);
}


.cities {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 on top, 3 on bottom */
    gap: 30px; /* Reduced gap for better space usage */
    margin: 20px auto 40px; /* Reduced margins */
    padding: 20px 10px 40px; /* Reduced padding */
    max-width: 1200px;
    align-items: stretch;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 90%;
    box-sizing: border-box;
}

/* Force display of city frames and plaques - ENHANCED */
.cities .city::before,
.cities .city::after {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    content: '' !important;
}

/* Picture frame - MUCH LARGER and more visible */
.cities .city::before {
    content: '' !important;
    position: absolute !important;
    inset: -40px !important;
    border-radius: 15px !important;
    background: 
        url('assets/images/moldura.png'),
        linear-gradient(145deg, #e8e8e8 0%, #b8b8b8 25%, #888888 50%, #b8b8b8 75%, #e8e8e8 100%) !important;
    background-size: 100% 100%, 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 0 !important;
    width: auto !important;
    height: auto !important;
    border: 8px solid #666666 !important;
    border-style: ridge !important;
    box-shadow: 
        0 15px 10px rgba(0,0,0,0.5),
        inset 0 4px 8px rgba(255,255,255,0.5),
        inset 0 -4px 8px rgba(0,0,0,0.5),
        inset 4px 0 8px rgba(0,0,0,0.3),
        inset -4px 0 8px rgba(255,255,255,0.3) !important;
}

/* Metallic plaque with city names - OVERLAPPING IMAGES */
.cities .city::after {
    content: attr(aria-label) !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 10px !important; /* Inside the image area, overlapping */
    padding: 3px 8px !important;
    border-radius: 3px !important;
    background: 
        linear-gradient(135deg, #f8f8f8, #bdbdbd 35%, #7e7e7e 60%, #e7e7e7),
        rgba(255,255,255,0.95) !important;
    color: #2c2c2c !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.3px !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5) !important;
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.3), 
        inset 0 1px 2px rgba(255,255,255,0.8),
        inset 0 -1px 2px rgba(0,0,0,0.3) !important;
    z-index: 1 !important; /* Well above images and borders */
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    pointer-events: none !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
}

/* Uniform size for all city cards */
.cities .city {
    height: 200px; /* same as Haines City */
}

/* City names styled as framed mini-portraits */
.city {
    position: relative;
    padding: 14px 22px 38px; /* extra space for bottom plaque */
    border-radius: 12px;
    min-width: 170px;
    /* Ensure a visible area for the background */
    aspect-ratio: auto; /* we'll control height uniformly below */
    min-height: 0;
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28), inset 0 0 0 2px rgba(255,255,255,0.18), inset 0 10px 24px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
    
    /* Optional: Add a subtle pattern overlay */
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
      linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1)),
      linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1));
    background-size: 100% 100%, 10px 10px, 10px 10px;
    background-position: 0 0, 0 0, 5px 5px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
    margin-bottom: 14px; /* avoid overlap with plaque */
}

/* Stack multi-word names vertically like framed captions */
.city span {
    display: block;
    line-height: 1.12;
    color: transparent; /* hide inner text visually; plaque shows the name */
    text-shadow: none;
}

.city span + span {
    margin-top: 2px;
}

/* Image element used as visual background inside a city card */
.city .city-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: inherit !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Desktop-only complex effects */
@media (min-width: 769px) {
    .city .city-bg {
        transition: filter 0.5s ease, transform 0.5s ease !important;
        border: 6px solid transparent !important;
        background: 
            linear-gradient(white, white) padding-box,
            linear-gradient(45deg, 
                #c0c0c08a 0%, 
                #ffffff 25%, 
                #e8e8e8 50%, 
                #ffffff 75%, 
                #c0c0c0 100%
            ) border-box !important;
        box-shadow: 
            0 0 0 6px rgba(255,255,255,0.8),
            inset 0 0 0 2px rgba(255,255,255,0.9),
            0 6px 12px rgba(0,0,0,0.25) !important;
    }
}

/* Mobile: simplified styling */
@media (max-width: 768px) {
    .city .city-bg {
        transition: none !important;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
    }
}

/* Slight readability boost specifically for Haines image */
.city.city-haines .city-bg {
    filter: brightness(0.92) contrast(1.02);
}

/* Desktop-only enhanced hover effects */
@media (min-width: 769px) {
    .cities .city:hover .city-bg {
        border: 10px solid transparent !important;
        background: 
            linear-gradient(white, white) padding-box,
            linear-gradient(45deg, 
                #a8a8a8 05%, 
                #ffffff 20%, 
                #f0f0f0 40%, 
                #ffffff 60%, 
                #a8a8a8 80%,
                #ffffff 100%
            ) border-box !important;
        box-shadow: 
            0 0 0 8px rgba(255,255,255,0.9),
            inset 0 0 0 3px rgba(255,255,255,0.95),
            0 8px 16px rgba(0,0,0,0.3),
            0 0 25px rgba(255,255,255,0.6) !important;
        filter: brightness(1.05) contrast(1.02) !important;
    }
}

/* Mobile: disable complex hover effects */
@media (max-width: 768px) {
    .cities .city:hover .city-bg {
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
}

/* Mirror reflection effect using pseudo-element */
.cities .city .city-bg::before {
    content: '' !important;
    position: absolute !important;
    top: -4px !important;
    left: -4px !important;
    right: -4px !important;
    bottom: -4px !important;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.6) 0%,
        rgba(255,255,255,0.1) 25%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.1) 75%,
        rgba(255,255,255,0.6) 100%
    ) !important;
    border-radius: inherit !important;
    z-index: -15 !important; /* Well above images and borders */
    pointer-events: none !important;
    opacity: 0.9 !important;
    animation: mirrorShine 3s ease-in-out infinite !important;
}

/* Mirror shine animation */
@keyframes mirrorShine {
    0%, 100% { 
        background: linear-gradient(
            135deg,
            rgba(255,255,255,0.6) 0%,
            rgba(255,255,255,0.1) 25%,
            rgba(255,255,255,0.8) 50%,
            rgba(255,255,255,0.1) 75%,
            rgba(255,255,255,0.6) 100%
        );
    }
    50% { 
        background: linear-gradient(
            315deg,
            rgba(255,255,255,0.8) 0%,
            rgba(255,255,255,0.2) 25%,
            rgba(255,255,255,0.9) 50%,
            rgba(255,255,255,0.2) 75%,
            rgba(255,255,255,0.8) 100%
        );
    }
}

/* Metallic picture frame around each city - OVERRIDDEN BY TEST ABOVE */

/* Bottom metallic plaque showing the city name on the frame - OVERRIDDEN BY TEST ABOVE */

/* Ensure text sits above overlays */
.city { 
    z-index: 2; 
    position: relative;
}

/* Desktop-only hover effects */
@media (min-width: 769px) {
    .city:hover {
        transform: translateY(-4px) scale(1.04);
        box-shadow: 0 14px 28px rgba(0,0,0,0.35);
        filter: brightness(1.06) saturate(1.05);
    }
}

/* Mobile: disable hover effects */
@media (max-width: 768px) {
    .city:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        filter: none !important;
    }
}

/* Hover effects for larger frame and plaque */
.cities .city:hover::before {
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        inset 0 6px 12px rgba(255,255,255,0.6),
        inset 0 -6px 12px rgba(0,0,0,0.6),
        inset 6px 0 12px rgba(0,0,0,0.4),
        inset -6px 0 12px rgba(255,255,255,0.4) !important;
    transform: scale(1.02) !important;
    filter: brightness(1.1) !important;
}

.cities .city:hover::after {
    box-shadow: 
        0 12px 25px rgba(0,0,0,0.5), 
        inset 0 3px 6px rgba(255,255,255,0.9),
        inset 0 -3px 6px rgba(0,0,0,0.4) !important;
    transform: translateX(-50%) translateY(-3px) scale(1.05) !important;
    border: 3px solid rgba(255,255,255,0.9) !important;
}

/* Slight variation of the framed background for visual interest */
.cities .city:nth-child(1) { background-position: 30% 40%, 30% 40%; }
.cities .city:nth-child(2) { background-position: 60% 35%, 60% 35%; }
.cities .city:nth-child(3) { background-position: 45% 50%, 45% 50%; }
.cities .city:nth-child(4) { background-position: 70% 45%, 70% 45%; }
.cities .city:nth-child(5) { background-position: 55% 60%, 55% 60%; }
.cities .city:nth-child(6) { background-position: 35% 55%, 35% 55%; }

/* Ensure Haines City card uses the correct image with highest precedence */
.cities .city.city-haines {
    background-image:
      linear-gradient(rgba(0,0,0,0.20), rgba(0,0,0,0.20)),
      url("assets/images/haines-city.jpg") !important;
    background-position: center center, center center !important;
    background-size: cover, cover !important;
    background-repeat: no-repeat, no-repeat !important;
    /* uniform size handled by .cities .city */
}

/* Testimonials */
.testimonials {
    background-color: var(--light-color);
    padding: 60px 0;
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 10px 0;
}

.testimonial-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.2s ease-in-out;
    width: 100%;
}

.testimonial {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    min-width: 300px;
    flex: 0 0 calc(100% - 40px);
    margin: 0 20px;
    opacity: 0.7;
    transform: scale(0.95);
}

.testimonial.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Navigation Dots */
.testimonial-dots {
    text-align: center;
    margin: 20px 0 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Navigation Arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.testimonial-nav button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
    font-size: 18px;
    color: #333;
}

.testimonial-nav button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.testimonial-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f5f5f5;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonials {
        padding: 30px 0; /* Reduzir padding da seção */
    }
    
    /* Estilos mobile específicos removidos para evitar conflitos */
    /* As configurações mobile estão definidas mais abaixo */
    
    .testimonial-fade {
        display: none !important;
    }
    
    /* Ajustar informações do cliente */
    .client {
        padding-top: 10px !important;
    }
    
    .client img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .client-info h4 {
        font-size: 14px !important;
        margin-bottom: 3px !important;
    }
    
    .client-info .stars {
        font-size: 12px !important;
    }
    
    .client-info span {
        font-size: 11px !important;
    }
    
    .read-more-btn {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 12px;
        cursor: pointer;
        margin-top: 8px;
        transition: all 0.3s ease;
        display: none;
    }
    
    .read-more-btn:hover {
        background: var(--secondary-color);
        transform: scale(1.05);
    }
    
    .testimonial-nav button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Animation for testimonial entry */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Carrossel contínuo - melhorias de performance */
.testimonial-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 350px; /* Altura para 3 cards */
    width: 100%;
    max-width: 1200px; /* Largura maior para 3 cards */
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

.testimonial-carousel {
    display: flex;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    height: auto;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards exatos no desktop */
    width: calc(33.333% - 20px);
    min-height: 320px;
    height: auto;
    overflow: visible; /* Permitir texto completo */
    padding: 20px;
    margin: 0 10px;
    box-sizing: border-box;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Texto completo para desktop - sem cortes */
.testimonial-text {
    max-height: none !important; /* Sem limitação de altura */
    overflow: visible !important;
    height: auto !important;
}

.testimonial-text p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    height: auto !important;
    max-height: none !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Indicadores do carrossel com animação suave */
.carousel-dot {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, background-color;
}

.carousel-dot.active {
    transform: scale(1.2) !important;
}

/* Botões de navegação com hover melhorado */
.carousel-prev,
.carousel-next {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, background-color;
}

/* Hover completamente desabilitado - carrossel SEMPRE contínuo */
.testimonial-carousel-container:hover .testimonial-carousel,
.testimonial-carousel-container:focus .testimonial-carousel,
.testimonial-carousel-container:active .testimonial-carousel {
    animation-play-state: running !important; /* SEMPRE rodando */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Barra de progresso do carrossel */
.carousel-progress {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.carousel-progress-bar {
    background: linear-gradient(90deg, #4CAF50, #66BB6A) !important;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    transition: width 0.1s linear;
}

/* Otimizações para mobile */
@media (max-width: 768px) {
    .testimonial-carousel-container {
        padding: 0 35px !important;
        min-height: 280px !important; /* Reduzido para cards menores */
    }
    
    .testimonial-carousel {
        height: auto !important;
    }
    
    .testimonial-slide {
        min-width: 100% !important; /* 1 card por vez no mobile */
        min-height: 250px !important; /* Cards menores no mobile */
        max-height: 280px !important;
        height: auto !important;
        overflow: hidden !important; /* Esconder overflow para manter tamanho */
        padding: 15px !important; /* Padding menor */
        margin: 0 !important; /* Sem margem no mobile */
    }
    
    /* Garantir que o carrossel funcione no mobile */
    .testimonial-carousel {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform !important;
    }
    
    .carousel-dot {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
        z-index: 1000 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .carousel-prev {
        left: 5px !important;
    }
    
    .carousel-next {
        right: 5px !important;
    }
    
    .carousel-progress {
        margin-top: 10px !important;
        height: 2px !important;
    }
    
    .carousel-dots {
        margin-top: 10px !important;
        gap: 6px !important;
    }
    
    .carousel-dot {
        width: 8px !important;
        height: 8px !important;
    }
}


.quote i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.quote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
}

.client img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
}

.client-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.stars {
    color: #ffc107;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    max-width: 500px;
}

.contact-method {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text {
    flex: 1;
}

.contact-text h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sms-link {
    margin-left: 8px;
    font-size: 1em;
    opacity: 0.85;
    background: #e0f2f1;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid #b2ebf2;
    transition: all 0.3s ease;
}

.sms-link:hover {
    opacity: 1;
    color: var(--accent-color);
    background: #b2ebf2;
    transform: scale(1.05);
}

.contact-method p {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    line-height: 1.4;
}

.contact-text a {
    color: var(--text-color);
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-top: 40px;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-width: 600px;
    width: 100%;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

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

/* Section Header Improvements */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section Media Queries */
@media screen and (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info,
    .contact-form {
        max-width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .contact-method {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .social-links {
        justify-content: center;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-about p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-links h3,
.footer-services h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-left: 30px;
}

.footer-links h3:after,
.footer-services h3:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: block;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-credits {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 5px;
    border-radius: 3px;
}

.footer-credits:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-bottom a {
    text-decoration: none;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    background: #357abd;
    transform: translateY(-3px);
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Melhorando o foco para acessibilidade */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Animation for gradient background */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image {
        width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    .contact-method {
        padding: 15px;
        margin-bottom: 15px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .contact-icon {
        font-size: 20px;
        margin-right: 15px;
    }
    
    .contact-text h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .contact-text p {
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* 2 columns for cities on tablets */
    .cities { 
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px 5px 30px;
        margin: 15px auto 30px;
        width: 95%;
    }
}

@media (max-width: 768px) {
    .testimonial {
        min-width: calc(100% - 40px);
        max-width: 100%;
        margin: 0 20px;
    }
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: var(--white);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        text-align: center;
        padding-top: 100px;
        height: auto;
        min-height: 90vh;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .contact-dropdown-content {
        position: static;
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .contact-dropdown:hover .contact-dropdown-content,
    .contact-dropdown:focus-within .contact-dropdown-content {
        display: block;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    /* 1 column for cities on phones - OPTIMIZED */
    .cities { 
        grid-template-columns: 1fr; 
        gap: 15px !important; 
        padding: 10px 5px 15px;
        margin-top: 15px;
        contain: layout style paint; /* CSS containment for better performance */
    }
    
    /* Service area mobile optimization - ENHANCED */
    @media (max-width: 768px) {
        .service-area {
            overflow-x: hidden;
            padding: 20px 10px !important;
            margin: 5px !important;
            border-radius: 10px;
            background: #555353 !important; /* Simplified solid background */
            box-shadow: none !important; /* Remove shadow for better performance */
            will-change: auto !important; /* Disable hardware acceleration */
        }
        
        /* Remove ALL complex effects on mobile */
        .service-area::before,
        .service-area::after {
            display: none !important;
        }
        
        .service-area .container {
            padding: 0 5px !important;
            overflow-x: hidden;
            max-width: 100% !important;
        }
        
        /* Otimização para reduzir travamentos */
        @media (prefers-reduced-motion: reduce) {
            /* Efeitos já removidos */
        }
    }
    
    /* DISABLE complex city effects on mobile for performance */
    .cities .city::before,
    .cities .city::after {
        display: none !important; /* Remove frames and plaques on mobile */
    }
    
    /* Simplified city cards for mobile */
    .cities .city {
        height: 150px !important; /* Reduced height */
        border-radius: 8px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
        transform: none !important; /* Disable transforms */
        transition: none !important; /* Disable transitions */
        will-change: auto !important;
        contain: layout style paint;
        position: relative;
        background: #f5f5f5; /* Fallback background */
    }
    
    /* Mobile city names - simplified display */
    .cities .city .city-name {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        z-index: 10;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px !important;
    }
    
    .hero p {
        font-size: 14px !important;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-about h3,
    .footer-links h3,
    .footer-services h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    /* Remove all pseudo-elements on very small screens */
    .cities .city::before,
    .cities .city::after {
        display: none !important;
    }
}

/* Estilo para os botões de avaliação */
.more-reviews {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.more-reviews .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.more-reviews .btn i {
    font-size: 1.1em;
}

.more-reviews .btn-primary {
    background: #4285F4;
    color: white;
    border: none;
}

.more-reviews .btn-primary:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.more-reviews .btn-secondary {
    background: white;
    color: #5F6368;
    border: 1px solid #DADCE0;
}

.more-reviews .btn-secondary:hover {
    background: #F8F9FA;
    border-color: #C4C7C5;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .close-modal {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}
/* Estilos do Carrossel de Certificados */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
    height: 70vh;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
}
.carousel-slide img {
    max-width: 90%;
    max-height: 90%;
    display: block !important;
    width: auto;
    height: auto;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Cursor zoom apenas no desktop */
@media (min-width: 769px) {
    .carousel-slide img {
        cursor: zoom-in;
    }
}

.carousel-slide img:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-slide img.zoomed {
    cursor: zoom-out;
}

.carousel-slide img.dragging {
    cursor: grabbing !important;
}

.carousel-button {
    position: fixed !important; /* Fixed para não ser afetado pelo zoom */
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: var(--light-green);
    color: white;
    opacity: 0.9;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    display: none !important; /* Escondido por padrão */
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    z-index: 1001 !important; /* Acima do modal */
}

/* Mostrar setas apenas quando modal estiver aberto */
.modal[style*="display: flex"] .carousel-button,
.modal[style*="display: block"] .carousel-button {
    display: flex !important;
}

.carousel-button:hover {
    background-color: #43A047; /* Verde um pouco mais escuro no hover */
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* Efeito de clique */
.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Efeito de foco para acessibilidade */
.carousel-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

.carousel-button.prev {
    left: 20px !important; /* Posição fixa na tela */
}

.carousel-button.next {
    right: 20px !important; /* Posição fixa na tela */
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--light-green);
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

/* Efeito de foco para acessibilidade */
.indicator:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5);
}

/* Estilos do Modal de Certificados */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

/* Desktop: zoom customizado */
@media (min-width: 769px) {
    #certificateModal {
        touch-action: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
}

/* Mobile: Permitir zoom nos certificados */
@media (max-width: 768px) {
    #certificateModal {
        touch-action: pan-x pan-y !important;
        -webkit-user-select: auto !important;
        user-select: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overflow: auto !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999 !important;
    }
    
    #certificateModal .modal-content {
        position: relative !important;
        width: 95% !important;
        max-width: 100% !important;
        height: 90% !important;
        max-height: 90% !important;
        margin: 2% auto !important;
        padding: 15px !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x pan-y !important;
    }
    
    #certificateModal .carousel-container {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        touch-action: pan-x pan-y !important;
    }
    
    #certificateModal .carousel-slides {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: pan-x pan-y !important;
    }
    
    #certificateModal .carousel-slide {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        touch-action: pan-x pan-y !important;
        overflow: visible !important;
    }
    
    #certificateModal .carousel-slide img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        -webkit-user-select: auto !important;
        user-select: auto !important;
        -webkit-touch-callout: default !important;
        touch-action: pan-x pan-y !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
        position: relative !important;
        transform-origin: center center !important;
        transition: none !important;
    }
    
    #certificateModal .carousel-slide.zoomed img {
        touch-action: pan-x pan-y !important;
    }
    
    #certificateModal .carousel-button {
        display: flex !important;
        z-index: 10001 !important;
    }
    
    #certificateModal .close {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 10002 !important;
        background: rgba(0,0,0,0.6) !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: white !important;
        font-size: 24px !important;
    }
}

.modal[style*="display: flex"],
.modal[style*="display:block"],
.modal[style*="display: block"] {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: #fff;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: auto !important; /* Garante que recebe eventos */
}

/* Desktop: zoom customizado */
@media (min-width: 769px) {
    .modal-content {
        touch-action: none !important;
    }
    
    .modal-content * {
        touch-action: none !important;
        pointer-events: auto !important;
    }
}

/* Mobile: zoom customizado no modal */
@media (max-width: 768px) {
    #certificateModal .modal-content {
        touch-action: pan-x pan-y !important;
        max-width: 95% !important;
        max-height: 90% !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #certificateModal .modal-content * {
        touch-action: pan-x pan-y !important;
        pointer-events: auto !important;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    margin-top: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5rem;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .modal {
        padding: 20px 10px;
        align-items: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        width: 100%;
        margin: 0 auto;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
        position: static;
        transform: none;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Garante que o modal não fique muito próximo das bordas em telas muito pequenas */
    @media (max-height: 600px) {
        .modal {
            padding: 10px 0;
        }
        
        .modal-content {
            max-height: 95vh;
        }
    }
    
    .modal h2 {
        font-size: 20px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .close {
        font-size: 28px;
        right: 15px;
        top: 10px;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.1);
        border-radius: 50%;
    }
}

@media (max-width: 768px) {
    #certificateModal .carousel-container {
        max-width: 100%;
        margin: 10px 0;
        touch-action: pan-x pan-y !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #certificateModal .carousel-slide {
        height: auto !important;
        min-height: 50vh;
        touch-action: pan-x pan-y !important;
        overflow: visible !important;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #certificateModal .carousel-slide img {
        max-height: none !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        border-radius: 6px;
        -webkit-user-select: auto !important;
        user-select: auto !important;
        -webkit-touch-callout: default !important;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: pan-x pan-y !important;
    }
    
    /* Melhora a experiência do usuário ao fazer zoom */
    .modal {
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .video-container {
        margin: 10px 0;
        padding-bottom: 56.25%;
        height: 0;
    }
    
    .video-container iframe {
        border-radius: 6px;
    }
    .certificate-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .certificate-item {
        width: 100%;
        max-width: 100%;
    }
}


/* Form message styles */
.form-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideInDown 0.3s ease-out;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* Form button loading state */
.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.contact-form button[type="submit"]:disabled:hover {
    background-color: var(--primary-color);
    transform: none !important;
}
