/*
Theme Name: GasMotion
Description: Odświeżony wygląd gas-motion.com (połączenie kierunków B i C). Czyta te same pola ACF PRO co gasmotionOLD – między motywami można przełączać się w Wygląd › Motywy.
Version: 3.0.0
Requires PHP: 7.4
Text Domain: gasmotion
*/

/* ==========================================================================
   Tokeny
   ========================================================================== */
:root {
	--plum: #7c3089;
	--plum-dark: #5a1f66;
	--lilac: #f3eff5;       /* karty, pola formularza, menu */
	--lilac-text: #ead9ee;  /* tekst na fiolecie */
	--grey-band: #f6f6f7;   /* szare pasy */
	--ink: #2a2530;
	--text: #4e4954;
	--muted: #7a7480;
	--white: #fff;
	--error: #b3261e;

	--r-xl: 28px;   /* duże bloki */
	--r-lg: 22px;   /* karty */
	--r-md: 18px;   /* zdjęcia w kartach, kafelki logo */
	--r-sm: 12px;   /* pola formularza */
	--pill: 999px;

	--frame: 20px;
	--pad: clamp(24px, 5vw, 80px);
	--section: clamp(72px, 8vw, 110px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	font-family: 'Red Hat Text', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: 'Red Hat Display', system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--ink); }

a { color: var(--plum); }
a:hover { color: var(--plum-dark); }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
::selection { background: var(--plum); color: var(--white); }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
	background: var(--plum); color: var(--white); border-radius: var(--pill); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* strona jako „rama” z zaokrąglonymi blokami */
.frame { padding: 0 var(--frame); }
.site-header,
.site-footer,
#main > :not(.hero) { max-width: 1400px; margin-inline: auto; }

.section { padding: var(--section) var(--pad); }
.band { border-radius: var(--r-xl); padding: var(--section) var(--pad); }
.band + .band,
.section + .band { margin-top: 40px; }
.section-title { font-size: clamp(36px, 3.8vw, 52px); line-height: 1.04; margin-bottom: 20px; }
.center { text-align: center; }

/* przyciski */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 24px;
	font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
	color: var(--white); background: var(--plum); border: 0; border-radius: var(--pill);
	text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.btn:hover { color: var(--white); background: var(--plum-dark); }
