/**
 * Baza layoutu i typografii
 *
 * @package miod-wstazka
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/* overflow-x na root często psuje position:sticky (Chrome/Safari) — nagłówek musi się przyklejać. */
	overflow-x: visible;
}

body {
	margin: 0;
	overflow-x: visible;
	font-family: var(--font-body);
	font-size: var(--text-base);
	color: var(--color-text);
	background: var(--color-cream);
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.sr-only,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.text-center {
	text-align: center;
}

.container {
	max-width: var(--container-max, 1320px);
	margin-inline: auto;
	padding-inline: var(--container-padding, clamp(1rem, 4vw, 5rem));
	width: 100%;
}

.container--narrow {
	max-width: 720px;
}

.section {
	padding-block: var(--section-padding, clamp(3rem, 6vw, 5rem));
}

.section--cream {
	background: var(--color-cream, #faf7f0);
}

.section--white {
	background: #ffffff;
}

.section--dark {
	background: var(--color-dark, #1a1612);
	color: rgba(255, 255, 255, 0.92);
}

.section-header {
	margin-bottom: var(--space-12, 3rem);
}

.section-header.text-center {
	text-align: center;
}

.section-title {
	font-family: var(--font-display);
	font-size: var(--text-4xl, clamp(1.875rem, 3.5vw, 2.5rem));
	font-weight: 700;
	color: var(--color-dark, #1a1612);
	line-height: 1.15;
	margin-bottom: var(--space-3, 0.75rem);
}

.section-subtitle {
	font-size: var(--text-md, clamp(1rem, 1.5vw, 1.125rem));
	color: var(--color-text-muted, #9b8e83);
	line-height: 1.65;
	max-width: 560px;
}

.section-header.text-center .section-subtitle {
	margin-inline: auto;
}

.eyebrow {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--color-honey, #c8982e);
	margin-bottom: var(--space-3, 0.75rem);
}

.eyebrow::before,
.eyebrow::after {
	content: "";
	flex: 0 0 40px;
	height: 1px;
	background: var(--color-honey-glow, #f5e6b8);
}

.text-center .eyebrow {
	justify-content: center;
}

/* Tylko .miod-stars — nie łączyć z .stars (WooCommerce używa p.stars przy ocenie recenzji). */
.miod-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	vertical-align: middle;
}

.miod-stars svg {
	flex-shrink: 0;
	display: block;
}
