/* =========================================================
   ALFA TRANSPORTES - CERTIFICAÇÕES
   Arquivo: static/website/css/certificacoes.css
   ========================================================= */

   .cert-page {
    background: #ffffff;
    color: var(--alfa-neutra-clara);
}

/* =========================================================
   HERO
   ========================================================= */

.cert-hero {
    padding: 2.5rem 0 1.25rem;
    background: #ffffff;
}

.cert-hero-card {
    padding: 2rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.cert-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.cert-hero h1 {
    max-width: 740px;
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.cert-hero p {
    max-width: 680px;
    margin: 1rem 0 0;
    color: var(--alfa-neutra-clara);
    font-size: var(--fs-base, .92rem);
    line-height: 1.65;
}

.cert-hero-info {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 24px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.cert-hero-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #ffffff;
    background: var(--alfa-destaque);
    font-size: 1.55rem;
}

.cert-hero-info strong {
    display: block;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-lg, 1.12rem);
    font-weight: 700;
    line-height: 1.2;
}

.cert-hero-info span {
    display: block;
    margin-top: .3rem;
    color: var(--alfa-neutra-clara);
    line-height: 1.5;
}

/* =========================================================
   INTRO
   ========================================================= */

.cert-intro-section {
    padding: 1rem 0;
    background: #ffffff;
}

.cert-intro-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem;
    border-radius: 26px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.cert-intro-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--alfa-destaque);
    background: #ffffff;
    font-size: 1.3rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.cert-intro-card h2 {
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-xl, 1.32rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.cert-intro-card p {
    margin: .65rem 0 0;
    color: var(--alfa-neutra-clara);
    line-height: 1.7;
}

/* =========================================================
   CONTEÚDO / FILTROS
   ========================================================= */

.cert-content-section {
    padding: 1.25rem 0 4rem;
    background: #ffffff;
}

.cert-filter-card {
    padding: 1.5rem;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.cert-filter-header {
    margin-bottom: 1rem;
}

.cert-filter-header span,
.cert-table-header span {
    display: inline-flex;
    margin-bottom: .35rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.cert-filter-header h2,
.cert-table-header h2 {
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-xl, 1.32rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.cert-filter-form .form-label {
    color: var(--alfa-neutra-escura);
    font-weight: 850;
}

.cert-filter-form .form-control,
.cert-filter-form .form-select {
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .14);
    background-color: #ffffff;
}

.cert-filter-form .form-control:focus,
.cert-filter-form .form-select:focus {
    border-color: var(--alfa-destaque);
    box-shadow: 0 0 0 .18rem rgba(222, 30, 62, .16);
}

.cert-filter-form .btn {
    min-height: 46px;
    border-radius: 999px;
}

.cert-filter-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: 18px;
    color: var(--alfa-neutra-clara);
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.cert-filter-summary a {
    color: var(--alfa-destaque);
    font-weight: 850;
    text-decoration: none;
}

.cert-filter-summary a:hover {
    color: var(--alfa-interacao-hover);
}

/* =========================================================
   TABELA
   ========================================================= */

.cert-table-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.cert-table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cert-table-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .35rem .75rem;
    border-radius: 999px;
    color: var(--alfa-destaque);
    background: var(--alfa-destaque-soft, #fff5f6);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
}

.cert-table {
    margin-bottom: 0;
}

.cert-table thead th {
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(15, 23, 42, .12);
    background: var(--alfa-background);
}

.cert-table tbody td {
    color: var(--alfa-neutra-escura);
    vertical-align: middle;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.cert-download-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    color: #ffffff;
    background: var(--alfa-destaque);
    text-decoration: none;
    font-size: var(--fs-sm, .84rem);
    font-weight: 850;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.cert-download-link:hover {
    color: var(--alfa-texto-sobre-destaque);
    background: var(--alfa-interacao-hover);
    transform: translateY(-1px);
}

.cert-file-name {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--alfa-neutra-escura);
    font-weight: 700;
}

.cert-file-name i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--alfa-destaque);
    background: var(--alfa-destaque-soft, #fff5f6);
}

.cert-type-badge {
    display: inline-flex;
    align-items: center;
    padding: .36rem .65rem;
    border-radius: 999px;
    color: var(--alfa-destaque);
    background: var(--alfa-destaque-soft, #fff5f6);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
}

.cert-date {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--alfa-neutra-clara);
    font-weight: 750;
    white-space: nowrap;
}

/* =========================================================
   EMPTY
   ========================================================= */

.cert-empty {
    max-width: 620px;
    margin: 1.5rem auto 0;
    padding: 2rem;
    border-radius: 28px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.cert-empty i {
    color: var(--alfa-destaque);
    font-size: 2.4rem;
}

.cert-empty h2 {
    margin: .75rem 0 .5rem;
    color: var(--alfa-neutra-escura);
    font-weight: 700;
}

.cert-empty p {
    color: var(--alfa-neutra-clara);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 991.98px) {
    .cert-hero {
        padding: 1.5rem 0 .75rem;
    }

    .cert-hero-card,
    .cert-filter-card,
    .cert-table-card {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .cert-hero-info {
        padding: 1rem;
    }

    .cert-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .cert-hero h1 {
        font-size: 1.55rem;
    }

    .cert-intro-card {
        flex-direction: column;
        padding: 1.1rem;
        border-radius: 22px;
    }

    .cert-filter-card,
    .cert-table-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .cert-table-card .table-responsive {
        border-radius: 18px;
    }

    .cert-download-link {
        padding: .4rem .65rem;
    }

    .cert-file-name {
        min-width: 220px;
    }
}

@media (max-width: 420px) {
    .cert-hero-card,
    .cert-filter-card,
    .cert-table-card,
    .cert-empty {
        border-radius: 20px;
    }

    .cert-hero-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 16px;
        font-size: 1.25rem;
    }
}
