/*
Theme Name: totemyLED
Theme URI: https://totemyled.pl
Author: Media Mine Sp. z o.o.
Description: Motyw strony totemyLED.pl – wynajem totemów LED. Ciemny grafit, bursztynowy akcent, sekcje: oferta, zastosowania, jak to działa, FAQ, formularz zapytania.
Version: 1.0.0
Requires at least: 6.5
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: totemyled
*/

/* ---------- Ogólne ---------- */
html { scroll-behavior: smooth; }
:where(section[id]) { scroll-margin-top: 16px; }
input, select, textarea, button { font: inherit; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin-top: 0; }

/* Mały napis nad nagłówkiem */
.tl-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--bursztyn);
	margin: 0;
}
.tl-light .tl-eyebrow { color: var(--wp--preset--color--bursztyn-ciemny); }

/* ---------- Sekcje ---------- */
/* Sekcje na całą szerokość zachowują boczny margines treści (ważne na telefonie). */
.wp-block-post-content > .tl-hero.alignfull,
.wp-block-post-content > .tl-section.alignfull {
	padding-left: var(--wp--style--root--padding-left) !important;
	padding-right: var(--wp--style--root--padding-right) !important;
}
.tl-section { padding-top: 88px; padding-bottom: 88px; }
.tl-section > * { margin-block-start: 0; }
.tl-section > * + * { margin-block-start: 36px; }
.tl-light { background: var(--wp--preset--color--biel); color: var(--wp--preset--color--grafit); }
.tl-light a:not(.wp-element-button) { color: var(--wp--preset--color--bursztyn-ciemny); }
.tl-mid { background: var(--wp--preset--color--grafit-2); }
.tl-lead { font-size: 18px; color: var(--wp--preset--color--jasny-tekst); max-width: 720px; }
.tl-light .tl-lead { color: var(--wp--preset--color--szary-tekst); }
.tl-intro { max-width: 720px; }
.tl-intro > * { margin: 0; }
.tl-intro > * + * { margin-top: 12px; }

/* ---------- Nagłówek strony ---------- */
.tl-header { padding-top: 22px; padding-bottom: 22px; }
.tl-header-row { gap: 16px 32px; }
.tl-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tl-logo:hover { text-decoration: none; }
.tl-wordmark {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1;
	color: var(--wp--preset--color--biel);
}
.tl-wordmark b { font-weight: 800; color: var(--wp--preset--color--bursztyn); }
.tl-wordmark i { font-style: normal; color: var(--wp--preset--color--stal); }
.tl-nav-wrap { gap: 8px 26px; }
.tl-header .wp-block-navigation { font-size: 16px; gap: 26px; }
.tl-header .wp-block-navigation a { color: var(--wp--preset--color--jasny-tekst); padding: 10px 0; }
.tl-header .wp-block-navigation a:hover { color: var(--wp--preset--color--biel); }
.tl-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--grafit); color: var(--wp--preset--color--biel); padding: 32px 24px;
}
.tl-header .wp-block-navigation__responsive-container.is-menu-open a { font-size: 22px; }
.tl-header .wp-element-button { padding: 12px 20px; font-size: 16px; }

/* ---------- Hero ---------- */
.tl-hero { padding-top: 56px; padding-bottom: 88px; }
.tl-hero-cols { gap: 48px; }
.tl-hero-text > * { margin: 0; }
.tl-hero-text > * + * { margin-top: 24px; }
.tl-hero-text .tl-lead { font-size: 20px; max-width: 560px; }
.tl-hero-img img { width: 100%; height: auto; border-radius: 20px; display: block; }

/* Przycisk obrysowany */
.wp-block-button.is-style-outline > .wp-element-button {
	background: transparent; color: var(--wp--preset--color--biel);
	border: 1px solid #5A5F68; padding: 15px 24px; font-weight: 500;
}
.wp-block-button.is-style-outline > .wp-element-button:hover { border-color: var(--wp--preset--color--biel); background: transparent; }

/* ---------- Karty cennika ---------- */
.tl-cards { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important; }
.tl-card {
	background: var(--wp--preset--color--bialy);
	border: 1px solid #D9DAD5; border-radius: 16px; padding: 32px;
	display: flex; flex-direction: column; gap: 16px;
}
.tl-card > * { margin: 0 !important; }
.tl-card h3 { font-size: 26px; }
.tl-card .tl-card-text { font-size: 16px; color: var(--wp--preset--color--szary-tekst); }
.tl-card .tl-price {
	margin-top: auto !important;
	font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 22px;
}
.tl-card .wp-block-buttons { margin-top: 0; }
.tl-card .wp-block-button, .tl-card .wp-element-button { width: 100%; text-align: center; }
.tl-card .wp-element-button { background: var(--wp--preset--color--grafit); color: var(--wp--preset--color--biel); padding: 14px 18px; }
.tl-card .wp-element-button:hover { background: #2E323A; color: var(--wp--preset--color--biel); }
.tl-card--dark { background: var(--wp--preset--color--grafit); color: var(--wp--preset--color--biel); border-color: var(--wp--preset--color--grafit); }
.tl-card--dark .tl-card-text { color: var(--wp--preset--color--jasny-tekst); }
.tl-card--dark .tl-price { color: var(--wp--preset--color--bursztyn); }
.tl-card--dark .wp-element-button { background: var(--wp--preset--color--bursztyn); color: var(--wp--preset--color--grafit); }
.tl-card--dark .wp-element-button:hover { background: #FFC845; color: var(--wp--preset--color--grafit); }
.tl-badge mark, mark.tl-badge {
	background: var(--wp--preset--color--bursztyn); color: var(--wp--preset--color--grafit);
	font-family: var(--wp--preset--font-family--plex); font-size: 13px; font-weight: 600; letter-spacing: 0;
	padding: 4px 10px; border-radius: 6px; vertical-align: middle; margin-left: 8px; white-space: nowrap; display: inline-block; line-height: 1.3;
}

/* Parametry techniczne */
.tl-specs { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)) !important; gap: 16px; border-top: 1px solid #D9DAD5; padding-top: 28px; }
.tl-specs > .wp-block-group > * { margin: 0; }
.tl-spec-label {
	font-family: var(--wp--preset--font-family--mono); font-size: 13px; letter-spacing: 0.1em;
	text-transform: uppercase; color: #5A5F68;
}
.tl-spec-value { font-size: 18px; font-weight: 600; margin-top: 4px !important; }

/* ---------- Zastosowania ---------- */
.tl-uses { gap: 20px; }
.tl-use > * { margin: 0; }
.tl-use > * + * { margin-top: 12px; }
.tl-use img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; display: block; }
.tl-use h3 { font-size: 21px; font-weight: 700; }
.tl-use p { font-size: 16px; color: var(--wp--preset--color--jasny-tekst); }

