/*
Theme Name: Make IT Works
Theme URI: https://makeitworks.pl
Author: Przemysław Woźniak / Serwis Komputerowy "Make IT"
Author URI: https://makeitworks.pl
Description: Indywidualny motyw WordPress dla serwisu komputerowego "Make IT" (Kalisz) — naprawa komputerów i laptopów, sieci WiFi/LAN, sprzedaż sprzętu odnowionego, wsparcie IT.
Version: 1.0.0
Requires at least: 6.0
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: makeitworks
*/

/* ==========================================================================
   0. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
	--color-bg: #eceef2;
	--color-bg-alt: #e1e4ea;
	--color-surface: #ffffff;
	--color-surface-tint: #f1f2f5;
	--color-text: #101828;
	--color-text-muted: #475467;
	--color-primary: #2563eb;
	--color-primary-dark: #1741a6;
	--color-accent: #16a34a;
	--color-dark: #0b1220;
	--color-dark-alt: #111a2e;
	--color-border: #e4e7ec;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);
	--container: 1180px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--color-primary);
	background: rgba(37,99,235,.08);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--color-text-muted); font-size: 17px; }

/* ==========================================================================
   1. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.35); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 22px rgba(22,163,74,.3); }
.btn-accent:hover { background: #128a3e; color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   2. Top bar + header
   ========================================================================== */
.top-bar {
	background: var(--color-dark);
	color: #cbd5e1;
	font-size: 13.5px;
}
.top-bar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 8px;
	padding-bottom: 8px;
	flex-wrap: wrap;
}
.top-bar a { color: #e2e8f0; }
.top-bar a:hover { color: #fff; }
.top-bar__info { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar__info span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar__hours { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; }
.top-bar__info svg, .top-bar__hours svg { width: 15px; height: 15px; flex: none; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(236,238,242,.9);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--color-border);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
	gap: 20px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 44px; width: auto; }
.site-branding .logo-mark {
	width: 42px; height: 42px; border-radius: 12px;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 800; font-size: 17px; flex: none;
}
.site-branding .logo-text { line-height: 1.15; }
.site-branding .logo-text strong { display: block; font-size: 18px; color: var(--color-text); }
.site-branding .logo-text span { display: block; font-size: 12px; color: var(--color-text-muted); letter-spacing: .04em; }

.primary-nav ul { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
	display: inline-block;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--color-text);
	font-weight: 600;
	font-size: 15px;
}
.primary-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
	display: none;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
	background: radial-gradient(circle at 12% 20%, rgba(37,99,235,.35), transparent 45%),
	            radial-gradient(circle at 88% 80%, rgba(22,163,74,.28), transparent 45%),
	            linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
	color: #fff;
	padding: 96px 0 110px;
	position: relative;
	overflow: hidden;
}
.hero .container {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 56px;
	align-items: center;
}
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.hero h1 .accent { color: #7dd3a0; }
.hero p.lead { font-size: 18px; color: #cbd5e1; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-badges div { display: flex; align-items: center; gap: 10px; color: #e2e8f0; font-size: 14px; font-weight: 600; }
.hero-badges svg { width: 20px; height: 20px; color: #7dd3a0; flex: none; }

.hero-visual {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: var(--radius-lg);
	padding: 32px;
	backdrop-filter: blur(6px);
}
.hero-visual__row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-visual__row:last-child { border-bottom: none; }
.hero-visual__icon {
	width: 44px; height: 44px; border-radius: 12px;
	background: rgba(255,255,255,.1);
	display: flex; align-items: center; justify-content: center; flex: none;
}
.hero-visual__icon svg { width: 22px; height: 22px; color: #7dd3a0; }
.hero-visual__row strong { display: block; font-size: 15px; }
.hero-visual__row span { display: block; font-size: 13px; color: #94a3b8; }

/* ==========================================================================
   4. USP strip
   ========================================================================== */
.usp-strip {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}
.usp-strip .container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding-top: 34px;
	padding-bottom: 34px;
}
.usp-strip__item {
	display: flex; align-items: center; gap: 12px;
	padding: 0 20px;
	border-left: 1px solid var(--color-border);
}
.usp-strip__item:first-child { border-left: none; padding-left: 0; }
.usp-strip__item svg { width: 26px; height: 26px; color: var(--color-primary); flex: none; }
.usp-strip__item strong { display: block; font-size: 14.5px; }
.usp-strip__item span { display: block; font-size: 13px; color: var(--color-text-muted); }

/* ==========================================================================
   5. Services grid
   ========================================================================== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.service-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 28px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card__icon {
	width: 52px; height: 52px; border-radius: 14px;
	background: rgba(37,99,235,.08);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 18px;
}
.service-card__icon svg { width: 26px; height: 26px; color: var(--color-primary); }
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--color-text-muted); font-size: 15px; margin-bottom: 14px; }
.service-card a.more { font-weight: 700; font-size: 14px; }

/* ==========================================================================
   6. About
   ========================================================================== */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-photo {
	aspect-ratio: 4/5;
	border-radius: var(--radius-lg);
	background: linear-gradient(150deg, var(--color-primary), var(--color-dark));
	display: flex; align-items: flex-end; padding: 24px;
	color: #fff;
}
.about-photo span { font-weight: 700; font-size: 15px; background: rgba(0,0,0,.28); padding: 8px 14px; border-radius: 999px; }
.about-list { margin-top: 24px; display: grid; gap: 12px; }
.about-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text); }
.about-list svg { width: 20px; height: 20px; color: var(--color-accent); flex: none; margin-top: 2px; }

/* ==========================================================================
   6b. Certyfikaty — slider
   ========================================================================== */
.cert-slider { position: relative; padding: 0 56px; }
.cert-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 12px;
}
.cert-track::-webkit-scrollbar { display: none; }
.cert-slide {
	flex: 0 0 auto;
	scroll-snap-align: center;
	width: min(280px, 72vw);
	text-align: center;
}
.cert-slide__frame {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow);
	overflow: hidden;
    display: flex; align-items: center; justify-content: center;
	margin-bottom: 14px;
}
.cert-slide__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cert-slide__frame svg { width: 46px; height: 46px; color: var(--color-primary); }
.cert-slide h3 { font-size: 15px; margin: 0; }
.cert-slide p { font-size: 13px; color: var(--color-text-muted); margin: 4px 0 0; }
.cert-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	box-shadow: var(--shadow);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	color: var(--color-text);
	z-index: 2;
}
.cert-nav:hover { color: var(--color-primary); }
.cert-nav svg { width: 20px; height: 20px; }
.cert-nav--prev { left: 0; }
.cert-nav--next { right: 0; }
@media (max-width: 640px) {
	.cert-slider { padding: 0 44px; }
	.cert-nav { width: 36px; height: 36px; }
}
.empty-state { color: var(--color-text-muted); font-size: 15px; background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius); padding: 24px; text-align: center; }

