/* ==========================================================================
   Jolanta – salon fryzjerski. Główne style.
   ========================================================================== */

:root {
	--ink: #1d1b1a;
	--ink-2: #2a2725;
	--ink-soft: #57514c;
	--ivory: #faf7f2;
	--cream: #f2ebe1;
	--line: #e3d9cc;
	--gold: #b8956a;
	--gold-light: #d8bf9b;
	--gold-dark: #8c6c45;
	--white: #fff;

	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1200px;
	--wrap-narrow: 820px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(4.5rem, 10vw, 8.5rem);
	--radius: 2px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .2em; transition: color .25s var(--ease); }
a:hover { color: var(--gold-dark); }

strong, b { font-weight: 500; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .6em; letter-spacing: -.01em; }

p { margin: 0 0 1.2em; }

::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--ink); color: var(--ivory); padding: .75rem 1.25rem;
}
.skip-link:focus { top: 1rem; color: var(--ivory); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--wrap-narrow); }

/* --- Typografia pomocnicza --------------------------------------------- */
.eyebrow {
	font-family: var(--sans);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin: 0 0 1.25rem;
	display: inline-flex;
	align-items: center;
	gap: .9rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }

.section__title { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem); }
.section__sub { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); margin: -.25em 0 0; }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.prose > *:last-child { margin-bottom: 0; }
.prose p { max-width: 68ch; }
.prose a { color: var(--gold-dark); }
.prose blockquote {
	margin: 2rem 0; padding: .25rem 0 .25rem 1.75rem; border-left: 1px solid var(--gold);
	font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.5;
}

/* --- Przyciski ---------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	padding: 1rem 2rem;
	background: var(--gold); color: var(--ink);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	font: 500 .8125rem/1 var(--sans);
	letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
	cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(250, 247, 242, .45); }
.btn--ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn--small { padding: .7rem 1.2rem; font-size: .75rem; letter-spacing: .14em; }

.link-arrow { font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--gold-dark); }

/* --- Nagłówek ----------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(29, 27, 26, .97);
	color: var(--ivory);
	transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header.is-scrolled { background: rgba(29, 27, 26, .96); box-shadow: 0 1px 0 rgba(184, 149, 106, .25); backdrop-filter: blur(8px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

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

.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand__name { font-family: var(--serif); font-size: 2rem; font-weight: 500; letter-spacing: .02em; font-style: italic; }
.brand__tag { margin-top: .35rem; font-size: .625rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }
.brand__logo { max-height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav__list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
	position: relative; display: block; padding: .5rem 0;
	font-size: .78rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ivory);
}
.site-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--gold);
	transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.site-nav__list a:hover, .site-nav__list .current-menu-item a { color: var(--gold-light); }
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-nav__cta svg { flex: none; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
		width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
		background: none; border: 0; color: var(--ivory); cursor: pointer; position: relative; z-index: 2;
	}
	.nav-toggle__bar { display: block; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-of-type { transform: translateY(4px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; justify-content: center; gap: 2.5rem;
		background: var(--ink);
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; }
	.site-nav__list { flex-direction: column; align-items: center; gap: 1.25rem; }
	.site-nav__list a { font-family: var(--serif); font-size: 2rem; letter-spacing: .02em; text-transform: none; }
	body.nav-open { overflow: hidden; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center;
	padding: 140px 0 120px;
	color: var(--ivory);
	background-color: var(--ink);
	background-image:
		linear-gradient(90deg, rgba(20, 18, 17, .94) 0%, rgba(20, 18, 17, .78) 38%, rgba(20, 18, 17, .25) 70%, rgba(20, 18, 17, .1) 100%),
		var(--hero-img);
	background-size: cover;
	background-position: 70% 30%;
	overflow: hidden;
}
.hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
	background: linear-gradient(to bottom, transparent, rgba(20, 18, 17, .55));
	pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-light); }
.hero__title {
	font-size: clamp(3.2rem, 1.6rem + 7vw, 7.5rem);
	font-weight: 400; line-height: .95; letter-spacing: -.02em;
	max-width: 10ch; margin-bottom: 2rem;
}
.hero__title em { display: block; font-style: italic; color: var(--gold-light); }
.hero__lead { max-width: 34rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgba(250, 247, 242, .82); margin-bottom: 2.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
	position: absolute; left: 50%; bottom: 2.25rem; z-index: 1; transform: translateX(-50%);
	width: 1px; height: 64px; background: rgba(250, 247, 242, .25); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-light); animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { to { top: 100%; } }

@media (max-width: 720px) {
	.hero {
		background-image:
			linear-gradient(180deg, rgba(20, 18, 17, .55) 0%, rgba(20, 18, 17, .7) 45%, rgba(20, 18, 17, .95) 100%),
			var(--hero-img);
		background-position: 72% center;
		align-items: flex-end;
	}
	.hero__actions .btn { width: 100%; }
}

/* --- Sekcje ------------------------------------------------------------- */
.section { padding: var(--section) 0; position: relative; }
.section--light { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .section__title { color: var(--ivory); }

/* Usługi – karty */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card {
	position: relative;
	padding: clamp(2rem, 3vw, 2.75rem);
	background: var(--white);
	border: 1px solid var(--line);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card::before {
	content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold);
	transition: width .6s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(29, 27, 26, .35); border-color: transparent; }
.card:hover::before { width: 100%; }
.card__num {
	display: block; margin-bottom: 1.25rem;
	font-family: var(--serif); font-size: 3rem; font-style: italic; line-height: 1; color: var(--gold);
}
.card p { margin: 0; color: var(--ink-soft); }

/* Cennik */
.pricelist .wp-block-table { margin: 0; overflow-x: visible; }
.pricelist table { width: 100%; border-collapse: collapse; border: 0; }
.pricelist td {
	border: 0; padding: 1.15rem 0;
	border-bottom: 1px solid rgba(216, 191, 155, .2);
	vertical-align: baseline;
}
.pricelist td strong { font-weight: inherit; }
.pricelist td:first-child {
	font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.3;
	padding-right: 1.5rem;
}
.pricelist td:last-child {
	text-align: right; white-space: nowrap;
	font-size: 1rem; font-weight: 400; letter-spacing: .06em; color: var(--gold-light);
}
.pricelist tr { transition: background .3s var(--ease); }
.pricelist tr:hover td:first-child { color: var(--gold-light); }
.pricelist p:empty { display: none; }
.pricelist p { margin: 2rem 0 0; font-size: .875rem; letter-spacing: .04em; color: rgba(250, 247, 242, .6); }
.pricelist em { font-style: normal; }

.pricelist--light td { border-bottom-color: var(--line); }
.pricelist--light td:last-child { color: var(--gold-dark); }
.pricelist--light tr:hover td:first-child { color: var(--gold-dark); }
.pricelist--light p { color: var(--ink-soft); }

/* O nas – układ dzielony */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split__media { position: relative; margin: 0; isolation: isolate; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 30%; }
.split__media::before {
	content: ""; position: absolute; inset: -1.25rem 1.25rem 1.25rem -1.25rem;
	border: 1px solid var(--gold); z-index: -1;
}
.split__body .prose p { color: var(--ink-soft); }
.split__body .prose p:first-child { font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); line-height: 1.45; color: var(--ink); }

