/*
Theme Name: Preparatum (child of Kadence)
Theme URI: https://preparatum.pl
Description: Child theme Kadence dla serwisu preparatum.pl — standard wizualny marki (kolory, fonty, logo nav, design refresh v2).
Author: Slawomir Sniegula
Template: kadence
Version: 1.9.4
Text Domain: preparatum
*/

/* ════════════════════════════════════════════════════════════
   PREPARATUM BRAND TOKENS
   ════════════════════════════════════════════════════════════ */
:root {
  --prep-primary: #1B4D7E;
  --prep-secondary: #8B6914;
  --prep-accent: #D4882A;
  --prep-cream: #FEFCF9;
  --prep-paper: #F5F2ED;
  --prep-bg: #F5F2ED;
  --prep-text: #2C2C2C;
  --prep-text-light: #555;
  --prep-border: #e0d8c8;

  /* Spacing tokens */
  --prep-space-xs: 0.5rem;
  --prep-space-sm: 1rem;
  --prep-space-md: 1.5rem;
  --prep-space-lg: 2.5rem;
  --prep-space-xl: 4rem;
  --prep-space-2xl: 6rem;
  --prep-space-3xl: 8rem;

  --prep-radius-sm: 6px;
  --prep-radius-md: 12px;
  --prep-radius-lg: 20px;

  --prep-shadow-sm: 0 2px 8px rgba(27,77,126,0.06);
  --prep-shadow-md: 0 8px 24px rgba(27,77,126,0.12);
  --prep-shadow-lg: 0 12px 32px rgba(27,77,126,0.16);

  --prep-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ════════════════════════════════════════════════════════════
   GLOBALNY HOVER UNDERLINE
   ════════════════════════════════════════════════════════════ */
a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   NAV — LOGO STANDARD preparatum (zachowane z v1)
   ════════════════════════════════════════════════════════════ */

.site-branding {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
}

.site-branding .site-title a::before,
.site-branding-wrap .site-title a::before {
  content: '';
  display: inline-block;
  width: 42px;
  height: 42px;
  vertical-align: middle;
  margin-right: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><path d='M 10,12 Q 10,5 17,5 L 83,5 Q 90,5 90,12 L 90,52 Q 90,72 50,95 Q 10,72 10,52 Z' fill='%23FEFCF9' stroke='%23D4882A' stroke-width='4' stroke-linejoin='round'/><text x='50' y='68' text-anchor='middle' font-family='Playfair Display, Georgia, serif' font-size='58' font-weight='700' fill='%231B4D7E'>P</text></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

.site-branding .site-title a {
  font-family: 'Playfair Display', serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  color: var(--prep-primary) !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-decoration: none;
  padding-left: 12px;
  border-left: 1px solid rgba(212, 136, 42, 0.38);
  position: relative;
}

.site-branding .site-title a:hover { text-decoration: underline; }
.site-branding .site-description { display: none; }

/* Kadence brand-link wariant */
.site-branding a.brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-branding a.brand::before {
  content: '';
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><path d='M 10,12 Q 10,5 17,5 L 83,5 Q 90,5 90,12 L 90,52 Q 90,72 50,95 Q 10,72 10,52 Z' fill='%23FEFCF9' stroke='%23D4882A' stroke-width='4' stroke-linejoin='round'/><text x='50' y='68' text-anchor='middle' font-family='Playfair Display, Georgia, serif' font-size='58' font-weight='700' fill='%231B4D7E'>P</text></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.site-branding .site-title-wrap {
  padding-left: 12px;
  border-left: 1px solid rgba(212, 136, 42, 0.38);
  line-height: 1;
}
.site-branding .site-title,
.site-branding .site-title a {
  font-family: 'Playfair Display', serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  color: #1B4D7E !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  margin: 0;
  text-decoration: none !important;
}
.site-branding a.brand:hover .site-title { text-decoration: underline; }

.mobile-site-branding a.brand::before {
  content: '';
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><path d='M 10,12 Q 10,5 17,5 L 83,5 Q 90,5 90,12 L 90,52 Q 90,72 50,95 Q 10,72 10,52 Z' fill='%23FEFCF9' stroke='%23D4882A' stroke-width='4' stroke-linejoin='round'/><text x='50' y='68' text-anchor='middle' font-family='Playfair Display, Georgia, serif' font-size='58' font-weight='700' fill='%231B4D7E'>P</text></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ════════════════════════════════════════════════════════════
   TYPOGRAFIA — body (zachowane)
   ════════════════════════════════════════════════════════════ */
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--prep-text);
  background: var(--prep-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--prep-primary);
}

/* CTA buttons — bursztynowe (Kadence-targets) */
.wp-block-button__link,
.kadence-button,
button.btn-primary,
.btn-primary {
  background-color: var(--prep-accent) !important;
  color: white !important;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
}

.wp-block-button__link:hover,
.kadence-button:hover,
button.btn-primary:hover,
.btn-primary:hover {
  background-color: #B8721A !important;
  text-decoration: none !important;
}

/* ════════════════════════════════════════════════════════════
   HUB CARDS legacy (kompatybilność z [preparatum_hub_grid])
   ════════════════════════════════════════════════════════════ */
.prep-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.prep-hub-card {
  background: white;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(27,77,126,0.08);
  border-left: 4px solid var(--prep-accent);
  text-decoration: none;
  color: var(--prep-text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prep-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27,77,126,0.12);
  text-decoration: none;
}
.prep-hub-card__code {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--prep-accent);
  text-transform: uppercase;
}
.prep-hub-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--prep-primary);
  margin: 0;
}
.prep-hub-card__desc {
  font-size: 14px;
  color: var(--prep-text-light);
  line-height: 1.55;
}
.prep-hub-card__items {
  font-size: 13px;
  color: var(--prep-text);
  font-style: italic;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--prep-border);
}

