/*
Theme: ekupony
Template: page-onas.php
Description: Style dla strony "O nas" (/o-nas/) — refresh v2 (spójne z page-wtyczka.css)
*/

/* ==========================================================
   ZMIENNE — wspólne DNA wizualne z /wtyczka/
   ========================================================== */
.ek-about {
    --accent: #E84C2B;
    --accent-dark: #d4401f;
    --accent-light: #FFF3EF;
    --accent-mid: #FFD9C8;
    --dark: #1A1A2E;
    --text: #404040;
    --text-light: #6B6B6B;
    --muted: #999;
    --border: #EBEBEB;
    --bg: #FFFFFF;
    --bg-light: #F8F8F8;
    --green: #1A7A47;
    --green-bg: #EDFAF3;
    --r: 16px;
    --rs: 10px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(232, 76, 43, 0.10);
}

/* ==========================================================
   RESET LOKALNY w obrębie .ek-about
   ========================================================== */
.ek-about *,
.ek-about *::before,
.ek-about *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ek-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--text);
    font-family: inherit;
    line-height: 1.6;
}

/* ==========================================================
   HERO
   ========================================================== */
.ek-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 72px 0 88px;
}

.ek-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.ek-hero-eyebrow::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* HERO — naprawa h1 + h2 jednocześnie (bez zmian w HTML) */
.ek-hero h1,
.ek-hero h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--dark);
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}
.ek-hero h1 span,
.ek-hero h2 span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.ek-hero-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.ek-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.ek-hero-stat strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}
.ek-hero-stat span {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    display: block;
}

.ek-hero-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ek-hcard {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ek-hcard:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-mid);
}

.ek-hcard-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}
.ek-hcard-icon.orange {
    background: var(--accent-light);
    color: var(--accent);
}
.ek-hcard-icon.green {
    background: var(--green-bg);
    color: var(--green);
}
.ek-hcard-icon.blue {
    background: #EEF4FF;
    color: #2E5BDA;
}

.ek-hcard-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}
.ek-hcard-sub {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 2px;
}

.ek-hcard-badge {
    margin-left: auto;
    flex-shrink: 0;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ek-hcard-badge.green {
    background: var(--green-bg);
    color: var(--green);
}

/* ==========================================================
   DIVIDER + SEKCJE (naprzemienne tła dla rytmu)
   ========================================================== */
.ek-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 72px 0;
}

.ek-section {
    padding: 24px 0 72px;
    position: relative;
}

/* naprzemienne tło — co druga sekcja lekko szara */
.ek-section:nth-of-type(even) {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 56px 40px 64px;
    margin: 0 -24px 32px;
}

.ek-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.ek-section-title {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.ek-section-title span {
    color: var(--accent);
}

.ek-section-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.75;
    max-width: 700px;
}

/* ==========================================================
   MISJA
   ========================================================== */
.ek-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-top: 36px;
}

.ek-mission-text p {
    color: var(--text-light);
    line-height: 1.85;
    font-size: 1rem;
}
.ek-mission-text p + p {
    margin-top: 16px;
}

.ek-mission-quote {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    color: var(--dark);
    line-height: 1.6;
    border-left: 3px solid var(--accent);
    padding-left: 22px;
    margin-top: 28px;
}

.ek-pillars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ek-pillar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.ek-pillar:hover {
    border-color: var(--accent-mid);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.ek-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.ek-pillar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.ek-pillar-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================
   ZESPÓŁ
   ========================================================== */
.ek-teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 36px;
}

.ek-team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 36px 26px;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.ek-team-card:hover {
    border-color: var(--accent-mid);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.ek-team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 1px var(--accent-mid);
}

.ek-team-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.ek-team-role {
    font-size: 0.76rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.ek-team-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ==========================================================
   TRUST
   ========================================================== */
.ek-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 36px;
}

.ek-trust-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 30px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.ek-trust-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent-mid);
}

.ek-trust-card.featured {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 12px 32px rgba(232, 76, 43, 0.25);
}
.ek-trust-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(232, 76, 43, 0.32);
}

.ek-trust-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
    display: block;
}

.ek-trust-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.ek-trust-card.featured .ek-trust-title {
    color: #fff;
}

.ek-trust-desc {
    font-size: 0.94rem;
    color: var(--text-light);
    line-height: 1.65;
}
.ek-trust-card.featured .ek-trust-desc {
    color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================
   KROKI
   ========================================================== */
.ek-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    margin-top: 40px;
}
.ek-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.ek-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.ek-step-num {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--dark);
    margin: 0 auto 18px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.ek-step:hover .ek-step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(232, 76, 43, 0.32);
}

.ek-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.ek-step-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================
   CTA DARK
   ========================================================== */
.ek-cta {
    background: linear-gradient(135deg, var(--dark) 0%, #252542 100%);
    border-radius: 24px;
    padding: 64px 52px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
    margin-bottom: 72px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(26, 26, 46, 0.18);
}
.ek-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 76, 43, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.ek-cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    position: relative;
}

.ek-cta-title {
    font-size: clamp(1.7rem, 2.6vw, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    position: relative;
    letter-spacing: -0.01em;
}
.ek-cta-title span {
    color: var(--accent);
}

.ek-cta-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    font-size: 0.98rem;
    position: relative;
}

.ek-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.ek-cta-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    color: var(--dark);
    border: none;
    padding: 16px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.96rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
}
.ek-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
}

.ek-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ek-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.ek-cta-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.ek-cta-btn.secondary .ek-cta-btn-icon {
    background: rgba(232, 76, 43, 0.22);
    color: var(--accent);
}

.ek-cta-btn-text small {
    display: block;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}
.ek-cta-btn.secondary .ek-cta-btn-text small {
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================
   ANIMACJA (zachowana)
   ========================================================== */
@keyframes ekFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.ek-animate {
    animation: ekFadeInUp 0.6s ease-out both;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
    .ek-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0 60px;
    }
    .ek-mission-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ek-teams-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ek-cta {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        gap: 32px;
    }
    .ek-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }
    .ek-steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .ek-teams-grid,
    .ek-trust-grid {
        grid-template-columns: 1fr;
    }
    .ek-hero-stats {
        gap: 24px;
    }
    .ek-hero-stat strong {
        font-size: 1.5rem;
    }
    .ek-section:nth-of-type(even) {
        padding: 40px 20px 48px;
        margin: 0 -10px 24px;
        border-radius: 18px;
    }
    .ek-cta {
        padding: 40px 24px;
        border-radius: 18px;
    }
}

/* ==========================================================
   KEYFRAMES — kompatybilność z inline-animation ustawianą
   przez IntersectionObserver (ekFadeUp) + bezpiecznik
   ========================================================== */
@keyframes ekFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bezpiecznik: jeśli JS nie odpali animacji (np. element jest od
   razu w viewporcie albo observer nie zadziała) — i tak pokaż box.
   Odpala się po 2s od załadowania strony. */
.ek-about .ek-team-card,
.ek-about .ek-trust-card,
.ek-about .ek-pillar,
.ek-about .ek-step,
.ek-about .ek-hcard,
.ek-about .ek-hero-stat {
    animation: ekFadeUp 0.6s ease 0.1s forwards;
}