/*
Theme Name: FreeBoo – Kadence
Description: Motyw potomny Kadence odtwarzający wygląd dawnego motywu Qualeb strony freeboo.pl (ciemny układ, różowy pasek, pomarańczowe akcenty). Zgodny z danymi Qualeb: portfolio, widżety, szablony stron.
Author: FreeBoo
Template: kadence
Version: 2.1.0
Requires PHP: 7.4
Text Domain: freeboo-kadence
*/

/* Wartości z css/dark.css i style.css Qualeb. */
html:root {
	--fb-bg: #202020;
	--fb-panel: #1c1c1c;
	--fb-line: #292929;
	--fb-text: #888;
	--fb-text-light: #999;
	--fb-head: #ddd;
	--fb-accent: #fc4c01;
	--fb-pink: #fa4c68;
	--fb-width: 1200px;

	--global-palette1: #fc4c01; --global-palette2: #ff6a26;
	--global-palette3: #dddddd; --global-palette4: #cccccc; --global-palette5: #999999; --global-palette6: #888888;
	--global-palette7: #292929; --global-palette8: #1c1c1c; --global-palette9: #202020;
	--global-palette9rgb: 32, 32, 32;
	--global-content-width: var(--fb-width);
	--global-content-edge-padding: 0px;
}

html, body { background: var(--fb-bg); }
body {
	color: var(--fb-text);
	font: normal 11px/20px Verdana, Geneva, sans-serif;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: Arial, Helvetica, sans-serif; font-weight: normal; color: var(--fb-head); }
