/*
Theme Name: CBC – Strefa Projektanta
Theme URI: https://cbcpoland.pl/
Description: Lekki motyw pod Strefę Projektanta CBC. Tokeny (kolory, typografia, kształt przycisków, kreska nad nagłówkiem) odwzorowują identyfikację z cbcpoland.pl. Motyw dostarcza wyłącznie ramę — całą zawartość strefy renderuje wtyczka CBC – Strefa Projektanta.
Author: CBC Poland
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cbc-strefa-theme
*/

/* ============================================================
   Tokeny marki — wartości odczytane z arkusza cbcpoland.pl
   ============================================================ */

:root {
	--cbc-granat: #001b33;        /* kolor główny, nagłówek */
	--cbc-granat-2: #13324e;      /* granat pomocniczy */
	--cbc-stopka: #0d264a;        /* tło stopki */
	--cbc-akcent: #00b6da;        /* akcent marki */
	--cbc-akcent-jasny: #26c1e0;  /* obramowania i hover */
	--cbc-tekst: #2c343b;         /* tekst treści */
	--cbc-tekst-2: #7f8891;       /* tekst drugorzędny */
	--cbc-tekst-3: #98a2aa;       /* opisy, metadane */
	--cbc-linia: #e5e5e5;
	--cbc-tlo: #f2f2f2;           /* tło strony */
	--cbc-tlo-2: #f5f5f5;
	--cbc-czerwien: #e03753;      /* stany błędu */
	--cbc-radius: 4px;
	--cbc-radius-btn: 46px;
	--cbc-font: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============================================================
   Reset i podstawy
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	/* Kolumna z rozciągliwą treścią – bez tego stopka wisiała w połowie ekranu
	   na krótkich stronach, zostawiając pod sobą szary pas. */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--cbc-tlo);
	font-family: var(--cbc-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--cbc-tekst);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--cbc-akcent); }

h1, h2, h3, h4 { font-family: var(--cbc-font); color: var(--cbc-granat); line-height: 1.25; }

.cbc-container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: #fff; color: var(--cbc-granat); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Nagłówek
   ============================================================ */

.cbc-site-header {
	background: var(--cbc-granat);
	position: relative;
	z-index: 30;
}

.cbc-site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 74px;
}

.cbc-site-header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cbc-site-header__logo img { max-height: 42px; width: auto; display: block; }
.cbc-site-header__logo-text { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .02em; }

.cbc-site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.cbc-site-nav a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: uppercase;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
}
.cbc-site-nav a:hover,
.cbc-site-nav .current-menu-item > a { color: #fff; border-bottom-color: var(--cbc-akcent); }

.cbc-site-header__cta {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 40px; padding: 10px 26px;
	background: var(--cbc-akcent); color: #fff; text-decoration: none;
	border-radius: var(--cbc-radius-btn);
	font-size: 12px; font-weight: 700; letter-spacing: .92px; text-transform: uppercase;
	white-space: nowrap;
}
.cbc-site-header__cta:hover { background: var(--cbc-akcent-jasny); color: #fff; }

.cbc-burger-site {
	display: none; background: none; border: 0; cursor: pointer;
	width: 42px; height: 42px; padding: 9px;
}
.cbc-burger-site span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ============================================================
   Pas tytułowy z heksagonami
   ============================================================ */

.cbc-hero {
	position: relative;
	background: var(--cbc-granat) center/cover no-repeat;
	padding: 46px 0 118px;
	color: #fff;
}
.cbc-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0, 27, 51, .55), rgba(0, 27, 51, .92));
}
.cbc-hero > * { position: relative; z-index: 1; }

