/* ===========================================================
   SpecGaz Gliwice — style.css
   Tokeny: --c-ink (tło), --c-flame-1/2/3 (gradient płomienia),
   --c-paper (tekst), --c-steel (tekst przygaszony).
   Typografia: Oswald (nagłówki, styl tabliczki technicznej),
   Work Sans (tekst), JetBrains Mono (liczby / telefon / staty).
   Sygnatura: wskaźnik/pokrętło gazowe (gauge) w sekcji hero —
   nawiązanie do pokręteł na obudowie piecyka z materiałów firmy.
   =========================================================== */

:root {
	--c-ink: #0c0c0d;
	--c-ink-soft: #17161a;
	--c-panel: #1d1c20;
	--c-line: #2c2b30;
	--c-paper: #f6f2ea;
	--c-steel: #a3a1a8;
	--c-flame-1: #e6262c;
	--c-flame-2: #f6921e;
	--c-flame-3: #ffd447;
	--c-flame-grad: linear-gradient(120deg, var(--c-flame-1) 0%, var(--c-flame-2) 55%, var(--c-flame-3) 100%);
	--font-display: 'Oswald', 'Arial Narrow', sans-serif;
	--font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'JetBrains Mono', 'Courier New', monospace;
	--radius: 10px;
	--wrap: 1180px;
	--shadow-flame: 0 8px 30px -8px rgba(230, 38, 44, 0.45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--c-ink);
	color: var(--c-paper);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-flame-3); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.brand--logo { display: flex; align-items: center; }
.brand--logo img {
	max-height: 72px;
	width: auto;
	display: block;
}
@media (max-width: 600px) { .brand--logo img { max-height: 46px; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-flame-3);
	margin-bottom: 0.75em;
}
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
	border-radius: 999px;
	padding: 13px 26px;
	font-size: 14.5px;
	border: 1.5px solid transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	white-space: nowrap;
}
.btn--flame { background: var(--c-flame-grad); color: #16110a; box-shadow: var(--shadow-flame); }
.btn--flame:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(230, 38, 44, 0.6); }
.btn--outline { border-color: rgba(246, 242, 234, 0.35); color: var(--c-paper); }
.btn--outline:hover { border-color: var(--c-paper); background: rgba(246, 242, 234, 0.06); }
.btn--ghost { border-color: var(--c-line); color: var(--c-steel); }
.btn--ghost:hover { color: var(--c-paper); border-color: var(--c-paper); }
.btn--sm { padding: 8px 16px; font-size: 12.5px; }
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn__phone { font-family: var(--font-mono); }

/* ---------- Topbar ---------- */
.topbar { background: #050505; border-bottom: 1px solid var(--c-line); font-size: 12.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 24px; flex-wrap: wrap; }
.topbar__item { color: var(--c-steel); display: inline-flex; align-items: center; gap: 6px; }
.topbar__rating { color: var(--c-paper); }
.topbar__stars { color: var(--c-flame-3); letter-spacing: 1px; }
.topbar__phone { font-family: var(--font-mono); color: var(--c-flame-3); font-weight: 700; }
@media (max-width: 700px) { .topbar__hours { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(12, 12, 13, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px; text-transform: uppercase; letter-spacing: 0.03em; }
.brand small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--c-steel); text-transform: uppercase; }
.brand__mark svg { display: block; }
.brand--footer { font-size: 18px; margin-bottom: 10px; }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-steel); transition: color 0.15s ease; position: relative; padding: 6px 0; }
.nav-menu a:hover { color: var(--c-paper); }
.nav-menu a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c-flame-grad); transition: width 0.2s ease; }
.nav-menu a:hover::after { width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--c-paper); display: block; }

.nav-close { display: none; }