.entry-content h1 { font-size: 24px; } .entry-content h2 { font-size: 20px; }
/* podstrony z treścią (np. kalendarze): H3 mniejsze od H2, odstęp przed sekcją */
.entry-content h2.wp-block-heading:not(.fb-sekcja):not(.fb-filar-tytul) { margin-top: 30px; line-height: 28px; }
.entry-content h3 { font: bold 14px/22px Verdana, Geneva, sans-serif; color: #ccc; margin: 20px 0 0; padding-bottom: 8px; }
.entry-content ol, .entry-content ul { margin: 0 0 20px 20px; }
.entry-content li { margin-bottom: 6px; }
.fb-lead { font-size: 13px; line-height: 22px; color: var(--fb-text-light); }
.fb-fakty { gap: 16px; margin: 0 0 10px; }
.fb-fakty .wp-block-column { background: var(--fb-panel); border-top: 2px solid var(--fb-accent); padding: 14px 16px; }
.fb-fakty p { margin: 0; }
.fb-fakty strong { display: block; margin-bottom: 4px; color: var(--fb-head); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
a { color: var(--fb-accent); text-decoration: none; }
a:hover, a:focus { color: var(--fb-head); }
:focus-visible { outline: 2px solid var(--fb-accent); outline-offset: 2px; }
hr { height: 1px; border: 0; background: var(--fb-line); margin: 0 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.content-bg, body.content-style-unboxed .site, .site { background: var(--fb-bg); }
.entry-content-wrap { padding: 0; }
.site-container, .fb-header-inner, .fb-footer-inner {
	/* jak #page w Qualeb: 1200 px, na węższych ekranach 90% */
	width: min(var(--fb-width), 90%);
	max-width: none;
	margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
}
#masthead.fb-header, .site-header.fb-header { background: var(--fb-bg); }

/* ===== Nagłówek — układ Qualeb w wersji kompaktowej (logo | menu + opis strony) ===== */
.fb-header-inner {
	display: grid;
	grid-template-columns: 285px 1fr;
	column-gap: 40px;
	align-items: start;
	border-top: 4px solid var(--fb-pink);
}
.fb-logo { padding-top: 12px; }
.fb-logo img { display: block; width: 263px; max-width: 100%; height: auto; margin: 0; }
.fb-nav { position: relative; border-bottom: 1px dashed #444; padding-bottom: 12px; }
.fb-menu, .fb-menu ul { list-style: none; margin: 0; padding: 0; }
.fb-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; padding-top: 20px; }
.fb-menu > li { position: relative; padding: 0 0 0 22px; }
.fb-menu a { display: block; color: #aaa; font-size: 12px; line-height: 20px; letter-spacing: .5px; text-transform: uppercase; } /* wariant C: logo 263 px (pełny rozmiar pliku), menu wersalikami */
/* Qualeb (color.php bez ustawionego koloru): bieżąca pozycja jak reszta, najechanie jaśniej */
.fb-menu a:hover, .fb-menu a:focus { color: var(--fb-head); }
/* podmenu (jak superfish w Qualeb) */
.fb-menu ul {
	position: absolute; left: 0; top: 100%; z-index: 99; width: 180px; padding: 10px 0; margin-top: 10px;
	background: var(--fb-line); border-radius: 2px; box-shadow: 0 0 5px rgba(0, 0, 0, .1);
	visibility: hidden; opacity: 0; transition: opacity .2s;
}
.fb-menu ul ul { left: 180px; top: 0; margin-top: -10px; }
.fb-menu li:hover > ul, .fb-menu li:focus-within > ul { visibility: visible; opacity: 1; }
.fb-menu ul li { padding: 0 15px; }
.fb-menu ul li:hover { background: #232323; }
.fb-menu ul a { line-height: 40px; color: var(--fb-text-light); }
.fb-nav-toggle { display: none; }

.fb-header-description, .fb-home-desc, .fb-crumbs { padding: 14px 0 22px; letter-spacing: 1px; font-size: 11px; }
.fb-home-desc { letter-spacing: normal; }
.fb-header-description .page-title {
	display: inline; margin: 0; padding: 0; font: bold 12px/20px Verdana, Geneva, sans-serif;
	text-transform: uppercase; letter-spacing: 1px; color: var(--fb-head);
}
.fb-header-description .header-desc { padding-left: 10px; color: var(--fb-text-light); }
.fb-home-slogan { margin: 0; font: bold 2.3em/1em "Open Sans", Arial, sans-serif; color: var(--fb-head); }
.fb-main-description { margin: 0; font: italic 14px/20px Georgia, "Droid Serif", serif; color: var(--fb-text-light); }
.fb-main-description b, .fb-main-description strong { font-weight: bold; }
.fb-crumbs a { text-transform: uppercase; color: var(--fb-text); }
.fb-crumbs .current { font-weight: bold; text-transform: uppercase; color: #fff; }

/* ===== Treść i boczna kolumna ===== */
.content-area { margin: 0; }
.content-wrap > .entry, .fb-blog-list, .fb-filter, .fb-psingle { border-top: 1px solid var(--fb-line); }
.content-wrap > .entry { padding-top: 30px; box-shadow: none; border-radius: 0; background: transparent; }
.single-content, .entry-content { margin: 0; }
.entry-content p { margin: 0 0 20px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { padding-bottom: 20px; margin: 0; }
.home .content-wrap > .entry { border-top: 0; padding-top: 0; }

@media (min-width: 960px) {
	.has-sidebar .content-container.site-container,
	.has-sidebar:not(.has-left-sidebar) .content-container.site-container {
		display: grid;
		grid-template-columns: 68.085% 27.66%;
		column-gap: 4.255%;
	}
	.has-sidebar #secondary { grid-column: 2; grid-row: 1; }
}
#secondary.primary-sidebar { background: var(--fb-panel); padding: 20px 0; align-self: start; margin: 0; min-width: 0; }
#secondary .sidebar-inner-wrap { padding: 0; }
#secondary .widget { margin: 0 0 40px; padding: 0 7.692%; line-height: 20px; font-size: 11px; }
#secondary .widget:last-child { margin-bottom: 20px; }
#secondary .widget-title { margin: 5px 0 15px; padding: 0; font: bold 12px/20px Verdana, Geneva, sans-serif; color: var(--fb-text-light); text-transform: none; letter-spacing: 0; }
#secondary ul { list-style: none; margin: 0; padding: 0; }
#secondary li { margin: 0; padding: 0; border: 0; }
#secondary .widget a { color: #666; font-size: 11px; }
#secondary .widget a:hover { color: var(--fb-accent); }
#secondary .widget_search form { display: flex; gap: 6px; }
#secondary .widget_search label { flex: 1; min-width: 0; margin: 0; }
#secondary .widget_search .search-field { width: 100%; }
#secondary .widget_search .search-submit { flex: 0 0 auto; width: auto; font: 11px/30px Verdana, Geneva, sans-serif; }
#secondary .widget_search input[type="search"], #secondary .widget_search .search-field {
	flex: 1; height: 32px; min-width: 0; padding: 0 10px; font-size: 11px;
	background: var(--fb-panel); border: 1px solid #333; color: var(--fb-text-light); border-radius: 0;
}
#secondary .widget_search .search-submit, #secondary .widget_search button {
	height: 32px; padding: 0 10px; background: #222; border: 1px solid #333; color: var(--fb-text-light); border-radius: 0; box-shadow: none;
}
#secondary .widget_search .kadence-search-icon-wrap { display: none; }

/* widżet „Realizacje” */
.fb-pwidget-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fb-pwidget-list::-webkit-scrollbar { display: none; }
.fb-pwidget-list li { flex: 0 0 100%; scroll-snap-align: start; }
.fb-pwidget-list img { display: block; width: 100%; height: auto; }

/* ===== Portfolio ===== */
.fb-filter { padding: 19px 0 0 1.064%; margin-bottom: 30px; }
.fb-filter-btn {
	padding: 0; margin: 0 6px 0 0; background: none; border: 0; box-shadow: none; border-radius: 0;
	font: 11px/20px Verdana, Geneva, sans-serif; color: var(--fb-text-light); cursor: pointer; text-transform: capitalize;
}
.fb-filter-btn:not(:last-child)::after { content: " /"; margin-left: 6px; font-size: 8px; color: #555; }
.fb-filter-btn:hover, .fb-filter-btn.is-current { color: var(--fb-accent); background: none; }
.fb-portfolio-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 220px); gap: 20px 25px; }
.fb-portfolio-item[hidden] { display: none; }
.fb-portfolio-link { position: relative; display: block; overflow: hidden; }
.fb-portfolio-link img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 273; object-fit: cover; }
.fb-portfolio-hover {
	position: absolute; inset: 0; padding: 20px; text-align: center; opacity: 0; transition: opacity .2s ease-in-out;
	background: url("img/portfolio-hover-bg.png") rgba(0, 0, 0, .75);
}
.fb-portfolio-hover::after { content: url("img/portfolio-hover-arr.png"); position: absolute; right: 20px; bottom: 20px; }
.fb-portfolio-link:hover .fb-portfolio-hover, .fb-portfolio-link:focus .fb-portfolio-hover { opacity: 1; }
.fb-portfolio-title { display: block; font-weight: bold; font-size: 11px; color: var(--fb-head); }
.fb-portfolio-excerpt { display: block; color: #aaa; }

.fb-psingle { display: grid; grid-template-columns: 68.085% 27.66%; column-gap: 4.255%; border-top: 0; }
.fb-psingle-content img { display: block; max-width: 100%; height: auto; margin: 0 0 20px; }
.fb-psingle-content p { margin: 0; }
.fb-psingle-side { background: var(--fb-panel); align-self: start; }
.fb-psingle-nav { height: 25px; padding-top: 5px; margin-bottom: 50px; text-align: center; background: #2d2d2d; border-top: 1px solid #444; border-bottom: 1px solid #444; }
.fb-psingle-nav a { color: #bbb; }
.fb-psingle-nav a:hover { color: #ccc; }
.fb-psingle-nav span { margin: 0 10px; color: #666; }
.fb-psingle-nav .prevp::before { content: url("img/portfolio-nav-left-arr.png"); margin-right: 6px; }
.fb-psingle-nav .nextp::after { content: url("img/portfolio-nav-right-arr.png"); margin-left: 6px; }
.fb-psingle-text { padding: 0 20px 40px; }
.fb-psingle-title { margin: 0; padding-bottom: 20px; font: bold 12px/20px Verdana, Geneva, sans-serif; text-transform: uppercase; color: var(--fb-head); }

/* ===== Blog (Qualeb: data po lewej, tytuł kursywą) ===== */
.fb-post { border-bottom: 1px solid var(--fb-line); }
.fb-blog-single .fb-post { border-top: 1px solid var(--fb-line); }
.fb-post-details > summary { list-style: none; cursor: pointer; }
.fb-post-details > summary::-webkit-details-marker { display: none; }
.fb-post-head, .fb-post-body { display: grid; grid-template-columns: 18.75% 75%; column-gap: 6.25%; align-items: baseline; }
.fb-post-left { text-align: right; font-size: 11px; color: #666; }
.fb-post-head .fb-post-left { text-transform: uppercase; }
.fb-post-left a { color: #666; }
.fb-post-title { margin: 0; padding: 20px 0; font: italic 22px/40px Georgia, "Droid Serif", serif; color: #aaa; }
.fb-post-details > summary:hover .fb-post-title, .fb-post-details[open] .fb-post-title { color: #fff; }
.fb-post-body { padding-bottom: 60px; }
.fb-post-details:not([open]) .fb-post-body { display: none; }
.fb-post-content a.more-link, .fb-post-permalink a { color: var(--fb-accent); }
.fb-blog-nav { display: flex; justify-content: space-between; padding: 20px 0; }

/* ===== Strona główna (bloki w treści) ===== */
.fb-slider { max-width: 940px; margin: 0 auto 40px !important; }
.fb-slider .kb-gallery-image-contain { padding-bottom: 0 !important; height: auto !important; }
.fb-slider .kb-gallery-image-contain img { position: static !important; width: 100% !important; height: auto !important; object-fit: initial !important; }
.fb-slider .splide__pagination { bottom: -24px; }
.fb-filary { border-top: 1px solid var(--fb-line); padding-top: 40px; margin: 0 0 40px; gap: 4%; }
.fb-filary .wp-block-column { font-size: 11px; }
.fb-filar-tytul { margin: 0 0 4px !important; padding: 0 !important; font: bold 11px/20px Verdana, Geneva, sans-serif !important; text-transform: uppercase; color: var(--fb-text-light) !important; }
.fb-nr {
	float: left; width: 36px; height: 36px; margin: 4px 8px 0 0; text-align: center;
	font: 24px/36px Arial, sans-serif; color: #fff; background: url("img/dropcap.png") no-repeat;
}
.fb-dol { gap: 4.255%; margin: 0; }
.fb-realizacje .wp-block-post-template { gap: 14px 3.448%; }
.fb-realizacje .wp-block-post-featured-image { margin: 0; position: relative; }
.fb-realizacje .wp-block-post-featured-image img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.fb-realizacje .wp-block-post-featured-image a:hover img { opacity: .8; }
.fb-realizacje .wp-block-post-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fb-sekcja { margin: 0 0 20px !important; padding: 0 0 5px !important; border-bottom: 1px solid var(--fb-line); font: bold 12px/20px Verdana, Geneva, sans-serif !important; letter-spacing: 1px; text-transform: uppercase; color: #fff !important; }
.fb-boczna { font-size: 11px; }
.fb-boczna p { margin: 0 0 20px; }
.fb-boczna .fb-sekcja:not(:first-child) { margin-top: 35px !important; }
.fb-nowosci .wp-block-post-template { margin: 0; padding: 0; }
.fb-nowosci .wp-block-post-title { margin: 0; padding: 0; font: 12px/20px Arial, sans-serif; }
.fb-nowosci .wp-block-post-title a { color: #fff; }
.fb-nowosci .wp-block-post-title a:hover { color: var(--fb-accent); }
.fb-nowosci .wp-block-post-date { font-size: 11px; text-transform: uppercase; color: var(--fb-text-light); }
.fb-nowosci .wp-block-post-excerpt { margin: 0 0 20px; }
.fb-nowosci .wp-block-post-excerpt p { margin: 0; }
.fb-nowosci .wp-block-post-excerpt__more-link { color: #666; }
.fb-linki a { margin-right: 20px; }
.fb-uwaga { color: var(--fb-text); border-top: 1px solid var(--fb-line); margin: 20px 0 0 !important; padding-top: 20px; }

/* ===== Formularz kontaktowy (Kadence Blocks) ===== */
.kb-advanced-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.kb-advanced-form textarea, .kb-advanced-form select {
	background: var(--fb-panel) !important; border: 1px solid #333 !important; color: #ccc !important; border-radius: 0 !important; font: 12px/20px Verdana, Geneva, sans-serif !important;
}
.kb-advanced-form .kb-adv-form-label, .kb-advanced-form .kb-radio-check-item label { color: var(--fb-text-light); font: 11px/20px Verdana, Geneva, sans-serif; }
.kb-advanced-form .kb-adv-form-required { color: var(--fb-accent); }
.fb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; } /* honeypot — ukryty dla ludzi */
.fb-rodo { margin-top: 16px; font-size: 10px; line-height: 16px; color: #666; }
.fb-rodo a { color: #888; text-decoration: underline; }
.kb-advanced-form .kb-adv-form-submit-button, .kb-advanced-form button[type="submit"] {
	background: var(--fb-accent) !important; color: #fff !important; border: 0 !important; border-radius: 2px !important; font: 12px/20px Verdana, Geneva, sans-serif !important; padding: 8px 20px !important;
}
.kb-advanced-form .kb-adv-form-submit-button:hover { background: #ff6a26 !important; }

/* ===== Stopka ===== */
.fb-footer { background: var(--fb-bg); }
.fb-footer-inner { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-top: 40px; }
.fb-footer-inner { border-top: 1px solid var(--fb-line); }
.fb-footer .copyright { margin: 0; padding: 20px 0 60px; color: #666; }
.fb-footer-logo { padding-top: 20px; }
.fb-footer-logo img { display: block; }

/* średnie ekrany (małe laptopy, tablety poziomo): menu wersalikami mieści się w jednym wierszu */
@media (min-width: 960px) and (max-width: 1199px) {
	.fb-header-inner { grid-template-columns: 210px 1fr; column-gap: 30px; }
	.fb-logo img { width: 200px; }
	.fb-menu > li { padding-left: 14px; }
	.fb-menu a { font-size: 11px; letter-spacing: .2px; }
}

/* ===== Mniejsze ekrany (progi z Qualeb: 959 i 767 px) ===== */
@media (max-width: 959px) {
	.fb-header-inner { grid-template-columns: 1fr; }
	.fb-logo { padding: 16px 0 10px; }
	.fb-logo img { margin: 0 auto; }
	.fb-nav { border-bottom: 0; min-height: 0; text-align: center; }
	.fb-nav-toggle {
		display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; margin: 0 auto 10px;
		background: var(--fb-line); color: #ccc; border: 0; border-radius: 2px; font: 12px Verdana, sans-serif; cursor: pointer;
	}
	.fb-nav-toggle-bars, .fb-nav-toggle-bars::before, .fb-nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
	.fb-nav-toggle-bars::before, .fb-nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.fb-nav-toggle-bars::before { top: -5px; } .fb-nav-toggle-bars::after { top: 5px; }
	.fb-menu { display: none; padding: 0; }
	.fb-nav-open .fb-menu { display: block; border-top: 1px solid var(--fb-line); }
	.fb-menu > li, .fb-menu > li:first-child { padding: 0; border-bottom: 1px solid var(--fb-line); }
	.fb-menu a { padding: 10px 0; font-size: 12px; }
	.fb-menu ul { position: static; visibility: visible; opacity: 1; width: auto; margin: 0; padding: 0; background: none; box-shadow: none; }
	.fb-header-description, .fb-home-desc, .fb-crumbs { padding: 10px 0 24px; text-align: center; }
	.fb-main-description { margin: 0 auto; }
	.fb-psingle { grid-template-columns: 1fr; row-gap: 30px; }
	#secondary.primary-sidebar { margin-top: 40px; }
}
@media (max-width: 767px) {
	.fb-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.fb-portfolio-hover { display: none; }
	.fb-post-head, .fb-post-body { grid-template-columns: 1fr; }
	.fb-post-left { text-align: left; }
	.fb-post-head .fb-post-left { padding-top: 20px; }
	.fb-post-title { padding: 0 0 10px; font-size: 20px; line-height: 28px; }
	.fb-post-body { padding-bottom: 40px; }
	.fb-filter { text-align: center; padding-left: 0; }
	.fb-footer-logo { display: none; }
	.fb-footer .copyright { padding-bottom: 40px; }
}
@media (max-width: 479px) {
	.fb-portfolio-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 781px) {
	/* realizacje na głównej: 2 kolumny zamiast jednej ogromnej (bloki WP domyślnie układają siatkę w 1 kolumnie) */
	.fb-realizacje .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
}