.btn-soft { color: var(--ink); background: var(--lilac); }
.btn-soft:hover { color: var(--ink); background: #e8e0ec; }
.btn-white { color: var(--ink); background: var(--white); }
.btn-white:hover { color: var(--plum); background: var(--white); }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	height: 88px; padding: 0 8px;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.brand { display: block; flex: none; }
.brand img { display: block; width: auto; height: 52px; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav .nav { display: flex; align-items: center; gap: 2px; padding: 6px; list-style: none; background: var(--lilac); border-radius: var(--pill); }
.site-nav .nav a {
	display: block; padding: 8px 16px; font-size: 15px; font-weight: 500;
	color: var(--ink); text-decoration: none; border-radius: var(--pill); transition: background-color .2s, color .2s;
}
.site-nav .nav a:hover { color: var(--plum); }
.site-nav .nav .is-active > a { color: var(--plum); background: var(--white); }
.site-nav .lang-item { display: none; } /* zastępuje go przełącznik PL | EN */
.lang-switch { display: flex; padding: 4px; background: var(--lilac); border-radius: var(--pill); }
.lang-switch a {
	display: block; min-width: 44px; padding: 7px 12px; text-align: center;
	font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: var(--pill);
}
.lang-switch a:hover { color: var(--plum); }
.lang-switch .is-current { color: var(--white); background: var(--plum); }
.lang-switch .is-current:hover { color: var(--white); }
.header-cta { min-height: 46px; font-size: 15px; }

.menu-toggle { display: none; }

@media (max-width: 1100px) {
	.menu-toggle {
		display: flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--pill);
		background: var(--lilac); color: var(--ink); cursor: pointer;
	}
	.menu-toggle-bars,
	.menu-toggle-bars::before,
	.menu-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
	.menu-toggle-bars { position: relative; }
	.menu-toggle-bars::before,
	.menu-toggle-bars::after { content: ''; position: absolute; left: 0; }
	.menu-toggle-bars::before { top: -6px; }
	.menu-toggle-bars::after { top: 6px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: absolute; top: calc(100% - 4px); left: 0; right: 0; display: none;
		flex-direction: column; align-items: stretch; gap: 12px;
		padding: 12px; background: var(--white); border-radius: var(--r-lg);
		box-shadow: 0 12px 32px rgba(42, 37, 48, .12);
	}
	.site-nav.is-open { display: flex; }
	.site-nav .nav { flex-direction: column; align-items: stretch; border-radius: var(--r-md); }
	.site-nav .nav a { padding: 12px 16px; font-size: 17px; }
	.lang-switch { align-self: flex-start; }
}

/* ==========================================================================
   Baner – zdjęcie w zaokrąglonym bloku, karta z fioletowym tytułem
   ========================================================================== */
.hero {
	position: relative; height: clamp(560px, 50vw, 720px); overflow: hidden; background: #f2f2f2;
	margin-inline: calc(-1 * var(--frame)); /* na całą szerokość okna, poza ramką */
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.hero-card {
	position: absolute; right: 56px; bottom: 56px; /* odstęp od prawej i od dołu */
	width: min(440px, calc(100% - 112px)); background: var(--white); border-radius: var(--r-lg); overflow: hidden;
}
.hero-title { padding: 22px 28px; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.08; color: var(--white); background: var(--plum); }
.hero-body { padding: 20px 28px 24px; font-size: 16px; }
.hero-lead { margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 760px) {
	.hero { height: auto; display: flex; flex-direction: column; background: var(--white); }
	.hero-img { position: relative; height: 280px; }
	.hero-card { position: relative; right: auto; bottom: auto; width: auto; margin: -40px var(--frame) 0; border: 1px solid #ece7ef; border-radius: var(--r-lg); }
	.hero-title { padding: 24px; }
	.hero-body { padding: 22px 24px 26px; }
}

/* ==========================================================================
   O firmie – tekst i kafelki z faktami
   ========================================================================== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { padding: 28px; background: var(--lilac); border-radius: var(--r-lg); }
.fact p { margin: 0; }
.fact-value { font-family: 'Red Hat Display', system-ui, sans-serif; font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; line-height: 1.1; color: var(--plum); }
.fact-wide { grid-column: span 2; }
.fact-wide strong { color: var(--plum); }

@media (max-width: 900px) {
	.about { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
	.facts { grid-template-columns: 1fr; }
	.fact-wide { grid-column: auto; }
}

/* ==========================================================================
   Amortyzatory – szary pas
   ========================================================================== */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; background: var(--grey-band); }
.products-media { text-align: center; }
.products-text ul { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; list-style: none; }
.products-text li { position: relative; padding-left: 36px; }
.products-text li::before {
	content: ''; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%;
	background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.files { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.files-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.file-meta { font-weight: 400; color: var(--muted); }

@media (max-width: 900px) {
	.products { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Serie – fioletowe karty z nośnością
   ========================================================================== */
.series { padding-inline: 0; } /* karty na pełną szerokość jak pasy sekcji */
.series .section-title { margin-bottom: 40px; }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.series-card { display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 32px; background: var(--lilac); border-radius: 24px; }
.series-photo { display: flex; align-items: center; justify-content: center; height: 240px; padding: 16px; background: var(--white); border-radius: var(--r-md); }
.series-photo img { max-height: 100%; max-width: 100%; width: auto; height: auto; }
.series-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.series-name { font-size: 30px; line-height: 1.1; }
.pill { display: inline-block; padding: 6px 14px; font-size: 15px; font-weight: 600; color: var(--white); background: var(--plum); border-radius: var(--pill); white-space: nowrap; }
.pill-light { color: var(--plum); background: var(--white); }
.series-points { padding-left: 20px; }
.series-points li + li { margin-top: 4px; }

@media (max-width: 1000px) {
	.series-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ==========================================================================
   Zastosowania
   ========================================================================== */
.applications { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.applications .section-title { margin-bottom: 32px; }
.applications-strip { overflow-x: auto; border-radius: 24px; -webkit-overflow-scrolling: touch; }
.applications-img { display: block; width: 100%; }
@media (max-width: 700px) {
	.applications-img { width: auto; max-width: none; height: 220px; }
}

/* ==========================================================================
   Referencje – szary pas z białymi kafelkami
   ========================================================================== */
.references { background: var(--grey-band); padding-top: 56px; padding-bottom: 56px; }
.references .section-title { font-size: clamp(30px, 3vw, 40px); margin-bottom: 28px; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.logos li { display: flex; align-items: center; justify-content: center; height: 130px; padding: 12px; background: var(--white); border-radius: var(--r-md); }
.logos img { max-height: 86px; width: auto; }
@media (max-width: 760px) {
	.logos { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Kontakt – fioletowy blok
   ========================================================================== */
.contact { color: var(--white); background: var(--plum); }
.contact .section-title { color: var(--white); margin-bottom: 10px; }
.contact-lead { margin: 0 auto 44px; max-width: 46ch; text-align: center; color: var(--lilac-text); }
.contact-grid { display: grid; grid-template-columns: 400px 1fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-tile {
	display: flex; flex-direction: column; padding: 26px 28px;
	color: var(--white); text-decoration: none; background: rgba(255, 255, 255, .12); border-radius: 20px;
	transition: background-color .2s;
}
.contact-tile:hover { color: var(--white); background: rgba(255, 255, 255, .2); }
.contact-tile-label { font-size: 15px; color: var(--lilac-text); }
.contact-tile-value { font-family: 'Red Hat Display', system-ui, sans-serif; font-size: clamp(22px, 2vw, 28px); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.contact :focus-visible { outline-color: var(--white); }

.contact-form { padding: 32px; color: var(--ink); background: var(--white); border-radius: var(--r-lg); }
.contact-form :focus-visible { outline-color: var(--plum); }

@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; }
}

/* formularz – Contact Form 7 */
.contact-form form { margin: 0; }
.hidden-fields-container { display: none; }
.form-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form-label.is-required::after { content: ' *'; color: var(--plum); }
.wpcf7-form-control-wrap { display: block; position: relative; }
.form-control {
	display: block; width: 100%; min-height: 48px; padding: 12px 14px;
	font: inherit; font-size: 16px; color: var(--ink); background: var(--lilac);
	border: 2px solid transparent; border-radius: var(--r-sm);
	transition: border-color .15s, background-color .15s;
}
textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-control::placeholder { color: #8f8896; opacity: 1; }
.form-control:focus { outline: 0; border-color: var(--plum); background: var(--white); }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-consent { margin: 4px 0 20px; font-size: 14px; line-height: 1.5; color: #5a5461; }
.form-consent .wpcf7-list-item { display: block; margin: 0; }
.form-consent label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
.form-consent input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--plum); }

.btn-submit {
	min-height: 52px; padding: 0 30px;
	font: inherit; font-size: 16px; font-weight: 600;
	color: var(--white); background: var(--plum); border: 0; border-radius: var(--pill); cursor: pointer;
	transition: background-color .2s;
}
.btn-submit:hover { background: var(--plum-dark); }
.wpcf7-form.submitting .btn-submit { opacity: .7; cursor: progress; }
.wpcf7-spinner { display: none; }

.wpcf7-not-valid { border-color: var(--error); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; color: var(--error); }
.wpcf7-response-output { margin: 20px 0 0; padding: 14px 16px; font-size: 15px; border-radius: var(--r-sm); background: var(--lilac); }
.wpcf7-form.init .wpcf7-response-output,
.wpcf7-form.resetting .wpcf7-response-output,
.wpcf7-form.submitting .wpcf7-response-output { display: none; }
.wpcf7-form.sent .wpcf7-response-output { color: var(--plum-dark); }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output { color: var(--error); background: #fbeaea; }
.screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }

@media (max-width: 520px) {
	.form-names { grid-template-columns: 1fr; }
	.contact-form { padding: 22px; }
	.btn-submit { width: 100%; }
}

/* ==========================================================================
   Stopka
   ========================================================================== */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 32px 8px 28px; font-size: 14px; color: var(--muted); }
.footer-brand img { display: block; width: auto; height: 40px; }
.footer-link { color: var(--text); text-decoration: none; }
.footer-link:hover { color: var(--plum); text-decoration: underline; }
.footer-copy { margin: 0 0 0 auto; }
@media (max-width: 700px) {
	.footer-copy { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   Podstrony
   ========================================================================== */
.page-content { padding: var(--section) var(--pad); }
.narrow { max-width: 820px; }
.entry-title { font-size: clamp(36px, 4.4vw, 56px); margin-bottom: 28px; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 .6em; font-size: 28px; }