/* ════════════════════════════════════════════════════════════
   STAGING BANNER
   ════════════════════════════════════════════════════════════ */
body::before {
  content: 'STAGING — preparatum.pl (NOINDEX)';
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #B8721A;
  color: white;
  text-align: center;
  font-family: 'Source Serif 4', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 0;
  z-index: 99999;
  text-transform: uppercase;
}
body { padding-top: 22px; }

/* ════════════════════════════════════════════════════════════
   DESIGN REFRESH v2 — komponenty .prep-*
   ════════════════════════════════════════════════════════════ */

/* --- Containers --- */
.prep-container       { max-width: 1180px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.prep-container--wide { max-width: 1280px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.prep-container--narrow { max-width: 720px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* --- Section rhythm --- */
.prep-section { padding-block: var(--prep-space-xl); }
@media (min-width: 1024px) { .prep-section { padding-block: var(--prep-space-2xl); } }
.prep-section--paper { background: var(--prep-paper); }
.prep-section--cream { background: var(--prep-cream); }
.prep-section--primary { background: var(--prep-primary); color: var(--prep-cream); }
.prep-section--dark { background: var(--prep-text); color: rgba(255,255,255,0.9); }
.prep-section--primary h1, .prep-section--primary h2, .prep-section--primary h3 { color: #fff; }

/* --- Typography overrides --- */
.prep-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--prep-secondary);
  margin-bottom: var(--prep-space-sm);
}
.prep-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 2px;
  background: var(--prep-accent);
}

.prep-h1, .prep-h1-hero {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--prep-primary);
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem 0;
}
.prep-h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); line-height: 1.15; }
.prep-h1-hero { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.01em; }

.prep-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.2; color: var(--prep-primary);
  letter-spacing: -0.005em; margin: 0 0 1.25rem 0;
}

.prep-h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  line-height: 1.3; color: var(--prep-primary);
  margin: 0 0 1rem 0;
}

.prep-lead {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.55; color: var(--prep-text);
  max-width: 540px; margin: 0 0 1.5rem 0;
}

.prep-body { font-size: 18px; line-height: 1.7; color: var(--prep-text); }
@media (max-width: 767px) { .prep-body { font-size: 17px; line-height: 1.65; } }

