/*
Theme Name: Rapak
Description: Motyw blokowy dla Agnieszki Rapak – Coach Kobiet. Sekcje jako wzorce bloków, edycja w domyślnym edytorze WordPress.
Version: 0.7.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: rapak
*/

/* Only what theme.json cannot express. Colours/fonts/sizes live in theme.json. */

:root {
	--rapak-line: rgba(37, 36, 34, .06);
}

/* Buttons: gold gradient turns into an outline on hover */
.wp-element-button,
.wp-block-button__link {
	transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent-dark);
}
.rapak-button-small .wp-block-button__link {
	padding: 15px 24px;
	white-space: nowrap;
}

/* Header */
.rapak-header {
	position: relative;
	z-index: 30;
	border-bottom: 1px solid var(--rapak-line);
}
.rapak-header .wp-block-navigation a,
.rapak-header .wp-block-navigation-submenu__toggle {
	transition: color 200ms ease, background-color 200ms ease;
}
.rapak-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	min-width: 280px !important; /* core sets 200px on :hover / [aria-expanded] with higher specificity */
	padding: 8px;
	gap: 2px;
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(37, 36, 34, .08);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(37, 36, 34, .08);
}
.rapak-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	white-space: normal;
}
.rapak-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--base-2);
}
/* Phones (core shows the hamburger below 600px): one row = logo | button ☰ */
@media (max-width: 599px) {
	.rapak-header > .wp-block-group {
		flex-wrap: nowrap;
	}
	.rapak-header .wp-block-site-logo img {
		width: 160px !important; /* block sets width inline */
		height: auto;
	}
	.rapak-header > .wp-block-group > .wp-block-group {
		gap: 12px;
		flex-wrap: nowrap;
	}
	.rapak-header nav.wp-block-navigation { /* nav only: the inner <ul> has the same class */
		order: 2;
	}
	.rapak-button-small .wp-block-button__link {
		padding: 12px 14px;
	}
}

/* Mobile overlay menu: logo + close on top, accordion list, booking button and contact at the bottom.
   Logo and extras are added in functions.php, the accordion in assets/js/menu.js. */
.rapak-menu-logo,
.rapak-menu-extra {
	display: none;
}
.rapak-header .wp-block-navigation__responsive-container-open {
	padding: 10px; /* 44px tap target */
	margin-right: -10px;
}
.rapak-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0 24px 32px;
	animation: rapak-menu-in 200ms ease-out;
}
@keyframes rapak-menu-in {
	from { opacity: 0; transform: translateY(-8px); }
}
.rapak-header .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 14px;
	right: -10px;
	padding: 10px;
}
/* !important: the nav's layout class sets gap/alignment with higher specificity */
.rapak-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 0 !important;
	gap: 0 !important;
	align-items: stretch !important;
}
.rapak-header .is-menu-open .rapak-menu-logo {
	display: flex;
	align-items: center;
	min-height: 72px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(37, 36, 34, .1);
}
.rapak-header .is-menu-open .rapak-menu-logo img {
	width: 160px;
	height: auto;
}
.rapak-header .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	align-items: stretch !important;
	width: 100%;
}
.rapak-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	align-items: stretch;
	width: 100%;
	border-bottom: 1px solid rgba(37, 36, 34, .1);
}
.rapak-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	min-height: 56px;
	padding: 10px 0;
	font-size: 20px;
	line-height: 1.3;
}
.rapak-header .is-menu-open .has-child > .wp-block-navigation-item__content::after {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	margin: 0 6px 4px 16px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform 200ms ease;
}
.rapak-header .is-menu-open .rapak-sub-open > .wp-block-navigation-item__content::after {
	margin-bottom: -4px;
	transform: rotate(-135deg);
}
.rapak-header .is-menu-open .has-child:not(.rapak-sub-open) > .wp-block-navigation__submenu-container {
	display: none;
}
.rapak-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	gap: 0;
	margin: 0 0 14px 2px;
	padding: 0 0 0 16px;
	border: 0;
	border-left: 2px solid var(--wp--preset--color--accent) !important;
	border-radius: 0;
	box-shadow: none;
}
.rapak-header .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 0;
	font-size: 17px;
	opacity: .85;
}
.rapak-header .is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--primary);
	opacity: 1 !important;
}
.rapak-header .is-menu-open .rapak-menu-extra {
	display: grid;
	gap: 14px;
	margin-top: 32px;
}
.rapak-header .is-menu-open .rapak-menu-extra .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 17px 24px;
	text-align: center;
}
.rapak-header .is-menu-open .rapak-menu-contact {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	text-decoration: none;
}
.rapak-header .is-menu-open .rapak-menu-contact img {
	width: 20px;
	height: 20px;
}
@media (prefers-reduced-motion: reduce) {
	.rapak-header .wp-block-navigation__responsive-container.is-menu-open {
		animation: none;
	}
}

/* Footer */
.rapak-footer {
	border-top: 1px solid var(--rapak-line);
}
.rapak-footer-brand {
	margin-top: -49px;
}
.rapak-eyebrow {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.rapak-footer-col,
.rapak-footer-col p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}
.rapak-footer-col > p:not(.rapak-arrow-link),
.rapak-footer-col a:not(.rapak-arrow-link a) {
	color: var(--wp--preset--color--contrast);
	opacity: .8;
	text-decoration: none;
}
.rapak-footer-col a:hover {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}
.rapak-footer-bottom {
	border-top: 1px solid var(--rapak-line);
}
.rapak-footer-bottom,
.rapak-footer-bottom a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.rapak-footer-bottom p {
	margin: 0;
	opacity: .6;
}

/* "Sprawdź terminy →": gold underline grows on hover */
.rapak-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
	padding-bottom: 10px;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none;
	background: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) no-repeat left bottom / 40% 1px;
	transition: background-size 320ms ease;
}
.rapak-arrow-link a::after {
	content: "→";
}
.rapak-arrow-link a:hover {
	background-size: 100% 1px;
	color: var(--wp--preset--color--contrast);
}

/* Social icons: outlined circles, gold on hover */
.rapak-social .wp-social-link {
	width: 44px;
	height: 44px;
	border: 1px solid var(--rapak-line);
	border-radius: 999px;
	background: transparent;
	transition: background-color 200ms ease, border-color 200ms ease;
}
.rapak-social .wp-social-link a {
	width: 100%;
	height: 100%;
	justify-content: center;
	padding: 0;
}
.rapak-social .wp-social-link svg {
	width: 18px;
	height: 18px;
}
.rapak-social .wp-social-link:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	transform: none;
}
.rapak-social .wp-social-link:hover a {
	color: var(--wp--preset--color--contrast);
}

/* =========================================================
   Block styles (picked in the editor's "Styles" panel)
   ========================================================= */

/* Nadtytuł: paragraph = gold, heading = blue (as in the design) */
p.is-style-eyebrow,
.wp-block-post-terms.is-style-eyebrow {
	margin: 0 0 26px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45; /* long labels wrap onto two lines */
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
p.is-style-eyebrow a,
.wp-block-post-terms.is-style-eyebrow a {
	color: inherit;
	text-decoration: none;
}
:is(h1, h2, h3, h4).is-style-eyebrow,
.rapak-eyebrow {
	margin: 0 0 22px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

/* Krótka złota linia */
.wp-block-separator.is-style-short {
	width: 64px;
	max-width: 64px;
	height: 0;
	margin: 30px 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--accent);
	opacity: 1;
}
.wp-block-separator:not(.is-style-short) {
	border-top: 1px solid rgba(37, 36, 34, .08);
	opacity: 1;
}

/* Link ze strzałką (button style) */
.wp-block-button.is-style-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 0 14px;
	border-radius: 0;
	background: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) no-repeat left bottom / 40% 1px;
	color: var(--wp--preset--color--contrast);
	transition: background-size 320ms ease;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "→";
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover,
.wp-block-button.is-style-arrow .wp-block-button__link:focus-visible {
	background-size: 100% 1px;
	box-shadow: none;
}

