/*
Theme Name: Technika Estradowa
Description: Lekki motyw blokowy (Gutenberg) dla firmy Technika Estradowa Andrzej Oczkowski. Strona główna, blog, podstrona Dotacje, wersja na telefon.
Author: Technika Estradowa
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: technika-estradowa
*/

/* ---------- Podstawy ---------- */
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { padding-bottom: 0; }
main.wp-block-group { margin-top: 0; }

/* ---------- Sekcje ---------- */
.te-section { padding-top: 96px !important; padding-bottom: 96px !important; }
.te-section.te-alt { background: var(--wp--preset--color--karta); }
.te-section > * + * { margin-top: 32px; }
.te-eyebrow {
	margin: 0 !important;
	color: var(--wp--preset--color--akcent);
	font-family: var(--wp--preset--font-family--inter) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase;
	line-height: 1.4 !important;
}
.te-eyebrow + * { margin-top: 12px !important; }
.te-lead { color: var(--wp--preset--color--szary); font-size: 1.125rem; max-width: 680px; margin-top: 12px !important; }

/* ---------- Nagłówek ---------- */
.te-header { border-bottom: 1px solid var(--wp--preset--color--linia); padding-top: 12px; padding-bottom: 12px; }
.te-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.te-brand { margin: 0; line-height: 1; }
.te-brand a { text-decoration: none; display: inline-flex; flex-direction: column; gap: 4px; }
.te-brand strong {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600; font-size: 1.75rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.te-brand span { font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wp--preset--color--szary); }
.te-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.te-nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.te-social .wp-social-link { background: transparent !important; border: 1px solid var(--wp--preset--color--linia); border-radius: 4px; }
.te-social .wp-social-link a { padding: 10px !important; color: var(--wp--preset--color--tekst) !important; }
.te-social .wp-social-link:hover { border-color: var(--wp--preset--color--akcent); }
.te-call .wp-block-button__link { padding: 10px 20px !important; font-size: 1rem !important; }

/* ---------- Hero ---------- */
.te-hero { padding-top: 120px !important; padding-bottom: 72px !important; }
.te-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(11,11,15,.35) 0%, rgba(11,11,15,.55) 45%, rgba(11,11,15,.96) 100%) !important; opacity: 1 !important; }
.te-hero h1 { max-width: 900px; line-height: 0.95; }
.te-hero .te-hero-text { font-size: 1.25rem; max-width: 640px; color: var(--wp--preset--color--tekst); }

/* ---------- Przyciski ---------- */
.te-btn-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--wp--preset--color--tekst) !important;
	border: 1px solid var(--wp--preset--color--tekst) !important;
}
.te-btn-outline .wp-block-button__link:hover { border-color: var(--wp--preset--color--akcent) !important; color: var(--wp--preset--color--akcent) !important; }
.te-btn-dark .wp-block-button__link { background: var(--wp--preset--color--tlo) !important; color: var(--wp--preset--color--tekst) !important; }

/* ---------- Liczby ---------- */
.te-stats { padding-bottom: 24px !important; }
.te-stat { border-left: 1px solid var(--wp--preset--color--linia); padding: 24px; }
.te-stat > * { margin: 0 !important; }
.te-stat .te-stat-num {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600; font-size: 2.75rem; line-height: 1; text-transform: uppercase;
}
.te-stat .te-stat-label { color: var(--wp--preset--color--szary); font-size: 0.9375rem; margin-top: 6px !important; }

/* ---------- Karty ---------- */
.te-card {
	background: var(--wp--preset--color--karta);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: 6px;
	overflow: hidden;
	display: flex; flex-direction: column;
}
.te-alt .te-card { background: var(--wp--preset--color--tlo); }
.te-card > * { margin: 0 !important; }
.te-card .wp-block-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.te-card h3 { padding: 24px 24px 0; }
.te-card p { padding: 10px 24px 0; color: var(--wp--preset--color--szary); }
.te-card > :last-child { padding-bottom: 24px; }
.te-card-cta { background: var(--wp--preset--color--akcent); border-color: var(--wp--preset--color--akcent); justify-content: center; padding: 32px; gap: 20px; }
.te-card-cta h3, .te-card-cta p { color: var(--wp--preset--color--tlo) !important; padding: 0 !important; }
.te-card-cta > :last-child { padding-bottom: 0; }

