/*
Theme Name: Dorota Miciak - Salon Fryzjerski
Theme URI: https://dorotamiciak.pl
Description: Motyw WordPress dla salonu fryzjerskiego Dorota Miciak. Strona główna, podstrony, szablon Kontakt, blog, podstawowe SEO.
Author: ienka.pl
Version: 2.5.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dorota-miciak
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
Tags: one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, full-width-template
*/

/* Główne style: assets/css/main.css — ładowane przez wp_enqueue_style (bez @import = szybszy pierwszy render). */

/* Treść ze standardowego edytora strony głównej (pod hero) */
.home-page-editor {
	padding: 48px 0 32px;
}
.home-page-editor .entry-content > *:first-child {
	margin-top: 0;
}

/* Menu WordPress (lista) – wygląd jak linki w jednym rzędzie */
.nav-main ul { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-main li { margin: 0; padding: 0; }
.nav-main a { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: #c9a962; }
.nav-main a:hover { color: #d4b978; }

/* Etap 2: stopka — lista z wp_nav_menu() */
.footer-nav ul.menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-nav .menu li { margin: 0; padding: 0; }

/* Etap 8: treść strony i wpisów (index) */
.site-page.page-static {
	padding: 80px 0 100px;
}
.page-static-title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	margin-bottom: 1.5rem;
	color: #c9a962;
}
.page-static-content {
	max-width: 48rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.85);
}
.page-static-content h2,
.page-static-content h3 {
	margin-top: 1.5em;
	color: #c9a962;
}
.page-static-content a {
	color: #d4b978;
}
.page-static-content a:hover {
	color: #e8d4a8;
}
.legal-page-body.entry-content {
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.7;
}
.legal-page-body.entry-content a {
	color: #d4b978;
}
.page-static-content .page-links {
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid rgba(201, 169, 98, 0.2);
	font-size: 0.95rem;
}
.page-static-content .page-links-title {
	margin-right: 0.5em;
	color: rgba(255, 255, 255, 0.65);
}

/* Etap 7: formularz rezerwacji — komunikaty */
.appointment-intro {
	margin-bottom: 1rem;
	opacity: 0.92;
	line-height: 1.6;
}
.appointment-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 1rem;
	line-height: 1.5;
}
.appointment-message--success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #d1fae5;
}
.appointment-message--error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fecaca;
}
.appointment-cf7-wrap {
	margin-bottom: 1rem;
}
.appointment-booksy-hint {
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	opacity: 0.88;
}

/* Etap 8: podstrony, blog, SEO (style pomocnicze) */
.page-featured-img {
	display: block;
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 1.5rem;
}
.single-meta {
	font-size: 0.9rem;
	opacity: 0.85;
	margin-top: -0.5rem;
	margin-bottom: 1.5rem;
	color: rgba(255, 255, 255, 0.7);
}
.post-navigation {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(201, 169, 98, 0.25);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.post-navigation a {
	color: #d4b978;
}
.post-navigation a:hover {
	color: #e8d4a8;
}
.archive-header .archive-description {
	margin-top: 0.75rem;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.95rem;
}
.archive-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}
.archive-post-item {
	margin-bottom: 1.75rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.archive-post-link {
	font-size: 1.1rem;
	font-weight: 600;
	color: #c9a962;
	display: inline-block;
	margin-bottom: 0.35rem;
}
.archive-post-link:hover {
	color: #d4b978;
}
.archive-post-date,
.archive-post-type {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
	display: block;
}
.archive-post-excerpt {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.8);
}
.navigation.pagination {
	margin-top: 2rem;
	clear: both;
}
.navigation.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}
.navigation.pagination a,
.navigation.pagination span {
	padding: 0.4rem 0.75rem;
	color: #c9a962;
}
.navigation.pagination span.current {
	color: #fff;
	font-weight: 600;
}
.contact-hours-block {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(201, 169, 98, 0.25);
	max-width: 48rem;
}
.contact-hours-title {
	font-size: 1.25rem;
	color: #c9a962;
	margin-bottom: 0.75rem;
}
.contact-hours-text {
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.7;
}
.contact-map-wrap {
	margin-top: 2rem;
	border-radius: 12px;
	overflow: hidden;
	max-width: 48rem;
}
.contact-map-wrap iframe {
	display: block;
	width: 100%;
	min-height: 320px;
	border: 0;
}
.error-404-text {
	margin-bottom: 1.5rem;
	color: rgba(255, 255, 255, 0.85);
}
.btn-404-home {
	display: inline-block;
	padding: 12px 24px;
	background: linear-gradient(135deg, #c9a962, #a88b4a);
	color: #1a1a1a !important;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
}
.btn-404-home:hover {
	filter: brightness(1.08);
	color: #1a1a1a !important;
}

/* Strona Galeria (szablon + zdjęcia z assets/images) */
.page-galeria .page-galeria-inner {
	max-width: 72rem;
}
.page-galeria.page-static {
	padding-bottom: 120px;
}
.page-galeria-intro {
	margin-bottom: 1.5rem;
}
.page-galeria .page-gallery-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.875rem;
	margin-top: 0.5rem;
	list-style: none;
	padding: 0;
	width: 100%;
}
@media (min-width: 600px) {
	.page-galeria .page-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}
@media (min-width: 900px) {
	.page-galeria .page-gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.125rem;
	}
}
@media (min-width: 1200px) {
	.page-galeria .page-gallery-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.page-gallery-item {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.2);
	aspect-ratio: 4 / 3;
	min-width: 0;
	content-visibility: auto;
	contain-intrinsic-size: 320px 240px;
}
.page-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
	cursor: zoom-in;
}

/* Lightbox — powiększenie zdjęcia z galerii */
.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
}
.gallery-lightbox[hidden] {
	display: none !important;
}
.gallery-lightbox-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.88);
	cursor: pointer;
}
.gallery-lightbox-panel {
	position: relative;
	z-index: 1;
	max-width: min(96vw, 1400px);
	max-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.gallery-lightbox-panel .gallery-lightbox-close {
	pointer-events: auto;
}
.gallery-lightbox-img {
	max-width: 100%;
	max-height: min(90vh, 1200px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
	pointer-events: auto;
}
.gallery-lightbox-close {
	position: absolute;
	top: -6px;
	right: -6px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: linear-gradient(135deg, #c9a962, #a88b4a);
	color: #1a1a1a;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.gallery-lightbox-close:hover {
	filter: brightness(1.08);
}
.gallery-lightbox-close span {
	margin-top: -2px;
}

.gallery-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	background: rgba(26, 26, 26, 0.65);
	color: #c9a962;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
	transition: background 0.2s, transform 0.15s;
}
.gallery-lightbox-nav span {
	margin-top: -4px;
	user-select: none;
}
.gallery-lightbox-prev {
	left: 8px;
}
.gallery-lightbox-next {
	right: 8px;
}
.gallery-lightbox-nav:hover:not(:disabled) {
	background: rgba(201, 169, 98, 0.25);
	color: #e8d4a8;
}
.gallery-lightbox-nav:disabled {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@media (max-width: 600px) {
	.gallery-lightbox-prev {
		left: 4px;
	}
	.gallery-lightbox-next {
		right: 4px;
	}
	.gallery-lightbox-nav {
		width: 44px;
		height: 44px;
		font-size: 1.75rem;
	}
}

.page-gallery-empty {
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.7;
	max-width: 40rem;
}
