/*
Theme: ekupony
Template: page-zespol.php
Description: Style dla strony "Redakcja" (/redakcja/).
*/

/* === PAGE-SPECIFIC OVERRIDES === */
body.page-zespol #secondary,
body.page-zespol .widget-area,
body.page-zespol .entry-title,
body.page-zespol .entry-footer,
body.page-zespol .yoast-breadcrumbs { display: none !important; }

body.page-zespol #primary,
body.page-zespol .entry-content,
body.page-zespol article.page,
body.page-zespol .site-main {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.page-zespol #page { overflow-x: hidden; }

/* === DESIGN TOKENS === */
.ek-zespol-wrap {
    --brand:       #E94E1B;
    --brand-dark:  #c4400f;
    --brand-50:    #FFF3EE;
    --brand-100:   #FFE2D3;
    --brand-200:   #FFD0B8;
    --ink:         #1A1A2E;
    --text:        #404040;
    --muted:       #6B6B6B;
    --line:        #E8E8E8;
    --bg:          #FFFFFF;
    --bg-soft:     #F8F8F8;
    --ok:          #1A7A4A;
    --ok-bg:       #EDFAF3;
    --r:           14px;
    --r-sm:        10px;
    --r-pill:      999px;
    --shadow-sm:   0 1px 2px rgba(26,26,46,.04), 0 2px 6px rgba(26,26,46,.04);
    --shadow-md:   0 4px 14px rgba(26,26,46,.06), 0 12px 28px rgba(26,26,46,.06);

    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    font-size: 16px !important;
    line-height: 1.55;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.ek-zespol-wrap *,
.ek-zespol-wrap *::before,
.ek-zespol-wrap *::after { box-sizing: border-box; }

.ek-zespol-wrap section { margin: 56px 0; }
.ek-zespol-wrap section:first-of-type { margin-top: 0; }

/* === TYPOGRAPHY (forsujemy nad globalnym 13px motywu) === */
.ek-zespol-wrap p,
.ek-zespol-wrap li,
.ek-zespol-wrap dd,
.ek-zespol-wrap dt,
.ek-zespol-wrap a,
.ek-zespol-wrap span { font-size: inherit; }

.ek-zespol-h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--ink);
    margin: 8px 0 16px;
    letter-spacing: -0.02em;
}
.ek-zespol-h2 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.ek-zespol-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 8px;
}
.ek-zespol-lead,
.ek-zespol-section-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 24px;
    max-width: 720px;
}
.ek-zespol-lead strong { color: var(--ink); font-weight: 700; }

/* === BREADCRUMBS === */
.ek-zespol-crumbs { font-size: 13px; color: var(--muted); padding: 16px 0; }
.ek-zespol-crumbs a { color: var(--muted); text-decoration: none; }
.ek-zespol-crumbs a:hover { color: var(--brand); }
.ek-zespol-crumbs span[aria-hidden="true"] { margin: 0 8px; color: var(--line); }
.ek-zespol-crumbs .current { color: var(--ink); }

/* === HERO === */
.ek-zespol-hero {
    background: linear-gradient(135deg, var(--brand-50) 0%, #FFFFFF 70%);
    border-radius: var(--r);
    padding: 48px 48px 40px;
    margin-top: 8px !important;
    border: 1px solid var(--line);
}
.ek-zespol-hero-text { max-width: 820px; }

/* === STATS === */
.ek-zespol-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    margin-top: 32px;
    box-shadow: var(--shadow-sm);
}
.ek-zespol-stat {
    padding: 8px 24px;
    border-left: 3px solid var(--brand);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ek-zespol-stat:first-child { padding-left: 16px; }
.ek-zespol-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.ek-zespol-stat-label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

/* === PROCESS / JAK PRACUJEMY === */
.ek-zespol-process {
    background: var(--bg-soft);
    border-radius: var(--r);
    padding: 48px 40px;
    margin-left: -20px;
    margin-right: -20px;
}
.ek-zespol-steps {
    list-style: none !important;
    margin: 32px 0 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: ekstep;
}
.ek-zespol-step {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
    margin: 0 !important;
}
.ek-zespol-step::before { display: none !important; } /* kasujemy bullet motywu */
.ek-zespol-step-num {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-50);
    width: 26px;
    height: 26px;
    border-radius: var(--r-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ek-zespol-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.ek-zespol-step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
    line-height: 1.3;
}
.ek-zespol-step-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}
.ek-zespol-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--r-pill);
}
.ek-zespol-tag--ok { background: var(--ok-bg); color: var(--ok); }

