/* Variáveis de cores - Tema preto e branco */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --text-color: #333;
    --light-color: #fff;
    --gray-color: #f5f5f5;
    --dark-gray: #666666;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-right: 0 !important;
    overflow-y: scroll; /* Mantém a barra de rolagem sempre visível */
    -webkit-overflow-scrolling: touch; /* Melhora scroll em iOS */
    will-change: scroll-position; /* Otimiza animações de scroll */
}

/* Navbar */
.navbar {
    background: var(--primary-color);
    padding: 1.25rem 0;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 6rem;
}

.navbar.scrolled {
    padding: 0.625rem 0;
    height: 5rem;
}

.navbar-logo {
    height: 90px;
    transition: all 0.3s ease;
}

/* Menu Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Social Media Links */
.social-nav {
    margin-left: 2rem;
}

.social-nav .nav-link {
    color: var(--light-color) !important;
    font-size: 1.2rem;
    padding: 0.5rem;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
}

.social-nav .nav-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 60px 0 30px;
    color: var(--light-color);
    margin-top: 80px;
}

.footer-logo {
    height: 160px;
}

/* Utilitários */
.container {
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Responsividade */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }

    .navbar-logo {
        height: 60px;
    }

    .navbar-toggler {
        border-color: var(--light-color);
        
    }

    .navbar-nav {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }

    /* Footer Mobile */
    .footer {
        text-align: center;
        padding: 40px 0 20px;
    }

    .footer-logo {
        height: 60px;
        margin-bottom: 1rem;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    /* Containers */
    .container {
        padding: 0 10px;
    }

    .social-nav {
        margin: 0;
        justify-content: center;
        padding: 1rem 0;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes de utilidade */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Estilos para seções específicas */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

/* Botões */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn-primary {
        width: 100%;
        margin: 10px 0;
    }
}

/* Hero Section */
.hero-section {
    height: calc(100vh - 6rem);
    background-image: url('../img/consultorio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 6rem;
    will-change: transform; /* Otimiza a renderização */
    transform: translateZ(0); /* Força aceleração de hardware */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    will-change: opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--light-color);
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0; /* Começa invisível */
    animation: fadeInHero 0.8s ease-out forwards;
    animation-delay: 0.2s; /* Pequeno delay para garantir que os recursos estejam carregados */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Centraliza verticalmente */
}

.btn-contact {
    background-color: #25D366 !important; /* Cor do WhatsApp */
    color: var(--light-color) !important;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    border: none;
}

.btn-contact:hover,
.btn-contact:focus,
.btn-contact:active {
    background-color: #128C7E !important;
    color: var(--light-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-contact i {
    font-size: 1.4rem;
    color: var(--light-color) !important;
}

/* Animações adicionais */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 4rem);
        margin-top: 4rem; /* Ajuste para o header mobile */
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn-contact {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Separador de seções */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0;
    border: none;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: url('../img/marmore.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

/* Overlay escuro */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Ajuste para garantir que o conteúdo fique sobre o overlay */
.services-section .container {
    position: relative;
    z-index: 2;
}

/* Estilo dos títulos e textos */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Sobrescreve as cores para a seção de serviços (branco) */
.services-section .section-header h2,
.services-section .section-header p {
    color: var(--light-color);
}

/* Divisor decorativo */
.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 1rem auto 0;
}

/* Versão branca do divisor para a seção de serviços */
.services-section .section-header::after {
    background: linear-gradient(90deg, transparent, var(--light-color), transparent);
}

/* Otimização dos cards */
.service-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.row {
    margin-bottom: 30px;
}

.col-md-4 {
    margin-bottom: 30px;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    .services-background {
        background-attachment: scroll; /* Garante melhor performance em mobile */
    }
    
    .service-card {
        transform: none;
        will-change: auto;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* Team Section */
.team-section {
    padding: 120px 0;
    background-color: var(--light-color);
}

.team-member {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    position: relative;
}

/* Divisor entre membros da equipe */
.team-member:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.team-member:nth-child(even) {
    flex-direction: row-reverse;
}

.team-photo {
    flex: 1;
    padding: 2rem;
    position: relative;
    height: 600px; /* Altura fixa para todas as fotos */
    width: 400px; /* Largura fixa para todas as fotos */
    overflow: hidden; /* Garante que a imagem não ultrapasse o container */
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém a proporção da imagem e cobre todo o espaço */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Efeito flutuante nas fotos */
.team-photo img {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.team-info {
    flex: 1;
    padding: 2rem;
}

.team-name {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

/* Divisor abaixo do nome */
.team-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.team-member:hover .team-name::after {
    width: 100px;
}

.team-role {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.team-description {
    font-size: 1.1rem;
    color: var(--dark-gray);
    line-height: 1.8;
    text-align: justify;
}

/* Responsividade para equipe */
@media (max-width: 768px) {
    .team-member,
    .team-member:nth-child(even) {
        flex-direction: column;
        text-align: center;
        margin-bottom: 60px;
    }

    .team-photo {
        width: 100%;
        max-width: 450px; /* Menor no mobile */
        height: 300px; /* Menor no mobile */
        margin: 0 auto;
        padding: 1rem;
    }

    .team-info {
        padding: 1rem;
    }

    .team-name {
        font-size: 2rem;
    }

    .team-role {
        font-size: 1.1rem;
    }

    .team-description {
        font-size: 1rem;
    }

    .team-member:not(:last-child)::after {
        left: 5%;
        right: 5%;
        bottom: -30px;
    }

    .team-name::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .team-member:hover .team-name::after {
        width: 80px;
    }

    .team-description {
        text-align: justify;
        padding: 0 10px;
    }
}

/* FAQ Section com degradê */
.faq-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho sutil */
.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.faq-section .section-header h2,
.faq-section .section-header p {
    color: var(--light-color);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    background-color: transparent;
}

.accordion-button {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1.5rem;
    border: none;
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 1px solid var(--light-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--light-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background-color: var(--light-color);
    color: var(--dark-gray);
    padding: 1.5rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsividade FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .accordion-body {
        padding: 1rem;
    }
}

/* Social Media Section */
.social-section {
    padding: 120px 0;
    background-color: var(--light-color);
    
}

.instagram-feed {
    margin: 50px 0;
}

.insta-post {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.instagram-embed-container {
    position: relative;
    padding-bottom: 120%; /* Proporção do container */
    height: 0;
    overflow: hidden;
}

.instagram-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.insta-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .instagram-embed-container {
        padding-bottom: 150%; /* Ajuste para mobile */
    }
}

/* Modal do Instagram */
.insta-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.instagram-post-view {
    background: white;
}

.post-header {
    padding: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #efefef;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
}

.profile-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.profile-info span {
    font-size: 12px;
    color: #8e8e8e;
}

.post-content {
    display: flex;
    flex-direction: column;
}

.post-image img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.post-details {
    padding: 12px;
}

.post-actions {
    padding: 8px 0;
    border-top: 1px solid #efefef;
}

.post-actions i {
    font-size: 24px;
    margin-right: 16px;
    cursor: pointer;
}

.post-caption {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .insta-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .insta-modal .modal-content {
        height: 100%;
        border-radius: 0;
    }
}

.btn-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: var(--light-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: var(--light-color);
}

/* Controles do carrossel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    height: 40px;
    width: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsividade */
@media (max-width: 768px) {
    .social-section {
        padding: 60px 0;
    }

    .insta-post {
        margin-bottom: 20px;
        min-height: 400px;
    }
    
    .instagram-media {
        min-height: 400px;
    }
}

a[title~="Free Instagram Feed widget"] {
    display: none !important;
}

.eapps-widget-toolbar {
    display: none !important;
}
a[href*="elfsight.com"] {
    display: none !important;
}

/* Adicione no final do arquivo */
html {
    scroll-behavior: smooth;
}

/* Ajuste para compensar a navbar fixa */
#contato {
    scroll-margin-top: 80px;
}

/* Estilo para o container do botão do WhatsApp */
.whatsapp-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

.whatsapp-btn i {
    font-size: 1.2rem;
}

/* Estilos comuns para botões flutuantes */
.floating-button {
    position: fixed;
    right: 20px;
    width: 50px; /* Tamanho padronizado */
    height: 50px; /* Tamanho padronizado */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1000;
    color: white;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Botão Voltar ao Topo */
.scroll-top {
    bottom: 90px; /* 20px acima do botão do WhatsApp */
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    z-index: 999; /* Menor que o WhatsApp */
}

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

.scroll-top:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.scroll-top i {
    font-size: 20px;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float i {
    font-size: 24px;
}

.whatsapp-float:hover {
    background-color: #20ba57;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 25px;
        right: 15px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }
}

/* Modal de Contato */
#contactModal {
    background: none;
    padding: 0 !important;
}

#contactModal .modal-dialog {
    position: fixed; /* Reduzido para ficar mais próximo */
    bottom: 20px;
    right: 20px;
    margin: 0;
    width: 300px;
    transform: none !important; /* Remove a animação padrão do Bootstrap */
}

#contactModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Espaço entre o modal e o botão */
    bottom: -250px;
}

#contactModal .modal-header {
    background-color: #25d366;
    color: white;
    border-radius: 15px 15px 0 0;
}

/* Remove o backdrop e animação do modal */
.modal-backdrop {
    display: none;
}

.modal.fade .modal-dialog {
    transition: none;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
    #contactModal .modal-dialog {
        width: calc(100% - 40px); /* 20px de margem em cada lado */
        right: 20px;
    }
}

/* Ajustes para evitar problemas de scroll */
.modal {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
}

.modal-open {
    position: relative;
    width: 100%;
    overflow-y: auto !important;
}

/* Remove manipulações de scroll que podem causar travamento */
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Ajustes para mobile (telas menores que 768px) */
@media (max-width: 768px) {
    /* Ajuste do botão flutuante do WhatsApp */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 25px;
        right: 15px;
    }

    .whatsapp-float i {
        font-size: 28px;
    }

    /* Ajuste do modal em mobile */
    #contactModal .modal-dialog {
        position: fixed;
        bottom: 85px; /* Posiciona acima do botão do WhatsApp */
        right: 15px;
        width: calc(100% - 30px);
        max-width: 300px;
        margin: 0;
    }

    #contactModal .modal-content {
        border-radius: 15px;
    }

    #contactModal .modal-header {
        padding: 12px 15px;
    }

    #contactModal .modal-body {
        padding: 15px;
    }

    /* Ajuste do botão de voltar ao topo em mobile */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 85px;
        right: 15px;
    }

    .scroll-top i {
        font-size: 18px;
    }

    /* Ajuste dos botões de WhatsApp dentro das seções */
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
        text-align: center;
    }

    .whatsapp-btn i {
        font-size: 18px;
    }

    .whatsapp-btn-container {
        padding: 0 15px;
    }

    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .hero-section,
    .services-section,
    .team-section,
    .faq-section,
    .social-section {
        will-change: transform;
        transform: translateZ(0);
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 360px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 10px;
        right: 10px;
    }

    .whatsapp-float i {
        font-size: 24px;
    }

    #contactModal .modal-dialog {
        bottom: 70px;
        right: 10px;
        width: calc(100% - 20px);
    }
}

