/*
 * Żółty baner pod zielonym paskiem menu — edycja 2026.
 * Markup: template-parts/header/banner-2026.php (wywoływany z header.php).
 * Figma: WIP — dodatkowe_wsparcie / schroniska / faq / regulamin (podstrony),
 *        str główna - PRZED / W_TRAKCIE / PO-AKCJI, strona_psa (strona główna i strona zwierzaka).
 * Zielony pasek menu (#site-header_menu) bez zmian.
 */

@font-face {
  font-family: 'NB26Bold';
  src: url('../fonts/geomanist-bold-webfont.woff2') format('woff2'), url('../fonts/geomanist-bold-webfont.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'NB26Medium';
  src: url('../fonts/geomanist-medium-webfont.woff2') format('woff2'), url('../fonts/geomanist-medium-webfont.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'NB26Book';
  src: url('../fonts/geomanist-book-webfont.woff2') format('woff2'), url('../fonts/geomanist-book-webfont.woff') format('woff');
  font-display: swap;
}

.nb26 {
  --nb26-ink: #044142;
  --nb26-btn: #002f34;
  --nb26-yellow: #ffdd73;
  --nb26-yellow-light: #ffebad;
  position: relative;
  z-index: 2; /* pies/zdjęcie wystają pod żółty pas, nad treść strony */
  background: var(--nb26-yellow);
  color: var(--nb26-ink);
}

.nb26 *,
.nb26 *::before,
.nb26 *::after {
  box-sizing: border-box;
}

.nb26 img {
  display: block;
  max-width: none;
  height: auto;
}

.nb26 .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =====================================================================
 * PODSTRONY — 300 px wysokości przy 1366, kontener 1238 px
 * ===================================================================== */

.nb26-sub {
  position: relative;
  width: 100%;
  max-width: 1270px;
  margin: 0 auto;
  padding: 25px 16px;
}

.nb26-sub__badge {
  position: relative;
  width: 53.82%; /* 666.25 / 1238 */
  aspect-ratio: 666.25 / 250;
  background: url('../img/2026/naglowek/baner-ksztalt-podstrona.svg') center / 100% 100% no-repeat;
}

.nb26-sub__badge img {
  position: absolute;
}

.nb26-sub__logo { left: 3.07%; top: 13.6%; width: 28.52%; }
.nb26-sub__title { left: 37.22%; top: 23.2%; width: 45.51%; }
.nb26-sub__paw--1 { left: 78.14%; top: 12.03%; width: 9.67%; }
.nb26-sub__paw--2 { left: 35.52%; top: 67.86%; width: 8.21%; }

/* pies: 482 × 473, wystaje 17 px nad żółty pas (ucięte) i 156 px pod niego */
.nb26-sub__dog {
  position: absolute;
  top: 0;
  right: calc(16px + (100% - 32px) * 0.0242); /* 30 / 1238 */
  width: calc((100% - 32px) * 0.3893); /* 482 / 1238 */
  aspect-ratio: 482 / 456;
  pointer-events: none;
}

.nb26-sub__photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.nb26-sub__photo img {
  width: 100%;
  margin-top: -3.53%; /* 17 / 482 */
}

.nb26-sub__heart {
  position: absolute;
}

.nb26-sub__heart--1 {
  left: 3.32%;
  top: 18.98%;
  width: 13.73%;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.nb26-sub__heart--2 {
  left: 91.95%;
  top: 26.62%;
  width: 22.64%;
  transform: translate(-50%, -50%) rotate(14deg);
}

/* =====================================================================
 * STRONA GŁÓWNA / STRONA ZWIERZAKA
 * Scena 1366 × 400 (PRZED: 1366 × 488) skalowana proporcjonalnie:
 * 1 px projektu = var(--u) = 100cqw / 1366.
 * ===================================================================== */

.nb26-stage {
  --u: calc(100cqw / 1366);
  position: relative;
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  aspect-ratio: 1366 / 400;
  container-type: inline-size;
}

.nb26--przed .nb26-stage {
  aspect-ratio: 1366 / 488;
  overflow: hidden; /* zdjęcie PRZED zaczyna się 12 px pod paskiem menu */
}

.nb26-stage > * {
  position: absolute;
}

/* zdjęcia mają wtopione tło: żółte u góry, białe od linii końca banera */
.nb26-photo {
  object-fit: cover;
  object-position: left top;
}

.nb26--przed .nb26-photo {
  left: calc(var(--u) * 496);
  top: calc(var(--u) * -12);
  width: calc(var(--u) * 870);
  height: calc(var(--u) * 500);
}

.nb26--w-trakcie .nb26-photo {
  left: calc(var(--u) * 463);
  top: calc(var(--u) * 36);
  width: calc(var(--u) * 859);
  height: calc(var(--u) * 445);
}

.nb26--po .nb26-photo {
  left: calc(var(--u) * 552);
  top: calc(var(--u) * 32);
  width: calc(var(--u) * 814);
  height: calc(var(--u) * 450);
}

/* jasnożółta "strzałka" 543 × 279 przy lewej krawędzi */
.nb26-card {
  left: 0;
  top: calc(var(--u) * 30);
  width: calc(var(--u) * 543);
  height: calc(var(--u) * 279);
  background: url('../img/2026/naglowek/baner-ksztalt-home.svg') left center / 100% 100% no-repeat;
}

.nb26-card > * {
  position: absolute;
  margin: 0;
}

.nb26-card__title {
  left: calc(var(--u) * 64);
  top: calc(var(--u) * 68);
  width: calc(var(--u) * 354);
}

/* "już za chwilę" + "Ruszamy 7.12!" z łapkami po bokach (wariant PRZED) */
.nb26-card__soon {
  left: calc(var(--u) * 64);
  top: calc(var(--u) * 146);
  width: calc(var(--u) * 354);
  text-align: center;
  color: var(--nb26-ink);
}

.nb26-card__soon p {
  margin: 0;
}

.nb26-card__soon-line {
  font-family: 'NB26Medium', 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-size: calc(var(--u) * 28);
  line-height: calc(var(--u) * 34);
}

.nb26-card__soon-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 12);
  margin-top: calc(var(--u) * 14) !important;
  font-family: 'NB26Bold', 'GeomanistBold', Arial, Helvetica, sans-serif;
  font-size: calc(var(--u) * 30);
  line-height: calc(var(--u) * 36);
}

.nb26-card__soon-date strong {
  font-weight: normal;
}

.nb26-card__soon-date img {
  width: calc(var(--u) * 38);
  height: auto;
}

.nb26-card__claim {
  left: calc(var(--u) * 82);
  top: calc(var(--u) * 85);
  width: calc(var(--u) * 360);
  text-align: center;
  color: var(--nb26-ink);
}

.nb26-card__claim strong,
.nb26-card__claim span {
  display: block;
  font-weight: normal;
  line-height: calc(var(--u) * 36);
}

.nb26-card__claim strong {
  font-family: 'NB26Bold', 'GeomanistBold', Arial, Helvetica, sans-serif;
  font-size: calc(var(--u) * 40);
}

.nb26-card__claim span {
  font-family: 'NB26Medium', 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-size: calc(var(--u) * 36);
}

.nb26-card__btn {
  left: calc(var(--u) * 195);
  top: calc(var(--u) * 205);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 134);
  min-width: 72px;
  height: calc(var(--u) * 48);
  min-height: 32px;
  border-radius: 48px;
  background: var(--nb26-btn);
  color: #fff;
  font-family: 'NB26Bold', 'GeomanistBold', Arial, Helvetica, sans-serif;
  font-size: max(12px, calc(var(--u) * 16));
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.nb26-card__btn:hover,
.nb26-card__btn:focus {
  background: #0b5f61;
  color: #fff;
  text-decoration: none;
}

.nb26-card__btn:focus-visible {
  outline: 2px solid var(--nb26-ink);
  outline-offset: 3px;
}

.nb26-card__note {
  left: calc(var(--u) * 67);
  top: calc(var(--u) * 283);
  white-space: nowrap;
  font-family: 'NB26Book', 'GeomanistBook', Arial, Helvetica, sans-serif;
  font-size: max(9px, calc(var(--u) * 10));
  line-height: 1.2;
  color: var(--nb26-ink);
}

.nb26-card__note a {
  color: inherit;
  text-decoration: underline;
}

.nb26-deco {
  pointer-events: none;
}

/* serca: pozycja = środek obróconego elementu z Figmy, rotacja jak w projekcie */
.nb26-heart--a { width: calc(var(--u) * 89); }
.nb26-heart--b { width: calc(var(--u) * 101); }
.nb26-heart--c { width: calc(var(--u) * 82); }
.nb26-heart--d { width: calc(var(--u) * 54); }

.nb26--przed .nb26-heart--d { left: calc(var(--u) * 400.5); top: calc(var(--u) * 50.5); transform: rotate(-28.99deg); }
.nb26--przed .nb26-heart--b { left: calc(var(--u) * 470.2); top: calc(var(--u) * 48); transform: rotate(20.62deg); }

.nb26--w-trakcie .nb26-heart--a { left: calc(var(--u) * 51.5); top: calc(var(--u) * 36.5); transform: rotate(-28.99deg); }
.nb26--w-trakcie .nb26-heart--b { left: calc(var(--u) * 390.5); top: calc(var(--u) * 16); transform: rotate(20.62deg); }

.nb26--po .nb26-heart--c { left: calc(var(--u) * 51.8); top: calc(var(--u) * 56.8); transform: rotate(-33.35deg); }
.nb26--po .nb26-heart--d { left: calc(var(--u) * 330.5); top: calc(var(--u) * 49.4); transform: rotate(-28.99deg); }
.nb26--po .nb26-heart--b { left: calc(var(--u) * 419.2); top: calc(var(--u) * 32); transform: rotate(20.62deg); }

.nb26-logo {
  left: calc(var(--u) * 1100);
  top: calc(var(--u) * 16);
  width: calc(var(--u) * 195.5);
}

.nb26--po .nb26-logo {
  left: calc(var(--u) * 367);
  top: calc(var(--u) * 196.7);
  width: calc(var(--u) * 246.5);
}

/* =====================================================================
 * MOBILE
 * ===================================================================== */

@media (max-width: 767px) {
  /* podstrony */
  .nb26-sub {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 0;
  }

  .nb26-sub__badge {
    width: 100%;
  }

  .nb26-sub__dog {
    position: relative;
    top: auto;
    right: auto;
    width: 72%;
    max-width: 360px;
    margin: 4px 0 0 auto;
  }

  /* strona główna */
  .nb26-stage,
  .nb26--przed .nb26-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-top: 16px;
  }

  .nb26-stage > * {
    position: static;
  }

  .nb26 .nb26-deco {
    display: none;
  }

  .nb26-card {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: auto;
    height: auto;
    min-height: 120px;
    margin: 0 16px;
    padding: 40px 36px 22px 16px;
    background-size: 100% 100%;
  }

  .nb26-card > * {
    position: static;
  }

  .nb26-card__title {
    width: 100%;
    max-width: 280px;
  }

  .nb26-card__claim {
    width: auto;
  }

  .nb26-card__soon {
    width: 100%;
  }

  .nb26-card__soon-line {
    font-size: 20px;
    line-height: 26px;
  }

  .nb26-card__soon-date {
    gap: 10px;
    margin-top: 6px !important;
    font-size: 22px;
    line-height: 28px;
  }

  .nb26-card__soon-date img {
    width: 28px;
  }

  .nb26-card__claim strong {
    font-size: 28px;
    line-height: 28px;
  }

  .nb26-card__claim span {
    font-size: 21px;
    line-height: 26px;
  }

  .nb26-card__btn {
    width: 134px;
    height: 44px;
    font-size: 16px;
  }

  .nb26-card__note {
    white-space: normal;
    text-align: center;
    font-size: 11px;
  }

  .nb26-logo,
  .nb26--po .nb26-logo {
    position: absolute;
    top: 6px;
    right: 6px;
    left: auto;
    width: 68px;
  }

  .nb26--po .nb26-logo {
    top: 16px;
    left: 16px;
    right: auto;
    width: 104px;
  }

  .nb26--po .nb26-stage {
    padding-top: 72px;
  }

  .nb26--home .nb26-photo {
    order: 2;
    width: 100%;
    height: auto;
    margin-top: 8px;
  }

  .nb26--przed .nb26-photo { aspect-ratio: 870 / 500; }
  /* biały dół zdjęcia wystaje pod żółty pas: 81 / 859 i 82 / 814 szerokości */
  .nb26--w-trakcie .nb26-photo { aspect-ratio: 859 / 445; margin-bottom: -9.43%; }
  .nb26--po .nb26-photo { aspect-ratio: 814 / 450; margin-bottom: -10.07%; }
}

