/* ==========================================================================
   Żłobek Słoneczko – base styles
   ========================================================================== */

:root {
	--zs-navy: #1b3b6f;
	--zs-yellow: #ffc629;
	--zs-orange: #f7941d;
	--zs-coral: #ff5a6e;
	--zs-sky: #5ba9d6;
	--zs-sky-light: #eaf4fb;
	--zs-green: #7cb342;
	--zs-purple: #b39ddb;
	--zs-cream: #fff7e6;
	--zs-white: #ffffff;
	--zs-radius: 1.25rem;
	--zs-radius-lg: 2rem;
	--zs-radius-pill: 999px;
	--zs-shadow: 0 8px 32px rgba(27, 59, 111, 0.08);
	--zs-shadow-hover: 0 12px 40px rgba(27, 59, 111, 0.14);
	--zs-container: 1200px;
	--zs-gutter: max(1rem, calc((100vw - 1200px) / 2));
	--zs-font-heading: "Quicksand", system-ui, sans-serif;
	--zs-font-body: "Nunito", system-ui, sans-serif;
}

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

body.zs-theme {
	font-family: var(--zs-font-body);
	color: var(--zs-navy);
	background: var(--zs-white);
}

.zs-theme h1,
.zs-theme h2,
.zs-theme h3,
.zs-theme h4,
.zs-theme h5,
.zs-theme h6,
.zs-theme .wp-block-heading {
	font-family: var(--zs-font-heading);
	font-weight: 600;
	line-height: 1.2;
}

.zs-theme a:focus-visible,
.zs-theme button:focus-visible,
.zs-theme input:focus-visible,
.zs-theme textarea:focus-visible,
.zs-theme select:focus-visible {
	outline: 3px solid var(--zs-sky);
	outline-offset: 2px;
}

/* Header / navigation */
.site-header.zs-header {
	background: var(--zs-white);
	box-shadow: 0 2px 16px rgba(27, 59, 111, 0.06);
	position: sticky;
	top: 0;
	z-index: 100;
}

.zs-header__inner {
	max-width: var(--zs-container);
	margin: 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.zs-header__logo img {
	height: 64px;
	width: auto;
	display: block;
}

.zs-nav-toggle {
	display: none;
	background: var(--zs-yellow);
	border: none;
	border-radius: var(--zs-radius-pill);
	padding: 0.5rem 1rem;
	font-family: var(--zs-font-heading);
	font-weight: 600;
	color: var(--zs-navy);
	cursor: pointer;
}

.zs-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.zs-nav ul {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.zs-nav a {
	text-decoration: none;
	color: var(--zs-navy);
	font-weight: 600;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.zs-nav a:hover,
.zs-nav .current-menu-item > a {
	color: var(--zs-sky);
}

.zs-nav .current-menu-item > a {
	box-shadow: inset 0 -3px 0 var(--zs-yellow);
}

.zs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--zs-radius-pill);
	font-family: var(--zs-font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.zs-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--zs-shadow-hover);
}

.zs-btn--primary {
	background: var(--zs-yellow);
	color: var(--zs-navy);
}

.zs-btn--secondary {
	background: var(--zs-white);
	color: var(--zs-navy);
	border-color: var(--zs-sky);
}

.zs-btn--secondary:hover {
	background: var(--zs-sky);
	border-color: var(--zs-sky);
	color: var(--zs-white);
}

.zs-btn--primary:hover {
	background: var(--zs-orange);
}

.zs-btn--coral {
	background: var(--zs-coral);
	color: var(--zs-white);
}

.zs-section {
	padding: clamp(2rem, 4vw, 3rem) 1rem;
}

.zs-section .zs-page-hero {
	padding-top: 0;
}

.zs-container {
	max-width: var(--zs-container);
	margin: 0 auto;
}

.zs-section__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 1rem;
}

.zs-section__label {
	font-family: var(--zs-font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--zs-sky);
	margin: 0 0 0.5rem;
}