/* Nova animação otimizada */
@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pré-carregamento da imagem */
.preload-hero {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
}

/* =================== NAVBAR COLLAPSE =================== */
.navbar-collapse {
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 1200px) {
    .navbar-collapse {
        position: fixed;
        top: 96px; /* Altura do navbar */
        right: 0;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        padding: 1rem;
        transform: translateX(100%);
        z-index: 1000;
        border-radius: 10px 0 0 10px;
        width: 280px;
    }

    .navbar-collapse.show {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    /* Alinhamento do menu */
    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        color: var(--light-color) !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-5px);
    }

    /* Ajuste dos ícones sociais */
    .social-nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 1rem;
    }

    .social-nav .nav-item {
        margin: 0;
    }

    .social-nav .nav-link {
        padding: 0.8rem !important;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
    }

    .social-nav .nav-link:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.2);
    }

    /* Ajuste do botão toggler */
    .navbar-toggler {
        display: block;
        border: 2px solid var(--light-color);
        padding: 0.5rem;
        color: var(--light-color); /* Cor do ícone */
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-toggler:hover {
        opacity: 0.8;
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 80px;
    }

    .navbar-logo {
        height: 60px;
    }

    .navbar.scrolled {
        height: 70px;
    }

    .navbar.scrolled .navbar-logo {
        height: 50px;
    }

    .navbar-collapse {
        top: 80px; /* Ajuste para altura menor do navbar em mobile */
        max-height: calc(100vh - 80px);
    }

    .navbar.scrolled .navbar-collapse {
        top: 60px; /* Ajuste quando scrolled */
        max-height: calc(100vh - 60px);
    }
}
