/*
Theme Name: Parkuj Bez Barier – Blocksy Child
Theme URI: https://parkujbezbarier.pl
Author: Maciej + ChatGPT
Description: Lekki motyw potomny dla Blocksy. Zawiera kolory dostępności, poprawki WCAG i ulepszoną typografię.
Template: blocksy
Version: 1.0.3
License: GNU General Public License v2 or later
Text Domain: pbb
*/

/* ================== IMPORT FONTÓW ================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;700&display=swap');

/* ================== ZMIENNE KOLORÓW ================== */
:root{
  --pbb-primary:#0A6CFF;
  --pbb-secondary:#00A389;
  --pbb-dark:#0E1A2B;
  --pbb-light:#F5F7FA;
  --pbb-accent:#243BFF;
  --pbb-danger:#D92D20;

  /* Paleta „niebieska” do sekcji i komponentów */
  --pbb-blue:#1976d2;
  --pbb-blue-600:#145ea8;
  --pbb-blue-bg:#e9f3ff;
}

/* ================== BAZA / TYPO / LINKI ================== */
body{
  background:var(--pbb-light);
  font-family:"Inter","Roboto","Open Sans",Arial,sans-serif;
  font-size:19px;
  line-height:1.9;
  color:#111;
  font-weight:400;
}

a{ color:var(--pbb-primary); text-decoration:none; }
a:hover{ color:var(--pbb-accent); text-decoration:underline; }