@media (max-width: 940px) {
	.main-navigation {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: auto !important;
		height: 100vh !important;
		height: 100dvh !important;
		width: min(320px, 82vw) !important;
		background-color: #17161a !important;
		border-left: 1px solid var(--c-line);
		transform: translateX(100%);
		transition: transform 0.25s ease;
		z-index: 999 !important;
		padding: 90px 28px 30px;
		overflow-y: auto;
		box-shadow: -24px 0 50px rgba(0, 0, 0, 0.55);
	}
	.main-navigation.is-open { transform: translateX(0); }

	.nav-backdrop {
		position: fixed !important;
		inset: 0 !important;
		background: rgba(0, 0, 0, 0.65);
		opacity: 0; visibility: hidden;
		transition: opacity 0.25s ease;
		z-index: 998 !important;
	}
	.nav-backdrop.is-open { opacity: 1; visibility: visible; }

	.nav-close {
		display: flex !important;
		position: absolute; top: 18px; right: 18px;
		width: 40px; height: 40px; border-radius: 50%;
		border: 1px solid var(--c-line);
		background: transparent; color: var(--c-paper);
		font-size: 26px; line-height: 1;
		align-items: center; justify-content: center;
	}

	.nav-menu { flex-direction: column; gap: 22px; }
	.nav-menu a { font-size: 20px; }
	.menu-toggle { display: flex; }
	.site-header__actions .btn--ghost { display: none; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
	.site-header__actions .btn--sm.btn--flame { display: none; }
}

.menu-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hero {
	position: relative;
	overflow: hidden;
	padding: 96px 0 84px;
	background:
		radial-gradient(ellipse at 82% 8%, rgba(230, 38, 44, 0.16), transparent 55%),
		radial-gradient(ellipse at 15% 100%, rgba(246, 146, 30, 0.12), transparent 50%),
		var(--c-ink);
	background-image: var(--hero-img, none), radial-gradient(ellipse at 82% 8%, rgba(230, 38, 44, 0.16), transparent 55%), radial-gradient(ellipse at 15% 100%, rgba(246, 146, 30, 0.12), transparent 50%);
	background-size: cover, auto, auto;
	background-position: center, center, center;
}
.hero::before {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(12,12,13,0.55), rgba(12,12,13,0.92) 70%);
	pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__title { font-size: clamp(40px, 6vw, 72px); margin-bottom: 0.3em; }
.hero__title br { display: block; }
.hero__subtitle { font-size: 18px; color: var(--c-steel); max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero__actions .btn__phone { font-size: 15px; }
.hero__actions .btn__label { opacity: 0.85; font-size: 12px; border-left: 1px solid rgba(0,0,0,0.25); padding-left: 8px; }
.hero__bullets { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; color: var(--c-steel); }
.hero__bullets li::before { content: '● '; color: var(--c-flame-3); }

/* Mapa obszaru działania w tle hero — mocno przygaszona/wyszarzona */
.hero__map {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 58%;
	z-index: 1;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to left, black 35%, transparent 92%);
	mask-image: linear-gradient(to left, black 35%, transparent 92%);
}
.hero__map iframe {
	width: 100%; height: 100%; border: 0; display: block;
	filter: grayscale(1) brightness(0.38) contrast(1.2);
	opacity: 0.75;
	pointer-events: none;
}
.hero__map-pin {
	position: absolute; top: 44%; left: 38%;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--c-flame-grad);
	box-shadow: 0 0 0 0 rgba(230, 38, 44, 0.55);
	animation: heroPinPulse 2.4s ease-out infinite;
}
@keyframes heroPinPulse {
	0% { box-shadow: 0 0 0 0 rgba(230, 38, 44, 0.55); }
	70% { box-shadow: 0 0 0 26px rgba(230, 38, 44, 0); }
	100% { box-shadow: 0 0 0 0 rgba(230, 38, 44, 0); }
}
@media (max-width: 940px) {
	.hero__map {
		width: 100%; opacity: 0.5;
		-webkit-mask-image: linear-gradient(to top, black 15%, transparent 75%);
		mask-image: linear-gradient(to top, black 15%, transparent 75%);
	}
}
@media (max-width: 600px) { .hero__map { display: none; } }