.badge {
	position: absolute; right: -1.5rem; bottom: 2rem;
	display: flex; align-items: center; gap: .9rem;
	padding: 1.25rem 1.6rem;
	background: var(--ink); color: var(--ivory);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .5);
}
.badge strong { font-family: var(--serif); font-size: 3.4rem; font-weight: 500; font-style: italic; line-height: 1; color: var(--gold-light); }
.badge span { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; }

@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.split__media { max-width: 520px; margin-left: 1.25rem; }
	.split__media img { aspect-ratio: 4 / 3; }
	.badge { right: .75rem; bottom: -1.5rem; }
	.split__body { margin-top: 1rem; }
}

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.contact__address p, p.contact__address { font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; margin-bottom: 2rem; }
.contact__address a { text-decoration: none; }
.contact__label { font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 .5rem; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact__map { min-height: 420px; background: var(--line); filter: grayscale(.85) contrast(1.05); transition: filter .6s var(--ease); }
.contact__map:hover { filter: none; }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; }
	.contact__map, .contact__map iframe { min-height: 320px; }
}

/* --- Podstrony ---------------------------------------------------------- */
.page-hero {
	padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
	background: var(--ink); color: var(--ivory);
	background-image: radial-gradient(ellipse at 85% 0%, rgba(184, 149, 106, .22), transparent 60%);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero__title { font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4.5rem); font-weight: 400; margin: 0; }

.entry-thumb { margin: 0 0 3rem; }
.back-link { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.back-link a { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--gold-dark); }

.prose figure iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; }

.post-list { display: grid; gap: 0; }
.post-list__item { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.post-list__item:first-child { padding-top: 0; }
.post-list__title { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); margin-bottom: .5rem; }
.post-list__title a { text-decoration: none; }
.post-list .eyebrow { margin-bottom: .75rem; }

.nav-links { display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; }
.nav-links .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line); text-decoration: none; }
.nav-links .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.search-form { display: flex; gap: .5rem; margin-top: 1.5rem; }
.search-form__input {
	flex: 1; min-width: 0; padding: .7rem 1rem;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
	font: inherit;
}

/* --- Stopka ------------------------------------------------------------- */
.site-footer { background: #151312; color: rgba(250, 247, 242, .72); padding: clamp(4rem, 8vw, 6rem) 0 2rem; font-size: .9375rem; }
.site-footer a { color: rgba(250, 247, 242, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(250, 247, 242, .1); }
.site-footer__brand .brand__name { color: var(--ivory); font-size: 2.6rem; }
.site-footer__brand p { margin-top: .75rem; }
.site-footer__title { font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 1rem; }
.site-footer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: .8125rem; color: rgba(250, 247, 242, .45); }
.site-footer__bottom p { margin: 0; }

@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* --- Animacje wejścia --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.2s; }
.js .hero .reveal:nth-child(2) { --d: 1; }
.js .hero .reveal:nth-child(3) { --d: 2; }
.js .hero .reveal:nth-child(4) { --d: 3; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* --- Bloki WordPressa --------------------------------------------------- */
.alignwide { max-width: var(--wrap); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image figcaption, .wp-caption-text { font-size: .875rem; color: var(--ink-soft); text-align: center; }