.cbc-hero__title { margin: 0; color: #fff; font-size: 38px; font-weight: 700; letter-spacing: -.01em; }
.cbc-hero__crumbs { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.cbc-hero__crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.cbc-hero__crumbs a:hover { color: #fff; }
.cbc-hero__crumbs span { margin: 0 6px; opacity: .5; }

/* ============================================================
   Treść
   ============================================================ */

.cbc-main { flex: 1 0 auto; margin-top: -78px; padding-bottom: 72px; position: relative; z-index: 2; }

.cbc-white-box {
	background: #fff;
	border-radius: var(--cbc-radius);
	box-shadow: 0 2px 22px rgba(0, 27, 51, .08);
	padding: 40px 44px 48px;
}

/* Kreska nad nagłówkiem — 55×4 px w kolorze akcentu, jak na cbcpoland.pl */
.cbc-entry h2,
.cbc-entry h3 { position: relative; padding-top: 22px; margin-top: 34px; }
.cbc-entry h2::before,
.cbc-entry h3::before {
	content: ""; position: absolute; top: 0; left: 0;
	width: 55px; height: 4px; background: var(--cbc-akcent);
}
.cbc-entry > *:first-child { margin-top: 0; }

.cbc-entry p { margin: 0 0 16px; color: var(--cbc-tekst); }
.cbc-entry ul li::marker { color: var(--cbc-akcent); }

.cbc-title1 {
	font-size: 12px; font-weight: 700; color: var(--cbc-akcent);
	letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 10px;
}

/* Przyciski w stylu marki */
.cbc-btn-theme,
.cbc-entry .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 14px 37px;
	background: var(--cbc-akcent); color: #fff; border: 0; cursor: pointer;
	border-radius: var(--cbc-radius-btn);
	font-family: var(--cbc-font); font-size: 12px; font-weight: 700;
	letter-spacing: .92px; text-transform: uppercase; text-decoration: none;
}
.cbc-btn-theme:hover { background: var(--cbc-akcent-jasny); color: #fff; }

/* Strona strefy i logowania: pełna szerokość, bez białej ramki */
.cbc-page--pelna .cbc-white-box { padding: 0; background: transparent; box-shadow: none; }

/*
 * Ujemny margines ma sens wyłącznie pod pasem tytułowym — wsuwa białą kartę
 * w granat. Strefa pasa nie ma, więc ten sam margines wciągał menu boczne
 * i pasek wyszukiwania pod nagłówek serwisu.
 */
.cbc-page--pelna .cbc-main { margin-top: 0; padding-top: 26px; }
.cbc-page--goly .cbc-hero,
.cbc-page--goly .cbc-site-header,
.cbc-page--goly .cbc-site-footer { display: none; }
.cbc-page--goly .cbc-main { margin-top: 0; padding: 0; }
.cbc-page--goly .cbc-container { max-width: none; padding: 0; }
/* Bez nagłówka i stopki granatowy ekran ma zająć całe okno, nie kawałek. */
.cbc-page--goly .cbc-login { min-height: 100vh; }

/* ============================================================
   Stopka
   ============================================================ */

.cbc-site-footer {
	flex: none;
	background: var(--cbc-stopka) center/cover no-repeat;
	color: rgba(255, 255, 255, .72);
	padding: 46px 0 28px;
	font-size: 13.5px;
}
.cbc-site-footer__inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-start; }
.cbc-site-footer__brand { max-width: 340px; }
.cbc-site-footer__brand p { margin: 0; line-height: 1.55; }
.cbc-site-footer__brand img { max-height: 40px; margin-bottom: 12px; }
.cbc-site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.cbc-site-footer a:hover { color: var(--cbc-akcent); }
.cbc-site-footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.cbc-site-footer__col strong { display: block; color: #fff; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.cbc-site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.cbc-site-footer__col li { padding: 3px 0; }
.cbc-site-footer__bottom {
	margin-top: 34px; padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
	font-size: 12.5px; color: rgba(255, 255, 255, .5);
}

/* ============================================================
   Responsywność
   ============================================================ */

@media (max-width: 1024px) {
	.cbc-hero { padding: 34px 0 96px; }
	.cbc-hero__title { font-size: 30px; }
	.cbc-white-box { padding: 28px 24px 34px; }
}

@media (max-width: 860px) {
	.cbc-burger-site { display: block; }
	.cbc-site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--cbc-granat-2); padding: 12px 24px 20px;
	}
	.cbc-site-nav.is-open { display: block; }
	.cbc-site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.cbc-site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.cbc-site-header__cta { display: none; }
	.cbc-main { margin-top: -64px; }
}

@media (max-width: 560px) {
	.cbc-container { padding: 0 16px; }
	.cbc-hero__title { font-size: 25px; }
	.cbc-site-footer__cols { gap: 26px; }
}