/* ---------- Brand bar ---------- */
.brandbar { border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: #0a0a0b; }
.brandbar__inner { display: flex; align-items: center; gap: 28px; padding: 18px 24px; flex-wrap: wrap; }
.brandbar__label { font-family: var(--font-mono); font-size: 12px; color: var(--c-steel); text-transform: uppercase; letter-spacing: 0.08em; }
.brandbar__list { display: flex; gap: 30px; flex-wrap: wrap; }
.brandbar__list li { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-steel); opacity: 0.85; }

/* Realizacje - kafelki: stała wysokość, zaokrąglone rogi, efekt hover */
.gallery-grid .elementor-widget-image,
.gallery-grid.elementor-widget-image {
	position: relative;
	overflow: hidden;
	isolation: isolate; /* naprawia ucinanie rogów przy animacji w Safari */
	border-radius: 18px !important;
	border: 1px solid var(--c-line);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.gallery-grid .elementor-widget-image a,
.gallery-grid.elementor-widget-image a {
	display: block;
}
.gallery-grid img {
	width: 100% !important;
	height: 250px !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block;
	border-radius: 18px !important;
	transition: transform 0.6s ease, filter 0.6s ease;
}

/* Ciepły blask od dołu w barwach płomienia */
.gallery-grid .elementor-widget-image::after,
.gallery-grid.elementor-widget-image::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(246, 146, 30, 0.45) 0%, rgba(230, 38, 44, 0.12) 35%, transparent 60%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

/* Hover */
.gallery-grid .elementor-widget-image:hover,
.gallery-grid.elementor-widget-image:hover {
	transform: translateY(-5px);
	border-color: var(--c-flame-2);
	box-shadow: 0 18px 40px -14px rgba(246, 146, 30, 0.5);
}
.gallery-grid .elementor-widget-image:hover img,
.gallery-grid.elementor-widget-image:hover img {
	transform: scale(1.07);
	filter: brightness(1.08) saturate(1.1);
}
.gallery-grid .elementor-widget-image:hover::after,
.gallery-grid.elementor-widget-image:hover::after {
	opacity: 1;
}

@media (max-width: 600px) {
	.gallery-grid img { height: 220px !important; }
}

/* ---------- Sections generic ---------- */
.section { padding: 90px 0; }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__title { font-size: clamp(30px, 4vw, 42px); }
.section__lead { color: var(--c-steel); font-size: 16.5px; }


/* Rytm kolorystyczny — ciepły blask płomienia w wybranych sekcjach,
   żeby strona nie była tylko czernią i bielą */
.surface-ember-soft {
	background:
		radial-gradient(ellipse 75% 130% at 15% 0%, rgba(255, 212, 71, 0.32), transparent 68%),
		radial-gradient(ellipse 70% 120% at 85% 100%, rgba(255, 212, 71, 0.22), transparent 62%),
		radial-gradient(ellipse 50% 80% at 50% 50%, rgba(246, 146, 30, 0.10), transparent 60%),
		var(--c-ink);
}

.surface-molten {
	position: relative;
	background: linear-gradient(180deg, #1c1706 0%, #221a06 45%, #14100a 100%);
	border-top: 1px solid transparent;
	border-bottom: 1px solid transparent;
	border-image: var(--c-flame-grad) 1;
}
.surface-molten::before {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 70% 140% at 50% 120%, rgba(255, 212, 71, 0.14), transparent 60%);
	pointer-events: none;
}

.surface-glow {
	background:
		radial-gradient(ellipse 60% 70% at 85% 20%, rgba(246, 146, 30, 0.10), transparent 55%),
		var(--c-ink-soft);
}

.surface-cta {
	position: relative;
	background: linear-gradient(180deg, var(--c-ink) 0%, #1c0f0d 55%, #130a0a 100%);
}
.surface-cta::before {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 50% 60% at 20% 0%, rgba(230, 38, 44, 0.14), transparent 55%);
	pointer-events: none;
}

/* ---------- Services ---------- */
.services { background: var(--c-ink); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
	background: var(--c-ink-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	padding: 30px 26px;
	position: relative;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--c-flame-2); transform: translateY(-4px); }
.service-card__icon { font-size: 28px; display: inline-block; margin-bottom: 14px; }
.service-card__title { font-size: 18px; margin-bottom: 8px; }
.service-card__text { color: var(--c-steel); font-size: 14.5px; margin: 0; }
@media (max-width: 940px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- Why / stats ---------- */
.why { padding: 60px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.why__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.why__stat { display: flex; flex-direction: column; gap: 4px; }
.why__num {
	font-family: var(--font-mono);
	font-size: 40px;
	font-weight: 700;
	color: var(--c-paper);
}
.why__label {
	font-size: 13px;
	color: #d8c98a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
@media (max-width: 760px) { .why__inner { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-panel); border: 1px solid var(--c-line); }
.gallery__item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery__placeholder { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 34px; background: radial-gradient(ellipse at center, rgba(246,146,30,0.12), transparent 70%); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; font-size: 13px; background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent); color: var(--c-paper); }
@media (max-width: 940px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery__grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about__media img, .about__media-placeholder { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__media-placeholder { display: flex; align-items: center; justify-content: center; background: var(--c-panel); border: 1px solid var(--c-line); }
.about__text { color: var(--c-steel); font-size: 16.5px; }
@media (max-width: 860px) { .about__inner { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--c-ink-soft); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.reviews__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 min(360px, 85vw); scroll-snap-align: start; background: var(--c-panel); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; margin: 0; }
.review-card__stars { color: var(--c-flame-3); letter-spacing: 2px; display: block; margin-bottom: 10px; }
.review-card__text { color: var(--c-paper); font-size: 15px; }
.review-card__name { font-family: var(--font-mono); font-size: 13px; color: var(--c-steel); font-style: normal; }
.reviews__nav { display: flex; gap: 10px; margin-top: 18px; }
.reviews__nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-line); background: transparent; color: var(--c-paper); font-size: 20px; }
.reviews__nav button:hover { border-color: var(--c-flame-2); color: var(--c-flame-3); }
.reviews__more { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; }
.reviews__more a { color: var(--c-flame-3); }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact__list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 30px; }
.contact__list a:hover { color: var(--c-flame-3); }
.contact__form { background: var(--c-ink-soft); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact__form-note { font-size: 12.5px; color: var(--c-steel); margin: 0 0 4px; }
.contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--c-steel); }
.contact__form input, .contact__form textarea {
	background: var(--c-ink); border: 1px solid var(--c-line); border-radius: 6px;
	padding: 12px 14px; color: var(--c-paper); font-family: var(--font-body); font-size: 15px;
}
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--c-flame-2); outline: none; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #050505; border-top: 1px solid var(--c-line); padding-top: 60px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__col p { color: var(--c-steel); font-size: 14px; }
.footer__title, .footer-widget__title { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { color: var(--c-steel); font-size: 14px; }
.footer__list a:hover { color: var(--c-flame-3); }
.footer__bottom { border-top: 1px solid var(--c-line); padding: 18px 0; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12.5px; color: var(--c-steel); font-family: var(--font-mono); }
.footer__bottom-inner a { color: var(--c-flame-3); }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile call button ---------- */
.call-fab {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
	display: none; align-items: center; justify-content: center; gap: 8px;
	background: var(--c-flame-grad); color: #16110a; font-family: var(--font-mono); font-weight: 700;
	padding: 15px; border-radius: 999px; box-shadow: var(--shadow-flame);
}
@media (max-width: 700px) { .call-fab { display: flex; } .site-main { padding-bottom: 20px; } }

/* ---------- Generic page (blog / non-Elementor pages) ---------- */
.page-generic { padding: 80px 0; max-width: 780px; }
.page-generic .entry-title { font-size: 38px; }
.page-generic .entry-content { color: var(--c-paper); font-size: 16.5px; }
.page-elementor { padding: 0; }