/* --- Buttons --- */
.prep-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px; font-weight: 600; letter-spacing: 0.03em;
  border-radius: var(--prep-radius-sm);
  text-decoration: none;
  transition: all 200ms var(--prep-ease);
  border: 2px solid transparent;
  cursor: pointer;
}
.prep-btn--primary { background: var(--prep-accent); color: #fff; }
.prep-btn--primary:hover {
  background: #B8721A;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212,136,42,0.3);
  color: #fff;
}
.prep-btn--secondary {
  background: transparent;
  color: var(--prep-primary);
  border-color: var(--prep-primary);
}
.prep-btn--secondary:hover {
  background: var(--prep-primary);
  color: #fff;
  text-decoration: none;
}
.prep-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.prep-btn--ghost-light:hover {
  background: #fff; color: var(--prep-primary);
  border-color: #fff; text-decoration: none;
}

/* --- "Już wkrótce" diagonal ribbon (na kartach książek/produktów) --- */
.prep-card { position: relative; overflow: hidden; }
.prep-ribbon {
  position: absolute;
  top: 18px;
  right: -52px;
  width: 200px;
  transform: rotate(35deg);
  background: var(--prep-accent);
  color: #fff;
  text-align: center;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 5;
  pointer-events: none;
}

/* --- BHP-compact card variant (5 ścieżek w 3-col grid) --- */
.prep-card--bhp {
  padding: 1.5rem 1.25rem;
}
.prep-card--bhp .prep-card__eyebrow {
  display: inline-block;
  background: var(--prep-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: .5rem;
}
.prep-card--bhp .prep-card__title { font-size: 1.125rem; line-height: 1.3; margin: .25rem 0 .5rem; }
.prep-card--bhp .prep-card__desc { font-size: .9375rem; margin-bottom: .5rem; }
.prep-card--bhp .prep-card__meta { font-size: .8125rem; color: var(--prep-text-light); margin: .5rem 0; }

/* --- Pending CTA (placeholder when link not yet wired) --- */
.prep-btn--pending,
.prep-card__cta--pending {
  background: #E8E2D6 !important;
  color: #6B6258 !important;
  border-color: #D7CFC0 !important;
  cursor: not-allowed;
  position: relative;
  text-decoration: none !important;
}
.prep-btn--pending:hover,
.prep-card__cta--pending:hover {
  background: #E8E2D6 !important;
  color: #6B6258 !important;
  transform: none;
}
.prep-btn--pending small,
.prep-card__cta--pending small {
  display: inline-block;
  margin-left: .35rem;
  font-size: .75em;
  letter-spacing: .02em;
}

/* --- Hero (HOME) --- */
.prep-hero {
  background: var(--prep-cream);
  padding-block: var(--prep-space-2xl) var(--prep-space-2xl);
  min-height: 600px;
  display: flex; align-items: center;
}
.prep-hero__grid {
  display: grid; gap: var(--prep-space-xl);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .prep-hero__grid { grid-template-columns: 1.4fr 1fr; gap: var(--prep-space-2xl); }
}
.prep-hero__portrait {
  aspect-ratio: 3/4;
  border-radius: var(--prep-radius-md);
  overflow: hidden;
  box-shadow: var(--prep-shadow-md);
  background: var(--prep-paper);
  display: flex; align-items: center; justify-content: center;
  color: rgba(27,77,126,0.4);
  font-family: 'Playfair Display', serif; font-size: 18px;
  text-align: center; padding: 1rem;
}
.prep-hero__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prep-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: var(--prep-space-md); }
.prep-hero__trust {
  margin-top: var(--prep-space-md);
  font-size: 14px;
  color: var(--prep-secondary);
  letter-spacing: 0.04em;
}

/* --- Hero hub --- */
.prep-hero-hub {
  background: var(--prep-paper);
  padding-block: var(--prep-space-xl);
  min-height: 320px;
  display: flex; align-items: center;
}
.prep-hero-hub__text { max-width: 720px; }

/* --- Hero sales --- */
.prep-hero-sales {
  background: var(--prep-cream);
  padding-block: var(--prep-space-2xl);
}
.prep-hero-sales__grid {
  display: grid; gap: var(--prep-space-xl);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .prep-hero-sales__grid { grid-template-columns: 1fr 1.5fr; }
}
.prep-hero-sales__cover {
  aspect-ratio: 2/3;
  max-width: 360px;
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.1),
    -6px 12px 30px rgba(27,77,126,0.18);
  overflow: hidden;
  background: var(--prep-paper);
  display: flex; align-items: center; justify-content: center;
  color: rgba(27,77,126,0.4);
}
.prep-hero-sales__usp {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  font-size: 16px; color: var(--prep-secondary);
  margin: var(--prep-space-md) 0;
}
.prep-hero-sales__usp span::before {
  content: '✓'; margin-right: 0.4rem; color: var(--prep-accent); font-weight: 700;
}

