/*
Theme Name: SMART
Theme URI: https://smart.prz.edu.pl
Author: Politechnika Rzeszowska
Description: Motyw blokowy strony SMART – transfer technologii Politechniki Rzeszowskiej: warsztaty, laboratoria, konsultacje i wsparcie naukowo-techniczne, projekty B+R. Kolorystyka granat + bursztyn, czcionka IBM Plex Sans (wbudowana lokalnie).
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.2.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smart
*/

/* ---------- Podstawy ---------- */
body { margin: 0; -webkit-font-smoothing: antialiased; }
.smart-wrap { box-sizing: border-box; width: 100%; max-width: 1360px; margin-left: auto !important; margin-right: auto !important; padding-left: 40px; padding-right: 40px; }
.smart-section { padding-top: 96px; padding-bottom: 96px; margin: 0 !important; }
.smart-section--tight { padding-top: 64px; padding-bottom: 64px; }
.smart-bg-light { background: #F3F8FC; }
.smart-bg-blue { background: #E8F0F8; }
.smart-dark { background: #0B1F33; color: #FFFFFF; }
.smart-dark h1, .smart-dark h2, .smart-dark h3 { color: #FFFFFF; }
.smart-dark a:not(.wp-element-button) { color: #FFFFFF; }
.smart-muted { color: #4A5A6C; }
.smart-dark .smart-muted, .smart-dark .smart-lead { color: #D3DDE7; }
.smart-lead { font-size: 20px; line-height: 1.6; color: #34455A; max-width: 760px; }
main.smart-main > * + *, .wp-site-blocks > * + * { margin-block-start: 0; }
.smart-main { margin: 0 !important; }

/* Zerowanie odstępów w siatkach budowanych z bloków Grupa */
.smart-grid-2, .smart-grid-3, .smart-grid-4, .smart-hero, .smart-row { display: grid; gap: 28px; }
.smart-grid-2 > *, .smart-grid-3 > *, .smart-grid-4 > *, .smart-hero > *, .smart-row > * { margin: 0 !important; }
.smart-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.smart-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.smart-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.smart-stack > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.smart-stack { display: flex; flex-direction: column; gap: 16px; }
.smart-stack--lg { gap: 28px; }
.smart-head { margin-bottom: 48px !important; }

/* ---------- Etykiety ---------- */
.smart-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #0A6A86; margin: 0 !important; }
.smart-dark .smart-eyebrow { color: #F5A623; }
.smart-pill { display: inline-block; align-self: flex-start; padding: 6px 14px; border: 1px solid #F5A623; border-radius: 999px; color: #F5A623; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.smart-pill--fill { background: #F5A623; color: #0B1F33; }
.smart-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.smart-chips > * { margin: 0 !important; padding: 10px 18px; border: 1px solid #2E4863; border-radius: 10px; font-weight: 700; }

/* ---------- Nagłówek ---------- */
.smart-header { background: #0B1F33; color: #FFFFFF; margin: 0 !important; }
.smart-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 88px; }
.smart-header__inner > * { margin: 0 !important; }
.smart-logo { display: flex; align-items: center; gap: 12px; color: #FFFFFF !important; text-decoration: none !important; }
.smart-logo svg { flex-shrink: 0; }
.smart-logo__text { display: flex; flex-direction: column; line-height: 1; }
.smart-logo__name { font-weight: 700; font-size: 24px; letter-spacing: 0.06em; }
.smart-logo__tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #C2CFDC; margin-top: 5px; }
.smart-header .wp-block-navigation { font-size: 15px; font-weight: 600; gap: 36px; }
.smart-header .wp-block-navigation a { color: #FFFFFF; }
.smart-header .wp-block-navigation a:hover, .smart-header .wp-block-navigation .current-menu-item > a { color: #F5A623; text-decoration: none; }
.smart-header .wp-block-navigation__responsive-container.is-menu-open { background: #0B1F33; color: #FFFFFF; }
.smart-header .wp-block-navigation__responsive-container-open, .smart-header .wp-block-navigation__responsive-container-close { color: #FFFFFF; }
.smart-header .wp-block-button__link { padding: 11px 20px; font-size: 15px; }

/* ---------- Przyciski ---------- */
.wp-block-buttons.smart-buttons { gap: 16px; margin-top: 8px; }
.smart-btn-ghost .wp-block-button__link { background: transparent; color: #FFFFFF; border: 1.5px solid #FFFFFF; }
.smart-btn-ghost .wp-block-button__link:hover { background: #FFFFFF; color: #0B1F33; }
.smart-btn-dark .wp-block-button__link { background: #0B1F33; color: #FFFFFF; }
.smart-btn-dark .wp-block-button__link:hover { background: #17344F; color: #FFFFFF; }
.smart-btn-outline .wp-block-button__link { background: transparent; color: #0B1F33; border: 1.5px solid #0B1F33; }
.smart-btn-outline .wp-block-button__link:hover { background: #0B1F33; color: #FFFFFF; }
.smart-btn-full, .smart-btn-full .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }

/* ---------- Hero ---------- */
.smart-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.smart-hero h1 { margin: 0 !important; }
.smart-media-placeholder { min-height: 440px; border-radius: 20px; border: 1.5px dashed #2E4863; background: #12283F; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #8FA3B8; }
.smart-hero .wp-block-image img, .smart-hero figure img { border-radius: 20px; width: 100%; height: 440px; object-fit: cover; }

/* ---------- Atuty (pasek pod hero) ---------- */
.smart-features { margin-top: -44px !important; position: relative; z-index: 2; }
.smart-features .smart-grid-3 { gap: 0; background: #FFFFFF; border-radius: 16px; box-shadow: 0 12px 40px rgba(11, 31, 51, 0.10); overflow: hidden; }
.smart-feature { display: flex; gap: 16px; align-items: flex-start; padding: 28px 32px; border-right: 1px solid #E1E8EF; }
.smart-feature:last-child { border-right: 0; }
.smart-feature > * { margin: 0 !important; }
.smart-feature h3 { font-size: 18px; }
.smart-feature p { font-size: 15px; line-height: 1.5; color: #4A5A6C; margin-top: 4px !important; }

/* ---------- Karty ---------- */
.smart-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 18px; border: 1px solid #D6E2EC; background: #FFFFFF; }
.smart-card > * { margin: 0 !important; }
.smart-card h3 { margin: 0; }
.smart-card p { font-size: 16px; line-height: 1.6; color: #4A5A6C; }
.smart-card--big { padding: 48px; gap: 20px; border: 0; }
.smart-card--big h3 { font-size: 34px; }
.smart-card--light { background: #E8F0F8; }
.smart-card--dark { background: #0B1F33; color: #FFFFFF; }
.smart-card--dark h3 { color: #FFFFFF; }
.smart-card--dark p { color: #D3DDE7; }
.smart-card--ghost { border: 2px dashed #B9D3DE; background: transparent; align-items: center; justify-content: center; text-align: center; min-height: 300px; }
.smart-card--ghost h3 { font-size: 20px; color: #34455A; }
.smart-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #0B1F33; }
.smart-card--dark .smart-icon { background: #F5A623; }
.smart-checks p { font-weight: 600; font-size: 16px; color: inherit !important; margin: 0 !important; }
.smart-checks { display: flex; flex-direction: column; gap: 10px; }
.smart-checks p::before { content: "✓ "; color: #F5A623; font-weight: 700; }
.smart-card--light .smart-checks p::before { color: #0A6A86; }
.smart-link-more { font-weight: 700; margin-top: 4px !important; }
.smart-card--dark .smart-link-more a { color: #F5A623; }
.smart-card-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; font-weight: 700; color: #34455A !important; padding-top: 16px; border-top: 1px solid #E1E8EF; }
.smart-num-label { font-weight: 700; color: #0A6A86; font-size: 15px; }

/* ---------- Etapy współpracy ---------- */
.smart-step { display: flex; flex-direction: column; gap: 12px; }
.smart-step > * { margin: 0 !important; }
.smart-step__num { width: 52px; height: 52px; border-radius: 50%; background: #F5A623; color: #0B1F33; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.smart-step p { font-size: 15px; color: #34455A; }

/* ---------- Kontakt ---------- */
.smart-contact-box { padding: 40px; border-radius: 20px; background: #F3F8FC; border: 1px solid #D6E2EC; display: flex; flex-direction: column; gap: 16px; }
.smart-contact-box > * { margin: 0 !important; }
.smart-contact-list p { margin: 0 !important; font-weight: 600; }
.smart-contact-list { display: flex; flex-direction: column; gap: 10px; }
.smart-note { font-size: 14px; color: #4A5A6C; border-left: 0; padding: 14px 16px; background: #FFFFFF; border-radius: 10px; border: 1px dashed #B9D3DE; }
/* Formularze z wtyczek (Contact Form 7 / WPForms) */
.smart-contact-box input[type=text], .smart-contact-box input[type=email], .smart-contact-box input[type=tel], .smart-contact-box textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #B9C7CF; border-radius: 8px; font: inherit; }
.smart-contact-box input[type=submit], .smart-contact-box button[type=submit] { background: #F5A623; color: #0B1F33; border: 0; border-radius: 10px; padding: 15px 26px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Karta warsztatów ---------- */
.smart-breadcrumb { font-size: 14px; color: #9FB1C4; margin: 0 !important; }
.smart-breadcrumb a { color: #9FB1C4 !important; }
.smart-topic-head h1 { max-width: 900px; }
.smart-layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
.smart-layout-aside > * { margin: 0 !important; }
.smart-aside { position: sticky; top: 24px; padding: 32px; border-radius: 20px; background: #E8F0F8; display: flex; flex-direction: column; gap: 18px; }
.smart-aside > * { margin: 0 !important; }
.smart-facts p { display: flex; justify-content: space-between; gap: 16px; margin: 0 !important; padding: 12px 0; border-bottom: 1px solid #C9DBE6; }
.smart-facts p:last-child { border-bottom: 0; }
.smart-facts { display: flex; flex-direction: column; }
.smart-module { padding: 24px; border-radius: 14px; border: 1px solid #D6E2EC; display: flex; flex-direction: column; gap: 8px; }
.smart-module > * { margin: 0 !important; }
.smart-module h3 { font-size: 19px; }
.smart-module p { font-size: 15px; line-height: 1.55; color: #4A5A6C; }
.smart-expert { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: 14px; background: #F3F8FC; }
.smart-expert > * { margin: 0 !important; }
.smart-avatar { width: 72px; height: 72px; border-radius: 50%; background: #D6E2EC; flex-shrink: 0; }

/* ---------- Stopka ---------- */
.smart-footer { background: #0B1F33; color: #C2CFDC; padding: 64px 0 36px; margin: 0 !important; }
.smart-footer a { color: #C2CFDC; }
.smart-footer a:hover { color: #F5A623; }
.smart-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.smart-footer__top > * { margin: 0 !important; }
.smart-footer h3 { color: #FFFFFF; font-size: 15px; font-weight: 700; margin: 0 0 12px !important; letter-spacing: 0; }
.smart-footer p { margin: 0 0 8px !important; font-size: 15px; }
.smart-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px !important; padding-top: 24px; border-top: 1px solid #223A54; font-size: 13px; }
.smart-footer__bottom > * { margin: 0 !important; }

/* ---------- Zwykłe podstrony ---------- */
.smart-page-title { padding: 72px 0 56px; }
.smart-page-content { padding-bottom: 96px; }

/* ---------- Telefon i tablet ---------- */
@media (max-width: 1024px) {
	.smart-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smart-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.smart-footer__top { grid-template-columns: 1fr 1fr; }
	.smart-layout-aside { grid-template-columns: 1fr; }
	.smart-aside { position: static; }
}
@media (max-width: 781px) {
	.smart-wrap { padding-left: 16px; padding-right: 16px; }
	.smart-section { padding-top: 64px; padding-bottom: 64px; }
	.smart-hero, .smart-grid-2, .smart-grid-3, .smart-grid-4, .smart-footer__top { grid-template-columns: 1fr; }
	.smart-hero { gap: 40px; }
	.smart-media-placeholder { min-height: 240px; }
	.smart-features { margin-top: 0 !important; padding-top: 32px; }
	.smart-feature { border-right: 0; border-bottom: 1px solid #E1E8EF; }
	.smart-card--big { padding: 32px; }
	.smart-header__cta { display: none !important; }
	.smart-header .wp-block-navigation { margin-left: auto !important; }
	.smart-logo__tag { display: none; }
}
.smart-stack--xl { gap: 56px; }

/* ---------- Formularz Contact Form 7 ---------- */
.wpcf7 { width: 100%; }
.wpcf7-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.wpcf7-form > p, .wpcf7-form .smart-form-2 > p { margin: 0; }
.wpcf7-form br { display: none; }
.smart-form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wpcf7 label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: #0B1F33; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select {
	width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #B9C7CF; border-radius: 8px;
	background: #FFFFFF; color: #0B1F33; font: inherit; font-size: 16px; font-weight: 400; }
.wpcf7 textarea { height: 150px; min-height: 110px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid #22B8DC; outline-offset: 1px; border-color: #22B8DC; }
.wpcf7 ::placeholder { color: #8A99A8; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; line-height: 1.5; color: #4A5A6C; }
.wpcf7-acceptance input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: #0B1F33; }
.wpcf7 input[type=submit] { width: 100%; background: #F5A623; color: #0B1F33; border: 0; border-radius: 10px; padding: 16px 26px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #E0951A; }
.wpcf7 input[type=submit]:disabled { opacity: .55; cursor: not-allowed; }
.wpcf7-spinner { margin: 8px auto 0; display: block; }
.wpcf7-not-valid-tip { color: #B42318; font-size: 13px; font-weight: 600; margin-top: 4px; }
.wpcf7-not-valid { border-color: #B42318 !important; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; border: 1px solid #D6E2EC; background: #FFFFFF; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #1FA67A; background: #E9F7F1; color: #0E5A40; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output { border-color: #F5A623; background: #FFF6E5; color: #7A4B00; }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #B42318; background: #FDECEA; color: #7A1A12; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.smart-form-info { font-size: 13px; color: #4A5A6C; }
@media (max-width: 781px) { .smart-form-2 { grid-template-columns: 1fr; } }