/* Organiczny kształt (image) + featured image in heroes */
:is(.wp-block-image.is-style-blob, .rapak-blob) {
	position: relative;
	isolation: isolate;
}
:is(.wp-block-image.is-style-blob, .rapak-blob)::before,
:is(.wp-block-image.is-style-blob, .rapak-blob)::after {
	content: "";
	position: absolute;
	z-index: -1;
}
:is(.wp-block-image.is-style-blob, .rapak-blob)::before {
	left: -7%;
	top: 7%;
	width: 100%;
	height: 96%;
	background: rgba(0, 63, 152, .07);
	border-radius: 46% 54% 58% 42% / 48% 56% 44% 52%;
}
:is(.wp-block-image.is-style-blob, .rapak-blob)::after {
	right: -4%;
	top: -5%;
	width: 40%;
	height: 36%;
	background: rgba(217, 160, 91, .16);
	border-radius: 52% 48% 44% 56% / 56% 44% 56% 44%;
}
:is(.wp-block-image.is-style-blob, .rapak-blob) img {
	border-radius: 52% 48% 44% 56% / 56% 44% 56% 44%;
}

/* Etykiety (tags / tag cloud) */
.is-style-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.is-style-pills a {
	border: 1px solid rgba(217, 160, 91, .5);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: var(--wp--preset--font-size--small) !important; /* tag cloud sets inline sizes */
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background-color 200ms ease, border-color 200ms ease;
}
.is-style-pills a:hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}
.is-style-pills .wp-block-post-terms__separator {
	display: none;
}

/* =========================================================
   Content blocks
   ========================================================= */

/* Quote = testimonial card: stars, text, author */
.wp-block-quote {
	margin: 0;
	padding: 36px 38px;
	border: 1px solid var(--rapak-line);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
}
.wp-block-quote::before {
	content: "★★★★★";
	display: block;
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 1;
	letter-spacing: .3em;
	color: var(--wp--preset--color--accent);
}
.wp-block-quote p {
	opacity: .85;
}
.wp-block-quote cite {
	display: block;
	margin-top: 20px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-style: normal;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

/* Pullquote = handwritten highlight */
.wp-block-pullquote {
	margin: 48px 0;
	padding: 0;
	border: 0;
	text-align: left;
}
.wp-block-pullquote p {
	font-family: var(--wp--preset--font-family--handwriting);
	font-size: 46px;
	line-height: 1.35;
	color: var(--wp--preset--color--secondary);
}
.wp-block-pullquote cite {
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	opacity: .65;
}

/* Images in content */
.wp-block-image img,
.wp-block-post-featured-image img {
	border-radius: 12px;
}

/* Lists in posts and pages: gold dash / gold numbers */
.entry-content :is(ul, ol):not([class]),
.entry-content :is(ul, ol).wp-block-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: grid;
	gap: 12px;
}
.entry-content :is(ul, ol):not([class]) > li,
.entry-content :is(ul, ol).wp-block-list > li {
	position: relative;
	padding-left: 36px;
}
.entry-content ul:not([class]) > li::before,
.entry-content ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .85em;
	width: 14px;
	height: 1px;
	background: var(--wp--preset--color--accent);
}
.entry-content ol:not([class]),
.entry-content ol.wp-block-list {
	counter-reset: rapak-ol;
}
.entry-content ol:not([class]) > li,
.entry-content ol.wp-block-list > li {
	counter-increment: rapak-ol;
}
.entry-content ol:not([class]) > li::before,
.entry-content ol.wp-block-list > li::before {
	content: counter(rapak-ol) ".";
	position: absolute;
	left: 0;
	letter-spacing: .1em;
	color: var(--wp--preset--color--accent);
}

/* =========================================================
   Templates: hero, sections, blog
   ========================================================= */

.rapak-hero {
	padding-top: 28px;
	padding-bottom: 110px;
	overflow: hidden;
}
.rapak-hero-small {
	padding-bottom: 80px;
}
.rapak-hero-cols {
	gap: 64px;
	margin-top: 40px;
	align-items: flex-start;
}
.rapak-hero-cols > .wp-block-column:first-child {
	flex: 0 0 47.6%; /* don't grow, or the image column ends up tiny */
}
@media (max-width: 781px) {
	.rapak-hero-cols > .wp-block-column:first-child {
		flex-basis: 100%;
	}
}
.rapak-hero h1,
.rapak-hero .wp-block-post-title {
	margin: 0;
}
.rapak-hero .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}
.rapak-hero-small > .wp-block-group {
	margin-top: 40px;
}
.rapak-section {
	padding-top: 130px;
	padding-bottom: 130px;
}
.rapak-intro {
	max-width: 620px;
	opacity: .85;
	line-height: 1.8;
}
.rapak-muted,
.rapak-meta {
	color: var(--wp--preset--color--contrast);
	opacity: .65;
}
.rapak-meta {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .06em;
}

/* Breadcrumbs (Yoast block) */
.yoast-breadcrumbs,
.yoast-breadcrumbs a {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: #6E6A64;
	text-decoration: none;
}
.yoast-breadcrumbs a:hover {
	color: var(--wp--preset--color--accent);
}

/* Byline: photo, name, date, reading time */
.rapak-byline {
	gap: 12px 28px;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .06em;
}
.rapak-byline > * {
	margin: 0;
}
.rapak-byline .wp-block-post-author-name {
	opacity: .8;
	margin-left: -18px; /* sits next to the photo */
}
.rapak-avatar {
	margin: 0;
}
.rapak-avatar img {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	object-fit: cover;
	object-position: 50% 20%;
}
.rapak-avatar-lg {
	flex: 0 0 120px;
}
.rapak-avatar-lg img {
	width: 120px;
	height: 120px;
}

/* Header, content and footer touch: no default block gap between them */
.wp-site-blocks > * {
	margin-block-start: 0;
}
.rapak-lead {
	max-width: 480px;
	margin: 28px 0 40px;
	opacity: .82;
	line-height: 1.8;
}
.rapak-lead .wp-block-post-excerpt__more-text {
	display: none;
}

/* "Czytaj dalej" read-more as a gold button */
.wp-block-read-more.rapak-read-more-button {
	display: inline-block;
	padding: 19px 30px;
	border-radius: 8px;
	background: linear-gradient(180deg, #E6B77C 0%, #D9A05B 100%);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	text-decoration: none;
	transition: background 200ms ease, box-shadow 200ms ease;
}
.wp-block-read-more.rapak-read-more-button:hover {
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent-dark);
}

/* Content + sidebar layouts */
.rapak-with-sidebar,
.rapak-with-toc {
	gap: 80px;
	align-items: flex-start;
}
.rapak-blog-sidebar,
.rapak-sticky {
	position: sticky;
	top: 40px;
	gap: 48px;
}

