/* ==========================================================================
   G24 — Static Page Styles
   ========================================================================== */

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

/* Wysokość headera (fixed) — dopasuj jeśli zmienisz padding headera */
:root {
    --g24-header-h: 84px;
}

.page-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 65%;
    background-repeat: no-repeat;
    animation: page-hero-zoom 8s ease forwards;
}

@keyframes page-hero-zoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

.page-hero__bg--dark {
    background: #111111;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 14, .90) 0%,
        rgba(10, 10, 14, .52) 48%,
        rgba(10, 10, 14, .16) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

/* ── Eyebrow (ACF heading_h3) ── */
.page-hero__eyebrow {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--g24-red, #c30a28);
    align-self: flex-start;
}

/* ── Title ── */
.page-hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin: 0;
    letter-spacing: -.025em;
    max-width: 820px;
}

/* ── Red underline accent ── */
.page-hero__title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--g24-red, #c30a28);
    margin-top: 1.25rem;
}

/* ── Page body ────────────────────────────────────────────────────────────── */

.page-body {
    background: #fff;
    padding: 5.5rem 0 8rem;
}

.page-body__inner {
    width: 100%;
    max-width: var(--g24-container, 1680px);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ── Entry content typography ── */

.page-body .entry-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2a2a2a;
    margin-bottom: 1.75rem;
}

.page-body .entry-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #111111;
    margin: 3.5rem 0 1.25rem;
    letter-spacing: -.02em;
}

.page-body .entry-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
    color: #111111;
    margin: 3rem 0 1rem;
}

.page-body .entry-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111111;
    margin: 2rem 0 .75rem;
}

.page-body .entry-content ul,
.page-body .entry-content ol {
    margin: 0 0 1.75rem 1.5rem;
    padding: 0;
}

.page-body .entry-content li {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2a2a2a;
    margin-bottom: .5rem;
}

.page-body .entry-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--g24-red, #c30a28);
    background: #f9f9f9;
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.75;
}

.page-body .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-body .entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2.5rem auto;
}

.page-body .entry-content a {
    color: var(--g24-red, #c30a28);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}

.page-body .entry-content a:hover {
    color: var(--g24-red-dark, #a00820);
}

.page-body .entry-content hr {
    border: none;
    border-top: 1px solid #e4e4e4;
    margin: 3.5rem 0;
}

/* ── Wide content override — np. dla sekcji z ACF Flexible Content ── */
/* Dodaj klasę .wide do artykułu jeśli strona wymaga pełnej szerokości */
.page-body.page-body--wide .page-body__inner {
    max-width: 1380px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .page-hero {
        min-height: 420px;
    }

    .page-hero__title::after {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 360px;
    }

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

    .page-body {
        padding: 3.5rem 0 5rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        min-height: 320px;
    }

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

    .page-hero__content {
        padding-bottom: 2.5rem;
    }
}
