@font-face {
    font-family: "Nunito";
    src: url("../assets/fonts/Nunito/Nunito-VariableFont_wght.ttf");
}

:root {
    --cor-principal: #216e41;
    --cor-secundaria: #215b39;
    --tamanho-fonte: 16px;
    --cor-terciaria: #fada38;
}

html, body {
    overflow-x: hidden;
    font-family: "Nunito";
}


header {
    background-color: var(--cor-principal) !important;
}

.navbar {
    background: transparent !important;
}

.navbar .nav-link {
    color: #e0cd39;
    font-size: 1.2rem;
}

.navbar .nav-link:hover {
    color: #fff640;
}

.hero {
    position: relative;
    background-image:
        linear-gradient(135deg,
            rgba(18, 59, 35, 0.85) 0%,
            rgba(33, 110, 65, 0.75) 100%),
        url("../assets/img/fundo-hero.jfif");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


.cor-amarela p:first-of-type {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--cor-terciaria);
}


.titulo-hero {
    font-size: 3rem !important;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    margin: 10px 0;
    text-transform: uppercase;
    color: var(--cor-terciaria);
}


.cor-amarela p:nth-of-type(2) {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--cor-terciaria);
}

.cor-amarela a {
    background-color: var(--cor-terciaria);
    color: #333 !important;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
}

.cor-amarela a:hover {
    background-color: #d4b501;
    transform: translateY(-2px);
}

.sobre {
    min-height: 100vh;
    background-color: #f4f9f6;
    font-size: 1rem;
}

.sobre .titulo-sobre {
    font-size: 3rem;
}

.servicos {
    background-color: var(--cor-secundaria);
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projetos {
    background-color: #f4f9f6;
    min-height: 100vh;
    padding: 80px 0;
}

.servicos-projetos {
    padding-top: 60px;
}

.servicos-projetos span {
    font-size: 1.3rem;
}

.servicos-titulos span {
    color: #ffd900c0;
    font-size: 1.5rem;
}

.titulo-projetos {
    font-size: 3rem;
}

.servicos-titulos h2 {
    font-size: 3rem;
    color: var(--cor-terciaria);
}

.item-sobre {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #5597709d;
}

.item-sobre>i {
    color: #215b39;
}

.titulo-sobre {
    font-size: 3rem !important;
}


.item-servico {
    background-color: #215035;
    padding: 24px;
    border-radius: 4px;
    color: var(--cor-terciaria);
    transition: 0.3s;
}

.item-servico:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modal .btn-close.btn-close-white {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
}

.modal .btn-close.btn-close-white::before,
.modal .btn-close.btn-close-white::after {
    background-color: #fff;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 66, 6, 0.363);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.overlay span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card:hover .overlay {
    opacity: 1;
}

.card-title {
    color: var(--cor-principal);
    font-size: 1.1rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Máximo de 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.card-text {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 13;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 0 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.card-footer {
    background-color: #fff;
}

.card-footer a {
    text-decoration: none;
    color: #215035;
}

.card:hover .card-footer a {
    color: #10271a;
    transform: translateX(4px);
}

.card:hover .card-footer a i {
    transform: translateX(4px);
}


.footer {
    background: var(--cor-principal);
    color: white;
    padding: 60px 0 20px 0;
}

.footer-logo {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--cor-terciaria);
}

.footer-titulo {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--cor-terciaria);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--cor-terciaria);
}

.footer-redes i {
    font-size: 1.3rem;
    margin-right: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.footer-redes i:hover {
    color: var(--cor-terciaria);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
}

.animar {
    opacity: 0;
    transform: translateY(60px);
    transition:
        opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.animar.aparecer {
    opacity: 1;
    transform: translateY(0);
}

.animar-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: 1s ease;
}

.animar-right {
    opacity: 0;
    transform: translateX(80px);
    transition: 1s ease;
}

.animar-left.aparecer,
.animar-right.aparecer {
    opacity: 1;
    transform: translateX(0);
}

.animar-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: 0.8s ease;
}

.animar-card.aparecer {
    opacity: 1;
    transform: translateY(0) scale(1);
}


@media (max-width: 768px) {

    .hero {
        min-height: 70vh;
        text-align: center;
        align-items: center;
        padding: 40px 20px;
    }

    .titulo-hero {
        font-size: 2rem !important;
    }

    .cor-amarela p:nth-of-type(2) {
        font-size: 1rem;
    }

    .cor-amarela a {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .titulo-sobre {
        font-size: 2rem;
        text-align: center;
        margin: 50px;
    }

    .subtitulo {
        display: block;
        text-align: center;
        padding-top: 60px;
    }

    .servicos-titulos h2 {
        font-size: 2.5rem;
    }

    .titulo-projetos {
        font-size: 2.5rem;
    }

    .card {
        height: auto;
    }

    .card-img-top {
        height: 250px;
    }

    .card-text {
        height: auto;
        font-size: 1.2rem;
    }

    .navbar .nav-link {
        font-size: 1rem;
        text-align: center;
    }

}



@media (min-width: 769px) and (max-width: 1024px) {

    .titulo-hero {
        font-size: 4rem;
    }

    .titulo-sobre {
        font-size: 3rem;
    }

    .servicos-titulos h2 {
        font-size: 3rem;
    }

    .titulo-projetos {
        font-size: 3rem;
    }

    .card-img-top {
        height: 320px;
    }

}



@media (min-width: 1400px) {

    .titulo-hero {
        font-size: 7rem;
    }

    .titulo-sobre {
        font-size: 4.5rem;
    }

}

.modal-projeto {
    border-radius: 8px;
    overflow: hidden;
}

.projeto-img {
    object-fit: cover;
    height: 100%;
    max-height: 450px;
}

.projeto-info {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.projeto-info strong {
    display: block;
    color: var(--cor-principal);
}

.projeto-info p {
    margin: 0;
}

.modal-img {
    position: relative;
}

.btn-close-white {
    filter: invert(1);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    z-index: 10;
}