/* Post grid (blog, archives, related) */
.rapak-post-grid .wp-block-post-template {
	gap: 64px 40px;
}
.rapak-related .wp-block-post-template {
	gap: 40px;
}
.rapak-post-grid .wp-block-post {
	display: flex;
	flex-direction: column;
}
.rapak-post-grid .wp-block-post > * {
	margin: 0;
}
.rapak-post-grid .wp-block-post-featured-image {
	margin-bottom: 24px;
}
.rapak-post-grid .wp-block-post-date {
	margin-bottom: 10px;
}
.rapak-post-grid .wp-block-post-title {
	margin-bottom: 14px;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
	color: var(--wp--preset--color--contrast);
}
.rapak-post-grid .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 200ms ease;
}
.rapak-post-grid .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}
.rapak-post-grid .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	opacity: .8;
}
.rapak-post-grid .wp-block-post-excerpt__more-text {
	display: none;
}

/* Pagination: square tiles */
.rapak-pagination {
	margin-top: 80px;
	gap: 12px;
}
.rapak-pagination :is(a, .page-numbers) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px rgba(217, 160, 91, .5);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}
.rapak-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 12px;
}
.rapak-pagination .page-numbers.current {
	background: linear-gradient(180deg, #E6B77C 0%, #D9A05B 100%);
	box-shadow: none;
}
.rapak-pagination a:hover {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent-dark);
}
.rapak-pagination .page-numbers.dots {
	box-shadow: none;
}

/* Cards: sidebar CTA, author box */
.rapak-card {
	padding: 36px 32px;
	border-radius: 12px;
	background: var(--wp--preset--color--base-2);
	gap: 0;
}
.rapak-card > * {
	margin: 0;
}
.rapak-card-title {
	margin-bottom: 14px !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	color: var(--wp--preset--color--primary);
}
.rapak-card .rapak-muted {
	margin-bottom: 24px;
	font-size: var(--wp--preset--font-size--small);
}
.rapak-author-box {
	gap: 32px;
	padding: 44px 40px;
}
.rapak-author-box h3 {
	margin: 0 0 6px;
	color: var(--wp--preset--color--primary);
}
.rapak-author-box p {
	margin: 0 0 16px;
	line-height: 1.8;
}
.rapak-author-box p.is-style-eyebrow {
	margin-bottom: 14px;
}

/* Single post article */
.rapak-article {
	max-width: 700px;
}
.rapak-article .entry-content > * {
	margin-top: 0;
	margin-bottom: 24px;
}
.rapak-article .entry-content h2 {
	margin: 72px 0 26px;
	scroll-margin-top: 40px;
}
.rapak-article .entry-content > h2:first-child {
	margin-top: 0;
}
.rapak-article .entry-content h3 {
	margin: 44px 0 16px;
}
.rapak-article .entry-content h4 {
	margin: 32px 0 12px;
}
.rapak-post-tags {
	margin-top: 48px;
	padding: 32px 0;
	border-top: 1px solid rgba(37, 36, 34, .08);
}

/* Previous / next post cards */
.rapak-post-nav {
	margin-top: 48px;
	gap: 20px;
}
.rapak-post-nav a {
	display: block;
	height: 100%;
	padding: 26px;
	border: 1px solid rgba(37, 36, 34, .08);
	border-radius: 12px;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	text-decoration: none;
	transition: border-color 200ms ease;
}
.rapak-post-nav a:hover {
	border-color: var(--wp--preset--color--accent);
}
.rapak-post-nav .post-navigation-link__label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .06em;
	color: var(--wp--preset--color--contrast);
	opacity: .65;
}
.rapak-post-nav .post-navigation-link-next {
	text-align: right;
}

/* Table of contents + share (single post sidebar) */
.rapak-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
}
.rapak-toc summary::-webkit-details-marker {
	display: none;
}
.rapak-toc summary h2 {
	margin: 0 0 20px;
}
@media (min-width: 782px) {
	.rapak-toc summary {
		pointer-events: none; /* desktop: always open, not clickable */
	}
}
@media (max-width: 781px) {
	.rapak-toc details {
		margin-bottom: 32px;
		padding: 16px 20px;
		border: 1px solid rgba(37, 36, 34, .08);
		border-radius: 12px;
		background: var(--wp--preset--color--base);
	}
	.rapak-toc summary {
		cursor: pointer;
	}
	.rapak-toc summary h2 {
		margin: 0;
	}
	.rapak-toc summary::after {
		content: "+";
		display: flex;
		flex: 0 0 32px;
		align-items: center;
		justify-content: center;
		height: 32px;
		border: 1px solid rgba(217, 160, 91, .5);
		border-radius: 999px;
		color: var(--wp--preset--color--accent);
	}
	.rapak-toc details[open] summary::after {
		content: "−";
	}
	.rapak-toc details[open] ol {
		margin: 16px 0 0;
	}
}
.rapak-toc ol {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	border-left: 1px solid rgba(37, 36, 34, .1);
}
.rapak-toc a {
	display: block;
	padding: 6px 0 6px 18px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast);
	opacity: .75;
	text-decoration: none;
}
.rapak-toc a:hover {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}
.rapak-share h2 {
	margin-bottom: 14px;
}
.rapak-share-links {
	display: flex;
	gap: 10px;
}
.rapak-share-links :is(a, button) {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(37, 36, 34, .1);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
}
.rapak-share-links :is(a, button):hover {
	background: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}
.rapak-share-copied {
	display: none;
	margin: 10px 0 0;
	font-size: var(--wp--preset--font-size--small);
	opacity: .65;
}
.rapak-share:has(.is-copied) .rapak-share-copied {
	display: block;
}

/* Related posts header */
.rapak-section-head {
	margin-bottom: 56px;
	gap: 20px;
}
.rapak-section-head h2,
.rapak-section-head .wp-block-buttons {
	margin: 0;
}

/* Search field */
.rapak-search {
	max-width: 520px;
	margin: 0 0 32px;
}
.rapak-search .wp-block-search__input {
	padding: 14px 18px;
	border: 1px solid rgba(37, 36, 34, .15);
	border-radius: 8px;
	background: var(--wp--preset--color--base);
	font: inherit;
}
.rapak-search .wp-block-search__button {
	margin-left: 10px;
}

/* =========================================================
   Section patterns (/patterns)
   ========================================================= */

/* Full-width sections stacked in a page touch each other */
.wp-block-post-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}
/* Decorations may stick out of a section, but never cause sideways scrolling ("clip" keeps sticky working) */
.rapak-section {
	overflow-x: clip;
}

/* Section title: eyebrow, H2, short line */
.rapak-section-title {
	margin-bottom: 76px;
}
.rapak-section-title > * {
	margin-top: 0;
	margin-bottom: 0;
}
.rapak-section-title:not(.rapak-center) > * {
	max-width: 620px;
}
.rapak-section-title h2 {
	margin-bottom: 26px;
}
.rapak-section-title .is-style-short {
	margin: 0;
}
.rapak-section-title .rapak-intro {
	margin: 30px auto 0;
}
.rapak-center {
	text-align: center;
}
.rapak-section-title.rapak-center {
	max-width: 760px;
	margin-bottom: 80px;
}
.rapak-center .wp-block-separator.is-style-short {
	margin-left: auto;
	margin-right: auto;
}
.rapak-center .wp-block-buttons {
	justify-content: center;
}
.rapak-center-text {
	margin-top: 48px;
	text-align: center;
}

