html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: url('../img/bg-desktop.png') no-repeat center center;
    background-size: cover;
    color: #fff;
    min-height: 100vh;
	max-width: 100vw !important;
    padding-top: 3.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
}


.bg-navbar-custom {
    background-color: #064D4D;
}

.container-custom {
    max-width: 1150px;
    width: 100% !important;
    padding: 2rem 0rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 24px;
    margin-right: 24px;
}

.row-custom {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    gap: 12px;
    width: 100%;
}

.row-custom>* {
    flex: 0 0 auto !important;
    width: auto !important;
}

.card-service {
    position: relative;
    background: #717271;
    border-radius: 16px;
    height: 220px;
    width: 220px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.icon-card {
    font-size: 128px;
    color: #FFFFFF;
}

#card-nota-fiscal {
    /* background: url('../img/nota-fiscal.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}

#card-alvaras {
    /* background: url('../img/alvaras.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}


#card-autenticidades {
    /* background: url('../img/autenticidades.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}


#card-certidoes {
    /* background: url('../img/certidoes.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}


#card-declaracao-fiscal {
    /* background: url('../img/declaracao-fiscal.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}



#card-iptu {
    /* background: url('../img/iptu-tcrs.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}



#card-taxas {
    /* background: url('../img/taxas.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}

#card-impostos {
    /* background: url('../img/impostos.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}

#card-parcelamentos {
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}

#card-servicos-permissionados {
    /* background: url('../img/servicos-permissionados.png'); */
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}

#card-cda {
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
    
}

#card-lista-debitos {
    background-color: #1F8F89;
    background-repeat: no-repeat;
    background-size: cover;
}

.card-service:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.service-buttons {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #259F98;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 0rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.4s, transform 0.4s;
    z-index: 2;
    border-radius: 16px;
}

/* Desktop: hover mostra botes */
@media (min-width: 992px) {
    .card-service:hover .service-buttons {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        display: flex;
    }
}

/* Mobile: click mostra bot�es */
@media (max-width: 991px) {
    .card-service .service-buttons {
        display: none;
    }

    .card-service.active .service-buttons {
        display: flex;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .modal {
        font-size: 1rem;
    }
}

/* Touch devices: garante hover funcional */
@media (hover: none) and (pointer: coarse) {
    .card-service:hover .service-buttons {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-title {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    font-size: 13px;
    z-index: 2;
}

.btn-service {
    background: #fff;
    color: #00796b;
    border: none;
    border-radius: 8px;
    padding: 6px 6px;
    width: 95%;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s;
}

.btn-service:hover {
    background: #004d40;
    color: #fff;
}

#btnConsultaDebitos {
    width: 240px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

/* MODAL ESTILOS */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    border-radius: 16px;
    font-size: 13px;
}

.modal-header {
    background: #727271 !important;
    color: #fff;
    padding-top: 6px;
    padding-bottom: 6px;
}

.modal-header>h5 {
    font-size: 14px;
    margin: 0;
}

#modalAlertaHeader {
    background: #f1c904 !important;
    /*  COR DO WARNING DO BOOTSTRAP */
}

.modal-body,
.form-control,
.form-select,
.form-label,
.form-check-input,
.form-check-label {
    font-size: 0.8125rem !important;
    margin-bottom: 0.5rem !important;
}

.form-control,
.form-select {
    height: 30px;
}


.form-check-label {
    margin-right: 0rem !important;
}

.form-check-inline {
    margin-right: 0rem !important;
}

.modal-footer {
    background: #fff;
    padding: 0 !important;
}

/* BOT�ES E INPUTS PADR�O */
.btn-padrao {
    color: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    transition: background 0.3s;
}

.btn-primario {
    background: #004d40;
}

.input-padrao,
.select-padrao {
    font-size: 0.8125rem !important;
    margin-bottom: 0.5rem !important;
    height: 30px !important;
}

.label-padrao {
    font-size: 0.8125rem !important;
    margin-bottom: 0.5rem !important;
}

@media (max-width: 768px) {
    body {
        background: url('../img/bg-mobile.png') no-repeat center center fixed;
        background-size: cover;
    }

	h6 {
	  font-size: 13px !important;	
	}

    .container-custom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .row-custom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .card-service {
        height: 340px;
        width: 340px;
    }

    #btnConsultaDebitos {
        width: 340px !important;
    }
}

/* Backgrounds Padrão */
.bg-padrao {
    background-color: #e5e5e5;
}

.borda-padrao {
    border-color: #b1b2b1 !important;
    border-width: 1px !important;
    border-style: solid !important;
}

