/* =============================================
   SUBPAGES — Estilos adicionais para subpáginas
   Complementa styles.css sem quebrá-lo
   ============================================= */

/* PAGE HERO — Banner interno de páginas */
.page-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 140px 8% 80px;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(58, 107, 71, 0.08);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(58, 107, 71, 0.06);
    pointer-events: none;
}

.page-hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-hero__eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--green);
}

.page-hero__title {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.0;
    letter-spacing: -0.02em;
    max-width: 900px;
}

.page-hero__title em {
    font-style: italic;
    color: var(--green);
}

.page-hero__desc {
    margin-top: 28px;
    font-size: 1.1rem;
    color: var(--mid);
    line-height: 1.7;
    max-width: 680px;
}

/* BREADCRUMB */
.breadcrumb {
    position: absolute;
    top: 100px;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--mid);
    letter-spacing: 0.05em;
    z-index: 2;
}

.breadcrumb a {
    color: var(--mid);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb__sep {
    color: var(--light);
    font-size: 0.65rem;
}

/* PAGE CONTENT WRAPPER */
.page-content {
    padding: 100px 0;
}

/* SECTION HEADER */
.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-header h2 em {
    font-style: italic;
    color: var(--green);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--mid);
    line-height: 1.7;
    max-width: 600px;
}

/* DOCUMENT CARD GRID */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
}

.doc-card {
    background: var(--off-white);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.3s, transform 0.25s;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--green);
    transition: height 0.35s ease;
}

.doc-card:hover::before {
    height: 100%;
}

.doc-card:hover {
    background: #f0f4f1;
    transform: translateY(-2px);
}

.doc-card__num {
    font-family: var(--serif);
    font-size: 0.85rem;
    color: var(--light);
    font-weight: 600;
}

.doc-card__title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.doc-card__meta {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
}

.doc-card__desc {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
    flex: 1;
}

.doc-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-top: auto;
    transition: gap 0.3s;
}

.doc-card__link:hover {
    gap: 14px;
}

.doc-card__link::after {
    content: '↗';
    font-size: 0.9rem;
}

/* FASCICLE LANGUAGE TABS */
.lang-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.lang-tab {
    padding: 14px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.lang-tab.active,
.lang-tab:hover {
    color: var(--green);
    border-bottom-color: var(--green);
}

.lang-panel {
    display: none;
}

.lang-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
}

/* MEETINGS TIMELINE */
.meetings-section {
    background: var(--off-white);
    padding: 80px 0;
    margin-top: 80px;
}

.meetings-list {
    display: flex;
    flex-direction: column;
}

.meeting-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    padding: 28px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    align-items: start;
    transition: background 0.2s;
}

.meeting-item:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.meeting-item:hover {
    background: rgba(58, 107, 71, 0.03);
}

.meeting-date {
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--mid);
    font-weight: 600;
    padding-top: 3px;
}

.meeting-content h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.4;
}

.meeting-content p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.6;
}

/* CPLP DOCUMENT ITEMS */
.cplp-docs {
    display: flex;
    flex-direction: column;
}

.cplp-doc-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    align-items: center;
    transition: all 0.3s;
}

.cplp-doc-item:last-child {
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.cplp-doc-item:hover {
    transform: translateX(8px);
}

.cplp-doc-item h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.25;
}

.cplp-doc-item p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.5;
}

.cplp-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: var(--white);
    padding: 14px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.3s, gap 0.3s;
    flex-shrink: 0;
}

.cplp-doc-btn:hover {
    background: var(--ink);
}

/* FUNDERS GRID */
.funders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
    margin-top: 48px;
}

.funder-card {
    background: var(--off-white);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background 0.3s;
}

.funder-card:hover {
    background: var(--green-pale);
}

.funder-card__acronym {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.funder-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.funder-card__desc {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.6;
}

/* COMING SOON STATE */
.coming-soon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 120px 40px;
    background: var(--off-white);
    text-align: center;
}

.coming-soon-box__icon {
    font-size: 3rem;
    color: var(--light);
}

.coming-soon-box h3 {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--ink);
    font-weight: 600;
}

.coming-soon-box p {
    font-size: 1rem;
    color: var(--mid);
    max-width: 480px;
    line-height: 1.7;
}

/* ACERVO SIG CARDS */
.sig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2px;
}

.sig-card {
    background: var(--off-white);
    padding: 52px 44px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s;
}

.sig-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-top-left-radius: 100%;
    background: rgba(58, 107, 71, 0.06);
    transition: all 0.4s;
}

.sig-card:hover::after {
    width: 200px;
    height: 200px;
    background: rgba(58, 107, 71, 0.1);
}

.sig-card:hover {
    background: #eef4f0;
}

.sig-card__tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-pale);
    padding: 6px 12px;
    margin-bottom: 24px;
}

.sig-card__title {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.sig-card__desc {
    font-size: 0.95rem;
    color: var(--mid);
    line-height: 1.65;
    margin-bottom: 28px;
}

.sig-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    transition: gap 0.3s;
}

.sig-card__cta:hover {
    gap: 16px;
}

.sig-card__cta::after {
    content: '→';
}

/* ESTATUTO / PDF HIGHLIGHT */
.pdf-highlight {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    padding: 60px;
    background: var(--off-white);
    align-items: center;
    margin-top: 48px;
}

.pdf-highlight__text h3 {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

.pdf-highlight__text p {
    font-size: 1rem;
    color: var(--mid);
    line-height: 1.6;
}

.pdf-highlight__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 36px;
    background: var(--green);
    color: var(--white);
    text-align: center;
    transition: background 0.3s, transform 0.25s;
}

.pdf-highlight__btn:hover {
    background: var(--ink);
    transform: scale(1.04);
}

.pdf-highlight__btn span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pdf-highlight__btn em {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 600;
}

/* EXTERNAL LINK NOTICE */
.ext-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--mid);
    background: var(--off-white);
    padding: 10px 18px;
    border-left: 3px solid var(--green);
    margin-top: 48px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .page-hero {
        padding: 130px 5% 60px;
    }

    .breadcrumb {
        left: 5%;
    }

    .cplp-doc-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pdf-highlight {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .meeting-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .doc-grid,
    .sig-grid,
    .lang-panel.active,
    .funders-grid {
        grid-template-columns: 1fr;
    }

    .page-hero__title {
        font-size: 3rem;
    }
}