/* ---------- Jak to działa ---------- */
.tl-steps { gap: 20px; }
.tl-step > * { margin: 0; }
.tl-step > * + * { margin-top: 10px; }
.tl-step-num { font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 40px; line-height: 1; color: var(--wp--preset--color--bursztyn); }
.tl-step h3 { font-family: var(--wp--preset--font-family--plex); font-weight: 600; font-size: 19px; letter-spacing: 0; }
.tl-step p:last-child { font-size: 16px; color: var(--wp--preset--color--jasny-tekst); }

/* ---------- FAQ ---------- */
.tl-faq { gap: 40px; }
.tl-faq > .wp-block-heading { flex: 1 1 280px; margin: 0; }
.tl-faq-list { flex: 999 1 560px; min-width: 0; }
.tl-faq-list > * { margin: 0 !important; }
.tl-faq-list .wp-block-details { border-top: 1px solid var(--wp--preset--color--linia); padding: 20px 0; }
.tl-faq-list .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--linia); }
.tl-faq-list summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.tl-faq-list details p { margin: 12px 0 0; color: var(--wp--preset--color--jasny-tekst); line-height: 1.6; }

/* ---------- Zapytanie ---------- */
.tl-contact { gap: 48px; }
.tl-contact-text { flex: 1 1 320px; min-width: 0; }
.tl-contact-text > * { margin: 0; }
.tl-contact-text > * + * { margin-top: 16px; }
.tl-contact-data { font-size: 17px; line-height: 1.8; }
.tl-contact-form { flex: 999 1 560px; min-width: 0; }

.tl-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tl-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.tl-form input[type=text], .tl-form input[type=email], .tl-form input[type=number], .tl-form input[type=date], .tl-form select, .tl-form textarea {
	padding: 13px 12px; border: 1px solid var(--wp--preset--color--stal); border-radius: 8px;
	background: var(--wp--preset--color--bialy); color: var(--wp--preset--color--grafit); width: 100%; box-sizing: border-box; min-height: 48px;
}
.tl-form input:focus, .tl-form select:focus, .tl-form textarea:focus { outline: 2px solid var(--wp--preset--color--bursztyn); outline-offset: 1px; border-color: var(--wp--preset--color--grafit); }
.tl-form textarea { resize: vertical; }
.tl-form .tl-full { grid-column: 1 / -1; }
.tl-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.tl-form legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.tl-form .tl-check { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.tl-form .tl-check input { width: 20px; height: 20px; flex: none; accent-color: var(--wp--preset--color--grafit); }
.tl-form .tl-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--wp--preset--color--szary-tekst); }
.tl-form .tl-consent input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--wp--preset--color--grafit); }
.tl-form .tl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tl-form button {
	justify-self: start; background: var(--wp--preset--color--grafit); color: var(--wp--preset--color--biel);
	border: 0; font-weight: 600; font-size: 17px; padding: 16px 28px; border-radius: 8px; cursor: pointer; min-height: 48px;
}
.tl-form button:hover { background: #2E323A; }
.tl-form-msg { grid-column: 1 / -1; padding: 16px 18px; border-radius: 8px; font-weight: 500; margin: 0; }
.tl-form-msg--ok { background: #E6F4EA; color: #14532D; border: 1px solid #A7D7B5; }
.tl-form-msg--err { background: #FDECEC; color: #7F1D1D; border: 1px solid #F3B4B4; }
.tl-req { color: #B42318; }

/* ---------- Stopka ---------- */
.tl-footer { padding-top: 40px; padding-bottom: 40px; color: var(--wp--preset--color--stal); font-size: 15px; }
.tl-footer-row { gap: 16px 40px; }
.tl-footer-row > * { margin: 0; }
.tl-footer .tl-wordmark { font-size: 20px; }
.tl-footer a { color: var(--wp--preset--color--stal); }
.tl-footer a:hover { color: var(--wp--preset--color--biel); }

/* ---------- Podstrony (np. polityka prywatności) ---------- */
.tl-page { padding-top: 56px; padding-bottom: 88px; }
.tl-page .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); }

@media (max-width: 600px) {
	.tl-header .wp-block-buttons { display: none; }
	.tl-header-row { flex-wrap: nowrap !important; }
	.tl-section { padding-top: 64px; padding-bottom: 64px; }
	.tl-hero { padding-top: 32px; padding-bottom: 64px; }
	.tl-card { padding: 24px; }
}