/* =====================================================================
 * Tło pod banerem — body motywu bywa #f2f4f5 (nakarm-psa.min.css), a w projekcie
 * treść stron jest na białym; szary prześwit zostawał pod żółtym pasem.
 * Stopka (#site-footer) ma własne tło, więc zostaje szara.
 * ===================================================================== */

body:has(.nb26) {
  background: #fff;
}

/* =====================================================================
 * Strona główna: "Przygotuj się / Pomagaj na różne sposoby" (Figma 597:6724)
 * Kontener 1238 px, 3 karty po ~402 px, odstęp 16 px.
 * ===================================================================== */

.hp26-help {
  --hp26-ink: #044142;
  --hp26-cyan: #19d8d2;
  --hp26-cyan-light: #cafcf9;
  color: var(--hp26-ink);
}

.hp26-help *,
.hp26-help *::before,
.hp26-help *::after {
  box-sizing: border-box;
}

.hp26-help__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.hp26-help__card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--hp26-cyan-light);
}

.hp26-help__title {
  position: relative;
  margin: 0;
  padding: 26px 16px 24px;
  min-height: 109px;
  background: var(--hp26-cyan);
  color: var(--hp26-ink);
  text-align: center;
  font-family: 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 23px;
  line-height: 28px;
}

/* "wcięcie" pod nagłówkiem karty */
.hp26-help__title::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 49px;
  height: 9px;
  transform: translateX(-50%);
  background: var(--hp26-cyan);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hp26-help__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 24px 32px;
  text-align: center;
}