/* ---------- Galeria ---------- */
.te-photo { position: relative; margin: 0 !important; border-radius: 6px; overflow: hidden; }
.te-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.te-photo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
	padding: 32px 16px 14px; text-align: left;
	background: linear-gradient(180deg, rgba(11,11,15,0) 0%, rgba(11,11,15,.9) 100%);
	color: var(--wp--preset--color--tekst); font-size: 0.9375rem; font-weight: 500;
}

/* ---------- Chipsy ---------- */
.te-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.te-chips > p { margin: 0 !important; padding: 10px 16px; border: 1px solid var(--wp--preset--color--linia); border-radius: 999px; font-size: 0.9375rem; }
.te-chips > p.te-more { border: 0; padding-left: 4px; color: var(--wp--preset--color--szary); }
.te-label { color: var(--wp--preset--color--szary); font-size: 0.9375rem !important; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Kroki i lista ---------- */
.te-step { background: var(--wp--preset--color--tlo); border: 1px solid var(--wp--preset--color--linia); border-radius: 6px; padding: 32px; }
.te-step > * { margin: 0 !important; }
.te-step > * + * { margin-top: 12px !important; }
.te-step .te-step-num { font-family: var(--wp--preset--font-family--barlow-condensed); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--wp--preset--color--akcent); }
.te-step p:not(.te-step-num) { color: var(--wp--preset--color--szary); }
.te-check { position: relative; padding-left: 32px; margin: 0 !important; }
.te-check::before {
	content: ""; position: absolute; left: 4px; top: 0.35em; width: 14px; height: 8px;
	border-left: 3px solid var(--wp--preset--color--akcent); border-bottom: 3px solid var(--wp--preset--color--akcent);
	transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.te-faq { max-width: 880px; }
.te-faq .wp-block-details {
	background: var(--wp--preset--color--karta);
	border: 1px solid var(--wp--preset--color--linia);
	border-radius: 6px; padding: 0 24px; margin: 0 0 12px !important;
}
.te-faq summary { cursor: pointer; padding: 22px 0; font-size: 1.125rem; font-weight: 600; }
.te-faq summary::marker { color: var(--wp--preset--color--akcent); }
.te-faq .wp-block-details p { margin: 0; padding: 0 0 22px; color: var(--wp--preset--color--szary); }

/* ---------- Blog ---------- */
.te-posts .wp-block-post { background: var(--wp--preset--color--karta); border: 1px solid var(--wp--preset--color--linia); border-radius: 6px; overflow: hidden; }
.te-posts .wp-block-post > * { margin: 0 !important; padding: 0 24px; }
.te-posts .wp-block-post > :first-child { padding: 0; }
.te-posts .wp-block-post > * + * { padding-top: 12px; }
.te-posts .wp-block-post > :last-child { padding-bottom: 24px; }
.te-posts .wp-block-post-title { font-family: var(--wp--preset--font-family--inter); text-transform: none; font-size: 1.25rem; line-height: 1.35; letter-spacing: 0; }
.te-posts .wp-block-post-title a { text-decoration: none; }
.te-posts .wp-block-post-excerpt { color: var(--wp--preset--color--szary); }
.te-posts .wp-block-post-date { color: var(--wp--preset--color--szary); font-size: 0.875rem; }
.te-single .wp-block-post-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.te-single .wp-block-post-content h2 { font-size: 2.25rem; }

/* ---------- Kontakt ---------- */
.te-contact { display: flex; flex-wrap: wrap; gap: 48px; }
.te-contact > * { margin: 0 !important; }
.te-contact-info { flex: 1 1 340px; }
.te-contact-info > * + * { margin-top: 16px !important; }
.te-contact-info .te-big-call .wp-block-button__link { font-size: 1.25rem !important; padding: 18px 28px !important; }
.te-form { flex: 1 1 460px; background: var(--wp--preset--color--karta); border: 1px solid var(--wp--preset--color--linia); border-radius: 6px; padding: 32px; }
.te-form label { display: block; font-weight: 500; font-size: 0.9375rem; }
.te-form input[type="text"], .te-form input[type="email"], .te-form input[type="tel"], .te-form textarea, .te-form select {
	width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 8px; padding: 10px 14px;
	background: var(--wp--preset--color--tlo); color: var(--wp--preset--color--tekst);
	border: 1px solid var(--wp--preset--color--linia); border-radius: 4px; font: inherit;
}
.te-form input:focus, .te-form textarea:focus, .te-form select:focus { outline: 2px solid var(--wp--preset--color--akcent); outline-offset: 1px; }
.te-form input[type="submit"], .te-form button[type="submit"] {
	min-height: 52px; padding: 0 28px; border: 0; border-radius: 4px; cursor: pointer;
	background: var(--wp--preset--color--akcent); color: var(--wp--preset--color--tlo); font: inherit; font-weight: 700;
}

/* ---------- Dotacje ---------- */
.te-eu { background: #FFFFFF; padding: 16px 24px !important; }
.te-eu .wp-block-image { margin: 0 auto !important; max-width: 980px; }
.te-eu img { display: block; width: 100%; height: auto; }
.te-project { background: var(--wp--preset--color--karta); border: 1px solid var(--wp--preset--color--linia); border-radius: 6px; padding: 40px !important; }
.te-project > * { margin: 0 !important; }
.te-project > * + * { margin-top: 16px !important; }
.te-project .te-field { border-top: 1px solid var(--wp--preset--color--linia); padding-top: 20px; }
.te-project .te-field > * { margin: 0 !important; }
.te-project .te-field h3 { font-family: var(--wp--preset--font-family--inter); font-size: 0.875rem; letter-spacing: 0.1em; color: var(--wp--preset--color--szary); }
.te-project .te-field p { margin-top: 6px !important; }
.te-badge { display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--wp--preset--color--akcent); color: var(--wp--preset--color--tlo); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.te-badge-outline { background: transparent; border: 1px solid var(--wp--preset--color--linia); color: var(--wp--preset--color--szary); font-weight: 500; letter-spacing: 0; text-transform: none; }
.te-past { padding: 28px; }
.te-past > * { margin: 0 !important; }
.te-past > * + * { margin-top: 10px !important; }
.te-past .te-past-year { color: var(--wp--preset--color--akcent); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.te-past p { color: var(--wp--preset--color--szary); padding: 0 !important; }
.te-past h3 { padding: 0 !important; }

/* ---------- Stopka ---------- */
.te-footer { border-top: 1px solid var(--wp--preset--color--linia); padding-top: 48px !important; padding-bottom: 48px !important; }
.te-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.te-footer-inner > * { margin: 0 !important; }
.te-footer .te-copy { color: var(--wp--preset--color--szary); font-size: 0.875rem; }
.te-footer-nav a { color: var(--wp--preset--color--szary); text-decoration: none; font-size: 0.9375rem; }

/* ---------- Pasek "Zadzwoń" na telefonie ---------- */
.te-mobilebar { display: none !important; }
@media (max-width: 781px) {
	.te-mobilebar {
		display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
		gap: 8px; padding: 10px 12px; margin: 0 !important;
		background: rgba(11,11,15,.96); border-top: 1px solid var(--wp--preset--color--linia);
	}
	.te-mobilebar .wp-block-button { flex: 1 1 0; margin: 0; }
	.te-mobilebar .wp-block-button__link { width: 100%; padding: 12px 8px !important; text-align: center; }
	body { padding-bottom: 72px; }
	.te-section { padding-top: 64px !important; padding-bottom: 64px !important; }
	.te-hero { padding-top: 96px !important; }
	.te-header-right .te-call { display: none; }
}

/* ---------- Telefon: ciemne menu, hamburger po prawej, ikony w linii ---------- */
.wp-block-navigation__responsive-container.is-menu-open,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	background-color: var(--wp--preset--color--tlo, #0B0B0F) !important;
	color: var(--wp--preset--color--tekst, #F2F2F5) !important;
}
.wp-block-navigation__responsive-container.is-menu-open a,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container-close,
.wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--tekst, #F2F2F5) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.5rem; font-weight: 600; padding: 10px 0; }
.te-social { flex-wrap: nowrap !important; }
@media (max-width: 781px) {
	.te-header-inner { flex-wrap: nowrap; gap: 8px; }
	.te-brand { min-width: 0; }
	.te-brand strong { font-size: 1.25rem; }
	.te-brand span { font-size: 0.6875rem; letter-spacing: 0.14em; }
	.te-header-right { flex-wrap: nowrap; gap: 10px; flex-shrink: 0; }
	.te-header-right .te-social { order: 1; gap: 6px; margin: 0; }
	.te-header-right .te-nav { order: 2; margin: 0; }
	.te-social .wp-social-link a { padding: 8px !important; }
}
