/* =========================================================
   BEACON STREET BOSTON — HOMEPAGE ONLY
   Wszystkie style specyficzne dla strony głównej.
   ========================================================= */

/* ---------- HERO ---------- */

.hero {
    position: relative;
    width: 100%;
    height: min(620px, 68vh);
    min-height: 480px;
    overflow: hidden;
    background: #3d3735;
}

.hero-image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 38, 60, 0.78) 0%, rgba(16, 38, 60, 0.40) 38%, rgba(16, 38, 60, 0.05) 72%),
        linear-gradient(0deg, rgba(0,0,0,0.18), transparent 40%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-content .hero-text {

    width: min(calc(100% - 48px), var(--max-width));

    margin: 0 auto;

    padding-right: 0;

    color: #fff;

    max-width: 620px;

    transform: none;

}

.hero-kicker {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -1.5px;
    font-weight: 700;
    max-width: 620px;
}

.hero-text > p:not(.hero-kicker) {
    max-width: 470px;
    margin: 0 0 28px;
    color: rgba(255,255,255,0.92);
    font-size: 17px;
    line-height: 1.75;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 27px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    transition: .25s ease;
}

.hero-button:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

/* ---------- INTRO ---------- */

.section {
    padding: 92px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
    gap: 78px;
    align-items: center;
}

.intro-text {
    max-width: 650px;
}

.intro-text .hero-kicker {
    color: var(--gold) !important;
    margin-bottom: 11px;
}

.section-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.2;
    letter-spacing: -.6px;
}

.intro-text .section-title {
    max-width: 610px;
}

.divider-gold {
    width: 115px;
    height: 1px;
    margin: 25px 0 29px;
    background: linear-gradient(
        to right,
        var(--gold) 0,
        var(--gold) 42%,
        rgba(184,149,87,.15) 100%
    );
}

.intro-text > p:not(.hero-kicker) {
    margin: 0 0 22px;
    color: #5c7184;
    font-size: 16px;
    line-height: 1.85;
}

.intro-image {
    position: relative;
}

.intro-image::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: -16px;
    top: -16px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
    z-index: 0;
}

.intro-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 25px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: .25s ease;
}

.button:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.section-light {
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-light > .container > .section-title,
.section-light > .container > .section-intro {
    text-align: center;
}

.section-intro {
    max-width: 680px;
    margin: 13px auto 38px;
    color: #71869a;
}

/* ---------- CARDS ---------- */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    min-height: 245px;
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(24,52,81,.09);
}

.feature-card-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 30px 25px 25px;
}

.feature-card h3 {
    margin: 0 0 11px;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.25;
}

.feature-card p {
    margin: 0;
    color: #71869a;
    font-size: 14px;
    line-height: 1.7;
}

.feature-card .button {
    margin-top: auto;
    align-self: flex-start;
}

.button-outline {
    background: transparent;
    color: var(--navy);
}

.button-outline:hover {
    color: #fff;
}

/* ---------- FINAL INTRO ---------- */

.section:last-of-type .title-line {
    width: 95px;
    height: 1px;
    margin: 22px auto 28px;
    background: var(--gold);
}

.section:last-of-type p {
    color: #5f7385;
    line-height: 1.85;
}

.section:last-of-type .button {
    margin-top: 10px;
}

/* ---------- MOBILE ---------- */

@media (max-width: 1000px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-grid {
        gap: 45px;
    }
}

@media (max-width: 760px) {
    .hero {
        height: 600px;
        min-height: 0;
    }

    .hero-image {
        object-position: 58% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(16,38,60,.82) 0%,
            rgba(16,38,60,.50) 70%,
            rgba(16,38,60,.20) 100%
        );
    }

    .hero-content .hero-text {
        padding-right: 0;
        align-self: flex-end;
        padding-bottom: 58px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 54px);
    }

    .hero-text > p:not(.hero-kicker) {
        font-size: 15px;
        max-width: 520px;
    }

    .section {
        padding: 62px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .intro-image {
        order: -1;
    }

    .intro-image img {
        aspect-ratio: 16 / 10;
    }

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

@media (max-width: 480px) {
    .container,
    .hero-content .hero-text {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .site-logo {
        font-size: 17px;
    }

    .hero {
        height: 560px;
    }

    .hero h1 {
        letter-spacing: -.8px;
    }
}

/* =========================
   HOMEPAGE — AKTUALNOŚCI
   ========================= */

.news-section {
    padding: 92px 0 88px;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.news-heading .hero-kicker {
    margin-bottom: 8px;
    color: var(--gold);
}

.news-heading .section-title {
    margin: 0;
}

.news-all-link {
    flex: 0 0 auto;
    padding-bottom: 5px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.news-all-link span {
    margin-left: 8px;
    color: var(--gold);
    font-size: 17px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(24,52,81,.09);
}

.news-card.is-hidden {
    display: none;
}

.news-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e9e8e4;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.035);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 25px 25px;
}

.news-card-date {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.news-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.35;
}

.news-card p {
    margin: 0 0 20px;
    color: #71869a;
    font-size: 14px;
    line-height: 1.7;
}

.news-card-link {
    margin-top: auto;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.news-card-link span {
    margin-left: 7px;
    color: var(--gold);
    font-size: 16px;
}

.news-load-wrap {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.news-load-more {
    min-width: 150px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .news-section {
        padding: 64px 0;
    }

    .news-heading {
        display: block;
    }

    .news-all-link {
        display: inline-block;
        margin-top: 14px;
    }

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


/* =========================================================
   AKTUALNOŚCI — LISTA I POJEDYNCZY ARTYKUŁ
   ========================================================= */

.article-page {
    background: #fff;
    padding: 82px 0 96px;
}

.article-heading {
    max-width: 900px;
    margin: 0 auto 52px;
    text-align: center;
}

.article-heading h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.12;
    letter-spacing: -1px;
}

.article-heading .hero-kicker {
    margin-bottom: 12px;
}

.article-heading .divider-gold {
    margin: 23px auto 20px;
}

.article-intro,
.article-date {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.article-wrap {
    max-width: 920px;
}

.article-featured-image {
    max-width: 900px;
    margin: 0 auto 48px;
    background: var(--cream);
}

.article-featured-image img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
}

.article-content {
    max-width: 820px;
    margin: 0 auto;
    color: #52677a;
    font-size: 16px;
    line-height: 1.85;
}

.article-content p {
    margin: 0 0 24px;
}

.article-content h2,
.article-content h3 {
    color: var(--navy);
    line-height: 1.3;
    margin: 38px 0 16px;
}

.article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
}

.article-content a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.article-back {
    max-width: 820px;
    margin: 48px auto 0;
}

.news-section .container {
    position: relative;
}

.news-section--archive {
    padding-top: 0;
    background: #fff;
    border: 0;
}

.news-section--archive .news-heading {
    display: block;
    text-align: center;
}

.news-section--archive .news-heading .news-all-link {
    display: none;
}

.news-section--archive .news-grid {
    max-width: 1040px;
    margin: 0 auto;
}

.news-section--archive .news-load-wrap {
    display: none;
}

@media (max-width: 760px) {
    .article-page {
        padding: 58px 0 72px;
    }

    .article-heading {
        margin-bottom: 38px;
    }

    .article-heading h1 {
        font-size: 34px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-featured-image {
        margin-bottom: 34px;
    }
}