/* ==========================================================================
   6c. Firmy, które obsługujemy — pasek logotypów
   ========================================================================== */
.clients {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
	mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.clients__track {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 48px;
}
.clients__track.is-marquee {
	flex-wrap: nowrap;
	justify-content: flex-start;
	width: max-content;
    margin: 0 auto;
	animation: makeitworks-marquee 32s linear infinite;
}
.clients:hover .clients__track.is-marquee { animation-play-state: paused; }
.clients__item { flex: none; display: flex; align-items: center; justify-content: center; height: 68px; }
.clients__item a { display: flex; align-items: center; justify-content: center; height: 100%; }
.clients__item img {
	max-height: 100%; width: auto; max-width: 180px;
	object-fit: contain;
	filter: grayscale(1) opacity(.6);
	transition: filter .2s ease;
}
.clients__item img:hover, .clients__item a:hover img { filter: none; }
@keyframes makeitworks-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.clients__track.is-marquee { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ==========================================================================
   7. Pricing
   ========================================================================== */
.pricing-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pricing-table th, .pricing-table td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--color-border); font-size: 15px; }
.pricing-table thead th { background: var(--color-dark); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { text-align: right; font-weight: 700; color: var(--color-primary); white-space: nowrap; }
.pricing-note { margin-top: 18px; font-size: 14px; color: var(--color-text-muted); }

/* ==========================================================================
   8. Trust strip / CTA banner
   ========================================================================== */
.cta-banner {
	background: linear-gradient(135deg, var(--color-primary), #1741c9);
	border-radius: var(--radius-lg);
	padding: 48px;
	color: #fff;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 26px; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; }

/* ==========================================================================
   9. Contact + map + form
   ========================================================================== */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-card {
	background: var(--color-dark);
	color: #e2e8f0;
	border-radius: var(--radius-lg);
	padding: 34px;
}
.contact-card h3 { color: #fff; }
.contact-card__row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-card__row:last-of-type { border-bottom: none; }
.contact-card__row svg { width: 22px; height: 22px; color: #7dd3a0; flex: none; }
.contact-card__row a { color: #fff; font-weight: 600; }
.contact-card .map-embed { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.contact-card .map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.contact-form { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-family: inherit;
	background: var(--color-surface-tint);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
	outline: none; border-color: var(--color-primary); background: var(--color-surface);
	box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--color-text-muted); margin-bottom: 18px; }
.form-consent input { margin-top: 3px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 18px; font-weight: 600; }
.form-notice--success { background: rgba(22,163,74,.1); color: #12793f; border: 1px solid rgba(22,163,74,.25); }
.form-notice--error { background: rgba(220,38,38,.1); color: #b42318; border: 1px solid rgba(220,38,38,.25); }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--color-dark); color: #94a3b8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid p { font-size: 14.5px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #94a3b8; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
	width: 38px; height: 38px; border-radius: 10px;
	background: rgba(255,255,255,.06);
	display: flex; align-items: center; justify-content: center;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 20px 0;
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	font-size: 13px;
}
.footer-bottom a { color: #cbd5e1; }

/* generic page/post content */
.page-content, .single-content { max-width: 780px; margin: 0 auto; padding: 72px 24px; }
.page-content h1, .single-content h1 { font-size: 34px; margin-bottom: 24px; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.hero .container { grid-template-columns: 1fr; }
	.about { grid-template-columns: 1fr; }
	.contact-wrap { grid-template-columns: 1fr; }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.usp-strip .container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.usp-strip__item { border-left: none; padding-left: 0; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
	.primary-nav { position: fixed; inset: 72px 16px auto 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.primary-nav a { display: block; }
	.nav-toggle { display: flex; }
	.header-actions .btn-primary { padding: 0; width: 44px; height: 44px; justify-content: center; }
	.header-actions .btn-primary span { display: none; }
	.top-bar__info { justify-content: center; width: 100%; }
	.site-header .container { gap: 10px; }
}
@media (max-width: 420px) {
	.site-branding .logo-text span { display: none; }
}
@media (max-width: 640px) {
	.services-grid { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.cta-banner { flex-direction: column; text-align: center; }
	.footer-grid { grid-template-columns: 1fr; }
	.section { padding: 60px 0; }
	.top-bar__info span:nth-child(3), .top-bar__hours { display: none; }
}