/*
Theme Name: PCR Sport
Template: twentytwentyfive
Version: 1.1.3
Text Domain: pcrsport
License: GNU General Public License v2 or later
*/

:root {
  --pcr-green: #1f6a3a;
  --pcr-green-dark: #124628;
  --pcr-red: #d12b32;
  --pcr-ink: #18231c;
  --pcr-muted: #637068;
  --pcr-paper: #f5f6f1;
  --pcr-white: #fff;
  --pcr-border: #dfe4dc;
  --pcr-shadow: 0 1px 0 rgba(18,70,40,.05), 0 10px 32px rgba(18,70,40,.10);
  --pcr-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pcr-ink);
  background: var(--pcr-paper);
  font-family: Aptos, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
body > .wp-site-blocks { padding: 0; }
a { color: var(--pcr-green-dark); text-underline-offset: 3px; }
img { max-width: 100%; }

/* Header */
.pcr-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(24,35,28,.08);
  backdrop-filter: blur(14px);
}
.pcr-header__inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.pcr-logo { display: block; width: 88px; height: 64px; }
.pcr-logo img { width: 100%; height: 100%; object-fit: contain; }
.pcr-header .wp-block-navigation { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.pcr-header .wp-block-navigation-item__content { padding: 12px 4px; text-decoration: none; }
.pcr-header .wp-block-navigation-item__content:hover { color: var(--pcr-red); }
.pcr-header .wp-block-navigation__responsive-container-open,
.pcr-header .wp-block-navigation__responsive-container-close { min-width: 48px; min-height: 48px; align-items: center; justify-content: center; }
.pcr-header .current-menu-item > a { color: var(--pcr-red); }

/* Home hero */
.pcr-home { padding: 0 0 96px; }
.pcr-home .wp-block-post-content { max-width: none !important; margin: 0 !important; }
.pcr-hero {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  height: clamp(420px, 64vw, 720px);
  max-height: calc(100vh - 116px);
  margin: 16px auto 88px;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  background: var(--pcr-green-dark);
  box-shadow: var(--pcr-shadow);
}
.pcr-hero__media { width: 100%; height: 100%; }
.pcr-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: auto; }
.pcr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,31,17,.62), rgba(7,31,17,.06) 65%), linear-gradient(0deg, rgba(7,31,17,.34), transparent 45%);
}
.pcr-hero h1 {
  position: absolute;
  z-index: 1;
  left: clamp(28px, 7vw, 96px);
  bottom: clamp(32px, 8vw, 96px);
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(43px, 6.4vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  text-wrap: balance;
}

.pcr-section { width: min(1200px, calc(100% - 40px)); margin: 0 auto 112px; }
.pcr-section > h2,
.pcr-story__copy > h2,
.pcr-about > h2 {
  margin: 0 0 34px;
  color: var(--pcr-green-dark);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.05em;
}

/* Offer photography grid */
.pcr-offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.pcr-offer-card {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--pcr-radius);
  background: #203d2b;
  box-shadow: var(--pcr-shadow);
}
.pcr-offer-card:nth-child(2), .pcr-offer-card:nth-child(7) { transform: translateY(24px); }
.pcr-offer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.pcr-offer-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(8,31,18,.86), transparent 60%); }
.pcr-offer-card h3 {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 20px;
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.pcr-offer-card:hover img { transform: scale(1.045); }

/* Editorial story */
.pcr-story { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; gap: clamp(40px, 7vw, 90px); }
.pcr-story__copy { align-self: center; }
.pcr-story__copy p { margin: 0; color: #35423a; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.75; }
.pcr-story figure { min-height: 600px; margin: 0; overflow: hidden; border-radius: 32px; box-shadow: var(--pcr-shadow); }
.pcr-story img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

.pcr-about {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px);
  border-radius: 34px;
  background: var(--pcr-green-dark);
  color: #eef7f0;
}
.pcr-about > h2 { color: #fff; }
.pcr-about p { margin: 0 0 1.5em; font-size: clamp(17px, 1.5vw, 20px); }
.pcr-about p:last-child { margin: 0; color: #fff; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; }

/* Inner pages */
.pcr-page {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0 60px;
}
.pcr-page > .wp-block-post-title {
  max-width: 900px;
  margin: 0 0 54px;
  color: var(--pcr-green-dark);
  font-size: clamp(46px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.055em;
}
.pcr-page .wp-block-post-content { max-width: 100% !important; }
.pcr-page .wp-block-post-content > p,
.pcr-page .wp-block-post-content > h2,
.pcr-page .wp-block-post-content > h3 { max-width: 780px; }

/* Pricing */
.pcr-page table {
  width: 100%;
  margin: 24px 0 64px;
  overflow: hidden;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--pcr-shadow);
}
.pcr-page th, .pcr-page td { padding: 18px 22px; border: 0; border-bottom: 1px solid var(--pcr-border); text-align: left; }
.pcr-page tr:last-child td { border-bottom: 0; }
.pcr-page th { background: var(--pcr-green-dark); color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.pcr-page tbody tr:hover { background: #f0f6f1; }
.pcr-page .wp-block-heading { color: var(--pcr-green-dark); letter-spacing: -.035em; }

/* Footer */
.pcr-footer { margin-top: 96px !important; padding: 56px 0 !important; border: 0; background: #0d3520; color: #eaf3ec; }
.pcr-footer > .wp-block-columns { width: min(1200px, calc(100% - 40px)); margin: auto; }
.pcr-footer a { color: #fff; }
.pcr-footer p { margin: 0 0 8px; }

@media (max-width: 900px) {
  .pcr-header__inner { min-height: 76px; }
  .pcr-logo { width: 72px; height: 54px; }
  .pcr-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .pcr-header .wp-block-navigation__responsive-container-open { display: flex; }
  .pcr-hero { height: 620px; margin-top: 0; border-radius: 0 0 28px 28px; }
  .pcr-offer-grid { grid-template-columns: repeat(2, 1fr); }
  .pcr-offer-card:nth-child(2), .pcr-offer-card:nth-child(7) { transform: none; }
  .pcr-story { grid-template-columns: 1fr; }
  .pcr-story figure { min-height: 520px; }
}

@media (max-width: 580px) {
  body { font-size: 16px; }
  .pcr-header__inner { width: calc(100% - 28px); }
  .pcr-header .wp-block-navigation__responsive-container.is-menu-open { padding: 30px; background: #fff; }
  .pcr-hero { width: 100%; height: 560px; margin-bottom: 64px; border-radius: 0 0 22px 22px; }
  .pcr-hero h1 { left: 22px; right: 22px; bottom: 26px; font-size: 43px; }
  .pcr-section { width: calc(100% - 28px); margin-bottom: 78px; }
  .pcr-offer-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcr-offer-card { border-radius: 15px; }
  .pcr-offer-card h3 { left: 13px; right: 10px; bottom: 13px; font-size: 14px; }
  .pcr-story figure { min-height: 420px; }
  .pcr-about { width: calc(100% - 28px); border-radius: 24px; }
  .pcr-page { width: calc(100% - 28px); }
  .pcr-page > .wp-block-post-title { margin-bottom: 36px; }
  .pcr-page table { display: block; overflow-x: auto; white-space: nowrap; }
  .pcr-page th, .pcr-page td { padding: 14px; }
  .pcr-footer { margin-top: 64px !important; }
}

/* Local source pages */
@font-face { font-family: "Barlow Condensed Full"; src: url("assets/fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed Full"; src: url("assets/fonts/barlow-condensed-600-latin.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed Full"; src: url("assets/fonts/barlow-condensed-800-latin-ext.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed Full"; src: url("assets/fonts/barlow-condensed-800-latin.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
.pcr-page > .wp-block-post-title,
.pcr-inner h2,
.pcr-inner-lead { font-family: "Barlow Condensed Full", "Arial Narrow", sans-serif; }
.pcr-inner-lead { margin: -30px 0 42px; color: var(--pcr-red); font-size: clamp(25px,4vw,38px); font-weight: 800; letter-spacing: .02em; }
.pcr-team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.pcr-person { display: grid; grid-template-columns: 170px 1fr; gap: 24px; margin: 0; padding: 22px; border: 1px solid var(--pcr-border); border-radius: 20px; background: #fff; box-shadow: var(--pcr-shadow); }
.pcr-person img { width: 170px; height: 170px; border-radius: 14px; object-fit: cover; }
.pcr-person h2 { margin: 4px 0 10px; color: var(--pcr-green-dark); font-size: 27px; line-height: 1; }
.pcr-person p { margin: 0; color: #435047; font-size: 16px; line-height: 1.6; }
.pcr-person:last-child:nth-child(odd),
.pcr-download:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
.pcr-downloads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pcr-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 118px; margin: 0; padding: 22px 24px; border: 1px solid var(--pcr-border); border-radius: 18px; background: #fff; box-shadow: var(--pcr-shadow); }
.pcr-download h2 { margin: 0; color: var(--pcr-ink); font-size: 21px; line-height: 1.15; }
.pcr-download a { display: inline-flex; flex: 0 0 auto; min-width: 92px; min-height: 48px; align-items: center; justify-content: center; border-radius: 9px; background: var(--pcr-red); color: #fff; font-weight: 800; text-decoration: none; }
.pcr-download a:hover { background: #b72028; }
@media (max-width: 900px) {
  .pcr-team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .pcr-inner-lead { margin-top: -16px; }
  .pcr-person { grid-template-columns: 100px 1fr; gap: 16px; padding: 16px; }
  .pcr-person img { width: 100px; height: 100px; }
  .pcr-person h2 { font-size: 23px; }
  .pcr-downloads { grid-template-columns: 1fr; }
  .pcr-person:last-child:nth-child(odd),.pcr-download:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
  .pcr-download { align-items: flex-start; flex-direction: column; }
  .pcr-download a { width: 100%; }
}

/* Managed document library. The old .pcr-download selectors remain for historical
   content, while the new collection is grouped and rendered by WordPress records. */
.pcr-downloads-page .pcr-entry__header { margin-bottom: 28px; }
.pcr-download-groups { display: grid; gap: 48px; }
.pcr-download-group { margin: 0; }
.pcr-download-group > h2 {
  margin: 0 0 18px;
  color: var(--pcr-green-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
}
.pcr-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pcr-download-card {
  display: flex;
  min-width: 0;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border: 1px solid var(--pcr-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--pcr-shadow);
}
.pcr-download-card__body { min-width: 0; }
.pcr-download-card h3 { margin: 0; color: var(--pcr-ink); font-size: 21px; line-height: 1.2; }
.pcr-download-card__description { margin-top: 10px; color: var(--pcr-muted); font-size: 15px; line-height: 1.5; }
.pcr-download-card__description > :first-child { margin-top: 0; }
.pcr-download-card__description > :last-child { margin-bottom: 0; }
.pcr-download-card__meta { margin: 8px 0 0; color: var(--pcr-muted); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
/* Size comes from .btn/.btn-primary (the --btn-* tokens in header.php); only the
   card-specific width floor lives here. */
.pcr-download-card__cta { flex: 0 0 auto; min-width: 112px; }
.pcr-download-card__missing { flex: 0 0 auto; margin: 0; color: var(--pcr-muted); font-size: 14px; font-weight: 700; }
@media (min-width: 701px) {
  .pcr-download-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
}
@media (max-width: 700px) {
  .pcr-download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pcr-download-card { align-items: flex-start; flex-direction: column; gap: 16px; padding: 20px; }
  .pcr-download-card__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Shared PHP templates used by every public route. Keeping these styles separate
   from the legacy block-theme selectors makes the route switch safe for editors. */
.pcr-entry__header { margin-bottom: 42px; }
.pcr-entry__header h1,
.pcr-not-found h1 {
  max-width: 900px;
  margin: 0;
  color: var(--pcr-green-dark);
  font-size: clamp(46px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.055em;
}
.pcr-entry__content { max-width: 820px; }
.pcr-entry__content > * { max-width: 100%; }
.pcr-entry__content :where(h2, h3) { color: var(--pcr-green-dark); letter-spacing: -.035em; }
.pcr-entry__content :where(a),
.pcr-archive a { color: var(--pcr-green-dark); }
.pcr-entry__content a:focus-visible,
.pcr-archive a:focus-visible,
.pcr-not-found a:focus-visible { outline: 3px solid var(--pcr-red); outline-offset: 4px; }
.pcr-archive .crumbs { margin-bottom: 34px; }
.pcr-archive__list { display: grid; gap: 18px; max-width: 900px; }
.pcr-archive__item {
  display: grid;
  grid-template-columns: minmax(150px, 260px) 1fr;
  gap: 26px;
  padding: 20px;
  border: 1px solid var(--pcr-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--pcr-shadow);
}
.pcr-archive__media { display: block; overflow: hidden; border-radius: 14px; }
.pcr-archive__media img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.pcr-archive__body { align-self: center; min-width: 0; }
.pcr-archive__meta { margin: 0 0 8px; color: #637168; font-size: 14px; }
.pcr-archive__body h2 { margin: 0 0 12px; color: var(--pcr-green-dark); font-size: clamp(25px, 3vw, 38px); line-height: 1; }
.pcr-archive__body h2 a { text-decoration: none; }
.pcr-archive__body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pcr-archive__body > p:last-child { margin: 0; color: #435047; line-height: 1.6; }
.pcr-archive .nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pcr-archive .nav-links a,
.pcr-archive .nav-links span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 9px; background: #fff; }
.pcr-not-found .wrap { max-width: 820px; }
.pcr-not-found h1 { margin-bottom: 24px; }
/* The hero's .eyebrow (header.php) is #7fe3a8 — legible on the hero's dark photo,
   not on this page's light --bg. .camp-single also sits on --bg (home.php's news
   header, and single-camp pages), so both get the dark, accessible token instead;
   the hero eyebrow itself is untouched. */
.pcr-not-found .eyebrow,
.camp-single .eyebrow { color: var(--pcr-green-dark); }
.pcr-not-found p:not(.eyebrow) { max-width: 560px; margin: 0 0 30px; color: #435047; font-size: 20px; line-height: 1.6; }

@media (max-width: 580px) {
  .pcr-entry__header { margin-bottom: 32px; }
  .pcr-archive__item { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .pcr-archive__media img { min-height: 200px; max-height: 260px; }
}

/* Short landscape viewports — see the matching tier in header.php. .pcr-page's own top
   padding (clamp(56px,8vw,100px), set above) is what pushed a plain page's h1 down to
   y=141 with 68px of empty space above it at 844x390; trimmed here alongside the
   heading itself so a rotated phone reaches real content sooner. */
@media (max-height: 500px) and (orientation: landscape) {
  .pcr-page { padding-top: 24px; }
  .pcr-entry__header { margin-bottom: 20px; }
  .pcr-entry__header h1,
  .pcr-not-found h1 { font-size: clamp(30px, 5vw, 40px); }
}

/* Footer cells (parts/site-footer.php): brand + one per WordPress "kontakt" section
   + links, rendered as a flex row by header.php's .foot-grid. min-width:0 lets a cell
   shrink below its content's natural width instead of forcing the row to overflow;
   flex-basis 180px is what makes 4-5 cells wrap into 2-3 columns around 800px and
   stack to one column on a phone, instead of squeezing everything onto one line. */
.foot-cell { min-width: 0; flex: 1 1 200px; }
.foot-cell:last-child { flex: 0 1 auto; }
/* header.php's inline <style> (footer.site strong{font-size:18px;letter-spacing:.02em})
   is emitted by wp_head() and therefore AFTER this stylesheet in source order; a bare
   ".foot-cell strong" (0,1,1) loses to its "footer.site strong" (0,1,2). The child
   combinator raises this rule to (0,2,2) so the section heading actually gets 14px/
   uppercase, and ">" also keeps it from also matching a <strong class="pcr-copy">
   account number nested one level deeper inside the same cell. */
footer.site .foot-cell > strong { font-family: var(--sans); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #fff; display: block; margin-bottom: 6px; }
.foot-cell p { margin: 0 0 6px; }

/* This stylesheet is enqueued on every route with no template guard (see
   functions.php wp_enqueue_scripts), so footer.site rules here reach every page,
   not only the front page. Was previously an inline style="color:#bfe0cd" on each
   footer <a>; centralised so a link inside a WordPress-authored contact section
   (rendered via wp_kses_post, which strips inline style attributes anyway) keeps
   the footer's colour instead of falling back to the default link colour. */
footer.site a { color: #bfe0cd; }

/* Footer "Cennik" / "Do pobrania" links (parts/site-footer.php). margin:0 replaces
   the default <p> block margin around the wrapper. */
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }

/* "Kopiuj" button injected after .pcr-copy (the bank account, now only on the front
   page's #kontakt card - build brief L) by the script in parts/site-footer.php, which
   every page loads. Inherits the surrounding colour, so this rule still works if a
   .pcr-copy element is ever added back to the dark footer as well as on the light
   front page. */
.pcr-copy { font-weight: 700; }
.pcr-copy-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; vertical-align: baseline; }
.pcr-copy-btn { font: inherit; font-size: 13px; line-height: 1; padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; vertical-align: 1px; }
.pcr-copy-btn:focus-visible { background: rgba(127, 227, 168, .18); outline: none; box-shadow: 0 0 0 3px rgba(127, 227, 168, .5); }
/* Hover only where a pointer can hover: a tap on a touch screen leaves the element in
   :hover, so without the guard the tint stayed on after "Skopiowano" faded (same guard
   header.php uses for .place-card). */
@media (hover: hover) { .pcr-copy-btn:hover { background: rgba(127, 227, 168, .18); } }
.pcr-copy-btn.is-done { border-color: transparent; background: rgba(127, 227, 168, .28); }
.pcr-copy-status { font-size: 13px; }
