/*
Theme Name: Fundamenty Dynamic Theme
Author: Autorski motyw WordPress
Description: Szybki, dynamiczny motyw wizytowkowy dla firmy wykonujacej plyty fundamentowe.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tfp
*/

:root {
	--tfp-primary: #111111;
	--tfp-accent: #c4932c;
	--tfp-dark: #151515;
	--tfp-text: #17130c;
	--tfp-muted: #625a4f;
	--tfp-line: #e8dfcf;
	--tfp-soft: #fbfaf6;
	--tfp-white: #ffffff;
	--tfp-radius: 8px;
	--tfp-shadow: 0 18px 40px rgba(17, 17, 17, 0.10);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--tfp-soft);
	color: var(--tfp-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
	text-rendering: optimizeLegibility;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

.skip-link {
	background: var(--tfp-accent);
	color: #111111;
	font-weight: 800;
	left: 1rem;
	padding: 0.75rem 1rem;
	position: absolute;
	top: -4rem;
	z-index: 100;
}

.skip-link:focus {
	top: 1rem;
}

.container {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 20px;
	width: 100%;
}

.site-header {
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--tfp-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__inner {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	min-height: 72px;
	padding: 0.5rem 0;
}

.site-logo {
	align-items: center;
	display: inline-flex;
	min-width: 0;
}

.site-logo img {
	display: block;
	max-height: 48px;
	width: auto;
}

.site-logo__image--default {
	height: auto;
	max-height: none;
	width: clamp(136px, 13vw, 172px);
}

.site-logo span {
	color: #111111;
	font-weight: 900;
}

.menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a {
	color: #4d473d;
	font-size: 0.94rem;
	font-weight: 750;
}

.menu a:hover,
.menu a:focus {
	color: var(--tfp-primary);
}

.hero {
	background: var(--tfp-dark);
	color: var(--tfp-white);
	min-height: 620px;
	overflow: hidden;
	position: relative;
}

.hero__image {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
	z-index: 0;
}

.hero::after {
	background: linear-gradient(90deg, rgba(17, 17, 17, 0.94), rgba(34, 25, 11, 0.76), rgba(17, 17, 17, 0.42));
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.hero__inner {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
	min-height: 620px;
	padding-bottom: 5rem;
	padding-top: 5rem;
	position: relative;
	z-index: 2;
}

.hero__content {
	align-self: center;
	max-width: 760px;
}

.eyebrow {
	color: var(--tfp-accent);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.18em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.hero h1,
.section-title {
	letter-spacing: 0;
	line-height: 1.05;
	margin: 0;
}

.hero h1 {
	font-size: clamp(2.65rem, 6vw, 5.35rem);
	font-weight: 950;
	max-width: 850px;
}

.hero__lead {
	color: #f4ead9;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.75;
	margin: 1.5rem 0 0;
	max-width: 720px;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2rem;
}

.button {
	align-items: center;
	border-radius: var(--tfp-radius);
	display: inline-flex;
	font-size: 0.94rem;
	font-weight: 850;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.1rem;
}

.button--primary {
	background: var(--tfp-accent);
	color: #111111;
}

.button--secondary {
	border: 1px solid rgba(196, 147, 44, 0.60);
	color: var(--tfp-white);
}

.button--dark {
	background: var(--tfp-primary);
	color: var(--tfp-white);
}

.stat-grid {
	align-self: end;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(196, 147, 44, 0.28);
	border-radius: var(--tfp-radius);
	padding: 1.25rem;
}

.stat-card strong {
	color: var(--tfp-accent);
	display: block;
	font-size: 2rem;
	line-height: 1;
}

.stat-card span {
	color: #eadfcd;
	display: block;
	font-size: 0.88rem;
	line-height: 1.5;
	margin-top: 0.6rem;
}

.section {
	padding: 5rem 0;
}

.section--white {
	background: var(--tfp-white);
}

.section--soft {
	background: var(--tfp-soft);
}

.section--dark {
	background: var(--tfp-dark);
	color: var(--tfp-white);
}

.section-head {
	margin-bottom: 2.4rem;
	max-width: 780px;
}

.section-title {
	color: var(--tfp-text);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 950;
}

.section--dark .section-title {
	color: var(--tfp-white);
}

.section-lead {
	color: var(--tfp-muted);
	font-size: 1rem;
	line-height: 1.75;
	margin: 1rem 0 0;
}

.section--dark .section-lead {
	color: #eadfcd;
}

.about-grid,
.mission-grid,
.contact-grid {
	display: grid;
	gap: 3rem;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.media-frame {
	background: var(--tfp-dark);
	border-radius: var(--tfp-radius);
	overflow: hidden;
	position: relative;
}

.media-frame img,
.media-placeholder {
	aspect-ratio: 4 / 3;
	display: block;
	object-fit: cover;
	width: 100%;
}

.media-placeholder {
	align-items: flex-end;
	background: linear-gradient(135deg, #111111, #3b2a12);
	color: var(--tfp-white);
	display: flex;
	font-size: 2rem;
	font-weight: 950;
	line-height: 1.15;
	padding: 2rem;
}

.feature-grid,
.benefit-grid,
.card-grid,
.project-grid {
	display: grid;
	gap: 1.25rem;
}

.feature-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 2rem;
}

.card-grid,
.project-grid,
.benefit-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.offer-card,
.project-card,
.benefit-card {
	background: var(--tfp-white);
	border: 1px solid var(--tfp-line);
	border-radius: var(--tfp-radius);
	box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);
}

.info-card,
.benefit-card {
	padding: 1.35rem;
}

.offer-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.offer-card__image {
	aspect-ratio: 16 / 10;
	background: #eee7dc;
	overflow: hidden;
}

.offer-card__image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.offer-card__body,
.project-card {
	padding: 1.45rem;
}

.info-card h3,
.offer-card h3,
.project-card h3,
.benefit-card h3 {
	color: var(--tfp-text);
	font-size: 1.16rem;
	font-weight: 900;
	line-height: 1.25;
	margin: 0;
}

.info-card p,
.offer-card p,
.benefit-card p {
	color: var(--tfp-muted);
	font-size: 0.94rem;
	line-height: 1.65;
	margin: 0.6rem 0 0;
}

.param-list,
.project-list {
	border-top: 1px solid var(--tfp-line);
	display: grid;
	font-size: 0.92rem;
	gap: 0;
	margin-top: 1rem;
}

.param-list div,
.project-list div {
	align-items: baseline;
	border-bottom: 1px solid var(--tfp-line);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.65rem 0;
}

.param-list dt,
.project-list dt {
	color: #81786c;
}

.param-list dd,
.project-list dd {
	color: var(--tfp-text);
	font-weight: 850;
	margin: 0;
	text-align: right;
}

.contact-card {
	background: var(--tfp-white);
	border-radius: var(--tfp-radius);
	box-shadow: var(--tfp-shadow);
	color: var(--tfp-text);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-list {
	display: grid;
	gap: 0.8rem;
	margin-top: 1.75rem;
}

.contact-list a,
.contact-list span {
	color: #f4ead9;
	display: block;
	font-weight: 750;
}

.tfp-form :where(input, textarea, select) {
	background: #fff;
	border: 1px solid #d6c7ad;
	border-radius: var(--tfp-radius);
	color: var(--tfp-text);
	max-width: 100%;
	padding: 0.78rem 0.85rem;
	width: 100%;
}

.tfp-form :where(button, input[type="submit"]) {
	background: var(--tfp-accent);
	border: 0;
	border-radius: var(--tfp-radius);
	color: #111111;
	cursor: pointer;
	font-weight: 850;
	min-height: 48px;
	padding: 0.85rem 1.1rem;
}

.admin-placeholder {
	border: 1px dashed #d6c7ad;
	border-radius: var(--tfp-radius);
	color: var(--tfp-muted);
	font-size: 0.94rem;
	line-height: 1.65;
	padding: 1.25rem;
}

.site-footer {
	background: var(--tfp-white);
	border-top: 1px solid var(--tfp-line);
}

.site-footer__inner {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 1.5rem 0;
}

.site-footer,
.site-footer a {
	color: #6f665a;
	font-size: 0.92rem;
}

.prose {
	background: var(--tfp-white);
	border-radius: var(--tfp-radius);
	padding: clamp(1.25rem, 4vw, 2.5rem);
}

.prose > * + * {
	margin-top: 1rem;
}

.prose p,
.prose li {
	color: var(--tfp-muted);
	line-height: 1.75;
}

@media (max-width: 900px) {
	.site-nav {
		display: none;
	}

	.hero,
	.hero__inner {
		min-height: auto;
	}

	.hero__inner,
	.about-grid,
	.mission-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.card-grid,
	.project-grid,
	.benefit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.container {
		padding: 0 16px;
	}

	.section {
		padding: 3.5rem 0;
	}

	.hero__inner {
		padding-bottom: 4rem;
		padding-top: 4rem;
	}

	.stat-grid,
	.feature-grid,
	.card-grid,
	.project-grid,
	.benefit-grid {
		grid-template-columns: 1fr;
	}

	.button {
		width: 100%;
	}

	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}