/* --- Card --- */
.prep-card {
  background: #fff;
  border: 1px solid rgba(27,77,126,0.08);
  border-radius: var(--prep-radius-md);
  padding: 2rem;
  box-shadow: var(--prep-shadow-sm);
  transition: all 200ms var(--prep-ease);
  display: flex; flex-direction: column; gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.prep-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--prep-shadow-md);
  border-color: rgba(27,77,126,0.15);
  text-decoration: none;
}
.prep-card__icon {
  width: 72px; height: 72px;
  background: var(--prep-cream);
  border: 1px solid rgba(27,77,126,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--prep-primary);
  font-size: 32px;
}
.prep-card__icon svg { width: 36px; height: 36px; }
.prep-card__eyebrow {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--prep-secondary);
}
.prep-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 700;
  color: var(--prep-primary);
  margin: 0;
}
.prep-card__subtitle {
  font-size: 14px;
  color: var(--prep-text-light);
  font-style: italic;
  margin: -0.5rem 0 0 0;
}
.prep-card__desc {
  font-size: 16px; line-height: 1.55;
  color: var(--prep-text); margin: 0;
}
.prep-card__meta {
  font-size: 14px; color: var(--prep-secondary);
  margin: 0;
}
.prep-card__cta {
  margin-top: auto;
  font-size: 15px; font-weight: 600;
  color: var(--prep-accent);
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.prep-card:hover .prep-card__cta { transform: translateX(2px); }
.prep-card__arrow {
  margin-top: auto;
  font-size: 14px; font-weight: 600;
  color: var(--prep-accent);
  opacity: 0.6;
  transition: all 200ms var(--prep-ease);
}
.prep-card:hover .prep-card__arrow { opacity: 1; transform: translateX(4px); }

/* Variants */
.prep-card--book .prep-card__cover,
.prep-card--course .prep-card__media {
  aspect-ratio: 2/3;
  background: var(--prep-paper);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--prep-shadow-sm);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: rgba(27,77,126,0.35);
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  text-align: center;
  padding: 0.75rem;
}
.prep-card--course .prep-card__media { aspect-ratio: 16/9; }
.prep-card--feature {
  border: none; box-shadow: none; background: transparent;
  padding: 1rem;
}
.prep-card--feature:hover { transform: none; box-shadow: none; }

/* --- Grid --- */
.prep-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .prep-grid { gap: 2rem; } }
.prep-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .prep-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.prep-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .prep-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.prep-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .prep-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .prep-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Section title block --- */
.prep-section-title { margin-bottom: var(--prep-space-lg); max-width: 760px; }
.prep-section-title--center { text-align: center; margin-left: auto; margin-right: auto; }
.prep-section-title--center .prep-eyebrow { justify-content: center; }

/* --- Checklist --- */
.prep-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.prep-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 17px; line-height: 1.6;
  color: var(--prep-text);
}
.prep-checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  background: var(--prep-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* --- Credentials --- */
.prep-credentials {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.75rem;
}
@media (min-width: 768px) {
  .prep-credentials { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
}
.prep-credentials li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 16px; line-height: 1.5;
  color: var(--prep-text);
}
.prep-credentials li::before {
  content: '◆';
  position: absolute; left: 0; top: 0;
  color: var(--prep-accent);
  font-size: 14px;
}

/* --- Trust strip --- */
.prep-trust-strip {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: center; align-items: center;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--prep-secondary);
  padding: 1rem 0;
}
.prep-trust-strip__item { display: inline-flex; align-items: center; }
.prep-trust-strip__item + .prep-trust-strip__item::before {
  content: '·'; margin-right: 1rem; color: var(--prep-accent);
}

