/*
Theme Name: OKAPI SPORT
Theme URI: https://sport.okapistudio.pl/
Author: OKAPI STUDIO
Description: Autorski motyw WordPress dla działalności sportowej OKAPI STUDIO.
Version: 0.3.4
Text Domain: okapi-sport
*/

:root {
  --ink: #11120f;
  --paper: #f1efe8;
  --white: #fffefa;
  --acid: #f55139;
  --line: rgba(17,18,15,.18);
  --muted: #68695f;
  --wrap: min(1360px, calc(100vw - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.wrap { width: var(--wrap); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(241,239,232,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { position: relative; width: 42px; height: 42px; flex: 0 0 42px; }
.brand-mark::before,.brand-mark::after { content:""; position:absolute; top:2px; width:10px; height:38px; background:var(--acid); transform:skew(-27deg); }
.brand-mark::before { left:8px; }
.brand-mark::after { right:8px; }
.brand span:last-child { line-height: .88; font-size: 20px; white-space:nowrap; }
.brand small { display: block; margin-top: 7px; color:var(--acid); font-size: 10px; letter-spacing: .22em; }
.main-nav { display: flex; justify-content: center; gap: clamp(12px,1.35vw,24px); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.main-nav a { padding: 30px 0 25px; border-bottom: 4px solid transparent; }
.main-nav a:hover,.main-nav a[aria-current="page"] { border-color: var(--acid); }
.header-cta,.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: var(--acid); border: 1px solid var(--ink); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; transition: .2s ease; }
.button:hover,.header-cta:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--ink); }
.button.dark { background: var(--ink); color: white; border-color: var(--ink); }
.button.ghost { background: transparent; }
.menu-toggle { display:none; border:0; background:none; font:inherit; font-weight:900; }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content:""; display:inline-block; width:36px; height:8px; margin-right:10px; background:var(--acid); }
.display { margin:0; font-family:'Arial Narrow', Haettenschweiler, Impact, sans-serif; font-stretch:condensed; font-weight:700; text-transform:uppercase; letter-spacing:-.005em; line-height:.94; }
.hero { min-height: 700px; position: relative; overflow: hidden; background: var(--ink); color: white; }
.hero-grid { min-height: 700px; display: grid; grid-template-columns: .9fr 1.35fr; }
.hero-copy { position: relative; z-index:2; padding: 98px 8vw 75px max(24px,calc((100vw - 1360px)/2)); display:flex; flex-direction:column; justify-content:space-between; }
.hero h1 { font-size: clamp(76px,10vw,164px); }
.hero h1 span { color:var(--acid); }
.hero-lede { max-width:560px; margin:28px 0 32px; font-size:clamp(18px,2vw,26px); line-height:1.25; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hero .button.ghost { color:white; border-color:white; }
.hero-media { position:relative; min-height:700px; overflow:hidden; clip-path: polygon(8% 0,100% 0,100% 100%,0 100%); }
.hero-media img { width:100%; height:100%; object-fit:cover; filter:saturate(.85) contrast(1.05); }
.hero-media::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(17,18,15,.8),transparent 40%),linear-gradient(0deg,rgba(17,18,15,.35),transparent 45%); }
.live-chip { position:absolute; right:34px; bottom:32px; z-index:2; width:min(360px,calc(100% - 68px)); padding:18px 20px; background:rgba(17,18,15,.9); border:1px solid rgba(255,255,255,.3); }
.live-chip strong { display:block; margin-bottom:5px; font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.live-chip strong::before { content:""; display:inline-block; width:9px; height:9px; margin-right:8px; border-radius:50%; background:#ff4338; box-shadow:0 0 0 5px rgba(255,67,56,.18); }
.stat-strip { background:var(--acid); border-block:1px solid var(--ink); }
.stat-grid { min-height:72px; display:grid; grid-template-columns:repeat(4,1fr); align-items:center; }
.stat-grid div { padding:10px 22px; border-right:1px solid var(--ink); text-align:center; font-size:12px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.stat-grid div:last-child { border:0; }
.section { padding:110px 0; }
.section-head { display:flex; justify-content:space-between; gap:40px; align-items:end; margin-bottom:48px; }
.section-head h2,.page-intro h1 { font-size:clamp(54px,7vw,108px); }
.section-head p { max-width:480px; margin:0; font-size:18px; color:var(--muted); }
.service-grid { display:grid; grid-template-columns:1.35fr .65fr; grid-template-rows:1fr 1fr; gap:18px; }
.service { min-height:300px; position:relative; overflow:hidden; background:#252620; color:white; padding:34px; display:flex; flex-direction:column; justify-content:flex-end; isolation:isolate; }
.service.primary { grid-row:1/3; min-height:620px; }
.service img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .6s ease; }
.service::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,rgba(0,0,0,.85),rgba(0,0,0,.05) 70%); }
.service:hover img { transform:scale(1.025); }
.service-num { position:absolute; top:25px; left:28px; font-size:13px; font-weight:900; }
.service h3 { margin:0; font-size:clamp(34px,4vw,68px); }
.service p { max-width:600px; margin:12px 0 21px; }
.inline-link { font-size:12px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.inline-link::after { content:"  ↗"; color:var(--acid); font-size:18px; }
.trust-band { padding:46px 0; background:var(--white); border-block:1px solid var(--ink); }
.trust-head { display:grid; grid-template-columns:240px 1fr; gap:40px; align-items:center; }
.trust-head .eyebrow { margin:0; }
.trust-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); }
.trust-item { min-height:112px; padding:20px; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--line); font-size:17px; font-weight:900; line-height:1.1; text-transform:uppercase; }
.trust-item:last-child { border-right:0; }
.trust-item small { display:block; margin-bottom:8px; color:var(--muted); font-size:10px; letter-spacing:.13em; }
.trust-item.partner { background:var(--acid); }
.trust-item.partner small { color:var(--ink); }
.case { background:var(--ink); color:white; }
.case-grid { display:grid; grid-template-columns:1.05fr .95fr; min-height:640px; }
.case-image { min-height:540px; overflow:hidden; }
.case-image img { height:100%; object-fit:cover; }
.case-copy { padding:80px clamp(32px,6vw,96px); display:flex; flex-direction:column; justify-content:center; }
.case-copy h2 { font-size:clamp(52px,6vw,96px); }
.case-meta { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; margin:34px 0; background:rgba(255,255,255,.2); }
.case-meta div { padding:18px; background:var(--ink); }
.case-meta small { display:block; color:#a9aa9f; text-transform:uppercase; letter-spacing:.12em; }
.gallery-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:18px; }
.work-card { grid-column:span 4; position:relative; min-height:430px; overflow:hidden; background:#ddd; }
.work-card.wide { grid-column:span 8; }
.work-card img { height:100%; object-fit:cover; transition:transform .5s ease; }
.work-card:hover img { transform:scale(1.02); }
.work-label { position:absolute; inset:auto 16px 16px 16px; padding:18px; background:rgba(17,18,15,.9); color:white; }
.work-label small { color:var(--acid); text-transform:uppercase; letter-spacing:.12em; }
.work-label h3 { margin:5px 0 0; font-size:22px; line-height:1.1; }
.crew-band { border-block:1px solid var(--line); background:var(--white); }
.crew-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:80px; align-items:center; }
.crew-grid h2 { font-size:clamp(56px,7vw,104px); }
.roles { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.role { min-height:160px; padding:24px; background:var(--white); }
.role strong { display:block; margin-bottom:8px; font-size:19px; }
.cta-panel { margin-block:90px; padding:65px; background:var(--acid); border:1px solid var(--ink); display:grid; grid-template-columns:1fr auto; gap:40px; align-items:center; }
.cta-panel h2 { font-size:clamp(46px,6vw,86px); }
.site-footer { background:var(--ink); color:white; padding:68px 0 25px; }
.footer-grid { display:grid; grid-template-columns:1.5fr repeat(2,1fr); gap:50px; padding-bottom:55px; }
.site-footer h3 { margin:0 0 16px; font-size:14px; text-transform:uppercase; letter-spacing:.12em; color:var(--acid); }
.site-footer a { display:block; margin:9px 0; }
.site-footer .brand { display:flex; width:max-content; align-items:center; margin:0 0 20px; }
.site-footer .brand-mark { display:block; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; padding-top:20px; border-top:1px solid rgba(255,255,255,.2); color:#aaa; font-size:12px; }
.footer-bottom a { display:inline; margin:0; }
.page-intro { padding:100px 0 72px; border-bottom:1px solid var(--line); }
.page-intro p { max-width:730px; margin:25px 0 0; font-size:clamp(19px,2vw,28px); line-height:1.3; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.feature-block { padding:40px; min-height:380px; border:1px solid var(--line); background:var(--white); }
.feature-block.dark { background:var(--ink); color:white; }
.feature-block h2 { font-size:clamp(46px,5vw,76px); }
.contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.contact-card { min-height:360px; padding:clamp(30px,4vw,56px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; border:1px solid var(--ink); background:var(--white); }
.contact-card-accent { background:var(--acid); }
.contact-link { margin:12px 0 24px; font:clamp(44px,5.5vw,82px)/.92 Impact,Arial Black,sans-serif; letter-spacing:-.035em; }
.contact-email { font-size:clamp(26px,3vw,48px); overflow-wrap:anywhere; }
.contact-card .button { margin-top:20px; }
.contact-scope { border-top:1px solid var(--line); background:var(--white); }
.contact-scope h2 { margin-top:18px; font-size:clamp(52px,6vw,92px); }
.check-list { list-style:none; padding:0; margin:28px 0; }
.check-list li { padding:12px 0; border-bottom:1px solid currentColor; }
.check-list li::before { content:"↳"; color:var(--acid); margin-right:10px; }
.format-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.format-card { padding:30px; border:1px solid var(--line); background:var(--white); }
.format-card b { display:block; font-size:52px; font-family:Impact, sans-serif; }
.video-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.video-card { position:relative; min-height:360px; background:var(--ink); color:white; overflow:hidden; }
.video-card img { height:100%; object-fit:cover; opacity:.78; }
.play { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); width:76px; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; background:var(--acid); color:var(--ink); font-size:24px; }
.video-title { position:absolute; inset:auto 22px 20px; font-weight:900; font-size:20px; }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:32px; }
.filter { border:1px solid var(--ink); background:transparent; padding:12px 18px; font-weight:800; cursor:pointer; }
.filter.active { background:var(--ink); color:white; }
.portfolio-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.portfolio-card { min-height:370px; position:relative; overflow:hidden; background:#ddd; }
.portfolio-card[hidden] { display:none; }
.portfolio-card img { height:100%; object-fit:cover; }
.core-team { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.person { min-height:clamp(540px,60vw,780px); position:relative; overflow:hidden; background:var(--ink); color:white; isolation:isolate; }
.person > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 34%; z-index:-2; }
.person::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,rgba(17,18,15,.94) 0,rgba(17,18,15,.42) 34%,rgba(17,18,15,.06) 68%); }
.person-copy { position:absolute; inset:auto 0 0; padding:40px; }
.person h3 { font-size:54px; margin:0; }
.person p:last-child { max-width:460px; margin-bottom:0; }
.home-schedule { background:var(--white); border-bottom:1px solid var(--line); }
.schedule-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.calendar-slider .schedule-card[hidden] { display:none; }
.calendar-side { max-width:460px; }
.calendar-side > p { margin-top:0; }
.calendar-controls { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:24px; }
.calendar-arrow { width:52px; height:52px; display:grid; place-items:center; border:1px solid var(--ink); background:var(--ink); color:white; font-size:25px; line-height:1; cursor:pointer; transition:background .2s ease,color .2s ease,opacity .2s ease; }
.calendar-arrow:hover:not(:disabled),.calendar-arrow:focus-visible { background:var(--acid); color:var(--ink); }
.calendar-arrow:disabled { opacity:.25; cursor:not-allowed; }
.calendar-counter { min-width:54px; text-align:center; font-size:12px; font-weight:900; letter-spacing:.1em; }
.schedule-grid.compact { grid-template-columns:repeat(3,minmax(0,1fr)); }
.schedule-card { min-height:220px; display:grid; grid-template-columns:116px 1fr; border:1px solid var(--ink); background:var(--white); }
.schedule-date { padding:24px 18px; display:flex; flex-direction:column; justify-content:center; align-items:center; background:var(--acid); border-right:1px solid var(--ink); text-transform:uppercase; }
.schedule-date strong { font:82px/.78 Impact,Arial Black,sans-serif; letter-spacing:-.05em; }
.schedule-date strong.is-range { font-size:58px; letter-spacing:-.035em; }
.schedule-date span { margin-top:14px; font-weight:900; letter-spacing:.14em; }
.schedule-copy { padding:28px; display:flex; flex-direction:column; justify-content:center; }
.schedule-copy h2 { margin:6px 0 8px; font-size:clamp(22px,2.2vw,34px); line-height:1.05; }
.schedule-copy p { margin:4px 0; }
.event-location { display:flex; flex-direction:column; gap:3px; margin-top:12px !important; }
.event-location strong { font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.event-location span { font-size:14px; line-height:1.35; }
.event-location-link { display:inline-flex; align-items:flex-start; gap:7px; width:fit-content; border-bottom:1px solid var(--ink); }
.event-location-link:hover { color:var(--accent); border-color:var(--accent); }
.event-badges { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.event-badge { padding:5px 8px 4px; border:1px solid var(--ink); font-size:10px; font-weight:900; line-height:1; letter-spacing:.12em; text-transform:uppercase; }
.event-badge.live { background:var(--acid); }
.event-badge.foto { background:var(--ink); color:white; }
.event-badge.sesja { background:transparent; }
.event-badge.komentarz { background:var(--white); border-style:dashed; }
.event-badge.duration { background:transparent; border-color:var(--muted); color:var(--muted); }
.event-public-details { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:14px; }
.event-commentator { margin:0; font-size:13px; }
.event-commentator strong { text-transform:uppercase; letter-spacing:.08em; }
.event-watch { display:inline-flex; align-items:center; min-height:36px; padding:0 12px; background:var(--ink); color:white; border:1px solid var(--ink); font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.event-watch::after { content:" ↗"; margin-left:5px; color:var(--acid); }
.schedule-empty { min-height:150px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:28px; padding:32px; border:1px solid var(--ink); background:var(--acid); }
.schedule-empty strong { font-size:24px; }
.schedule-empty span { font-size:17px; }
.article-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.featured-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.article-card { border:1px solid var(--ink); background:var(--white); display:flex; flex-direction:column; }
.article-card.is-featured { display:grid; grid-template-columns:1.15fr 1fr; min-height:380px; }
.article-card-media { min-height:260px; display:block; overflow:hidden; background:var(--ink); }
.article-card-media img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.article-card:hover .article-card-media img { transform:scale(1.025); }
.article-placeholder { min-height:260px; padding:30px; display:flex; align-items:flex-end; color:var(--acid); font:64px/.82 Impact,Arial Black,sans-serif; }
.article-card-copy { padding:26px; }
.article-meta { margin:0 0 10px; color:var(--muted); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.12em; }
.article-card h2 { margin:0 0 12px; font-size:clamp(23px,2.2vw,34px); line-height:1.05; }
.article-card p { margin:0 0 20px; }
.empty-state { padding:clamp(32px,6vw,76px); border:1px solid var(--ink); background:var(--white); }
.empty-state > span { display:block; margin-bottom:24px; color:var(--acid); font:76px/.8 Impact,Arial Black,sans-serif; }
.empty-state h2 { max-width:860px; margin:0 0 18px; font-size:clamp(30px,4vw,58px); line-height:1; }
.empty-state p { max-width:720px; font-size:18px; }
.featured-stories { background:var(--ink); color:white; }
.featured-stories .section-head > p { color:#b8b9af; }
.archive-gallery { background:var(--white); border-top:1px solid var(--line); }
.pagination { display:flex; flex-wrap:wrap; gap:8px; margin-top:36px; }
.pagination .page-numbers { min-width:42px; min-height:42px; display:grid; place-items:center; border:1px solid var(--ink); font-weight:800; }
.pagination .current { background:var(--ink); color:white; }
.story-header { padding:100px 0 64px; background:var(--ink); color:white; }
.story-header h1 { max-width:1050px; font-size:clamp(58px,8vw,118px); }
.story-header > .wrap > p:last-child { max-width:820px; font-size:22px; }
.story-cover { margin-top:42px; }
.story-cover img { max-height:760px; object-fit:cover; }
.story-layout { display:grid; grid-template-columns:minmax(0,760px) minmax(240px,1fr); gap:clamp(50px,8vw,130px); padding-block:70px 110px; }
.story-content { font-size:19px; line-height:1.75; }
.story-content > *:first-child { margin-top:0; }
.story-content img { height:auto; margin:34px 0; }
.story-content iframe { width:100%; max-width:100%; }
.story-aside { align-self:start; position:sticky; top:112px; padding:28px; border-top:8px solid var(--acid); background:var(--white); }
.ghost-light { background:transparent; }
@media (max-width: 1120px) {
  .header-cta { display:none; }
  .header-inner { grid-template-columns:210px 1fr; }
}
@media (max-width: 900px) {
  :root { --wrap:min(100% - 30px,760px); }
  .header-inner { grid-template-columns:1fr auto; min-height:70px; }
  .header-cta { display:none; }
  .menu-toggle { display:block; }
  .main-nav { display:none; position:absolute; top:70px; left:0; right:0; padding:18px 24px 28px; background:var(--paper); border-bottom:1px solid var(--ink); flex-direction:column; align-items:flex-start; }
  .main-nav.open { display:flex; }
  .main-nav a { padding:7px 0; }
  .hero-grid,.case-grid,.crew-grid,.split,.contact-grid { grid-template-columns:1fr; }
  .hero-copy { padding:70px 24px 35px; min-height:470px; }
  .hero-media { min-height:420px; clip-path:none; }
  .service-grid { grid-template-columns:1fr; grid-template-rows:auto; }
  .service.primary { grid-row:auto; min-height:480px; }
  .service { min-height:340px; }
  .work-card,.work-card.wide { grid-column:span 12; }
  .format-grid,.portfolio-grid,.article-grid,.featured-grid,.schedule-grid,.schedule-grid.compact { grid-template-columns:1fr 1fr; }
  .article-card.is-featured { display:flex; }
  .trust-head { grid-template-columns:1fr; gap:22px; }
  .trust-list { grid-template-columns:1fr 1fr; }
  .trust-item:nth-child(2) { border-right:0; }
  .trust-item:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .story-layout { grid-template-columns:1fr; }
  .story-aside { position:static; }
  .schedule-empty { grid-template-columns:1fr; }
  .cta-panel { grid-template-columns:1fr; padding:38px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 590px) {
  .section { padding:72px 0; }
  .section-head { display:block; }
  .section-head p { margin-top:20px; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .stat-grid div:nth-child(2) { border-right:0; }
  .stat-grid div:nth-child(-n+2) { border-bottom:1px solid var(--ink); }
  .format-grid,.video-grid,.portfolio-grid,.core-team,.roles,.article-grid,.featured-grid,.schedule-grid,.schedule-grid.compact { grid-template-columns:1fr; }
  .schedule-card { grid-template-columns:88px 1fr; min-height:180px; }
  .schedule-date strong { font-size:58px; }
  .schedule-copy { padding:22px; }
  .trust-list { grid-template-columns:1fr; }
  .trust-item,.trust-item:nth-child(2) { border-right:0; border-bottom:1px solid var(--line); }
  .trust-item:last-child { border-bottom:0; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; }
}