/* Odręczny (paragraph style) */
.is-style-handwriting {
	max-width: 880px;
	margin: 80px auto 0;
	font-family: var(--wp--preset--font-family--handwriting);
	font-size: 46px;
	line-height: 1.35;
	text-align: center;
	color: var(--wp--preset--color--secondary);
}

/* Hero with photo on the right (home + subpage) */
.rapak-page-hero {
	position: relative;
	overflow: hidden;
	padding-top: 90px;
	padding-bottom: 210px;
}
.rapak-page-hero-sub {
	padding-top: 28px;
	padding-bottom: 150px;
}
.rapak-page-hero > * {
	position: relative;
	z-index: 1;
}
.rapak-page-hero > .rapak-page-hero-photo {
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: 62%;
	max-width: none;
	margin: 0 !important; /* constrained layout centres children with !important */
}
.rapak-page-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 30%;
	border-radius: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 45%);
}
.rapak-page-hero-sub .rapak-page-hero-inner {
	margin-top: 46px;
}
.rapak-page-hero-text {
	max-width: min(620px, 46%);
}
.rapak-page-hero-text > * {
	margin-top: 0;
}
.rapak-page-hero-text h1 {
	margin-bottom: 0;
}
.rapak-page-hero .rapak-lead {
	max-width: 500px;
	margin: 0 0 34px;
}
.rapak-page-hero .rapak-meta {
	margin: 0 0 44px;
	line-height: 1.7;
}
.rapak-page-hero .wp-block-buttons {
	gap: 18px 30px;
	align-items: center;
}

/* Cards */
.rapak-cards {
	gap: 30px;
}
.rapak-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
}
.rapak-cards > .wp-block-column > .wp-block-group {
	flex: 1;
}
.rapak-card-shadow {
	padding: 44px 40px;
	border-radius: 12px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 18px 50px rgba(37, 36, 34, .06);
}
.rapak-card-outline {
	padding: 38px 32px;
	border: 1px solid rgba(37, 36, 34, .08);
	border-radius: 12px;
}
.rapak-card-shadow > *,
.rapak-card-outline > * {
	margin-top: 0;
	margin-bottom: 0;
}
.rapak-card-shadow > h3 {
	margin: 26px 0 14px;
}
.rapak-card-shadow > .rapak-step-number + h3 {
	margin: 0 0 16px;
}
.rapak-card-shadow .is-style-short,
.rapak-card-outline .is-style-short {
	width: 36px;
	max-width: 36px;
	margin: 0 0 18px;
}
.rapak-card-shadow p:not(.rapak-step-number),
.rapak-card-outline > p {
	opacity: .78;
}
.rapak-card-outline > .rapak-icon {
	margin-bottom: 22px;
}
.rapak-card-outline > h4 {
	margin-bottom: 12px;
}
.rapak-icon img {
	width: 34px;
	height: 34px;
	border-radius: 0;
}
.rapak-step-number {
	margin-bottom: 20px !important;
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: .1em;
	color: var(--wp--preset--color--accent);
}

/* Cards that sit right under the hero overlap it */
.rapak-help-areas {
	position: relative;
	z-index: 2;
	margin-top: -130px !important;
}

/* "Czy odnajdujesz w tym siebie?" */
.rapak-for-you {
	gap: 0 56px;
}
.rapak-for-you > .wp-block-column {
	display: grid;
	gap: 44px;
}
.rapak-for-you-left {
	justify-items: end;
	text-align: right;
}
.rapak-dash-item {
	max-width: 330px;
	margin: 0;
	opacity: .82;
}
.rapak-dash-item::before {
	content: "";
	display: block;
	width: 44px;
	height: 1px;
	margin: 0 0 14px;
	background: var(--wp--preset--color--accent);
}
.rapak-for-you-left .rapak-dash-item::before {
	margin-left: auto;
}
.rapak-bird-resting,
.rapak-bird-flying {
	position: relative;
	isolation: isolate;
}
.rapak-bird-resting {
	max-width: 330px;
	margin: 0 auto;
}
.rapak-bird-resting::before {
	content: "";
	position: absolute;
	z-index: -2;
	left: 50%;
	top: 6%;
	width: 300px;
	height: 300px;
	transform: translateX(-50%);
	border-radius: 52% 48% 44% 56% / 56% 44% 56% 44%;
	background: rgba(0, 63, 152, .06);
}
.rapak-bird-resting::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: -.6%;
	top: -4.3%;
	width: 107.9%;
	height: 101.9%;
	background: url("assets/images/dekor-koliber.svg") center / contain no-repeat;
}
.rapak-bird-resting img,
.rapak-bird-flying img,
.rapak-about-photo img {
	border-radius: 0;
}

/* "Dlaczego właśnie ja?" */
.rapak-about {
	padding-top: 130px;
	overflow: hidden;
}
.rapak-about-cols {
	gap: 80px;
}
.rapak-about-photo {
	position: relative;
	isolation: isolate;
	margin: 0;
	padding: 20px 60px 0 0;
}
.rapak-about-photo::before,
.rapak-about-photo::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 6%;
	width: 62%;
	aspect-ratio: 96 / 142;
	opacity: .18;
	background: url("assets/images/dekor-skrzydlo.svg") center / contain no-repeat;
}
.rapak-about-photo::before {
	right: 46%;
}
.rapak-about-photo::after {
	left: 46%;
	transform: scaleX(-1);
}
.rapak-about-photo img {
	-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.rapak-about-text {
	padding-bottom: 130px;
}
.rapak-about-text > * {
	margin-top: 0;
	margin-bottom: 20px;
}
.rapak-about-text > h2 {
	margin-bottom: 26px;
}
.rapak-about-text > .is-style-short {
	margin: 0 0 30px;
}
.rapak-about-text > p:not(.is-style-eyebrow) {
	opacity: .82;
}
.rapak-about-text > p:not(.is-style-eyebrow):has(strong:only-child) {
	opacity: 1;
}
.rapak-about-text > p.is-style-eyebrow:not(:first-child) {
	margin: 36px 0 18px;
}

/* Lists: "Etykiety" (pills) and "Ptaszki" (checks) — undo the gold dash */
ul.wp-block-list.is-style-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
ul.wp-block-list.is-style-pills > li {
	padding: 11px 18px;
	border: 1px solid rgba(217, 160, 91, .5);
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}
ul.wp-block-list.is-style-pills > li::before {
	content: none;
}
ul.wp-block-list.is-style-checks {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}
ul.wp-block-list.is-style-checks > li {
	position: relative;
	padding-left: 30px;
}
ul.wp-block-list.is-style-checks > li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: auto;
	height: auto;
	background: none;
	color: var(--wp--preset--color--accent);
}

/* Steps: handwriting + button under the cards */
.rapak-after-cards {
	margin-top: 70px;
}
.rapak-after-cards .is-style-handwriting {
	margin: 0 0 48px;
}