.zs-section__title .highlight-pink { color: var(--zs-coral); }
.zs-section__title .highlight-green { color: var(--zs-green); }
.zs-section__title .highlight-blue { color: var(--zs-sky); }
.zs-section__title .highlight-yellow { color: var(--zs-orange); }

.zs-breadcrumbs {
	font-size: 0.875rem;
	color: var(--zs-sky);
	margin-bottom: 1rem;
}

.zs-breadcrumbs a {
	color: var(--zs-sky);
	text-decoration: none;
}

/* Contact form */
.zs-contact-form {
	display: grid;
	gap: 1rem;
}

.zs-contact-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.zs-contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.zs-contact-form input,
.zs-contact-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid var(--zs-sky-light);
	border-radius: var(--zs-radius);
	font-family: var(--zs-font-body);
	font-size: 1rem;
	background: var(--zs-white);
	transition: border-color 0.2s;
}

.zs-contact-form input:focus,
.zs-contact-form textarea:focus {
	border-color: var(--zs-sky);
	outline: none;
}

.zs-contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.zs-contact-form__honeypot {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

.zs-contact-form__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
}

.zs-contact-form__checkbox input {
	width: auto;
	margin-top: 0.2rem;
}

.zs-contact-form__message {
	padding: 1rem;
	border-radius: var(--zs-radius);
	font-weight: 600;
}

.zs-contact-form__message--success {
	background: #e8f5e9;
	color: #2e7d32;
}

.zs-contact-form__message--error {
	background: #ffebee;
	color: #c62828;
}

.zs-contact-form button[type="submit"]:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Map facade */
.zs-map-facade {
	position: relative;
	border-radius: var(--zs-radius);
	overflow: hidden;
	min-height: 320px;
}

.zs-map-facade__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 2rem;
	text-align: center;
}

.zs-map-facade__placeholder button {
	margin-top: 1rem;
}

.zs-map-facade iframe {
	width: 100%;
	height: 320px;
	border: 0;
}

/* Mobile nav */
@media (max-width: 900px) {
	.zs-nav-toggle {
		display: block;
	}

	.zs-nav {
		position: fixed;
		inset: 0 0 auto 0;
		top: 72px;
		background: var(--zs-white);
		flex-direction: column;
		padding: 1.5rem;
		box-shadow: var(--zs-shadow);
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.3s, opacity 0.3s;
	}

	.zs-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.zs-nav ul {
		flex-direction: column;
		width: 100%;
	}

	.zs-nav a {
		display: block;
		padding: 0.75rem 0;
	}

	.zs-contact-form__row {
		grid-template-columns: 1fr;
	}
}

/* Cookie consent banner */
.zs-cookie-banner {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 1000;
	padding: 1rem;
	pointer-events: none;
}

.zs-cookie-banner.is-visible {
	pointer-events: auto;
}

.zs-cookie-banner__inner {
	max-width: var(--zs-container);
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
	background: var(--zs-white);
	border: 2px solid var(--zs-sky-light);
	border-radius: var(--zs-radius);
	box-shadow: var(--zs-shadow-hover);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.zs-cookie-banner__content {
	flex: 1 1 280px;
	min-width: 0;
}

.zs-cookie-banner__title {
	margin: 0 0 0.35rem;
	font-family: var(--zs-font-heading);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--zs-navy);
}

.zs-cookie-banner__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--zs-navy);
	opacity: 0.92;
}

.zs-cookie-banner__text a {
	color: var(--zs-sky);
	font-weight: 600;
}

.zs-cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	flex-shrink: 0;
}

.zs-cookie-banner__accept,
.zs-cookie-banner__reject {
	white-space: nowrap;
}

.zs-footer__legal {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	align-items: center;
}

@media (max-width: 900px) {
	.zs-cookie-banner {
		padding: 0.75rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
		bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
	}

	.zs-cookie-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.zs-cookie-banner__actions {
		width: 100%;
	}

	.zs-cookie-banner__accept,
	.zs-cookie-banner__reject {
		flex: 1 1 auto;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