.hp26-help__body p {
  margin: 0 0 24px;
  padding: 0;
  font-family: 'GeomanistBook', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--hp26-ink);
}

.hp26-help__btn,
.hp26-help__more {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 48px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.hp26-help__btn {
  margin-top: auto;
  width: 191px;
  max-width: 100%;
  height: 48px;
  background: var(--hp26-ink);
  color: #fff;
  font-family: 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 20px;
}

.hp26-help__btn:hover,
.hp26-help__btn:focus {
  background: #0b5f61;
  color: #fff;
  text-decoration: none;
}

.hp26-help__more {
  width: 100%;
  max-width: 745px;
  min-height: 90px;
  margin: 48px auto 0;
  padding: 16px 32px;
  background: var(--hp26-cyan);
  color: var(--hp26-ink);
  text-align: center;
  font-family: 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 30px;
}

.hp26-help__more:hover,
.hp26-help__more:focus {
  background: #33e3dd;
  color: var(--hp26-ink);
  text-decoration: none;
}

.hp26-help__btn:focus-visible,
.hp26-help__more:focus-visible {
  outline: 2px solid var(--hp26-ink);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .hp26-help__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .hp26-help__more {
    margin-top: 32px;
    min-height: 72px;
    font-size: 18px;
    line-height: 24px;
    padding: 14px 20px;
  }
}

/* =====================================================================
 * Strona główna PRZED startem: film + schroniska (Figma 597:6724)
 * Żółte tło baneru ciągnie się przez sekcję z filmem; zdjęcie psa z piłką
 * wystaje 38 px poniżej linii stage, więc sekcja filmu jest pod nim (z-index).
 * ===================================================================== */

body:has(.hp26-przed) #content {
  padding-top: 0;
  margin-top: 0; /* na mobile motyw dodaje 8 px nad #content — biały pasek między baner a film */
}

