/* ProRodzina – style całego serwisu (prefiks sp-) */
:root {
	--sp-cocoa: #3E2A23;
	--sp-cocoa-dark: #2A1C17;
	--sp-orange: #B8521A;
	--sp-orange-dark: #8F3D10;
	--sp-blue: #2C64A0;
	--sp-blue-soft: #E7F0F9;
	--sp-apricot: #FCEEDF;
	--sp-cream: #FFFBF5;
	--sp-green: #3D7A5A;
	--sp-yellow: #F2C14E;
	--sp-line: #EADFD3;
	--sp-text: #2B201B;
	--sp-muted: #6A5850;
	--sp-r: 18px;
	--font-sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-head: 'Montserrat', 'Segoe UI', sans-serif;
}
body { font-family: var(--font-sans); color: var(--sp-text); background: var(--sp-cream); }
h1, h2, h3, h4, .entry-title, .post-card__title, .site-branding__name, .footer-brand__name { font-family: var(--font-head); letter-spacing: -.015em; }

/* Nagłówek: pasek „kredek” pod spodem */
.site-header { position: relative; border-bottom: 0; background: #fff; }
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; z-index: 2;
	background: linear-gradient(90deg, var(--sp-orange) 0 25%, var(--sp-yellow) 25% 50%, var(--sp-green) 50% 75%, var(--sp-blue) 75% 100%);
}
.primary-nav .menu { gap: .15rem; flex-wrap: nowrap; }
.primary-nav .menu > li > a {
	font-family: var(--font-head); font-weight: 600; font-size: .92rem; white-space: nowrap; padding: .45rem .7rem; color: var(--sp-cocoa);
	background: linear-gradient(transparent 62%, var(--sp-apricot) 62%) no-repeat 0 0 / 0 100%; transition: background-size .25s ease; border-radius: 2px;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-category-ancestor > a,
.primary-nav .menu > li.current-post-ancestor > a { background-size: 100% 100%; color: var(--sp-cocoa-dark); }
@media (max-width: 1180px) { .primary-nav .menu > li > a { padding: .45rem .45rem; font-size: .86rem; } }

/* Przyciski */
.sp-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .95rem; font-family: var(--font-head); }
.sp-btn--orange { background: var(--sp-orange); color: #fff; }
.sp-btn--orange:hover { background: var(--sp-orange-dark); color: #fff; }
.sp-btn--line { border-color: var(--sp-cocoa); color: var(--sp-cocoa); background: transparent; }
.sp-btn--line:hover { background: var(--sp-cocoa); color: #fff; }
.sp-btn--ghost { color: var(--sp-blue); text-decoration: underline; }
.btn--primary, .btn--accent { border-radius: 999px; }
.sp-link { background: none; border: 0; padding: 0; color: var(--sp-blue); text-decoration: underline; cursor: pointer; font: inherit; }

/* Karty wpisów motywu */
.post-card { border: 0; border-radius: var(--sp-r); background: #fff; box-shadow: 0 2px 0 var(--sp-line), 0 8px 24px rgba(62, 42, 35, .06); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 2px 0 var(--sp-orange), 0 14px 30px rgba(62, 42, 35, .1); }
.post-card__title a:hover { color: var(--sp-orange-dark); }

/* Treść wpisów */
.entry-content h2 { position: relative; padding-left: 1.4rem; margin-top: 2.2rem; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .35em; width: .8rem; height: .8rem; border-radius: 4px; background: var(--sp-orange); box-shadow: .3rem .3rem 0 var(--sp-yellow); }
.entry-content h3 { color: var(--sp-cocoa); }
.entry-content a { color: var(--sp-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 0; background: var(--sp-blue-soft); border-radius: var(--sp-r); padding: 1rem 1.3rem; font-style: italic; }
.entry-content figure figcaption, .wp-caption-text { font-size: .85rem; color: var(--sp-muted); border-left: 3px solid var(--sp-yellow); padding-left: .6rem; margin-top: .4rem; }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--sp-line); border-radius: 12px; overflow: hidden; }
.entry-content th { background: var(--sp-blue); color: #fff; text-align: left; padding: .6rem .8rem; }
.entry-content td { padding: .55rem .8rem; border-top: 1px solid var(--sp-line); }
.entry-content tr:nth-child(even) td { background: var(--sp-cream); }
.sp-photo-credit { font-size: .8rem; color: var(--sp-muted); }

/* Breadcrumbs */
.breadcrumbs, .yoast-breadcrumbs { font-size: .85rem; color: var(--sp-muted); }
.breadcrumbs a, .yoast-breadcrumbs a { color: var(--sp-blue); }

/* Formularz kontaktowy */
.sp-kontakt input[type=text], .sp-kontakt input[type=email], .sp-kontakt textarea { width: 100%; max-width: 560px; border: 2px solid var(--sp-line); border-radius: 12px; padding: .6rem .8rem; font: inherit; background: #fff; }
.sp-kontakt input:focus, .sp-kontakt textarea:focus { outline: 0; border-color: var(--sp-blue); }
.sp-kontakt__rodo { font-size: .88rem; color: var(--sp-muted); max-width: 640px; }

/* Stopka: kakao z paskiem kredek */
.site-footer { background: var(--sp-cocoa-dark); color: #F3E9E1; position: relative; border-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--sp-blue) 0 25%, var(--sp-green) 25% 50%, var(--sp-yellow) 50% 75%, var(--sp-orange) 75% 100%); }
.site-footer a { color: #F3E9E1; }
.site-footer a:hover { color: var(--sp-yellow); }
.footer-col__title { color: #fff; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .15); color: #D9C9BE; }

/* Kategorie: opis i FAQ działu */
.sp-cat-intro { background: #fff; border-radius: var(--sp-r); padding: 1.2rem 1.4rem; margin: 0 0 1.5rem; box-shadow: 0 2px 0 var(--sp-line); }
.sp-cat-faq { margin: 2rem 0; }
.sp-cat-faq details { background: #fff; border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; border: 1px solid var(--sp-line); }
.sp-cat-faq summary { font-weight: 700; cursor: pointer; font-family: var(--font-head); }

/* Kategorie – nagłówek działu */
.sp-cat-header__eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-orange-dark); }
.sp-cat-header__count { color: var(--sp-muted); font-size: .9rem; }
.sp-cat-empty { background: #fff; border-radius: var(--sp-r); padding: 1.2rem; }

/* Oceny wpisów */
.sp-rate { margin: 2.5rem 0 1rem; padding: 1.2rem 1.4rem; background: var(--sp-apricot); border-radius: var(--sp-r); text-align: center; }
.sp-rate__q { font-family: var(--font-head); font-weight: 700; margin: 0 0 .4rem; color: var(--sp-cocoa-dark); }
.sp-rate__stars { display: inline-flex; gap: .2rem; }
.sp-rate__stars button { background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer; color: #D9C6B6; padding: .1rem; }
.sp-rate__stars button.is-on { color: var(--sp-orange); }
.sp-rate__stars button:focus-visible { outline: 2px solid var(--sp-blue); border-radius: 6px; }
.sp-rate.is-done .sp-rate__stars button { cursor: default; }
.sp-rate__sum { margin: .4rem 0 0; font-size: .9rem; color: var(--sp-muted); }