/* Testimonials */
.rapak-testimonials {
	gap: 80px;
	align-items: flex-start;
}
.rapak-testimonials > .wp-block-column > * {
	margin-top: 0;
}
.rapak-testimonials h2 {
	margin-bottom: 26px;
}
.rapak-testimonials .is-style-short {
	margin: 0 0 44px;
}
.rapak-quotes {
	display: grid;
	gap: 24px;
}
.rapak-quotes > * {
	margin: 0;
}
.rapak-bird-flying {
	max-width: 460px;
	margin: 0;
	background: url("assets/images/dekor-opinie.svg") -4% -7% / 104% auto no-repeat;
}
.rapak-bird-flying::before,
.rapak-bird-flying::after {
	content: "";
	position: absolute;
	z-index: -1;
}
.rapak-bird-flying::before {
	left: 4%;
	top: 8%;
	width: 78%;
	height: 78%;
	background: rgba(0, 63, 152, .06);
	border-radius: 52% 48% 44% 56% / 56% 44% 56% 44%;
}
.rapak-bird-flying::after {
	left: 24%;
	top: 0;
	width: 66%;
	height: 64%;
	background: rgba(217, 160, 91, .12);
	border-radius: 46% 54% 58% 42% / 48% 56% 44% 52%;
}

/* Final invitation */
.rapak-cta {
	padding-top: 150px;
	padding-bottom: 150px;
}
.rapak-cta > * {
	margin-top: 0;
	margin-bottom: 20px;
}
.rapak-cta h2 {
	margin-bottom: 26px;
}
.rapak-cta .is-style-short {
	margin-bottom: 34px;
}
.rapak-cta > p:not(.rapak-meta) {
	max-width: 560px;
	opacity: .82;
}
.rapak-cta .rapak-meta {
	margin: 20px auto 36px;
}

/* FAQ (Details blocks) */
.rapak-faq {
	display: grid;
	gap: 16px;
}
.rapak-faq .wp-block-details {
	margin: 0;
	border: 1px solid rgba(37, 36, 34, .08);
	border-radius: 12px;
	background: var(--wp--preset--color--base);
}
.rapak-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}
.rapak-faq summary::-webkit-details-marker {
	display: none;
}
.rapak-faq summary::after {
	content: "+";
	display: flex;
	flex: 0 0 36px;
	align-items: center;
	justify-content: center;
	height: 36px;
	border: 1px solid rgba(217, 160, 91, .5);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 18px;
	color: var(--wp--preset--color--accent);
}
.rapak-faq details[open] summary::after {
	content: "−";
}
.rapak-faq details > :not(summary) {
	margin: 0;
	padding: 0 32px 30px;
	opacity: .82;
}

/* Pricing packages */
.rapak-package {
	display: flex;
	flex-direction: column;
	padding: 44px 38px;
}
.rapak-package > .is-style-eyebrow {
	margin-bottom: 20px;
}
.rapak-package > h3 {
	margin-bottom: 18px;
}
.rapak-price {
	margin-bottom: 22px !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.3;
	color: var(--wp--preset--color--primary);
}
.rapak-package > p:not(.is-style-eyebrow):not(.rapak-price) {
	margin-bottom: 26px;
}
.rapak-package > .is-style-checks {
	align-content: start;
	margin-bottom: 26px;
}
/* Buttons sit at the bottom so cards in a row line up */
.rapak-package > .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 16px;
}
.rapak-package .wp-block-button__link {
	padding: 18px 20px;
	line-height: 1.3;
}

/* Short invitation: handwriting + buttons */
.rapak-cta-short .is-style-handwriting {
	margin: 0 auto 40px;
}
.rapak-cta-short .wp-block-buttons {
	gap: 18px 30px;
	align-items: center;
}

/* Hero: text + hummingbird */
.rapak-hero-split {
	padding-top: 28px;
	padding-bottom: 130px;
}
.rapak-hero-split-cols {
	gap: 64px;
	margin-top: 56px;
}
.rapak-hero-split-cols > .wp-block-column > * {
	margin-top: 0;
}
.rapak-hero-split h1 {
	margin-bottom: 0;
}
.rapak-hero-split .rapak-lead {
	margin: 0 0 48px;
}
.rapak-hero-split .rapak-bird-flying {
	margin-left: auto;
}

/* Testimonial wall: masonry columns */
.rapak-quote-wall {
	columns: 3 320px;
	column-gap: 30px;
}
.rapak-quote-wall > .wp-block-quote {
	break-inside: avoid;
	margin: 0 0 30px;
}
.rapak-quote-wall cite::before {
	content: "– ";
}

/* Ponumerowane wskazówki (list style) */
.entry-content ol.wp-block-list.is-style-tips,
ol.wp-block-list.is-style-tips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 0 64px;
	padding: 0;
	list-style: none;
	counter-reset: rapak-ol;
}
ol.wp-block-list.is-style-tips > li {
	position: relative;
	padding: 26px 0 26px 56px;
	border-top: 1px solid rgba(217, 160, 91, .6);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	counter-increment: rapak-ol;
}
ol.wp-block-list.is-style-tips > li::before {
	content: counter(rapak-ol) ".";
	position: absolute;
	left: 0;
	top: 28px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: .1em;
	color: var(--wp--preset--color--accent);
}

/* Spis treści (list style, e.g. privacy policy) */
ol.wp-block-list.is-style-toc {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rapak-ol;
}
ol.wp-block-list.is-style-toc > li {
	position: relative;
	padding: 12px 0 12px 32px;
	border-top: 1px solid rgba(217, 160, 91, .4);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	counter-increment: rapak-ol;
}
ol.wp-block-list.is-style-toc > li::before {
	content: counter(rapak-ol) ".";
	position: absolute;
	left: 0;
	top: 12px;
	color: var(--wp--preset--color--accent);
}
ol.wp-block-list.is-style-toc a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
ol.wp-block-list.is-style-toc a:hover {
	color: var(--wp--preset--color--primary);
}

/* Legal text (privacy policy) */
.rapak-legal {
	gap: 80px;
	align-items: flex-start;
}
.rapak-legal .rapak-sticky {
	top: 40px;
}
.rapak-legal .rapak-sticky .is-style-eyebrow {
	margin-bottom: 22px;
}
.rapak-legal-text > * {
	margin-top: 0;
	margin-bottom: 20px;
}
.rapak-legal-text h2 {
	margin: 56px 0 18px;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
	color: var(--wp--preset--color--contrast);
	scroll-margin-top: 40px;
}
.rapak-legal-text > .rapak-card {
	margin-bottom: 64px;
	padding: 36px 40px;
}
.rapak-legal-text > .rapak-card h2 {
	margin: 0 0 14px;
}
.rapak-legal-text p {
	opacity: .85;
}
.rapak-legal-text h3 {
	margin: 36px 0 14px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
	color: var(--wp--preset--color--contrast);
}
.rapak-legal-text .wp-block-list {
	padding-left: 1.4em;
	opacity: .85;
}
.rapak-legal-text .wp-block-list li + li {
	margin-top: 8px;
}
.rapak-legal-text .wp-block-list .wp-block-list {
	margin-top: 8px;
	opacity: 1;
}
.rapak-legal-table {
	overflow-x: auto;
	margin: 8px 0 32px;
}
.rapak-legal-table table {
	min-width: 600px;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}
.rapak-legal-table th,
.rapak-legal-table td {
	padding: 12px 14px;
	border: 1px solid rgba(217, 160, 91, .4);
	text-align: left;
	vertical-align: top;
}
.rapak-legal-table tr > :first-child {
	width: 1%;
	white-space: nowrap;
}
.rapak-legal-table thead th {
	background: var(--wp--preset--color--base-2);
	border-bottom: 1px solid rgba(217, 160, 91, .4);
}

/* Short line under the H1 in column heroes (the column reset above removes its top margin) */
.rapak-contact .wp-block-separator.is-style-short,
.rapak-hero-split .wp-block-separator.is-style-short {
	margin: 30px 0 34px;
}