/* === GRID REDAKTORÓW === */
.ek-zespol-grid-section { padding-top: 8px; }
.ek-zespol-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.ek-zespol-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ek-zespol-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
}
.ek-zespol-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ek-zespol-avatar {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.02em;
}
.ek-zespol-card-id { min-width: 0; }
.ek-zespol-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ek-zespol-card-role {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 0;
    line-height: 1.2;
}
.ek-zespol-card-cat {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-self: stretch;
    margin: 0;
}
.ek-zespol-card-cat a {
    display: inline-block;
    background: var(--brand-50);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: var(--r-pill);
    text-decoration: none;
    line-height: 1.3;
    transition: background .15s ease, color .15s ease;
}
.ek-zespol-card-cat a:hover {
    background: var(--brand);
    color: #fff;
}
.ek-zespol-card-spec {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    margin: 0;
    flex: 1;
}
.ek-zespol-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    margin: 0;
}
.ek-zespol-card-meta div { display: flex; flex-direction: column; gap: 2px; }
.ek-zespol-card-meta div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.ek-zespol-card-meta dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}
.ek-zespol-card-meta dd {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}
.ek-zespol-card-foot {
    display: flex;
    gap: 8px;
}
.ek-zespol-card-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    background: #FFFFFF;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ek-zespol-card-link:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-50);
}
.ek-zespol-card-link svg { flex: 0 0 16px; }


/* === METHODOLOGY === */
.ek-zespol-method {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 40px 40px 32px;
}
.ek-zespol-method-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 0 !important;
    display: grid;
    gap: 14px;
}
.ek-zespol-method-list li {
    position: relative;
    padding: 14px 16px 14px 44px;
    background: var(--bg-soft);
    border-radius: var(--r-sm);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    margin: 0 !important;
}
.ek-zespol-method-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 19px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand);
    background-image: linear-gradient(45deg, transparent 45%, #FFFFFF 45%, #FFFFFF 55%, transparent 55%);
    box-shadow: inset 0 0 0 4px var(--brand);
}
.ek-zespol-method-list li strong { color: var(--ink); font-weight: 700; }

/* === CTA === */
.ek-zespol-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #FFFFFF;
    border-radius: var(--r);
    padding: 48px 40px;
    text-align: center;
}
.ek-zespol-cta-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}
.ek-zespol-cta-text {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 auto 24px;
    max-width: 640px;
    color: rgba(255,255,255,0.92);
}
.ek-zespol-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}
.ek-zespol-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease;
    border: 2px solid transparent;
}
.ek-zespol-btn--primary {
    background: #FFFFFF;
    color: var(--brand-dark);
}
.ek-zespol-btn--primary:hover { transform: translateY(-1px); background: #FFF3EE; color: var(--brand-dark); }
.ek-zespol-btn--ghost {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.55);
}
.ek-zespol-btn--ghost:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .ek-zespol-grid { grid-template-columns: repeat(2, 1fr); }
    .ek-zespol-steps { grid-template-columns: repeat(2, 1fr); }
    .ek-zespol-stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
    .ek-zespol-stat { border-left-width: 3px; }
    .ek-zespol-h1 { font-size: 36px; }
    .ek-zespol-h2 { font-size: 26px; }
}
@media (max-width: 640px) {
    .ek-zespol-wrap { padding: 0 14px; }
    .ek-zespol-wrap section { margin: 36px 0; }
    .ek-zespol-hero { padding: 32px 22px 28px; }
    .ek-zespol-process { padding: 32px 18px; margin-left: -14px; margin-right: -14px; border-radius: 0; }
    .ek-zespol-method { padding: 28px 20px; }
    .ek-zespol-cta { padding: 36px 22px; }
    .ek-zespol-grid { grid-template-columns: 1fr; }
    .ek-zespol-steps { grid-template-columns: 1fr; }
    .ek-zespol-stats { grid-template-columns: 1fr 1fr; padding: 16px; }
    .ek-zespol-stat { padding: 6px 14px; }
    .ek-zespol-h1 { font-size: 28px; }
    .ek-zespol-h2 { font-size: 22px; }
    .ek-zespol-lead, .ek-zespol-section-lead { font-size: 15px; }
    .ek-zespol-cta-title { font-size: 22px; }
    .ek-zespol-cta-actions { flex-direction: column; }
    .ek-zespol-btn { width: 100%; }
}

