/********** Template CSS **********/
:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 66, 41, .6);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(15, 66, 41, .6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
}

.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

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

/*** Carousel Adjustments ***/
.carousel-caption h1 {
    font-size: 2.5rem; /* Reduz o tamanho do texto de display-1 (6rem) para 2.5rem (40px) */
    line-height: 1.2; /* Melhora a legibilidade */
    margin-bottom: 15px; /* Reduz a margem inferior (mb-5 é 3rem, ajustamos para 15px) */
    font-weight: 700; /* Mantém o peso forte */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adiciona sombra para contraste */
    max-width: 800px; /* Limita a largura do texto */
    margin-left: auto;
    margin-right: auto; /* Centraliza o texto */
}

.carousel-caption .btn {
    padding: 12px 25px; /* Ajusta o tamanho do botão para ser proporcional */
    font-size: 1.1rem; /* Tamanho de fonte menor no botão */
    border-radius: 8px; /* Bordas arredondadas mais suaves */
    background-color: var(--primary); /* Usa a cor primária definida */
    border-color: var(--primary); /* Consistência com a cor primária */
}

.carousel-caption .btn:hover {
    background-color: var(--dark); /* Cor escura ao passar o mouse */
    border-color: var(--dark);
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.8rem; /* Reduz ainda mais em telas menores */
    }

    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}



.carousel-item {
    height: 600px; /* Define uma altura fixa (ajuste conforme necessário, ex.: 500px ou 700px) */
    overflow: hidden; /* Garante que a imagem não exceda o limite */
}

.carousel-item img {
    object-fit: cover; /* Mantém a proporção da imagem */
    height: 100%; /* A imagem ocupa 100% da altura definida */
    width: 100%; /* A imagem ocupa 100% da largura */
}

/* Ajuste responsivo para telas menores */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px; /* Reduz a altura em telas menores */
    }
}.carousel-item {
    height: 600px; /* Define uma altura fixa (ajuste conforme necessário, ex.: 500px ou 700px) */
    overflow: hidden; /* Garante que a imagem não exceda o limite */
}

.carousel-item img {
    object-fit: cover; /* Mantém a proporção da imagem */
    height: 100%; /* A imagem ocupa 100% da altura definida */
    width: 100%; /* A imagem ocupa 100% da largura */
}

/* Ajuste responsivo para telas menores */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px; /* Reduz a altura em telas menores */
    }
}

    


/*** Footer Adjustments ***/
.footer {
    background: #082c1c !important; /* Cor escura similar à da imagem */
}

.footer h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.footer p {
    font-size: 0.9rem;
    color: #B0B0B0; /* Cinza claro para o texto */
}

.footer .btn-link {
    color: #B0B0B0;
    font-size: 0.9rem;
    padding: 5px 0;
    text-transform: none;
}

.footer .btn-link:hover {
    color: var(--primary); /* Cor primária (#348E38) ao passar o mouse */
}


#form-message {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
}

#form-message[style*="color: green"] {
    background-color: rgba(0, 128, 0, 0.1);
}

#form-message[style*="color: red"] {
    background-color: rgba(255, 0, 0, 0.1);
}



.nossa-historia-carousel {
    position: relative; /* Permite posicionar os pontos em relação ao carrossel */
    width: 100%; /* Garante que o carrossel ocupe toda a largura disponível */
}

/* Estilo dos pontos de navegação (dots) */
.nossa-historia-carousel .owl-dots {
    text-align: center;
    margin-top: 10px; /* Espaço entre os pontos e a imagem */
}

.nossa-historia-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.nossa-historia-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ccc; /* Cor dos pontos inativos (cinza) */
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s ease;
}

.nossa-historia-carousel .owl-dots .owl-dot.active span {
    background: #f1c40f; /* Cor do ponto ativo (amarelo) */
}

/* Estilo das imagens do carrossel */
.nossa-historia-carousel .item img {
    height: 300px; /* Mantém a altura ajustada das imagens */
    object-fit: cover;
    width: 100%;
    border-radius: 10px; /* Mantém o arredondamento das bordas */
}


/* Ajustes para a topbar */
.topbar {
    font-size: 14px; /* Tamanho da fonte para melhor legibilidade */
}

/* Contêiner principal da topbar */
.topbar-content {
    position: relative;
    overflow: hidden; /* Esconde o conteúdo que ultrapassa o contêiner */
}

/* Contêiner dos itens da topbar */
.topbar-items {
    display: flex;
    align-items: center;
    white-space: nowrap; /* Impede que os itens quebrem a linha */
}

/* Esconde o "Segue-nos:" na versão desktop dentro de topbar-items */
@media (min-width: 992px) {
    .topbar-items .social-mobile {
        display: none !important; /* Esconde o "Segue-nos:" na versão desktop */
    }
}

/* Rolagem horizontal em telas pequenas */
@media (max-width: 991.98px) {
    .topbar-items {
        overflow-x: auto; /* Permite rolagem horizontal */
        -webkit-overflow-scrolling: touch; /* Melhora a rolagem em dispositivos iOS */
        scrollbar-width: none; /* Esconde a barra de rolagem no Firefox */
    }

    .topbar-items::-webkit-scrollbar {
        display: none; /* Esconde a barra de rolagem no Chrome/Safari */
    }

    .topbar .px-3 {
        padding-left: 10px !important; /* Reduz o padding em telas pequenas */
        padding-right: 10px !important;
    }
}

/* Estilo da seta indicadora */
.topbar-scroll-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blink 1.5s infinite; /* Animação de piscar */
}

/* Animação de piscar para a seta */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Ajustes para telas grandes */
@media (min-width: 992px) {
    .topbar-items {
        justify-content: flex-start; /* Alinha os itens à esquerda */
        width: 100%;
        overflow-x: hidden !important; /* Desativa a rolagem */
    }

    .topbar-scroll-indicator {
        display: none !important; /* Esconde a seta em telas grandes */
    }
}










/* Ajustes para a seção Top Feature no mobile */
@media (max-width: 767.98px) {
    .top-feature .bg-white {
        padding: 20px !important; /* Ajusta o padding em todas as direções no mobile */
    }

    .top-feature .ps-3 {
        padding-left: 15px !important; /* Ajusta o padding à esquerda do texto */
        padding-right: 15px !important; /* Adiciona padding à direita para evitar que o texto cole na borda */
    }

    .top-feature h4 {
        font-size: 18px; /* Reduz o tamanho da fonte do título no mobile */
    }

    .top-feature span {
        font-size: 14px; /* Reduz o tamanho da fonte do texto no mobile */
    }
}




/* Estilo padrão para desktop */
.form-floating textarea#message {
    height: 100px; /* Mantém o valor inline original */
}

/* Ajuste para mobile */
@media (max-width: 768px) { /* 768px é um breakpoint comum para tablets e celulares */
    .form-floating textarea#message {
        height: 250px; /* Aumenta a altura no mobile */
    }
}

/* Opcional: ajustar o label para evitar sobreposição */
.form-floating > label {
    font-size: 12px; /* Reduz o tamanho da fonte se necessário */
    line-height: 1.2; /* Melhora a legibilidade */
}