/* Kontakt */
.rapak-contact {
	padding-top: 28px;
	padding-bottom: 130px;
}
.rapak-contact-cols {
	gap: 64px;
	margin-top: 56px;
	align-items: flex-start;
}
.rapak-contact-cols > .wp-block-column > * {
	margin-top: 0;
}
.rapak-contact h1 {
	margin-bottom: 0;
}
.rapak-contact .rapak-lead {
	margin: 0 0 18px;
}
.rapak-contact .rapak-lead + .rapak-contact-item {
	margin-top: 48px;
}
.rapak-contact-item {
	max-width: 500px;
	margin-bottom: 14px;
	padding: 20px 22px;
	gap: 18px;
	border-radius: 12px;
	background: var(--wp--preset--color--base);
}
.rapak-contact-item p {
	margin: 0;
}
.rapak-contact-item .is-style-eyebrow {
	margin-bottom: 10px;
}
.rapak-contact-icon {
	display: flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	border: 1px solid rgba(217, 160, 91, .5);
	border-radius: 999px;
}
.rapak-contact-icon img {
	width: 22px;
	height: 22px;
	border-radius: 0;
}
.rapak-contact-value {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
}
.rapak-contact-value a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.rapak-contact .rapak-meta {
	margin-top: 28px;
	font-size: var(--wp--preset--font-size--small);
}
.rapak-booking > * {
	margin-top: 0;
}
.rapak-booking .is-style-handwriting {
	margin: 0 0 26px;
	text-align: left;
}
.rapak-booking-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 32px;
	border: 1px dashed rgba(0, 63, 152, .25);
	border-radius: 10px;
	background: rgba(0, 63, 152, .03);
	text-align: center;
	opacity: .7;
}
/* Bookero booking form: brand colours instead of Bookero's default blue (its own CSS needs !important) */
#bookero-plugin {
	font-family: var(--wp--preset--font-family--body);
}
#bookero-plugin .bookero-plugin-header {
	background: var(--wp--preset--color--primary) !important;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--heading) !important;
	font-weight: 400 !important;
}
#bookero-plugin .calendar-days-list-cell.is-open.is-valid {
	background: rgba(0, 63, 152, .06) !important;
	border-color: rgba(0, 63, 152, .06) !important;
	color: var(--wp--preset--color--primary) !important;
}
#bookero-plugin .calendar-days-list-cell.is-open.is-valid:hover,
#bookero-plugin .calendar-days-list-cell.is-selected,
#bookero-plugin .hours-list-item.is-selected,
#bookero-plugin .hours-list-item:hover {
	background: var(--wp--preset--color--accent) !important;
	border-color: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--contrast) !important;
}
#bookero-plugin button[type="submit"],
#bookero-plugin input[type="submit"],
#bookero-plugin .bookero-plugin-form-submit,
#bookero-plugin .submit-button {
	background: linear-gradient(180deg, #E6B77C 0%, #D9A05B 100%) !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: var(--wp--preset--color--contrast) !important;
	font-weight: 700 !important;
}

/* Cookie banner (CookieYes legacy): brand look; the plugin writes inline colours, hence !important */
#cookie-law-info-bar {
	padding: 18px clamp(20px, 4vw, 48px) !important;
	border: 0 !important;
	border-top: 1px solid var(--rapak-line) !important;
	background: var(--wp--preset--color--base) !important;
	box-shadow: 0 -10px 30px rgba(37, 36, 34, .06) !important;
	color: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	line-height: 1.6 !important;
}
#cookie-law-info-bar span {
	color: var(--wp--preset--color--contrast) !important;
}
#cookie-law-info-bar .cli-plugin-main-link,
#cookie-law-info-bar .cli_settings_button {
	margin: 0 6px !important;
	color: var(--wp--preset--color--primary) !important;
	text-decoration: underline !important;
}
#cookie-law-info-bar .cli-plugin-button,
#cookie-law-info-bar #cookie_action_close_header {
	margin: 6px !important;
	padding: 12px 22px !important;
	border-radius: 8px !important;
	background: linear-gradient(180deg, #E6B77C 0%, #D9A05B 100%) !important;
	color: var(--wp--preset--color--contrast) !important;
	font-weight: 700 !important;
	letter-spacing: .02em;
}

#cliSettingsPopup .cli-modal-content {
	border-radius: 12px;
	font-family: var(--wp--preset--font-family--body);
}
#cliSettingsPopup h4 {
	font-family: var(--wp--preset--font-family--heading);
	color: var(--wp--preset--color--primary);
}
#cliSettingsPopup .cli-btn,
#cliSettingsPopup .wt-cli-privacy-accept-btn {
	border-radius: 8px !important;
	background: linear-gradient(180deg, #E6B77C 0%, #D9A05B 100%) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.rapak-booking-info {
	gap: 20px;
	margin-top: 30px;
}
.rapak-booking-info > .wp-block-column {
	padding-top: 18px;
	border-top: 1px solid var(--wp--preset--color--accent);
}
.rapak-booking-info p {
	margin: 0;
}
.rapak-booking-info .is-style-eyebrow {
	margin-bottom: 12px;
}
.rapak-small {
	margin-top: 28px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
	opacity: .8;
}
.rapak-small strong {
	color: var(--wp--preset--color--primary);
}

/* =========================================================
   Building blocks used on the service pages
   ========================================================= */

/* Hero extras */
.rapak-page-hero .rapak-hero-subtitle {
	margin: 0 0 18px;
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--contrast);
}
.rapak-page-hero .rapak-lead + .rapak-lead {
	margin-top: -16px;
}
.rapak-page-hero .is-style-pills {
	margin-bottom: 8px;
}
.rapak-hero-note {
	margin: 18px 0 0 !important;
}

