/* ==========================================================================
   LexUno – fonts
   ========================================================================== */

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-800.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Design tokens (colors sampled from the LexUno logo)
   ========================================================================== */

:root {
	--navy: #0b2a3d;
	--navy-dark: #071c29;
	--navy-soft: #294758;
	--red: #b82a30;
	--red-dark: #8f2024;
	--cream: #f1ece3;
	--cream-soft: #f8f5ef;
	--white: #ffffff;
	--ink: #1c262b;
	--ink-muted: #56646b;
	--border: #e3dccd;

	--font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
	--font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

	--container: 1160px;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(11, 42, 61, 0.09);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--navy); text-decoration: none; overflow-wrap: break-word; }
a:hover { color: var(--red); }

ul, ol { padding-left: 1.25em; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cream { background: var(--cream-soft); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #cfe0e8; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 14px;
}
.eyebrow::before {
	content: '';
	width: 5px;
	height: 1.1em;
	background: var(--red);
	display: inline-block;
	border-radius: 1px;
}

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	padding: 15px 28px;
	border-radius: 6px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); color: inherit; }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); box-shadow: 0 10px 20px rgba(184,42,48,0.3); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-ghost { background: var(--white); color: var(--navy); }
.btn-ghost:hover { background: var(--cream); color: var(--navy); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */

.topbar {
	background: var(--navy-dark);
	color: #cfe0e8;
	font-size: 0.85rem;
}
.topbar .container {
	display: flex;
	justify-content: flex-end;
	gap: 26px;
	padding-top: 8px;
	padding-bottom: 8px;
	flex-wrap: wrap;
}
.topbar a { color: #cfe0e8; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--white); }

.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
	gap: 24px;
}

.site-logo { display: flex; align-items: center; }
.site-logo img { height: 78px; width: auto; }
.site-logo a { display: inline-flex; }

.primary-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.primary-nav a {
	display: inline-block;
	padding: 10px 16px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--navy);
	border-radius: 6px;
}
.primary-nav a:hover { background: var(--cream); color: var(--navy); }
.primary-nav .current-menu-item > a { background: var(--cream); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	border: 1px solid var(--border);
	border-radius: 6px;
	background: var(--white);
	cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); margin: 0 auto; }

/* ==========================================================================
   Page banner (inner pages)
   ========================================================================== */

.page-banner {
	background: var(--navy);
	color: var(--white);
	padding: 56px 0;
}
.page-banner .eyebrow { color: #ffb3b6; }
.page-banner .eyebrow::before { background: var(--red); }
.page-banner h1 { color: var(--white); margin-bottom: 10px; }
.page-banner p { color: #cfe0e8; max-width: 62ch; margin: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
	color: var(--white);
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: '';
	position: absolute;
	right: -140px;
	top: -140px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: rgba(184,42,48,0.18);
}
.hero .container {
	position: relative;
	padding-top: 96px;
	padding-bottom: 96px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 48px;
	align-items: center;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.8rem;
	color: #ffb3b6;
	margin-bottom: 18px;
}
.hero-eyebrow::before { content: ''; width: 5px; height: 1.1em; background: var(--red); border-radius: 1px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lead { font-size: 1.15rem; color: #d7e4ea; max-width: 46ch; }
.hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 48px;
	max-width: 520px;
}
.hero-stat strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--white); overflow-wrap: break-word; }
.hero-stat span { font-size: 0.85rem; color: #b9cdd6; }

.hero-copy { min-width: 0; }

.hero-card {
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow);
	min-width: 0;
}
.hero-card h3 { margin-bottom: 6px; }
.hero-card p { color: var(--ink-muted); font-size: 0.98rem; }
.hero-card ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.hero-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.hero-card ul li::before {
	content: '✓';
	color: var(--red);
	font-weight: 700;
	flex: none;
}

/* ==========================================================================
   Value / trust strip
   ========================================================================== */