/* --- Testimonial --- */
.prep-testimonial {
  position: relative;
  background: var(--prep-paper);
  border-radius: var(--prep-radius-md);
  padding: 3rem 2rem 2rem;
  margin: 0;
  overflow: visible;
}
.prep-testimonial::before {
  content: '\201E';
  position: absolute; top: 0.5rem; left: 1.25rem;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--prep-accent);
  line-height: 1;
  z-index: 1;
}
.prep-testimonial__quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 19px; line-height: 1.6;
  color: var(--prep-text);
  margin: 0 0 1.5rem 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  quotes: none;
}
.prep-testimonial__quote::before,
.prep-testimonial__quote::after,
.prep-testimonial__quote p::before,
.prep-testimonial__quote p::after {
  content: none !important;
}
.prep-testimonial__quote p {
  margin: 0 0 0.75rem 0;
}
.prep-testimonial__quote p:last-child { margin-bottom: 0; }
.prep-testimonial__author {
  display: flex; align-items: center; gap: 0.875rem;
}
.prep-testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--prep-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 16px;
  flex-shrink: 0;
}
.prep-testimonial__name { font-weight: 600; font-size: 16px; color: var(--prep-text); display: block; }
.prep-testimonial__role { font-size: 14px; color: var(--prep-secondary); }

/* --- Accordion --- */
.prep-accordion { max-width: 720px; margin: 0 auto; }
.prep-accordion__item {
  border-bottom: 1px solid rgba(27,77,126,0.12);
}
.prep-accordion__trigger {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 600;
  color: var(--prep-text);
  transition: color 200ms var(--prep-ease);
}
.prep-accordion__trigger:hover { color: var(--prep-primary); }
.prep-accordion__icon {
  width: 24px; height: 24px;
  color: var(--prep-accent);
  font-size: 24px; font-weight: 400;
  transition: transform 250ms var(--prep-ease);
  flex-shrink: 0;
  line-height: 1;
}
.prep-accordion__item[aria-expanded="true"] .prep-accordion__icon { transform: rotate(45deg); }
.prep-accordion__content {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms var(--prep-ease);
}
.prep-accordion__item[aria-expanded="true"] .prep-accordion__content { max-height: 800px; }
.prep-accordion__inner {
  padding: 0 0 1.5rem;
  font-size: 17px; line-height: 1.65;
  color: var(--prep-text);
}