/* Przyciski WordPress */
.button, .wp-block-button__link{ background:var(--pbb-primary); color:#fff; }
.wp-block-button__link:hover{ background:var(--pbb-accent); }

/* Logo */
.site-logo img{ max-height:48px; }

/* Skip link (WCAG) */
.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{
  position:static; width:auto; height:auto; padding:.5rem 1rem;
  background:#000; color:#fff; z-index:9999;
}

/* ================== KARTY / BADGE / SEKCJE ================== */
.pbb-card{
  background:#fff; border-radius:14px;
  border:1px solid rgba(25,118,210,.12);
  box-shadow:0 10px 24px rgba(0,0,0,.05);
  padding:16px; margin:10px 0;
  transition:transform .18s ease, box-shadow .18s ease;
}
.pbb-card:hover{ transform:translateY(-3px); box-shadow:0 16px 36px rgba(25,118,210,.18); }

.pbb-badges{ display:flex; gap:8px; flex-wrap:wrap; }

/* Jednolite, kontrastowe badge/chipy */
.pbb-distance-chip, .pbb-chip, .pbb-badge{
  background:var(--pbb-blue) !important; color:#fff !important;
  border:0; border-radius:999px; padding:4px 10px; font-size:12px;
}

.pbb-badge--free{ background:#16a34a; color:#fff; }
.pbb-badge--paid{ background:#dc2626; color:#fff; }

.has-pbb-blue-text-color{ color:var(--pbb-blue) !important; }
.has-pbb-blue-bg-background-color{
  background:linear-gradient(180deg, var(--pbb-blue-bg) 0%, #ffffff 100%) !important;
}
.pbb-blue-section{
  box-shadow:0 10px 28px rgba(25,118,210,.12);
  border:1px solid rgba(25,118,210,.15);
}

/* Ikony */
.pbb-icon-wrap{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; color:var(--pbb-blue);
  background:#fff; border-radius:12px; box-shadow:0 6px 18px rgba(25,118,210,.15);
}
.pbb-icon{ display:block; }

/* ================== MENU / NAWIGACJA ================== */
.ct-header .menu > li.current-menu-item > a,
.ct-header .menu > li.current_page_item > a{
  color:black;
  background:rgba(0,0,0,.15);
  border-radius:6px;
}
.ct-header .menu > li > a:hover{
  color:var(--theme-palette-color-4, #192a3d) !important;
}
.ct-header .menu > li > a:focus-visible{
  outline:3px solid #FFD700; outline-offset:3px; border-radius:6px;
}
.ct-panel .menu > li.current-menu-item > a,
.ct-panel .menu > li.current_page_item > a{
  color:#fff !important; background:rgba(255,255,255,.1); border-radius:6px;
}
.ct-panel .menu > li > a:hover{ color:#fff !important; }
.ct-panel .menu > li > a:focus-visible{
  outline:3px solid #FFD700; outline-offset:3px; border-radius:6px;
}

/* ================== WYSZUKIWARKA ================== */
#search-modal .ct-search-form button,
#search-modal .ct-search-form [type="submit"]{
  color:#fff !important;
}

/* ================== GUTENBERG PRESETY ================== */
.has-palette-color-5-color,
.has-palette-color-6-color,
.has-palette-color-7-color{
  color:var(--theme-palette-color-4, #192a3d) !important;
}
*{ --theme-button-text-initial-color:#fff; }

/* ================== SIATKA (RESPONSYWNOŚĆ) ================== */
@media (max-width:781px){
  .wp-block-query .wp-block-post-template{ grid-template-columns:1fr !important; }
}

/* ================== TRYB WYSOKIEGO KONTRASTU ================== */
body.high-contrast{
  background:#000 !important; color:#fff !important; line-height:1.6;
}
body.high-contrast a{ color:#FFD700 !important; text-decoration:none !important; }
body.high-contrast a:hover,
body.high-contrast a:focus{ color:#FFA500 !important; text-decoration:underline !important; }
body.high-contrast header,
body.high-contrast .ct-header,
body.high-contrast .ct-main-navigation,
body.high-contrast footer{
  background:#000 !important; color:#fff !important; box-shadow:none !important;
}
body.high-contrast .ct-menu-link{ color:#FFD700 !important; font-weight:700; }
body.high-contrast .ct-menu-link:hover,
body.high-contrast .ct-menu-link:focus{ color:#FFA500 !important; text-decoration:underline !important; }
body.high-contrast .ct-button,
body.high-contrast .wp-block-button__link,
body.high-contrast button,
body.high-contrast input[type="submit"],
body.high-contrast .button{
  background:#fff !important; color:#000 !important; border:3px solid #fff !important;
}
body.high-contrast input[type="text"],
body.high-contrast input[type="search"],
body.high-contrast input[type="number"],
body.high-contrast select,
body.high-contrast textarea{
  background:#111 !important; color:#fff !important;
  border:2px solid #fff !important; box-shadow:none !important;
}
body.high-contrast ::placeholder{ color:#bbb !important; }
body.high-contrast .pbb-card,
body.high-contrast .site,
body.high-contrast .ct-container,
body.high-contrast .wp-block-group,
body.high-contrast .wp-block-cover{
  background:#000 !important; color:#fff !important; box-shadow:none !important;
}
body.high-contrast :focus,
body.high-contrast :focus-visible{
  outline:3px solid #FFD700 !important; outline-offset:2px !important;
}
body.high-contrast .notice,
body.high-contrast .info,
body.high-contrast .wp-block-quote{
  border-left:4px solid #FFD700 !important; background:#050505 !important;
}
body.high-contrast .leaflet-bar a,
body.high-contrast .leaflet-bar a:hover{
  background:#000 !important; color:#fff !important; border:2px solid #fff !important;
}
body.high-contrast .leaflet-control-attribution{ background:#000 !important; color:#fff !important; }
body.high-contrast .marker-cluster div{
  background:#000 !important; color:#fff !important; border:2px solid #fff !important;
}
body.high-contrast .has-background,
body.high-contrast .hero,
body.high-contrast .announcement-bar{
  background:#000 !important; color:#fff !important;
}
@media (prefers-reduced-motion: reduce){ *{ transition:none !important; } }

/* ================== TYPOGRAFIA – POPRAWA CZYTELNOŚCI ================== */

/* Akapity i tekst główny */
.single-post .entry-content p {
  margin-bottom: 1.4em;
  font-size: 20px;
  line-height: 1.9;
  color: #111;
}

/* Nagłówki */
.single-post h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
  color: #0A0A0A;
  font-family: "Poppins", "Inter", sans-serif;
}
.single-post h2 {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.single-post h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

/* Linki */
.single-post a {
  color: var(--pbb-primary);
  text-decoration: underline;
  font-weight: 500;
}
.single-post a:hover {
  color: var(--pbb-accent);
  text-decoration: none;
}

/* Cytaty */
blockquote, .wp-block-quote {
  border-left: 4px solid var(--pbb-blue);
  background: #f3f7ff;
  padding: 1.2em 1.8em;
  color: #222;
  font-style: italic;
  font-size: 19px;
}

/* Listy */
ul, ol {
  padding-left: 1.8em;
  margin-bottom: 1.5em;
}
ul li, ol li {
  margin-bottom: .5em;
  line-height: 1.8;
}

/* Obrazki */
.single-post img {
  border-radius: 10px;
  margin: 1.2em auto;
  display: block;
  max-width: 100%;
  height: auto;
}

/* Cytaty w trybie high contrast */
body.high-contrast blockquote, 
body.high-contrast .wp-block-quote {
  background: #050505 !important;
  color: #fff !important;
  border-left: 4px solid #FFD700 !important;
}

/* Mobile */
@media (max-width: 768p