/* Tylko strona główna: zdjęcie wystaje 38 px pod pas, bo pod nim jest żółta sekcja z filmem.
   Na stronie zwierzaka (też wariant "przed") zostaje wersja przycięta do 1366 × 488. */
body.home .nb26--przed {
  overflow-x: clip;
}

body.home .nb26--przed .nb26-stage {
  aspect-ratio: 1366 / 450;
  overflow: visible;
  clip-path: inset(0 -100vw -100px -100vw); /* ucina tylko górne 12 px zdjęcia pod paskiem menu */
}

.hp26-przed {
  --hp26-ink: #044142;
  --hp26-yellow: #ffdd73;
  color: var(--hp26-ink);
}

.hp26-przed *,
.hp26-przed *::before,
.hp26-przed *::after {
  box-sizing: border-box;
}

.hp26-przed__wrap {
  width: 100%;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 16px;
}

.hp26-przed__video {
  position: relative; /* z-index auto: pod .nb26 (z-index 2), więc zdjęcie psa nie jest zasłonięte */
  background: var(--hp26-yellow);
  display: flow-root; /* margines h2 nie zapada się poza sekcję (inaczej odsuwa żółte tło od baneru) */
  padding-bottom: 39px;
}

/* "wcięcie" na dole żółtej sekcji */
.hp26-przed__video::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 70px;
  height: 12px;
  transform: translateX(-50%);
  background: var(--hp26-yellow);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.hp26-przed__video h2.triangle-before {
  position: relative;
  z-index: 3; /* nad zdjęciem psa, które zachodzi na prawy koniec tytułu */
  margin: 0 0 24px;
  color: var(--hp26-ink);
}

