@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    padding-top: 60px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    body {
        padding-top: 70px;
    }
}

@media (min-width: 1024px) {
    body {
        padding-top: 80px;
    }
}

.gallery-container {
    scroll-margin-top: 80px;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.gallery-tab {
    transition: all 0.3s ease;
}

.gallery-tab.active {
    background-color: #F47C20;
    color: white;
}

.whatsapp-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 124, 32, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 124, 32, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 124, 32, 0);
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 0 0.75rem;
    }
    .service-card {
        margin-bottom: 1.25rem;
    }
    .about-image {
        margin-bottom: 1.5rem;
    }
    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .footer-section:last-child {
        margin-bottom: 0;
    }
    h2 {
        font-size: 1.75rem !important;
    }
    h3 {
        font-size: 1.25rem !important;
    }
    .service-card .p-6 {
        padding: 1rem;
    }
    .gallery-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 374px) {
    .hero-contact-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.125rem !important;
    }
    .service-card .w-16.h-16 {
        width: 3rem;
        height: 3rem;
    }
    .service-card .text-2xl {
        font-size: 1.25rem;
    }
    .gallery-tab {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
}

.about-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.about-card {
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.profile-image {
    border: 4px solid #0E4666;
    transition: all 0.3s ease;
}

.profile-image:hover {
    border-color: #F47C20;
}

.history-text {
    line-height: 1.8;
}

.gallery-image {
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.gallery-image img {
    transition: transform 0.5s ease;
}

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

.hero-banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


.about-profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .about-profile-container {
        flex-direction: row;
        align-items: flex-start;
    }
    .profile-image-container {
        margin-right: 30px;
        flex-shrink: 0;
    }
    .hero-contact-btn-container {
        bottom: 10%;
    }
}

@media (min-width: 1024px) {
    .hero-banner-container {
        height: auto;
        max-height: 800px;
    }
    .hero-banner-wrapper {
        height: 100%;
    }
    .hero-banner-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .hero-contact-btn-container {
        bottom: 12%;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .service-card .p-6 {
        padding: 1.25rem;
    }
    .gallery-image .h-48 {
        height: 10rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner-container {
        height: auto;
    }
    .profile-image {
        width: 120px;
        height: 120px;
    }
}

button, a {
    touch-action: manipulation;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-banner-img, .gallery-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ================================================ */
/* CORREÇÃO DEFINITIVA DO CARROSSEL DE AVALIAÇÕES   */
/* ================================================ */

/* Define a seção de avaliações como referência para o posicionamento */
#avaliacoes {
    position: relative;
    padding-bottom: 50px; /* Cria espaço na parte inferior para as bolinhas */
}

/* Posiciona as bolinhas dentro da seção de avaliações */
#avaliacoes .swiper-pagination {
    position: absolute;
    bottom: 15px; /* Distância da parte inferior */
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Estilo para as bolinhas inativas */
.swiper-pagination-bullet {
    background-color: #cccccc;
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: background-color 0.3s ease;
}

/* Estilo para a bolinha ativa */
.swiper-pagination-bullet-active {
    background-color: #F47C20; /* Laranja da sua marca */
}

/* Garante que os slides tenham a mesma altura */
.swiper-slide {
    height: auto;
}

/* Correção para o Carrossel não "vazar" o próximo slide */
.swiper-container {
    overflow: hidden;
}

/* Efeito de zoom suave para as imagens da seção "Quem Somos" */
#quem-somos img {
    transition: transform 0.4s ease;
}

#quem-somos div:hover > img {
    transform: scale(1.05);
}

/* ================================================ */
/* BOTÃO FLUTUANTE DO WHATSAPP                      */
/* ================================================ */

#whatsapp-fab {
    position: fixed;
    bottom: 40px; /* Aumentamos a distância da parte inferior */
    right: 40px;  /* Aumentamos a distância da direita */
    z-index: 1000;
    
    width: 60px;
    height: 60px;
    
    background-color: #25D366; /* Cor oficial do WhatsApp */
    color: white;
    
    border-radius: 50%; /* Deixa o botão redondo */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-fab i {
    font-size: 32px; /* Tamanho do ícone */
}

/* Efeito ao passar o mouse */
#whatsapp-fab:hover {
    transform: scale(1.1); /* Aumenta um pouco o tamanho */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Ajuste para telas menores */
@media (max-width: 640px) {
    #whatsapp-fab {
        width: 55px;
        height: 55px;
        bottom: 30px; /* Distância ajustada para celular */
        right: 30px;  /* Distância ajustada para celular */
    }

    #whatsapp-fab i {
        font-size: 28px;
    }
}

/* ================================================ */
/* ESTILO PARA ÍCONES DUOTONE DOS SERVIÇOS          */
/* ================================================ */

.service-card .fa-primary, .service-card .fa-secondary {
    transition: all 0.3s ease;
}

/* Define as cores padrão do ícone */
.service-card .fad {
    --fa-primary-color: #F47C20;   /* Laranja */
    --fa-secondary-color: #ffffff; /* Branco */
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 1;
}

/* Inverte as cores ao passar o mouse sobre o card */
.service-card:hover .fad {
    --fa-primary-color: #ffffff;   /* Branco */
    --fa-secondary-color: #F47C20; /* Laranja */
}