.value-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.value-item {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px 22px;
	min-width: 0;
}
.value-item .num {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--red);
	display: block;
	margin-bottom: 10px;
}
.value-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-item p { color: var(--ink-muted); font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   Service cards (front-page teaser)
   ========================================================================== */

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.service-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 30px 26px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	min-width: 0;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .num {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--white);
	background: var(--navy);
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Usługi page – numbered content (CSS counters on the editor content)
   ========================================================================== */

.uslugi-content { counter-reset: usluga; max-width: 820px; margin: 0 auto; }
.uslugi-content h3 {
	counter-increment: usluga;
	position: relative;
	padding: 0 0 0 62px;
	margin-top: 2.4em;
	min-height: 46px;
	display: flex;
	align-items: center;
}
.uslugi-content h3:first-child { margin-top: 0; }
.uslugi-content h3::before {
	content: counter(usluga);
	position: absolute;
	left: 0;
	top: 0;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background: var(--navy);
	color: var(--white);
	font-family: var(--font-heading);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
}
.uslugi-content p { color: var(--ink-muted); }
.uslugi-content hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details,
.wp-block-details {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px 24px;
	margin-bottom: 14px;
}
.faq-list summary,
.wp-block-details summary {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--navy);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.faq-list summary::-webkit-details-marker,
.wp-block-details summary::-webkit-details-marker { display: none; }
.faq-list summary::after,
.wp-block-details summary::after {
	content: '+';
	font-size: 1.4rem;
	color: var(--red);
	flex: none;
	transition: transform 0.15s ease;
}
.faq-list details[open] summary::after,
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.faq-list details p,
.wp-block-details p { color: var(--ink-muted); margin-top: 14px; margin-bottom: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
	background: var(--red);
	color: var(--white);
	padding: 56px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #ffe0e1; margin: 0; }

/* ==========================================================================
   O nas page
   ========================================================================== */

.o-nas-photos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0 0 36px;
}
.o-nas-photos figure {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--cream-soft);
}
.o-nas-photos img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

/* ==========================================================================
   Kontakt page
   ========================================================================== */

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
.contact-card {
	background: var(--cream-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 34px;
	min-width: 0;
}
.contact-card h3 { margin-bottom: 4px; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; min-width: 0; }
.contact-list li > div { min-width: 0; }
.contact-list a, .contact-list span { overflow-wrap: anywhere; word-break: break-word; }
.contact-list .icon {
	width: 42px; height: 42px; border-radius: 8px;
	background: var(--navy); color: var(--white);
	display: flex; align-items: center; justify-content: center;
	flex: none; font-size: 1.1rem;
}
.contact-list strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--ink-muted); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 420px; min-width: 0; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ==========================================================================
   Blog
   ========================================================================== */

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--white);
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.post-card .post-thumb { aspect-ratio: 16/10; background: var(--cream); overflow: hidden; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .post-meta { font-size: 0.8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }
.post-card .post-more { margin-top: auto; font-family: var(--font-heading); font-weight: 700; font-size: 0.88rem; color: var(--red); }

.empty-state {
	text-align: center;
	padding: 60px 20px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	color: var(--ink-muted);
}

.single-post { max-width: 780px; margin: 0 auto; }
.single-post .post-meta { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 10px; }
.single-post .post-thumb { margin: 26px 0; border-radius: var(--radius); overflow: hidden; }
.single-post .entry-content h2 { margin-top: 1.6em; }
.single-post .entry-content blockquote {
	border-left: 4px solid var(--red);
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 22px;
	color: var(--ink-muted);
	font-style: italic;
}

/* generic page content width for plain pages (O nas etc.) */
.page-content { max-width: 780px; margin: 0 auto; }
.rodo-note { max-width: 780px; margin: 24px auto 0; font-size: 0.8rem; line-height: 1.5; color: var(--ink-muted); }
.footer-bottom a { color: inherit; text-decoration: underline; }
.page-content h2 { margin-top: 1.4em; }
.page-content h2:first-child { margin-top: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-dark); color: #b9cdd6; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-logo img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-grid p { color: #9fb6c1; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col { min-width: 0; }
.footer-col a { color: #b9cdd6; font-size: 0.94rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: #7f97a3; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
	.hero .container { grid-template-columns: 1fr; }
	.value-grid { grid-template-columns: repeat(2, 1fr); }
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
	.topbar .container { justify-content: center; }
	.primary-nav { display: none; }
	.nav-toggle { display: flex; }
	.header-actions .btn-outline-navy span.btn-label { display: none; }
	.value-grid { grid-template-columns: 1fr; }
	.services-grid { grid-template-columns: 1fr; }
	.o-nas-photos { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.posts-grid { grid-template-columns: 1fr; }
	.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.hero-stat strong { font-size: 1.15rem; }
	.hero-stat span { font-size: 0.78rem; }
	.hero-cta { flex-direction: column; align-items: stretch; }
	.hero-cta .btn { width: 100%; justify-content: center; white-space: normal; }
	.topbar .container { text-align: center; }
	.site-logo img { height: 54px; }
	.cta-band .container { flex-direction: column; text-align: center; }

	.site-header.nav-open .primary-nav {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--white);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}
	.site-header.nav-open .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
	.site-header.nav-open .primary-nav a { display: block; padding: 12px 14px; }
}
