/* ========================================
   ARKO CONSTRUTORA - ESTILOS PRINCIPAIS
   ======================================== */

/* Reset e configurações base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #fff;
    overflow-x: hidden;
    padding-top: 56px;
    line-height: 1.6;
}

/* Tipografia */
p, h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.container h2 {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.service-card .card-body .card-text {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* ========================================
   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;
}

a:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */
.navbar {
    background-color: #fdfcfc;
    transition: background-color 0.3s ease-in-out;
    padding: 18px;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: #000;
    font-weight: 400;
}

.navbar-toggler-icon {
    background-color: #000;
}

.navbar.fixed-top {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ae1917;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.navbar-nav .nav-item.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link {
    padding: 10px;
    position: relative;
}

/* Otimizações de performance para parallax */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    will-change: transform;
}

/* Desabilita parallax em dispositivos móveis */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll !important;
        position: static !important;
        height: auto !important;
        display: block !important;
    }
}

/* Desabilita parallax em dispositivos móveis para melhor performance */
@media (max-width: 768px) {

    .parallax,
    .parallax {
        background-attachment: scroll;
    }
    
    #about {
        position: relative;
        z-index: 5;
        margin-bottom: 0;
        padding-bottom: 60px;
    }
    
    #services {
        position: static !important;
        z-index: auto !important;
        margin-top: 0 !important;
        padding-top: 60px !important;
        background-attachment: scroll !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Força o fluxo normal do documento */
    section {
        position: relative;
        display: block;
        clear: both;
    }
    
    #about + #services {
        margin-top: 0;
        padding-top: 40px;
    }
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

section {
    padding: 80px 0;
    margin: 0;
    clear: both;
}

/* Espaçamentos específicos para cada seção */
#home {
    padding: 0;
}

#produtos {
    padding: 100px 0;
}

#about {
    padding: 100px 0;
    position: relative;
    z-index: 0;
    clear: both;
}

#services {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    clear: both;
}

#projects {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

#contact {
    padding: 100px 0;
}

/* Seção de obras entregues */
.py-5 {
    padding: 100px 0 !important;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 2em;
}

p {
    font-size: 1.2em;
}

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

    #produtos,
    #about,
    #services,
    #projects,
    #contact {
        padding: 60px 0;
    }

    .py-5 {
        padding: 60px 0 !important;
    }
}

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

    #produtos,
    #about,
    #services,
    #projects,
    #contact {
        padding: 40px 0;
    }

    .py-5 {
        padding: 40px 0 !important;
    }
}

/* ========================================
   WHATSAPP FLUTUANTE
   ======================================== */

#whatsapp-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

#whatsapp-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#whatsapp-icon a:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

/* ========================================
   RODAPÉ
   ======================================== */
footer {
    background-color: #333;
    color: #fff;
}

/* ========================================
   SEÇÃO SOBRE NÓS
   ======================================== */
.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CARDS E COMPONENTES
   ======================================== */
.service-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    height: 100%;
}

.i-services {
    margin-top: 5px;
    font-size: 110px;
    color: #ae1917;
}

.service-card:hover {
    transform: scale(1.05);
}

/* Cards clicáveis de serviços */
a.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

a.service-card:hover {
    transform: scale(1.05);
    text-decoration: none;
    color: inherit;
}

a.service-card:focus {
    outline: 2px solid #ae1917;
    outline-offset: 2px;
}

.service-card .card-body {
    padding: 20px;
    color: #333;
}

.service-card h5 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.service-card p {
    font-size: 1.3em;
    color: #333;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
}

.project-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.a-contact {
    text-decoration: none;
    color: #fff;
}

.a-contact:hover {
    color: #fff;
}

#sobre-nos {
    text-align: justify;
}

.swiper-container {
    overflow: hidden;
    position: relative;
}

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

.card-swipper {
    width: 100%;
    max-width: 320px;
    /* Aumentei um pouco o tamanho do card */
    height: 350px;
    margin: 0 auto;
    border-radius: 15px;
    /* Bordas arredondadas no card */
    overflow: hidden;
    /* Garante que a imagem respeite o border-radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra no card */
    cursor: pointer;
    background-color: #fff;
    /* Fundo branco */
}

.card-img-top {
    border-radius: 15px 15px 0 0;
    /* Bordas arredondadas apenas no topo da imagem */
    width: 100%;
    height: 200px;
    /* Aumentei a altura da imagem */
    object-fit: cover;
    /* Garante que a imagem cubra o espaço sem distorcer */
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    /* Cor das setas */
    background-color: rgba(0, 0, 0, 0.5);
    /* Fundo semi-transparente */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Deixa as setas redondas */
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    /* Tamanho do ícone das setas */
}

.swiper-pagination-bullet {
    background-color: #fff;
    /* Cor dos indicadores */
    opacity: 0.5;
    /* Transparência dos indicadores inativos */
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
    /* Espaçamento entre os indicadores */
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    /* Cor do indicador ativo */
    opacity: 1;
    /* Remove a transparência do indicador ativo */
}

.card-title-swipper {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    padding: 10px 0;
}

.text-muted-swipper {
    padding: 8px !important;
}

/* ========================================
   OTIMIZAÇÕES DE PERFORMANCE
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

/* Melhorias de contraste para acessibilidade */
.text-muted {
    color: #6c757d !important;
}

/* ========================================
   BOTÕES
   ======================================== */
.btn-saiba-mais {
    position: absolute;
    top: 77.2%;
    /* 515px de 1893px = 27.2% */
    left: 28%;
    /* 417px de 1893px = 22% */
    font-size: 22px;
    background: linear-gradient(135deg, #ae1917, #d32f2f);
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 25px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 0 rgba(167, 59, 40, 0.555);
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: btnPulse 1.5s infinite;
    z-index: 10;
    min-width: 205px;
}

/* Animação de pulso natural */
@keyframes btnPulse {
    0% {
        transform: scale(1);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 50px rgba(40, 167, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.btn-saiba-mais:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Responsividade melhorada para o botão */
@media (max-width: 1200px) {
    .btn-saiba-mais {
        top: 77.2%;
        left: 28%;
        font-size: 20px;
        padding: 10px 20px;
        min-width: 190px;
    }
}

@media (max-width: 992px) {
    .btn-saiba-mais {
        top: 77.2%;
        left: 28%;
        font-size: 18px;
        padding: 8px 18px;
        min-width: 170px;
    }
}

@media (max-width: 768px) {
    .btn-saiba-mais {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px auto;
        display: block;
        font-size: 16px;
        padding: 10px 20px;
        min-width: 160px;
        width: fit-content;
    }
}

@media (max-width: 576px) {
    .btn-saiba-mais {
        font-size: 14px;
        padding: 8px 16px;
        min-width: 140px;
        margin: 15px auto;
    }
}