/**
 * ============================================================
 * KM KZZPRM w Trójmieście
 * front-page.css
 * Wersja COMPACT 960
 * ============================================================
 *
 * Desktop / baza strony głównej.
 * Responsive znajduje się w:
 * assets/css/front-page-responsive.css
 */

/* ============================================================
   0. RESET ASTRY
   ============================================================ */

body.kmkzzprm-front-page,
body.kmkzzprm-front-page .site-content,
body.kmkzzprm-front-page .site-content>.ast-container,
body.kmkzzprm-front-page #primary,
body.kmkzzprm-front-page .site-main,
body.kmkzzprm-front-page .kmkzzprm-home {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}

body.kmkzzprm-front-page .site-content>.ast-container {
    display: block;
}

body.kmkzzprm-front-page.ast-no-sidebar #primary {
    margin-top: 0;
    margin-bottom: 0;
}

.kmkzzprm-home {
    width: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
}

/* ============================================================
   1. ELEMENTY WSPÓLNE
   ============================================================ */

.section-eyebrow {
    position: relative;

    margin: 0 0 9px;
    padding-left: 28px;

    color: #0b1f3a;

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-eyebrow::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 19px;
    height: 2px;

    background-color: #c62032;

    transform: translateY(-50%);
}

/* ============================================================
   2. HERO
   ============================================================ */

.hero {
    position: relative;

    width: 100%;
    min-height: 580px;

    margin: 0;

    overflow: hidden;

    color: #ffffff;

    background-color: #07182d;

    background-image:
        linear-gradient(90deg,
            rgba(4, 18, 36, 0.97) 0%,
            rgba(5, 22, 43, 0.91) 32%,
            rgba(6, 26, 50, 0.62) 58%,
            rgba(7, 25, 47, 0.20) 100%),
        url("../images/hero-bg.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    z-index: 0;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(180deg,
            rgba(3, 16, 31, 0.02),
            rgba(3, 16, 31, 0.10));
}

.hero-container {
    position: relative;
    z-index: 2;

    width: min(1120px, calc(100% - 56px));
    min-height: 500px;

    margin: 0 auto;
    padding: 40px 0;

    display: grid;
    grid-template-columns: 1.45fr 0.55fr;
    align-items: center;

    gap: 60px;
}

/* ============================================================
   3. HERO - TEKST
   ============================================================ */

.hero-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 720px;
}

.hero-eyebrow {
    margin: 0 0 14px;

    color: #dbe8f5;

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(3rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 0.98;

    letter-spacing: -0.035em;
}

.hero-description {
    max-width: 680px;

    margin: 20px 0 0;

    color: #e7eef6;

    font-size: 0.9rem;
    line-height: 1.55;
}

.hero-accent {
    display: block;

    width: 35px;
    height: 3px;

    margin-top: 16px;

    background-color: #c62032;
}

.hero-motto {
    margin: 15px 0 0;

    color: #ffffff;

    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
}

/* ============================================================
   4. HERO - PRZYCISKI
   ============================================================ */

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 18px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 38px;

    padding: 9px 16px;

    border: 1px solid transparent;
    border-radius: 3px;

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.hero-button-primary {
    border-color: #c62032;

    background-color: #c62032;
    color: #ffffff;
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
    border-color: #a91828;

    background-color: #a91828;
    color: #ffffff;

    transform: translateY(-1px);
}

.hero-button-secondary {
    border-color: rgba(255, 255, 255, 0.72);

    background-color: rgba(7, 24, 45, 0.28);
    color: #ffffff;
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
    background-color: #ffffff;
    color: #0b1f3a;
}

/* ============================================================
   5. HERO - LOGO I SLOGAN
   ============================================================ */

.hero-visual {
    position: relative;
    z-index: 2;

    min-height: 380px;
}

.hero-logo {
    position: absolute;
    z-index: 2;

    top: -5px;
    right: 0;

    display: block;

    width: 235px;
    height: auto;

    filter:
        drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.hero-slogan {
    position: absolute;
    z-index: 3;

    top: 220px;
    right: 20px;

    display: block;

    width: 145px;
    height: auto;

    filter:
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.30));
}

/* ============================================================
   6. O NAS
   ============================================================ */