.hp26-przed__player {
  position: relative;
  max-width: 608px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.hp26-przed__player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hp26-przed__shelters {
  padding: 72px 0 24px;
}

.hp26-przed__lead {
  margin: 0 0 40px;
  text-align: center;
  font-family: 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 22px;
  line-height: 28px;
  color: var(--hp26-ink);
}

.hp26-przed__shelters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hp26-shelter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hp26-shelter__name {
  margin: 0 0 20px;
  text-align: center;
  font-family: 'GeomanistBold', 'GeomanistMedium', Arial, Helvetica, sans-serif;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  color: var(--hp26-ink);
}

.hp26-shelter__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #787878;
}

.hp26-shelter__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp26-shelter__btn {
  margin-top: 24px;
}

@media (max-width: 767px) {
  body.home .nb26--przed .nb26-stage {
    clip-path: none;
  }

  .hp26-przed__video {
    padding-bottom: 32px;
  }

  .hp26-przed__video h2.triangle-before {
    margin-top: 8px;
  }

  .hp26-przed__shelters {
    padding-top: 56px;
  }

  .hp26-przed__lead {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 28px;
  }

  .hp26-przed__lead br {
    display: none;
  }

  .hp26-przed__shelters-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* =====================================================================
 * Stopka: kontener (środkowanie) na każdej podstronie
 * Reguły .site-wide/.site-width/.site-content były tylko w CSS-ach bloków ACF
 * (home-campaign-until, home-feed-banner), więc stopka "uciekała" w lewo na stronach
 * bez tych bloków. Tu: tylko osie poziome, żeby nie nadpisać margin-top/bottom z
 * "#site-footer .footer-content".
 * ===================================================================== */
#site-footer .site-wide,
#site-footer .site-width,
#site-footer .site-content {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#site-footer .site-width {
  max-width: 1366px;
}

#site-footer .site-content {
  max-width: 1238px;
}

/* Zdjecie psa jest absolutne i wystaje pod zolty pas (bialym tlem) — treść strony
   musi byc nad nim, inaczej zdjecie przycina naglowek sekcji pod banerem. */
body:not(:has(.nb26--przed)) .the-site-content {
  position: relative;
  z-index: 3; /* wariant "przed" celowo zostaje pod zdjeciem (szew miedzy zdjeciem a zoltym pasem filmu) */
}
