/* =====================================================
   PÁGINAS PÚBLICAS INTERNAS
===================================================== */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(6, 21, 37, 0.96), rgba(18, 52, 91, 0.94)),
        url("../img/content/predio-institucional.jpg") center/cover no-repeat;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 34px;
    align-items: center;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--ep-accent-100);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #ffffff;
    font-family: var(--font-title);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.75;
    font-size: 1.02rem;
}

.page-hero-card {
    min-height: 170px;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.10);
    text-align: center;
}

.page-hero-card svg {
    width: 32px;
    height: 32px;
    color: var(--ep-accent-100);
}

.page-hero-card strong {
    display: block;
    margin-top: 12px;
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 2.3rem;
    line-height: 1;
}

.page-hero-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    font-weight: 750;
}

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

.page-content-section {
    padding: 58px 0 24px;
}

.content-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.content-toolbar.compact {
    margin-bottom: 20px;
}

.content-toolbar h2 {
    margin: 0;
    color: var(--ep-text-strong);
    font-family: var(--font-title);
    font-size: 1.8rem;
    letter-spacing: 0;
}

.content-toolbar p {
    margin: 7px 0 0;
    color: var(--ep-muted);
    line-height: 1.6;
}

.toolbar-badge,
.toolbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 850;
}

.toolbar-badge {
    color: var(--ep-accent-700);
    background: var(--ep-accent-50);
}

.toolbar-link {
    color: var(--ep-primary-900);
    background: #ffffff;
    border: 1px solid var(--ep-border-soft);
    box-shadow: var(--shadow-xs);
}

.toolbar-link svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   PROCESSOS
===================================================== */

.records-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.record-card {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--ep-border-soft);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.record-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.record-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--ep-accent-700);
    background: var(--ep-accent-50);
}

.record-icon svg {
    width: 22px;
    height: 22px;
}

.record-number {
    display: block;
    margin-bottom: 8px;
    color: var(--ep-accent-700);
    font-size: 0.8rem;
    font-weight: 900;
}

.record-card h3 {
    margin: 0;
    color: var(--ep-text-strong);
    font-family: var(--font-title);
    font-size: 1.16rem;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.record-card p {
    margin: 12px 0 0;
    color: var(--ep-muted);
    line-height: 1.65;
    font-size: 0.94rem;
}

.record-meta {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: var(--ep-muted);
    font-size: 0.84rem;
}

.record-meta span,
.record-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.record-meta svg,
.record-link svg {
    width: 16px;
    height: 16px;
}

.record-actions {
    margin-top: auto;
    padding-top: 22px;
}

.record-link {
    color: var(--ep-primary-800);
    font-weight: 900;
    font-size: 0.9rem;
}

/* =====================================================
   CHAMADAS
===================================================== */

.call-timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.timeline-record {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
}

.timeline-marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.timeline-marker::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: -22px;
    width: 2px;
    border-radius: 999px;
    background: var(--ep-border);
}

.timeline-record:last-child .timeline-marker::before {
    display: none;
}

.timeline-marker span {
    width: 18px;
    height: 18px;
    margin-top: 22px;
    border: 4px solid var(--ep-accent-500);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.12);
}

.timeline-content {
    padding: 20px;
    border: 1px solid var(--ep-border-soft);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.timeline-header strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ep-accent-700);
    font-size: 0.8rem;
    font-weight: 900;
}

.timeline-header h3 {
    margin: 0;
    color: var(--ep-text-strong);
    font-family: var(--font-title);
    font-size: 1.12rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.timeline-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.timeline-details span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--ep-muted);
    background: var(--ep-surface-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.timeline-details svg {
    width: 15px;
    height: 15px;
    color: var(--ep-accent-700);
}

.timeline-actions {
    margin-top: 16px;
}

.timeline-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ep-primary-800);
    font-size: 0.9rem;
    font-weight: 900;
}

.timeline-actions svg {
    width: 16px;
    height: 16px;
}

/* =====================================================
   ORIENTAÇÕES
===================================================== */

.orientation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.orientation-main,
.orientation-side {
    min-width: 0;
}

.orientation-list {
    display: grid;
    gap: 14px;
}

.orientation-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--ep-border-soft);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.orientation-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--ep-primary-900);
    background: var(--ep-accent-50);
    font-family: var(--font-title);
    font-weight: 900;
}

.orientation-item h3 {
    margin: 0;
    color: var(--ep-text-strong);
    font-family: var(--font-title);
    font-size: 1.14rem;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.orientation-item p {
    margin: 9px 0 0;
    color: var(--ep-muted);
    line-height: 1.65;
}

.orientation-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--ep-primary-800);
    font-size: 0.9rem;
    font-weight: 900;
}

.orientation-item svg {
    width: 16px;
    height: 16px;
}

.orientation-side {
    position: sticky;
    top: 124px;
    display: grid;
    gap: 16px;
}

.side-alert,
.side-card {
    padding: 22px;
    border: 1px solid var(--ep-border-soft);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.side-alert {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
}

.side-alert > svg {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 14px;
    color: var(--ep-accent-700);
    background: var(--ep-accent-50);
}

.side-alert h3,
.side-card h3 {
    margin: 0;
    color: var(--ep-text-strong);
    font-family: var(--font-title);
    font-size: 1.05rem;
}

.side-alert p {
    margin: 8px 0 0;
    color: var(--ep-muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

.side-card {
    display: grid;
    gap: 10px;
}

.side-card h3 {
    margin-bottom: 4px;
}

.side-card a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ep-border-soft);
    border-radius: 13px;
    color: var(--ep-primary-900);
    background: var(--ep-surface-soft);
    font-size: 0.9rem;
    font-weight: 850;
}

.side-card a svg {
    width: 17px;
    height: 17px;
    color: var(--ep-accent-700);
}

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

.empty-state {
    padding: 40px 22px;
    border: 1px dashed var(--ep-border);
    border-radius: 24px;
    background: var(--ep-surface-soft);
    text-align: center;
}

.empty-state svg {
    width: 38px;
    height: 38px;
    margin: 0 auto 14px;
    color: var(--ep-muted-2);
}

.empty-state h3 {
    margin: 0;
    color: var(--ep-text-strong);
    font-family: var(--font-title);
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--ep-muted);
}

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

@media (max-width: 980px) {
    .page-hero-inner,
    .orientation-layout {
        grid-template-columns: 1fr;
    }

    .page-hero-card {
        max-width: 240px;
    }

    .records-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .orientation-side {
        position: static;
    }
}

@media (max-width: 680px) {
    .page-hero {
        padding: 42px 0;
    }

    .page-hero-inner {
        gap: 24px;
    }

    .page-hero h1 {
        font-size: clamp(2.1rem, 12vw, 3rem);
    }

    .page-hero-card {
        width: 100%;
        max-width: none;
        min-height: 130px;
    }

    .page-content-section {
        padding: 38px 0 10px;
    }

    .content-toolbar,
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-link {
        width: 100%;
        justify-content: center;
    }

    .records-grid {
        grid-template-columns: 1fr;
    }

    .record-card {
        min-height: 0;
    }

    .timeline-record {
        grid-template-columns: 1fr;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-details {
        flex-direction: column;
        align-items: stretch;
    }

    .timeline-details span {
        border-radius: 13px;
        min-height: 36px;
    }

    .orientation-item,
    .side-alert {
        grid-template-columns: 1fr;
    }

    .orientation-number {
        width: 46px;
        height: 46px;
    }
}
