/*
 * Portal Catarina — home
 * Identidade visual de Santa Catarina: o losango branco e o brasão
 * do estado se traduzem aqui em geometria losangular como motivo
 * recorrente. Paleta vinho (--site-primary #7c1d3e) da bandeira,
 * com acentos em verde-jade (#177245) — a cor do losango central.
 * Hero dramático em faixa escura: contraste oposto ao tom claro do
 * Maranhense, marcando identidade distinta.
 */

.pc-home {
    --pc-jade: #168f49;
    --pc-jade-soft: #d6f0df;
    --pc-ink: #1a1015;
    --pc-ink-soft: #4a3540;
    --pc-paper: #fbf7f4;
    --pc-rule: #ead4dd;

    color: var(--pc-ink);
    overflow-x: hidden;
    padding-bottom: 1rem;
}

/* ───── Hero ─────────────────────────────────────────── */

.pc-hero {
    position: relative;
    padding: clamp(3rem, 7vw, 6rem) 1rem clamp(4rem, 8vw, 7rem);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}

.pc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 80% 20%,
            rgba(190, 24, 93, .45) 0%, transparent 55%),
        linear-gradient(135deg,
            var(--site-primary-dark) 0%,
            var(--site-primary) 60%,
            #5e1230 100%);
}

.pc-hero-bg::before {
    /* faixa diagonal sutil em jade — referência ao losango da bandeira */
    content: '';
    position: absolute;
    inset: -10% -20%;
    background: linear-gradient(115deg,
        transparent 47%,
        rgba(22, 143, 73, .12) 47%,
        rgba(22, 143, 73, .12) 53%,
        transparent 53%);
    pointer-events: none;
}

.pc-hero-diamond {
    position: absolute;
    top: 50%;
    right: -4%;
    transform: translateY(-50%);
    width: clamp(280px, 38vw, 480px);
    height: clamp(280px, 38vw, 480px);
    color: rgba(255, 255, 255, .14);
    pointer-events: none;
}

.pc-hero-stripe {
    /* listra fina em jade no rodapé do hero */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--pc-jade) 25%,
        var(--pc-jade) 75%,
        transparent 100%);
}

.pc-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.pc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.pc-eyebrow-diamond {
    width: 12px;
    height: 12px;
    background: var(--pc-jade);
    transform: rotate(45deg);
    box-shadow: 0 0 0 3px rgba(22, 143, 73, .25);
}

.pc-eyebrow-line {
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .7), transparent);
}

.pc-hero-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.8vw + 1rem, 3.85rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0 0 1.5rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.pc-hero-lead {
    font-size: clamp(1rem, .6vw + .9rem, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .92);
    margin: 0;
    max-width: 640px;
}

/* ───── Retrato dos escritores (poster) ──────────────── */

.pc-portrait {
    padding: 0 1rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.pc-portrait-figure {
    position: relative;
    margin: 0;
    background: var(--pc-paper);
    padding: 1.25rem;
    box-shadow: 0 30px 70px -25px rgba(124, 29, 62, .35),
                0 6px 16px -8px rgba(0, 0, 0, .15);
    border: 1px solid var(--pc-rule);
    transition: transform .4s ease, box-shadow .4s ease;
}

.pc-portrait-figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 36px 80px -25px rgba(124, 29, 62, .45),
                0 8px 20px -8px rgba(0, 0, 0, .18);
}

/* Cantos losangulares — referência à bandeira de SC */
.pc-portrait-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--site-primary);
    transform: rotate(45deg);
    z-index: 2;
}

.pc-portrait-corner-tl { top: -9px;    left: -9px;   }
.pc-portrait-corner-tr { top: -9px;    right: -9px;  }
.pc-portrait-corner-bl { bottom: -9px; left: -9px;   }
.pc-portrait-corner-br {
    bottom: -9px;
    right: -9px;
    background: var(--pc-jade); /* acento jade no canto inferior direito */
}

.pc-portrait-img {
    display: block;
    width: 100%;
    height: auto;
    /* A imagem original tem a bandeira/brasão na metade superior
       (transparente) e os bustos dos escritores na metade inferior.
       Recortamos com razão larga e ancoramos no rodapé para destacar
       os retratos, deixando apenas um filete do brasão acima. */
    aspect-ratio: 16 / 5;
    object-fit: cover;
    object-position: center bottom;
}

.pc-portrait-meta {
    max-width: 760px;
    margin: 2rem auto 0;
    padding: 0 .5rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--pc-ink-soft);
    text-align: center;
    position: relative;
}

.pc-portrait-meta::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: var(--site-primary);
    transform: rotate(45deg);
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 4px var(--site-soft);
}

.pc-link {
    color: var(--site-primary);
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
    border-bottom: 2px solid var(--pc-jade);
    padding-bottom: 1px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.pc-link:hover,
.pc-link:focus {
    color: var(--site-primary-dark);
    background-color: rgba(22, 143, 73, .08);
    border-bottom-color: var(--site-primary);
}

/* ───── Acervo (cards) ───────────────────────────────── */

.pc-acervo {
    padding: clamp(3rem, 6vw, 5rem) 1rem 2rem;
}

/* ───── Responsivo ──────────────────────────────────── */

@media (max-width: 991.98px) {
    .pc-hero { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
    .pc-portrait { margin-top: -2.5rem; }
    .pc-portrait-figure { padding: 1rem; }
    .pc-portrait-img { aspect-ratio: 5 / 2; }
}

@media (max-width: 767.98px) {
    .pc-hero {
        padding: 2.5rem 1rem 3.5rem;
        text-align: left;
    }
    .pc-hero-diamond {
        right: -25%;
        width: 320px;
        height: 320px;
        opacity: .8;
    }
    .pc-eyebrow { margin-bottom: 1rem; }
    .pc-hero-lead { font-size: 1rem; }
    .pc-portrait { margin-top: -2rem; }
    .pc-portrait-figure { padding: .75rem; }
    .pc-portrait-img { aspect-ratio: 2 / 1; }
    .pc-portrait-corner {
        width: 14px;
        height: 14px;
    }
    .pc-portrait-corner-tl { top: -7px;    left: -7px;   }
    .pc-portrait-corner-tr { top: -7px;    right: -7px;  }
    .pc-portrait-corner-bl { bottom: -7px; left: -7px;   }
    .pc-portrait-corner-br { bottom: -7px; right: -7px;  }
    .pc-portrait-meta {
        font-size: .98rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .pc-hero {
        padding: 2rem .9rem 3rem;
    }
    .pc-hero-diamond {
        right: -35%;
        top: 60%;
        width: 260px;
        height: 260px;
        opacity: .6;
    }
    .pc-hero-content { max-width: none; }
    .pc-portrait { padding: 0 .75rem; margin-top: -1.25rem; }
    .pc-portrait-figure { padding: .5rem; }
    .pc-portrait-img { aspect-ratio: 16 / 9; }
    .pc-acervo { padding: 2rem .75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-portrait-figure,
    .pc-link {
        transition: none;
    }
    .pc-portrait-figure:hover {
        transform: none;
    }
}