/* --- Newsletter --- */
.prep-newsletter {
  max-width: 960px; margin: 0 auto; text-align: center;
}
.prep-newsletter--card {
  background: var(--prep-primary);
  color: #fff;
  padding: 4rem 3.5rem;
  border-radius: var(--prep-radius-lg);
}
.prep-newsletter--card h2,
.prep-newsletter--card h3 { font-size: 28px; }
.prep-newsletter--card .prep-newsletter__lead {
  font-size: 18px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .prep-newsletter--card { padding: 2.5rem 1.5rem; }
  .prep-newsletter--card h2, .prep-newsletter--card h3 { font-size: 22px; }
}
.prep-newsletter--card h2,
.prep-newsletter--card h3 { color: #fff; }
.prep-newsletter__form {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: var(--prep-space-md);
}
@media (min-width: 600px) {
  .prep-newsletter__form { flex-direction: row; }
}
.prep-newsletter__input {
  flex-grow: 1;
  padding: 1rem 1.25rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 17px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: var(--prep-radius-sm);
  transition: all 200ms var(--prep-ease);
}
.prep-newsletter--light .prep-newsletter__input {
  border: 1px solid rgba(27,77,126,0.2);
  background: #fff;
  color: var(--prep-text);
}
.prep-newsletter__input::placeholder { color: rgba(255,255,255,0.6); }
.prep-newsletter--light .prep-newsletter__input::placeholder { color: rgba(44,44,44,0.5); }
.prep-newsletter__input:focus {
  outline: none;
  border-color: var(--prep-accent);
  box-shadow: 0 0 0 3px rgba(212,136,42,0.25);
  background: rgba(255,255,255,0.12);
}
.prep-newsletter__microcopy {
  font-size: 14px; color: rgba(255,255,255,0.7);
  margin-top: 0.75rem;
}
.prep-newsletter--light .prep-newsletter__microcopy { color: var(--prep-secondary); }
.prep-newsletter__lead {
  font-size: 17px;
  line-height: 1.6;
  margin: 1rem auto 0;
  max-width: 520px;
  opacity: 0.92;
}

/* --- CTA Band --- */
.prep-cta-band {
  background: var(--prep-primary);
  color: #fff;
  text-align: center;
  padding: var(--prep-space-xl) var(--prep-space-md);
  border-radius: var(--prep-radius-md);
}
.prep-cta-band h2, .prep-cta-band h3 { color: #fff; margin-top: 0; }
.prep-cta-band .prep-btn--primary { margin-top: var(--prep-space-md); }

/* --- For/Not For 2-col split --- */
.prep-fornot {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .prep-fornot { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.prep-fornot__col {
  padding: 2rem;
  border-radius: var(--prep-radius-md);
}
.prep-fornot__for { background: var(--prep-paper); }
.prep-fornot__not { background: rgba(245,242,237,0.4); border: 1px solid rgba(0,0,0,0.06); }
.prep-fornot__col h3 { margin-top: 0; }
.prep-fornot__col ul { list-style: none; padding: 0; margin: 0; }
.prep-fornot__col li {
  position: relative; padding-left: 1.75rem;
  margin-bottom: 0.5rem; font-size: 16px; line-height: 1.55;
}
.prep-fornot__for li::before {
  content: '✓'; position: absolute; left: 0; color: var(--prep-accent); font-weight: 700;
}
.prep-fornot__not li::before {
  content: '✗'; position: absolute; left: 0; color: #999; font-weight: 700;
}

/* --- Breadcrumbs --- */
.prep-breadcrumbs {
  max-width: 1180px; margin: 0 auto;
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  font-size: 14px;
  color: var(--prep-text-light);
}
.prep-breadcrumbs a {
  color: var(--prep-primary);
  text-decoration: none;
}
.prep-breadcrumbs a:hover { text-decoration: underline; }
.prep-breadcrumbs__sep { margin: 0 0.5rem; color: var(--prep-border); }
.prep-breadcrumbs__current { color: var(--prep-text); }

/* --- Sticky nav (Kadence header) --- */
@media (min-width: 768px) {
  body:not(.elementor-editor-active) .site-header {
    position: sticky !important;
    top: 22px;
    z-index: 999;
    background: rgba(254,252,249,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 200ms var(--prep-ease), background 200ms var(--prep-ease);
  }
  body.is-scrolled .site-header {
    box-shadow: 0 2px 12px rgba(27,77,126,0.08);
    background: rgba(254,252,249,0.98);
  }
}

/* --- Footer --- */
.prep-footer {
  background: var(--prep-text);
  color: rgba(255,255,255,0.85);
  padding: var(--prep-space-xl) 0 var(--prep-space-md);
  margin-top: var(--prep-space-2xl);
}
.prep-footer__grid {
  display: grid; gap: var(--prep-space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .prep-footer__grid { grid-template-columns: 1.5fr 1fr 1.5fr; gap: var(--prep-space-2xl); }
}
.prep-footer__heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--prep-accent);
  margin: 0 0 1rem 0;
}
.prep-footer p { color: rgba(255,255,255,0.85); margin: 0 0 0.75rem; line-height: 1.6; }
.prep-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 150ms; }
.prep-footer a:hover { color: #fff; text-decoration: underline; }
.prep-footer__nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.prep-footer__bottom {
  margin-top: var(--prep-space-lg);
  padding-top: var(--prep-space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.prep-footer__bottom a { color: rgba(255,255,255,0.6); }

/* --- Exit-intent modal --- */
.prep-exit-modal {
  position: fixed; inset: 0;
  background: rgba(27,77,126,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100000;
  padding: 1.5rem;
}
.prep-exit-modal.is-open { display: flex; }
.prep-exit-modal__box {
  background: var(--prep-cream);
  border-radius: var(--prep-radius-md);
  padding: 2.5rem 2rem;
  max-width: 480px; width: 100%;
  position: relative;
  box-shadow: var(--prep-shadow-lg);
}
.prep-exit-modal__close {
  position: absolute; top: 0.5rem; right: 0.75rem;
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1;
  color: var(--prep-text-light);
}
.prep-exit-modal__close:hover { color: var(--prep-primary); }
.prep-exit-modal__box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; margin: 0 0 0.5rem;
  color: var(--prep-primary);
}
.prep-exit-modal__box p {
  font-size: 16px; line-height: 1.55;
  color: var(--prep-text);
  margin: 0 0 1.25rem;
}
.prep-exit-modal__form {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.prep-exit-modal__form input {
  padding: 0.875rem 1rem;
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  border: 1px solid rgba(27,77,126,0.2);
  border-radius: var(--prep-radius-sm);
  background: #fff;
}

/* --- Microinteractions --- */
@media (prefers-reduced-motion: no-preference) {
  .prep-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--prep-ease), transform 600ms var(--prep-ease);
  }
  .prep-reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* --- Focus states (a11y) --- */
.prep-btn:focus-visible,
.prep-card:focus-visible,
.prep-accordion__trigger:focus-visible,
.prep-newsletter__input:focus-visible {
  outline: 3px solid var(--prep-accent);
  outline-offset: 2px;
}

/* --- Smooth scroll --- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prep-reveal { opacity: 1; transform: none; }
}

/* --- B2B form wrapper --- */
.prep-b2b-form-wrap {
  background: var(--prep-cream);
  border-radius: var(--prep-radius-md);
  padding: var(--prep-space-lg);
  border: 1px solid rgba(27,77,126,0.08);
}
.prep-b2b-form-wrap .wpcf7 { margin: 0; }
.prep-b2b-form-wrap input[type="text"],
.prep-b2b-form-wrap input[type="email"],
.prep-b2b-form-wrap input[type="tel"],
.prep-b2b-form-wrap select,
.prep-b2b-form-wrap textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  border: 1px solid rgba(27,77,126,0.2);
  border-radius: var(--prep-radius-sm);
  background: #fff;
}
.prep-b2b-form-wrap label { font-weight: 600; font-size: 14px; }

/* ============================================ */
/* WAVE 4 PATCH (2026-05-13) — fixy z audytów  */
/* ============================================ */

/* 1. Kadence page header bar — brand motto na jasnym tle, navy tekst (Wave 5 patch 5) */
.entry-hero.page-hero-section {
  display: block !important;
  background: var(--prep-paper, #f7f5f2) !important;
}
.entry-hero.page-hero-section .entry-hero-container-inner {
  padding: 4rem 2rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100% !important;
}
.entry-hero.page-hero-section .entry-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  width: 100%;
  background: transparent !important;
}
.entry-hero.page-hero-section .entry-title {
  display: none !important;
}
.entry-hero.page-hero-section .entry-header::before {
  content: "Przygotowanie to nie paranoja \2014\A to odpowiedzialno\015B\107\20 wobec siebie i tych, na kt\00F3rych nam zale\017Cy.";
  display: block;
  white-space: pre-line;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  color: var(--prep-primary, #1B4D7E);
  max-width: 1100px;
  margin: 0 auto;
  letter-spacing: 0.005em;
}
@media (max-width: 1024px) {
  .entry-hero.page-hero-section .entry-hero-container-inner { padding: 3rem 1.5rem !important; }
  .entry-hero.page-hero-section .entry-header::before { font-size: 26px; }
}
@media (max-width: 767px) {
  .entry-hero.page-hero-section .entry-hero-container-inner { padding: 2rem 1rem !important; }
  .entry-hero.page-hero-section .entry-header::before { font-size: 21px; line-height: 1.4; }
}
#colophon.site-footer { display: none; }

/* Zmniejsz odstęp pod paskiem motto — sekcja contentu wyżej (Wave 5 patch 4) */
.content-area {
  margin-top: 1.5rem !important;
}
@media (max-width: 1024px) {
  .content-area { margin-top: 1rem !important; }
}

/* 2. Brakujące warianty buttonów (P0 UX/UI) */
.prep-btn--ghost {
  background: transparent;
  color: var(--prep-primary);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prep-btn--ghost:hover { color: var(--prep-accent); background: transparent; }
.prep-btn--lg { padding: 1.125rem 2.25rem; font-size: 17px; }

/* 3. Klasa .prep-bestseller (używana w blog1-main.php:28) */
.prep-bestseller {
  border-left: 4px solid var(--prep-accent);
  padding: var(--prep-space-md) var(--prep-space-lg);
  background: var(--prep-cream);
  border-radius: var(--prep-radius-md);
  margin: var(--prep-space-lg) 0;
}

/* 4. Fix kontrastu .prep-card__cta (P0 UX/UI — fail WCAG 2.8:1) */
.prep-card__cta { color: var(--prep-primary); }
.prep-card:hover .prep-card__cta { color: var(--prep-accent); }

/* 5. Fix breakpoint hero 768px (P1 UX/UI — dead zone 768-899) */
@media (min-width: 768px) and (max-width: 899px) {
  .prep-hero__grid { grid-template-columns: 1.4fr 1fr; gap: var(--prep-space-lg); }
}

/* 6. Hero min-height mobile (P1 UX/UI) */
@media (max-width: 767px) {
  .prep-hero { min-height: auto; padding-block: var(--prep-space-xl); }
}

/* 7. Newsletter input kontrast (wariant card/dark) (P1 UX/UI) */
.prep-newsletter--card .prep-newsletter__input {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
}
.prep-newsletter--card .prep-newsletter__input::placeholder {
  color: rgba(255,255,255,0.85);
}

/* 8. Ribbon font fix (P2 UX/UI — używa Source Sans 3 nie ładowane) */
.prep-ribbon { font-family: 'Source Serif 4', Georgia, serif; letter-spacing: 0.06em; }

/* 9. Testimonial mobile (P2 UX/UI) */
@media (max-width: 480px) {
  .prep-testimonial::before { font-size: 48px; top: 0.25rem; }
  .prep-testimonial { padding: 2.5rem 1.5rem 1.5rem; }
}

/* 10. Uzupełnienie po A2 — nowe selektory z refactoru functions.php */

.prep-hero-sales__price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--prep-accent);
  margin: var(--prep-space-md) 0;
  letter-spacing: 0.01em;
}

.prep-hub-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--prep-space-md);
  color: var(--prep-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 180ms var(--prep-ease);
}
.prep-hub-card:hover .prep-hub-card__cta { color: var(--prep-accent); }

.prep-newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: var(--prep-space-sm) 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: inherit;
  cursor: pointer;
}
.prep-newsletter__consent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
  accent-color: var(--prep-accent);
}
.prep-newsletter__consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prep-newsletter--card .prep-newsletter__consent { color: rgba(255,255,255,0.85); }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================ */
/* WAVE 5 PATCH (2026-05-13) — Sławek visual review */
/* ============================================ */

/* A2: Newsletter button (homepage section + footer + exit-modal) — szerszy, brak zawijania, większy tekst */
.prep-newsletter__form button.prep-btn,
.prep-exit-modal__form button.prep-btn {
  min-width: 220px;
  white-space: nowrap;
  padding: 1rem 2.25rem !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* A3: Newsletter email input — węższe pole z lepszym placeholderem */
.prep-newsletter__form input[type="email"],
.prep-exit-modal__form input[type="email"] {
  max-width: 240px;
  text-align: left;
}
@media (max-width: 480px) {
  .prep-newsletter__form input[type="email"],
  .prep-exit-modal__form input[type="email"] {
    max-width: 100%;
  }
}

/* Stopka — biały placeholder na ciemnym tle stopki był nieczytelny;
   wymuś białe tło inputa + ciemny tekst dla kontrastu (Wave 5 patch 2) */
.prep-footer .prep-newsletter__input,
.prep-footer input[type="email"] {
  background: #fff !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
}
.prep-footer .prep-newsletter__input::placeholder,
.prep-footer input[type="email"]::placeholder {
  color: rgba(0,0,0,0.5) !important;
}