/* Two-column text layouts */
.rapak-split {
	gap: 80px;
}
.rapak-split > .wp-block-column > * {
	margin-top: 0;
	margin-bottom: 20px;
}
.rapak-split > .wp-block-column > :last-child {
	margin-bottom: 0;
}
.rapak-split h2 {
	margin-bottom: 26px;
}
.rapak-split .wp-block-separator.is-style-short {
	margin: 0 0 30px;
}
.rapak-split > .wp-block-column > p:not([class*="is-style"]):not(.rapak-meta):not(.rapak-question) {
	opacity: .85;
}
.rapak-split-hw .is-style-handwriting,
.rapak-split .is-style-handwriting {
	margin: 0 0 24px;
	text-align: left;
}
.rapak-split-title {
	margin-bottom: 56px;
}
.rapak-question {
	padding: 16px 0;
	border-top: 1px solid rgba(217, 160, 91, .5);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.4;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0 !important;
}
.rapak-big-quote {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.6;
	opacity: 1 !important;
}
.rapak-narrow {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.rapak-narrow h2 {
	margin-bottom: 26px;
}

/* "Czy odnajdujesz…" built by the page helper: first column right-aligned */
.rapak-for-you > .wp-block-column:first-child {
	justify-items: end;
	text-align: right;
}
.rapak-for-you > .wp-block-column:first-child .rapak-dash-item::before {
	margin-left: auto;
}

/* "O mnie"-style section where the text column has no class */
.rapak-about-cols > .wp-block-column:last-child {
	padding-bottom: 130px;
}
.rapak-about-cols > .wp-block-column:last-child > * {
	margin-top: 0;
	margin-bottom: 20px;
}
.rapak-about-cols > .wp-block-column:last-child > h2 {
	margin-bottom: 26px;
}
.rapak-about-cols > .wp-block-column:last-child > .is-style-short {
	margin: 0 0 30px;
}
.rapak-about-cols .is-style-handwriting {
	margin: 0 0 24px;
	text-align: left;
}

/* Cards with longer content */
.rapak-card-shadow > p:not(:last-child),
.rapak-card-outline > p:not(:last-child),
.rapak-card-shadow > .wp-block-list,
.rapak-card-outline > .wp-block-list {
	margin-bottom: 16px;
}
.rapak-card-shadow > .is-style-eyebrow + h3,
.rapak-card-outline > .is-style-eyebrow + h3,
.rapak-card-shadow > .is-style-eyebrow + h2,
.rapak-card-outline > .is-style-eyebrow + h2 {
	margin-top: 0;
}
.rapak-card-outline > h3,
.rapak-card-outline > h2 {
	margin-bottom: 14px;
}
.rapak-card-outline > .is-style-eyebrow,
.rapak-card-shadow > .is-style-eyebrow {
	margin-bottom: 18px;
}
.rapak-card-shadow > .wp-block-buttons,
.rapak-card-outline > .wp-block-buttons {
	margin-top: 24px;
}
.rapak-card-sub {
	opacity: .7 !important;
}
.rapak-cards-row2 {
	margin-top: 30px;
}
.rapak-text-card {
	padding: 48px 44px;
}
.rapak-text-card h2 {
	margin-bottom: 22px;
}
.rapak-note-card {
	margin-top: 40px;
	padding: 36px 40px;
}
.rapak-note-card > * {
	margin-top: 0;
	margin-bottom: 14px;
}
.rapak-note-card > :last-child {
	margin-bottom: 0;
}
.rapak-split .rapak-note-card,
.rapak-way .rapak-note-card {
	margin-top: 0;
}
.rapak-quote-row .wp-block-quote {
	height: 100%;
}
.rapak-map-card {
	margin-top: -60px !important;
	position: relative;
	z-index: 1;
}

/* Career stories: headline, quote, name + role */
.rapak-story > p:not(.rapak-story-name):not(.rapak-meta) {
	font-style: italic;
}
.rapak-story-author {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid rgba(37, 36, 34, .08);
}
.rapak-story-author > * {
	margin: 0;
}
.rapak-story {
	display: flex;
	flex-direction: column;
}
.rapak-story-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--primary);
	opacity: 1 !important;
}

/* Prices */
.rapak-price-row {
	align-items: baseline;
	gap: 6px 16px;
	margin-bottom: 18px;
}
.rapak-price-row > * {
	margin: 0 !important;
}
.rapak-price-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}
.rapak-price-options > .rapak-price-option {
	margin: 0 !important; /* flow layout adds a top margin to the 2nd box */
}
.rapak-price-option {
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--wp--preset--color--base-2);
}
.rapak-price-option > * {
	margin: 0 !important;
}
.rapak-price-option .rapak-price {
	font-size: 30px;
}
.rapak-extra {
	margin-top: 30px;
}
.rapak-extra-cols {
	gap: 56px;
}
.rapak-narrow-cards {
	max-width: 840px;
	margin-left: auto;
	margin-right: auto;
}
.rapak-center-meta > .rapak-meta {
	margin-top: 32px;
	text-align: center;
}

/* Section spacing variants */
.rapak-section-tight-bottom {
	padding-bottom: 40px;
}
.rapak-plain-cols {
	gap: 40px;
}
.rapak-plain-cols > .wp-block-column {
	padding-top: 22px;
	border-top: 1px solid var(--wp--preset--color--accent);
}
.rapak-plain-cols h3 {
	margin: 0 0 12px;
}
.rapak-plain-cols p {
	margin: 0;
	opacity: .82;
}

/* Numbered rows: "1." | title + text */
.rapak-num-list {
	display: grid;
	gap: 0;
}
.rapak-num-two-col {
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	column-gap: 64px;
}
.rapak-num-item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 18px;
	padding: 24px 0;
	border-top: 1px solid rgba(217, 160, 91, .6);
}
.rapak-num-item > *,
.rapak-num-item > .wp-block-group > * {
	margin: 0;
}
.rapak-num-item h3,
.rapak-num-item h4 {
	margin-bottom: 8px;
}
.rapak-num-item p:not(.rapak-step-number) {
	opacity: .8;
}

/* Two ways (Odporność): big number | text | aside */
.rapak-way {
	gap: 48px;
	padding: 48px 0;
	border-top: 1px solid rgba(217, 160, 91, .6);
}
.rapak-way > .wp-block-column > * {
	margin-top: 0;
	margin-bottom: 18px;
}
.rapak-way > .wp-block-column > :last-child {
	margin-bottom: 0;
}
.rapak-step-big {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1;
}

/* Lists in several columns / with stars */
ul.wp-block-list.rapak-two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 12px 40px;
}
ul.wp-block-list.rapak-three-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 14px 40px;
}
ul.wp-block-list.rapak-stars > li::before {
	content: "✦";
}

/* Rich accordions (Cennik, Coaching, O mnie) */
.rapak-accordion-rich details > :not(summary) {
	margin: 0 0 16px;
	padding: 0 32px;
	opacity: 1;
}
.rapak-accordion-rich details > :last-child {
	padding-bottom: 30px;
	margin-bottom: 0;
}
.rapak-accordion-rich details > p {
	opacity: .85;
}
.rapak-accordion-rich details > h3 {
	margin-top: 0;
}
.rapak-accordion-rich details > h4 {
	margin-top: 26px;
	margin-bottom: 8px;
}
.rapak-accordion-rich details .wp-block-quote {
	margin: 24px 32px;
	padding: 28px 30px;
}
.rapak-accordion-rich details .rapak-split img {
	border-radius: 12px;
}

/* Doodle image */
.rapak-doodle img {
	max-width: 360px;
	margin: 0 auto;
	border-radius: 0;
}

@media (max-width: 781px) {
	.rapak-split,
	.rapak-extra-cols {
		gap: 32px;
	}
	.rapak-about-cols > .wp-block-column:last-child {
		padding-bottom: 64px;
	}
	.rapak-for-you > .wp-block-column:first-child {
		justify-items: start;
		text-align: left;
	}
	.rapak-for-you > .wp-block-column:first-child .rapak-dash-item::before {
		margin-left: 0;
	}
	.rapak-map-card {
		margin-top: 0 !important;
	}
	.rapak-way {
		gap: 20px;
	}
	.rapak-text-card,
	.rapak-note-card {
		padding: 30px 24px;
	}
	.rapak-accordion-rich details > :not(summary) {
		padding: 0 20px;
	}
}