.about {
    width: 100%;

    background-color: #ffffff;
    color: #0b1f3a;
}

.about-container {
    width: min(960px, calc(100% - 48px));

    margin: 0 auto;
    padding: 42px 0;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;

    gap: 52px;
}

.about-content {
    max-width: 520px;
}

.about-title {
    margin: 0 0 16px;

    color: #0b1f3a;

    font-size: clamp(1.65rem, 2.3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.06;

    letter-spacing: -0.025em;
}

.about-text {
    max-width: 540px;

    margin: 0 0 12px;

    color: #34465b;

    font-size: 0.92rem;
    line-height: 1.6;
}

/* ============================================================
   O NAS - KOMISJA KRAJOWA
   ============================================================ */

.about-national {
    margin: 16px 0 0;

    color: #34465b;

    font-size: 0.86rem;
    line-height: 1.5;
}

.about-national a {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #0b1f3a;

    font-weight: 800;

    text-decoration: none;
}

.about-national a span {
    color: #c62032;
}

.about-national a:hover,
.about-national a:focus-visible {
    color: #c62032;
}

.about-national-separator {
    margin: 0 7px;

    color: #a8b4c0;
}

.about-since {
    margin-top: 17px;
    padding-top: 13px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-top: 1px solid #d8e1ea;
}

.about-since-icon {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background-color: #0b1f3a;
    color: #ffffff;

    font-size: 0.55rem;
}

.about-since-text {
    margin: 0;

    color: #34465b;

    font-size: 0.8rem;
    line-height: 1.45;
}

.about-since-text strong {
    display: block;

    color: #0b1f3a;

    font-size: 0.85rem;
}

/* ============================================================
   7. O NAS - PRAWA STRONA
   ============================================================ */

.about-visual {
    min-height: 175px;

    padding: 20px 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 0;

    background:
        linear-gradient(135deg,
            rgba(243, 247, 251, 0.70),
            rgba(255, 255, 255, 0.92));
}

/* Usunięcie pozostałych dekoracji panelu */

.about-visual::before,
.about-visual::after {
    content: none;
    display: none;
}

/* ============================================================
   CYTAT
   ============================================================ */

.about-quote {
    position: relative;

    margin: 0;
    padding: 0 0 0 18px;

    border: 0;

    color: #0b1f3a;
}

/* Jedyny pionowy akcent przy cytacie */

.about-quote::before {
    content: "";

    position: absolute;

    left: 0;
    top: 1px;

    display: block;

    width: 3px;
    height: 34px;

    background-color: #c62032;
}

.about-quote::after {
    content: none;
    display: none;
}

.about-quote p {
    margin: 0;
    padding: 0;

    border: 0;

    color: #0b1f3a;

    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.12;

    letter-spacing: -0.02em;
}

/* ============================================================
   EKG
   ============================================================ */

.about-ekg {
    display: block;

    width: 100%;
    max-width: 240px;
    height: auto;

    margin: 12px 0 3px;
}

/* ============================================================
   WSPARCIE / JEDNOŚĆ / DZIAŁANIE
   ============================================================ */

.about-words {
    margin: 0;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 8px;

    color: #637386;

    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.about-words span+span::before {
    content: "•";

    margin-right: 8px;

    color: #c62032;
}

/* ============================================================
   8. NASZE WARTOŚCI
   ============================================================ */

.values {
    width: 100%;

    color: #0b1f3a;

    background:
        linear-gradient(180deg,
            #edf5fb 0%,
            #f5f9fc 100%);
}

.values-container {
    width: min(960px, calc(100% - 48px));

    margin: 0 auto;
    padding: 32px 0 36px;
}

.values-heading {
    max-width: 620px;

    margin: 0 auto 20px;

    text-align: center;
}

.values-heading .section-eyebrow {
    display: inline-block;
}

.values-title {
    margin: 0;

    color: #0b1f3a;

    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.08;

    letter-spacing: -0.02em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-item {
    min-height: 140px;

    padding: 6px 28px;

    text-align: center;
}

.value-item+.value-item {
    border-left: 1px solid #cfdee9;
}

.value-icon {
    display: block;

    width: 50px;
    height: 50px;

    margin: 0 auto 8px;

    object-fit: contain;

    filter:
        drop-shadow(0 4px 7px rgba(11, 31, 58, 0.09));
}

.value-title {
    margin: 0 0 7px;

    color: #0b1f3a;

    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.value-text {
    max-width: 250px;

    margin: 0 auto;

    color: #34465b;

    font-size: 0.82rem;
    line-height: 1.55;
}

/* ============================================================
   9. DOKUMENTY
   ============================================================ */

.documents {
    width: 100%;

    background-color: #ffffff;
    color: #0b1f3a;
}

.documents-container {
    width: min(960px, calc(100% - 48px));

    margin: 0 auto;
    padding: 34px 0 40px;
}

.documents-heading {
    margin-bottom: 16px;
}

.documents-title {
    margin: 0;

    color: #0b1f3a;

    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;

    letter-spacing: -0.02em;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.document-card {
    min-height: 105px;

    padding: 15px 18px;

    display: grid;
    grid-template-columns: 45px 1fr;
    align-items: start;

    gap: 14px;

    border: 1px solid #d8e1ea;
    border-radius: 4px;

    background-color: #ffffff;

    box-shadow:
        0 4px 12px rgba(11, 31, 58, 0.04);
}

.document-icon {
    position: relative;

    width: 42px;
    height: 51px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding-bottom: 6px;

    border-radius: 3px;

    color: #ffffff;
}

.document-icon::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 12px;
    height: 12px;

    border-left: 6px solid rgba(255, 255, 255, 0.42);
    border-bottom: 6px solid rgba(255, 255, 255, 0.42);
}

.document-icon span {
    font-size: 0.6rem;
    font-weight: 900;

    letter-spacing: 0.03em;
}

.document-icon-red {
    background-color: #c62032;
}

.document-icon-blue {
    background-color: #075aa8;
}

.document-title {
    margin: 0 0 4px;

    color: #0b1f3a;

    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
}

.document-text {
    margin: 0 0 9px;

    color: #34465b;

    font-size: 0.8rem;
    line-height: 1.5;
}

.document-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #c62032;

    font-size: 0.75rem;
    font-weight: 800;

    text-decoration: none;
}

.document-link:hover,
.document-link:focus-visible {
    color: #a91828;

    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   10. DOŁĄCZ DO NAS
   ============================================================ */

.join {
    position: relative;

    width: 100%;
    min-height: 175px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(90deg,
            rgba(4, 18, 36, 0.97),
            rgba(6, 25, 48, 0.90),
            rgba(8, 31, 59, 0.74)),
        url("../images/hero-bg.png");

    background-repeat: no-repeat;
    background-position: 66% center;
    background-size: cover;
}

.join-overlay {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        rgba(3, 16, 31, 0.08);
}

.join-container {
    position: relative;
    z-index: 2;

    width: min(960px, calc(100% - 48px));
    min-height: 175px;

    margin: 0 auto;
    padding: 26px 0;

    display: grid;
    grid-template-columns: 1fr 0.95fr;
    align-items: center;

    gap: 52px;
}

.join-eyebrow {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 0.62rem;
    font-weight: 800;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.join-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(1.55rem, 2.25vw, 2rem);
    font-weight: 800;
    line-height: 1.04;

    letter-spacing: -0.02em;
}

.join-actions {
    max-width: 360px;
}

.join-text {
    margin: 0 0 14px;

    color: #e7eef6;

    font-size: 0.88rem;
    line-height: 1.6;
}

.join-button {
    font-size: 0.76rem;
}

.join-button-primary {
    background-color: #c62032;
    color: #ffffff;
}

.join-button-primary:hover,
.join-button-primary:focus-visible {
    background-color: #a91828;
    color: #ffffff;
}

.join-contact-link {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-left: 12px;

    color: #ffffff;

    font-size: 0.76rem;
    font-weight: 800;

    text-decoration: none;
}

.join-contact-link:hover,
.join-contact-link:focus-visible {
    color: #ffffff;

    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ============================================================
   11. NAJNOWSZE WPISY
   ============================================================ */

.latest-posts {
    width: 100%;

    background-color: #ffffff;
    color: #0b1f3a;
}

/* ============================================================
   KONTENER
   ============================================================ */

.latest-posts-container {
    width: min(960px, calc(100% - 48px));

    margin: 0 auto;
    padding: 34px 0 40px;
}

/* ============================================================
   NAGŁÓWEK SEKCJI
   ============================================================ */

.latest-posts-heading {
    margin-bottom: 17px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
}

.latest-posts-title {
    margin: 0;

    color: #0b1f3a;

    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.08;

    letter-spacing: -0.02em;
}

/* ============================================================
   LINK - WSZYSTKIE WPISY
   ============================================================ */

.latest-posts-all {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 2px;

    color: #0b1f3a;

    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.4;

    text-decoration: none;
}

.latest-posts-all span {
    color: #c62032;

    transition: transform 180ms ease;
}

.latest-posts-all:hover,
.latest-posts-all:focus-visible {
    color: #163b65;
}

.latest-posts-all:hover span,
.latest-posts-all:focus-visible span {
    transform: translateX(3px);
}

/* ============================================================
   SIATKA WPISÓW
   ============================================================ */

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px;
}

/* ============================================================
   KARTA WPISU
   ============================================================ */

.latest-post-card {
    position: relative;

    margin: 0;

    overflow: hidden;

    border: 1px solid #d8e1ea;
    border-radius: 4px;

    background-color: #ffffff;

    box-shadow:
        0 4px 12px rgba(11, 31, 58, 0.04);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.latest-post-card:hover {
    border-color: #b9cad9;

    box-shadow:
        0 7px 18px rgba(11, 31, 58, 0.08);

    transform: translateY(-2px);
}

/* ============================================================
   OBRAZEK WPISU
   ============================================================ */

.latest-post-image-link {
    display: block;

    height: 125px;

    overflow: hidden;

    background-color: #0b1f3a;

    text-decoration: none;
}

.latest-post-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 250ms ease;
}

.latest-post-card:hover .latest-post-image {
    transform: scale(1.025);
}

/* ============================================================
   BRAK OBRAZKA
   ============================================================ */

.latest-post-placeholder {
    width: 100%;
    height: 125px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(135deg,
            #0b1f3a 0%,
            #163b65 100%);

    color: rgba(255, 255, 255, 0.28);

    font-size: 1.2rem;
    font-weight: 900;

    letter-spacing: -0.02em;
}

/* ============================================================
   TREŚĆ WPISU
   ============================================================ */

.latest-post-content {
    position: relative;

    min-height: 100px;

    padding: 14px 42px 15px 14px;
}

/* Data */

.latest-post-date {
    display: block;

    margin-bottom: 6px;

    color: #637386;

    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Tytuł */

.latest-post-title {
    margin: 0;

    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

.latest-post-title a {
    color: #0b1f3a;

    text-decoration: none;

    transition: color 180ms ease;
}

.latest-post-title a:hover,
.latest-post-title a:focus-visible {
    color: #163b65;
}

/* ============================================================
   STRZAŁKA WPISU
   ============================================================ */

.latest-post-more {
    position: absolute;

    right: 12px;
    bottom: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background-color: #f3f7fb;
    color: #c62032;

    font-size: 0.88rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.latest-post-more:hover,
.latest-post-more:focus-visible {
    background-color: #c62032;
    color: #ffffff;

    transform: translateX(2px);
}

/* ============================================================
   BRAK WPISÓW
   ============================================================ */

.latest-posts-empty {
    padding: 20px 22px;

    border-left: 3px solid #c62032;

    background-color: #f3f7fb;
}

.latest-posts-empty p {
    margin: 0;

    color: #34465b;

    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   12. FOCUS
   ============================================================ */

.hero-button:focus-visible,
.document-link:focus-visible,
.join-button:focus-visible,
.join-contact-link:focus-visible,
.latest-posts-all:focus-visible,
.latest-post-title a:focus-visible,
.latest-post-more:focus-visible {
    outline: 2px solid rgba(198, 32, 50, 0.30);
    outline-offset: 3px;
}

/* ============================================================
   13. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .hero-button,
    .document-link,
    .join-button,
    .latest-post-card,
    .latest-post-image,
    .latest-post-more {
        transition: none;
    }
}