/* Globais */
:root {
    --primary-color: #067da5; /* Azul primário */
    --secondary-color: #6c757d; /* Cinza secundário */
    --success-color: #198754; /* Verde de sucesso */
    --danger-color: #dc3545; /* Vermelho de perigo */
    --warning-color: #e7b10f; /* Amarelo de aviso */
    --info-color: #1a97aa; /* Azul de informação */
    --light-color: #ececec; /* Cinza claro */
    --dark-color: #343a40; /* Cinza escuro */
    --title-black: #1B1E20; /* Preto para títulos */
    --text-black: #202325; /* Preto para textos */
    --background: rgb(248, 249, 250);
    --white: #ffffff;
    --black: #000000;
    --azul-ufms: #0088B7;
    --button-color: #007097;
    --button-hover-color: #005c7c;
    --height-header: 60px;
    --height-footer: 40px;
    --width-offcanvas: 450px;
}

html {
    position: relative;
    min-height: 100%;
    margin: 0;
}

body {
    background-color: var(--background);
    color: var(--text-black);
}

    body #content {
        display: flex;
        flex-direction: column;
        margin-top: var(--height-header);
        min-height: calc(100vh - (var(--height-header) + var(--height-footer))); /* cálculo de toda a tela menos o tamanho do header e footer */
    }

        body #content main {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

            body #content main > div {
                flex-grow: 1;
                display: flex;
                flex-direction: column;
            }

.container-page {
    padding: 3rem 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 1rem;
    flex-grow: 1;
}

.container-page-header {
    margin-top: -65px;
}


/* Títulos e Cabeçalhos */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    color: var(--title-black);
}

h1, h3 {
    font-weight: bold;
}

.fw-semibold {
    font-weight: 600;
}


/* Header */
header {
    height: var(--height-header);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar {
    background: var(--azul-ufms) !important;
    margin: 0;
    padding: 0;
}

    .navbar img {
        height: 100%;
        max-height: 40px;
        width: auto;
        object-fit: contain;
    }

    .navbar > div {
        padding: 0;
    }

    .navbar .navbar-toggler {
        line-height: normal;
        padding: 0;
    }

        .navbar .navbar-toggler .navbar-toggler-icon {
            width: auto;
            height: auto;
        }

.img-mobile {
    height: 100%;
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    font-weight: 500;
}

.navbar-nav li {
    margin-top: 1rem;
}

@media (min-width: 991px ) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .navbar-nav li {
        margin-top: 0;
    }
}

.offcanvas {
    max-width: var(--width-offcanvas);
    background: var(--azul-ufms);
}

.row {
    margin-left: 0;
    margin-right: 0;
}


/* Footer */
footer {
    bottom: 0;
    width: 100%;
    padding: 0;
    white-space: nowrap;
    height: var(--height-footer);
    background: var(--azul-ufms);
    z-index: 1000;
    font-size: 12px;
}