/* Phone fixes found in the mobile review */
@media (max-width: 781px) {
	/* Breadcrumbs in photo heroes: left, not centred by the flex column */
	.rapak-page-hero > .yoast-breadcrumbs {
		width: 100%;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	/* Testimonial cards: less padding so the text isn't squeezed */
	.wp-block-quote {
		padding: 26px 22px;
	}
	/* Kontakt: the e-mail address must fit the card */
	.rapak-contact-item {
		padding: 16px;
		gap: 14px;
	}
	.rapak-contact-value {
		font-size: var(--wp--preset--font-size--medium);
		overflow-wrap: anywhere;
	}
}

@media (max-width: 781px) {
	.rapak-hero-split,
	.rapak-contact {
		padding-bottom: 64px;
	}
	.rapak-hero-split-cols,
	.rapak-contact-cols {
		margin-top: 32px;
		gap: 40px;
	}
	.rapak-legal {
		gap: 40px;
	}
	.rapak-booking-placeholder {
		min-height: 240px;
	}
}

/* =========================================================
   Smaller screens
   ========================================================= */
@media (max-width: 781px) {
	.rapak-hero {
		padding-bottom: 64px;
	}
	.rapak-section {
		padding-top: 72px;
		padding-bottom: 72px;
	}
	.rapak-hero-cols,
	.rapak-with-sidebar,
	.rapak-with-toc {
		gap: 48px;
	}
	.rapak-blog-sidebar,
	.rapak-sticky {
		position: static;
	}
	.rapak-post-grid .wp-block-post-template,
	.rapak-post-nav {
		grid-template-columns: 1fr !important; /* grid layout sets columns inline */
	}
	.rapak-author-box {
		flex-wrap: wrap !important;
		padding: 32px 24px;
	}
	.wp-block-pullquote p {
		font-size: 36px;
	}

	/* Patterns */
	.rapak-page-hero {
		display: flex;
		flex-direction: column;
		padding-top: 0;
		padding-bottom: 64px;
	}
	.rapak-page-hero .yoast-breadcrumbs {
		order: -1;
		padding-top: 20px;
	}
	.rapak-page-hero > .rapak-page-hero-photo {
		position: relative;
		width: auto;
		height: 340px;
		margin: 0 calc(-1 * var(--wp--style--root--padding-right)) 24px !important;
	}
	.rapak-page-hero-photo img {
		-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
	}
	.rapak-page-hero-sub .rapak-page-hero-inner {
		margin-top: 0;
	}
	.rapak-page-hero-text {
		max-width: none;
	}
	.rapak-help-areas {
		margin-top: -40px !important;
	}
	.rapak-section-title,
	.rapak-section-title.rapak-center {
		margin-bottom: 48px;
	}
	.rapak-for-you-left {
		justify-items: start;
		text-align: left;
	}
	.rapak-for-you-left .rapak-dash-item::before {
		margin-left: 0;
	}
	.rapak-for-you > .wp-block-column {
		gap: 28px;
	}
	.is-style-handwriting {
		margin-top: 48px;
		font-size: 34px;
	}
	.rapak-about {
		padding-top: 64px;
	}
	.rapak-about-photo {
		padding: 0;
	}
	.rapak-about-text {
		padding-bottom: 64px;
	}
	.rapak-testimonials {
		gap: 40px;
	}
	.rapak-cta {
		padding-top: 80px;
		padding-bottom: 80px;
	}
	.rapak-card-shadow,
	.rapak-package {
		padding: 32px 26px;
	}
}

/* Film – „Poznajmy się bliżej” (patterns/video.php) */
.rapak-video {
	padding-top: 150px;
	padding-bottom: 0;
}
.rapak-video-cols {
	justify-content: center;
	gap: 56px 60px;
}
.rapak-video-card {
	position: relative;
	flex: 0 1 440px !important;
	margin: 0 20px;
}
.rapak-video-card::before { /* hand-drawn blue frame lines */
	content: "";
	position: absolute;
	inset: -20px;
	background: url("assets/images/dekor-ramka-video.svg") 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}
.rapak-video-thumb {
	position: relative;
	margin: 0;
}
.rapak-video-thumb a {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(37, 36, 34, .08);
	transition: box-shadow 250ms ease;
}
.rapak-video-thumb a:hover,
.rapak-video-thumb a:focus-visible {
	box-shadow: 0 24px 60px rgba(37, 36, 34, .16);
}
.rapak-video-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 6%;
	border-radius: 0;
}
.rapak-video-thumb a::before { /* soft blue shade at the bottom */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 63, 152, 0) 55%, rgba(0, 63, 152, .28) 100%);
}
.rapak-video-thumb a::after { /* gold play button */
	content: "";
	position: absolute;
	z-index: 2;
	left: 50%;
	top: calc(50% + 70px);
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15a1 1 0 0 0 1.52.85l12-7.5a1 1 0 0 0 0-1.7l-12-7.5A1 1 0 0 0 7 4.5Z' fill='%23252422'/%3E%3C/svg%3E") calc(50% + 3px) 50% / 28px no-repeat,
		linear-gradient(180deg, #E6B77C 0%, #D9A05B 100%);
	box-shadow: 0 14px 36px rgba(37, 36, 34, .3), 0 4px 10px rgba(37, 36, 34, .18);
	transform: translate(-50%, -50%);
	transition: transform 300ms ease;
}
.rapak-video-thumb a:hover::after,
.rapak-video-thumb a:focus-visible::after {
	transform: translate(-50%, -50%) scale(1.12);
}
.rapak-video-time {
	position: absolute;
	z-index: 3;
	right: 22px;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	color: var(--wp--preset--color--base);
	text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
	pointer-events: none;
}
.rapak-video-time::before { /* clock icon */
	content: "";
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFDF9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rapak-video-text {
	flex: 1 1 360px !important;
	max-width: 560px;
}
.rapak-video-text > * {
	margin-top: 0;
	margin-bottom: 20px;
}
.rapak-video-text > h2 {
	margin-bottom: 26px;
}
.rapak-video-text > .is-style-short {
	margin: 0 0 30px;
}
.rapak-video-text > p:not(.is-style-eyebrow) {
	opacity: .82;
}

/* Hero photo (home + subpages): narrower, fades out on both sides (class rapak-hero-v2) */
@media (min-width: 782px) {
	.rapak-hero-v2 > .rapak-page-hero-photo {
		right: clamp(0px, calc(100vw - 1200px), 200px);
		width: auto;
		height: 100%;
		max-width: 74%;
		aspect-ratio: 2400 / 1792;
	}
	.rapak-hero-v2 .rapak-page-hero-photo img {
		object-position: 58% 30%;
		transform: scale(1.15);
		transform-origin: 58% 30%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 45%, #000 82%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .6) 22%, #000 45%, #000 82%, transparent 100%);
	}
}

/* „Dlaczego właśnie ja?”, new photo with the handwritten quote under it (class rapak-about-v2) */
.rapak-about-v2 .rapak-about-photo img {
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, .85) 58%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .25) 85%, rgba(0, 0, 0, .08) 94%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, .85) 58%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .25) 85%, rgba(0, 0, 0, .08) 94%, transparent 100%);
}
.rapak-about-v2 .rapak-about-cols > .wp-block-column:first-child {
	padding-bottom: 130px; /* quote ends level with the experience labels */
}
.rapak-about-v2 .rapak-about-cols > .wp-block-column:first-child .is-style-handwriting {
	position: relative;
	z-index: 1;
	margin: 12px 0 0;
	padding-right: 60px;
	font-size: 36px;
	line-height: 1.3;
	text-align: center;
}
@media (max-width: 781px) {
	.rapak-video {
		padding-top: 80px;
	}
	.rapak-video-card {
		flex-basis: auto !important;
		width: calc(100% - 40px);
		max-width: 440px;
		margin: 20px auto 0;
	}
	.rapak-video-text {
		flex-basis: auto !important;
	}
	.rapak-about-v2 .rapak-about-cols > .wp-block-column:first-child {
		padding-bottom: 0;
	}
	.rapak-about-v2 .rapak-about-cols > .wp-block-column:first-child .is-style-handwriting {
		padding-right: 0;
		font-size: 32px;
	}
}