/* ============================================================
   PROOF BOX (Wariant 1) — taxonomy-sklepy.php
   ============================================================ */
.proof-box{
  margin:24px 0;
  padding:20px;
  background:#FEF4F0;
  border:1px solid #F3C7B6;
  border-radius:16px;
}

/* --- Naglowek --- */
.proof-box__head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:16px;
}
.proof-box__check{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  line-height:1;
  font-size:16px;
}
.proof-box__title{
  font-size:17px;
  font-weight:700;
  color:#1A1A1A;
  line-height:1.4;
}

/* Link z imieniem redaktora */
.proof-box__editor{
  color:#E94E1B;
  font-weight:700;
  text-decoration:none;
}
.proof-box__editor:hover{
  text-decoration:underline;
}

/* Data weryfikacji (= Ostatnia aktualizacja) */
.proof-box__date{
  display:block;
  margin-top:4px;
  font-size:13px;
  font-weight:400;
  color:#737484;
}

/* --- Zakladki (tabs) --- */
.proof-box__tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.proof-box__tab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  font-size:13px;
  font-weight:600;
  color:#1A1A1A;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:999px;
  cursor:pointer;
  transition:all .15s ease;
  white-space:nowrap;
}
.proof-box__tab:hover{
  border-color:#E94E1B;
  color:#E94E1B;
}
.proof-box__tab.is-active{
  background:#E94E1B;
  border-color:#E94E1B;
  color:#fff;
}
.proof-box__tab-ico{
  font-size:14px;
  line-height:1;
}

/* --- Panele --- */
.proof-box__panels{
  position:relative;
}
.proof-box__panel{
  display:none;
  position:relative;
  padding:16px;
  background:#F3F4F6;
  border:2px dashed #D1D5DB;
  border-radius:12px;
}
.proof-box__panel.is-active{
  display:block;
}

/* Badge w panelu (np. "Zdjecie 1") + lupa */
.proof-box__badge{
  display:inline-block;
  padding:3px 8px;
  margin-bottom:10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#E94E1B;
  background:#FEE6DC;
  border-radius:6px;
}
.proof-box__zoom{
  position:absolute;
  top:12px;
  right:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  font-size:14px;
  color:#737484;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:50%;
}

/* Obraz */
.proof-box__img{
  display:block;
  width:100%;
  height:auto;
  border-radius:8px;
}

/* Film */
.proof-box__video{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  border-radius:8px;
  overflow:hidden;
  background:#000;
}
.proof-box__video iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.proof-box__video-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  font-size:13px;
  font-weight:600;
  color:#E94E1B;
  text-decoration:none;
}
.proof-box__video-link:hover{
  text-decoration:underline;
}

/* Podpis pod mediami */
.proof-box__caption{
  margin-top:10px;
  font-size:13px;
  color:#1A1A1A;
  text-align:center;
}

/* Stopka "Zweryfikowany przez [imie]" */
.proof-box__verified{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
  padding:5px 10px;
  font-size:12px;
  font-weight:600;
  color:#16794C;
  background:#E7F6EE;
  border-radius:8px;
}
.proof-box__verified .proof-box__editor{
  color:#16794C;
}

/* ============================================================
   RESPONSIVE (mobile <= 600px)
   ============================================================ */
@media (max-width:600px){
  .proof-box{
    padding:16px;
    border-radius:12px;
  }
  .proof-box__tabs{
    gap:6px;
  }
  .proof-box__tab{
    padding:7px 10px;
    font-size:12px;
  }
  .proof-box__title{
    font-size:15px;
  }
}