@media (max-width: 568px) {
    footer {
        font-size: 10px;
    }

    .footer, .navbar > div, .container-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media(min-width: 1200px) {
    .footer, .navbar > div {
        padding: 0 6%;
        max-width: 100vw;
    }

    .container-page {
        padding-left: 0;
        padding-right: 0;
    }
}


/* Buttons */
a {
    text-decoration: none;
}

button, .button {
    padding: 8px 15px;
    font-size: 1rem;
    border-radius: 5px !important;
    border: 2px solid;
    background-color: transparent;
    font-weight: 500;
    line-height: 1.5;
    transition: 0.2s;
    cursor: pointer;
    user-select: none;
}

    button i, .button i {
        margin-right: .5rem;
    }

    button:hover, .button:hover {
        transform: scale(1.03);
    }

.btn-ufms {
    border-color: var(--button-color);
    color: var(--button-color);
}

    .btn-ufms:hover {
        background-color: var(--button-color);
        color: white;
    }

.btn-header {
    background: var(--azul-ufms);
    border-color: var(--azul-ufms);
    color: white;
    justify-content: start;
}

    .btn-header:hover {
        background: var(--button-color);
        border-color: var(--button-color);
        color: white;
    }

.btn-branco {
    border-color: white;
    color: white;
}

    .btn-branco:hover {
        border-color: var(--button-color);
        background-color: var(--button-color);
        color: white;
    }

.btn-salvar {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

    .btn-salvar:hover {
        background: #1d985f;
        border-color: #1d985f;
    }

.btn-hover-i {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

    .btn-hover-i:hover {
        transform: scale(1);
    }

    .btn-hover-i i {
        display: inline-block;
        max-width: 0;
        opacity: 0;
        margin-right: 0;
        overflow: hidden;
        transition: max-width 0.3s ease, opacity 0.2s ease, margin-left 0.3s ease;
    }

    .btn-hover-i:hover i {
        max-width: 20px;
        opacity: 1;
        margin-right: .5rem;
    }

.btn-hover-span {
    display: flex;
    align-items: center;
}

    .btn-hover-span span {
        display: inline-block;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-width 0.4s ease, opacity 0.3s ease;
    }

    .btn-hover-span:hover span {
        max-width: 100px;
        opacity: 1;
    }

@media(max-width: 992px) {
    .btn-header {
        font-size: 1.1rem;
        margin-top: .3rem;
    }

        .btn-header span {
            max-width: 100px !important;
            opacity: 1 !important;
        }
}

.btn-social {
    border: 0;
    padding: 0;
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.btn-linkedin:hover {
    color: var(--primary-color);
}

.btn-github:hover {
    color: var(--text-black);
}

button:focus, button:active:focus, .button:focus, .button:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: none;
}


/* CARDS */
.card {
    border: none;
    padding: 40px 30px;
    transition: 0.2s;
    text-align: center;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.card-title {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Explorar */
.card-explorar {
    padding: 50px 30px;
}

/* Equipe */
.card-equipe {
    padding: .5rem .8rem;
    padding-bottom: 1rem;
    width: 280px;
}

    .card-equipe:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 4px 10px 3px rgba(0, 0, 0, 0.18);
    }

    .card-equipe .card-badge {
        font-size: .83rem;
        color: var(--secondary-color);
        text-align: start;
        font-weight: 600;
    }

    .card-equipe .card-img {
        text-align: center;
        margin-top: .5rem;
    }

        .card-equipe .card-img img {
            width: 75%;
            aspect-ratio: 1/1;
            object-fit: cover;
            border-radius: 360px;
            object-position: center;
        }

    .card-equipe .card-body {
        padding: 1rem;
        padding-bottom: .5rem;
        display: flex;
        flex-direction: column;
    }

        .card-equipe .card-body .card-title {
            font-size: 1.5rem;
            color: var(--dark-color);
        }

        .card-equipe .card-body .card-text {
            font-size: 1.1rem;
            color: var(--secondary-color);
            font-weight: 600;
        }

    .card-equipe .card-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        background: inherit;
        border: 0;
    }

/* Parcerias */
.card-parcerias {
    border: none;
    background: transparent;
    transition: 0.2s;
    filter: grayscale(1);
    color: var(--button-color);
    font-size: 1.3rem;
    padding: 0 1rem;
    font-weight: bolder;
    justify-content: center;
    display: flex;
    align-items: center;
    user-select: none;
}

    .card-parcerias:hover {
        filter: grayscale(0);
        transform: scale(1.05);
    }

@media(min-width: 992px) {
    .card-parcerias {
        font-size: 2.3rem;
    }
}

/* Menu */
.card-sistema {
    height: 160px;
}

@media (min-width: 1200px) {
    .card-sistema {
        height: 230px;
    }
}

.card-sistema .sistema {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    cursor: pointer;
    transition: 0.2s;
}

    .card-sistema .sistema a {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        font-size: 1.5rem;
        color: white;
        user-select: none;
        text-decoration: none;
    }

        .card-sistema .sistema a span {
            filter: opacity(.95);
        }

    .card-sistema .sistema:hover {
        transform: scale(1.015);
    }

    .card-sistema .sistema a:hover {
        color: white;
    }

    .card-sistema .sistema a img {
        height: 60px;
        width: auto;
        object-fit: cover;
        margin-right: 15px;
        margin-left: -15px;
    }

@media (max-width: 992px) {
    .card-sistema .sistema a {
        font-size: 1rem;
        flex-direction: column;
        gap: .5rem
    }

        .card-sistema .sistema a img {
            height: 50px;
            margin-right: 0;
            margin-left: 0;
        }
}

/* Projetos */
.card-projeto {
    width: 30%;
    padding: 0;
}

    .card-projeto:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 4px 10px 3px rgba(0, 0, 0, 0.18);
    }

    .card-projeto .card-title {
        margin-bottom: 1rem;
    }

    .card-projeto img {
        border-radius: 10px 10px 0 0;
        height: 190px;
        object-fit: cover;
    }

    .card-projeto .card-projeto-body {
        width: 100%;
        min-height: 160px;
        padding: 2rem 1.5rem;
        text-align: center;
        align-content: center;
    }

    .card-projeto .card-img-top {
        height: 200px;
        object-fit: cover; 
        object-position: top; 
    }

@media (max-width: 1200px) {
    .card-projeto {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .card-projeto {
        width: 95%;
    }
}

/* Pesquisa */
.botao-pesquisa {
    position: absolute;
    top: calc(12px + var(--height-header));
    left: 12px;
    z-index: 1030;
    cursor: default;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.botao-pesquisa button{
    padding: 12px;
    border: 1px solid var(--light-color);
    background: white;
    color: var(--dark-color);
}

.card-pesquisa {
    padding: 25px;
    width: 320px;
    height: 340px;
    max-height: 340px;
    position: absolute;
    top: calc(20px + var(--height-header));
    left: 20px;
    z-index: 1030;
    cursor: default;
}

    .card-pesquisa .card-pesquisa-results {
        flex-grow: 1;
        width: 100%;
    }

    .card-pesquisa .card-title {
        font-size: 1.3rem;
    }

    .card-pesquisa input, .card-pesquisa span {
        border-radius: 6px;
    }

        .card-pesquisa input:active, .card-pesquisa input:focus {
            border-color: #ced4da;
        }

    .card-pesquisa .result-search-local {
        background: white;
        border-radius: 6px;
        transition: 0.2s;
    }

        .card-pesquisa .result-search-local:hover {
            background: var(--light-color);
        }


.object-fit-cover {
    object-fit: cover;
}

    .object-fit-contain {
        object-fit: contain;
    }

/* Estilo da seta */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: scroll-down 1.2s infinite;
    opacity: 0.8;
}

@media(max-width: 768px) {
    .scroll-down {
        bottom: 20px
    }
}

/* Animacao de "subir e descer" */
@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    10% {
        transform: translateX(-50%) translateY(0);
    }

    20% {
        opacity: 0.8;
    }

    80% {
        transform: translateX(-50%) translateY(20px);
    }

    100% {
        opacity: 0;
    }
}


/* Contato Form */
.form-container label {
    font-size: 1.1rem;
    width: 80%;
    color: white;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-container #btnEnviar {
    font-weight: bold;
    background-color: rgb(0, 180, 80);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .form-container #btnEnviar:hover {
        background-color: rgb(0, 150, 50);
        transform: scale(1.03);
    }


/* Projetos */
.row-projetos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}


/* Equipes */
.title-equipe {
    color: var(--dark-color);
    font-weight: bold;
}

.hr-equipe {
    margin-top: 1rem;
    margin-bottom: 1.7rem;
}


/* Index */
.image-index {
    background-image: url("../assets/paliteiro-blur.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: brightness(60%);
    overflow: hidden;
}

.titulo-first-section {
    margin-top: -10px;
}

@media (max-width: 768px) {
    .titulo-first-section {
        margin-top: 0px;
    }
}

.mt-boxindex {
    margin-top: 2.5rem;
}

@media(max-width: 992px){
    .mt-boxindex {
        margin-top: 1.5rem;
    }
}

/* Modals */
.modal-content {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 0.7rem 1rem rgba(0, 0, 0, 0.15);
    border: 0px;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
}

    .modal-header .btn-close {
        filter: invert(1);
    }

    .modal-header .modal-title {
        font-weight: 600;
        color: white;
    }

    .modal-header i {
        margin-right: 0.5rem;
    }

.modal-footer {
    justify-content: space-between;
}
