/* ==========================================================================
   Babska Fanaberia — design tokens
   Direction: industrial circle. Graphite/charcoal + warm off-white,
   brushed-metal silver, one warm copper accent. Space Grotesk display,
   IBM Plex Sans body. Circle as the recurring form (logo badge, station
   mirrors, round shelving from the real interior).
   ========================================================================== */

:root {
	--color-bg: #f4f2ef;
	--color-bg-alt: #ffffff;
	--color-ink: #1b1919;
	--color-ink-soft: #45403d;
	--color-charcoal: #211f1e;
	--color-charcoal-2: #2b2826;
	--color-silver: #c9c6c1;
	--color-cream: #ece7e1;
	--color-accent: #b3703c;
	--color-accent-hover: #9c5f30;
	--color-line: rgba(27, 25, 25, 0.12);
	--color-line-dark: rgba(236, 231, 225, 0.16);

	--font-display: "Syne", "Segoe UI", sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

	--container-w: 1180px;
	--radius-md: 14px;
	--radius-lg: 28px;
	--shadow-card: 0 18px 40px -22px rgba(27, 25, 25, 0.35);
	--shadow-accent: 0 14px 28px -12px rgba(179, 112, 60, 0.55);

	--ease: cubic-bezier(.22, .8, .32, 1);
	--dur: 550ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.12;
	margin: 0 0 .5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

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

.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 12px; top: -60px;
	background: var(--color-ink); color: #fff;
	padding: 10px 16px; border-radius: 8px; z-index: 1000;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	font-family: var(--font-display); font-weight: 600; font-size: .95rem;
	padding: .85em 1.5em; border-radius: 999px;
	text-decoration: none; border: 1.5px solid transparent;
	cursor: pointer; transition: transform var(--dur) var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent {
	background: var(--color-accent); color: #fff;
	box-shadow: var(--shadow-accent);
}
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-accent:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost {
	background: transparent; color: var(--color-ink);
	border-color: var(--color-line);
}
.btn-ghost:hover { background: rgba(27,25,25,.06); }
.btn-lg { padding: 1em 1.9em; font-size: 1.02rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 100;
	background: rgba(244, 242, 239, 0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-line);
}
.header-inner {
	display: flex; align-items: center; gap: 20px;
	height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-ink); }
.brand-badge {
	border-radius: 50%;
	border: 2px solid var(--color-silver);
	background: var(--color-ink);
	padding: 2px;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }

.site-nav { margin-inline: auto; }
.site-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.site-nav a {
	text-decoration: none; font-weight: 500; font-size: .95rem;
	position: relative; padding-bottom: 4px;
}
.site-nav a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
	height: 2px; background: var(--color-accent);
	transition: right var(--dur) var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.header-phone { flex: none; }
.btn-phone { padding: .65em 1.2em; font-size: .9rem; }

.nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--color-line);
	background: transparent; cursor: pointer; flex: none;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--color-ink); margin-inline: auto; transition: transform .25s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.header-inner { gap: 12px; }
	.brand { margin-right: auto; }
	.brand-name { white-space: nowrap; font-size: 1rem; }

	.site-nav {
		position: fixed; top: 76px; left: 0; right: 0;
		margin-inline: 0;
		background: var(--color-bg-alt);
		border-bottom: 1px solid var(--color-line);
		box-shadow: 0 20px 32px -22px rgba(27, 25, 25, .45);
		opacity: 0; visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s linear;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
	.site-nav ul { flex-direction: column; gap: 0; padding: 6px 24px 16px; }
	.site-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--color-line); }
	.site-nav li:last-child a { border-bottom: none; }
	.header-phone { order: 2; }
	.header-phone span { display: none; }
	.nav-toggle { display: flex; order: 3; }
}

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

.hero {
	position: relative;
	min-height: 92vh;
	display: flex; align-items: flex-end;
	padding-top: 76px;
	overflow: hidden;
	background: var(--color-ink);
}
.hero-media {
	position: absolute; inset: 0;
	background-size: cover; background-position: center 26%;
	transform: scale(1.06);
}
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(27,25,25,.30) 0%, rgba(27,25,25,.24) 26%, rgba(27,25,25,.42) 52%, rgba(27,25,25,.66) 74%, rgba(27,25,25,.92) 100%);
}
.hero-inner {
	position: relative; z-index: 2;
	color: #fff; text-align: center;
	display: flex; flex-direction: column; align-items: center;
	padding-block: 40px 96px;
}
.hero h1 { max-width: 20ch; margin-bottom: .45em; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.hero-lede { max-width: 46ch; color: var(--color-cream); font-size: 1.08rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }

.section-divider {
	position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px;
	fill: var(--color-bg);
}
/* Wariant przy górnej krawędzi sekcji — fala „wchodzi" w poprzednią sekcję */
.section-divider--top { top: auto; bottom: 100%; }
.services .section-divider--top { fill: var(--color-charcoal); }

/* ==========================================================================
   Stats strip (pod cennikiem) — liczby odliczane
   ========================================================================== */

.stats { background: var(--color-bg); padding-block: 78px; }
.stats-row {
	display: flex; align-items: center; justify-content: center;
	gap: 10px; flex-wrap: wrap;
}
.stat-connector {
	width: 54px; height: 1px; background: var(--color-line);
	flex: 0 0 auto;
}
.stat {
	position: relative; width: 172px; min-height: 172px; flex: 0 0 auto;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 4px; text-align: center;
}
.stat-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.stat-ring-track, .stat-ring-draw { fill: none; stroke-width: 1.5; }
.stat-ring-track { stroke: var(--color-line); }
.stat-ring-draw {
	stroke: var(--color-accent);
	stroke-linecap: round;
	stroke-dasharray: 327;
	stroke-dashoffset: 327;
	transition: stroke-dashoffset 1.2s var(--ease);
}
.stat.is-visible .stat-ring-draw { stroke-dashoffset: 40; }
.stat-number {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.7rem, 2.2vw, 2rem); color: var(--color-ink);
	line-height: 1; display: inline-flex; align-items: baseline; letter-spacing: -.02em;
}
.stat-value { font-variant-numeric: tabular-nums; }
.stat-unit { font-size: .6em; font-weight: 600; margin-left: 2px; color: var(--color-accent); }
.stat-label {
	font-size: .72rem; color: var(--color-ink-soft);
	line-height: 1.35; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px;
}

@media (max-width: 880px) {
	.stat-connector { display: none; }
	.stats-row { gap: 26px 10px; max-width: 460px; margin-inline: auto; }
	.stat { width: 46%; max-width: 172px; min-height: 158px; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding-block: 96px; }
.about-grid {
	display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center;
}
.about-media { position: relative; }
.about-media-frame {
	position: relative; border-radius: var(--radius-lg); overflow: hidden;
	box-shadow: var(--shadow-card);
}
.about-media-frame img {
	width: 100%; height: 600px; object-fit: cover; object-position: center 16%;
	display: block; transform: scale(1.15); will-change: transform;
}
.about-media-ring {
	position: absolute; width: 130px; height: 130px; border-radius: 50%;
	border: 3px solid var(--color-accent);
	bottom: -32px; right: -32px;
	opacity: .55;
}
.eyebrow {
	display: inline-block; font-family: var(--font-display); font-weight: 600;
	font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--color-accent); margin-bottom: 12px;
}
.eyebrow-light { color: var(--color-silver); }
.about-copy p { color: var(--color-ink-soft); }

@media (max-width: 860px) {
	.about-grid { grid-template-columns: 1fr; gap: 40px; }
	.about-media-ring { display: none; }
	.about-media-frame img { height: 440px; transform: scale(1.12); }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { background: var(--color-charcoal); color: var(--color-cream); padding-block: 100px; position: relative; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-lede { color: rgba(236,231,225,.72); }
.services .section-lede { color: rgba(236,231,225,.72); }

.services-groups {
	columns: 2; column-gap: 56px;
}
.services-group { break-inside: avoid; margin-bottom: 40px; }
.services-group-title {
	font-size: 1.02rem; text-transform: uppercase; letter-spacing: .05em;
	color: var(--color-silver); margin-bottom: 18px;
	padding-bottom: 10px; border-bottom: 1px solid var(--color-line-dark);
}
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
	display: flex; align-items: baseline; gap: 10px;
	padding-block: 11px;
}
.price-name { font-size: .96rem; }
.price-dots {
	flex: 1; border-bottom: 1px dotted rgba(236,231,225,.28);
	transform: translateY(-4px);
}
.price-value { font-family: var(--font-display); font-weight: 600; color: var(--color-accent); white-space: nowrap; }
.price-group-note { margin: 14px 0 0; font-size: .85rem; color: rgba(236,231,225,.6); font-style: italic; }
.price-note { margin-top: 36px; font-size: .85rem; color: rgba(236,231,225,.55); text-align: center; }

@media (max-width: 760px) {
	.services-groups { columns: 1; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
	position: relative; color: #fff;
	padding-block: 88px; min-height: 52vh;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-ink);
}
.gallery-bg {
	position: absolute; inset: 0; z-index: 0;
	background-image:
		linear-gradient(rgba(20,19,18,.70), rgba(20,19,18,.82)),
		url("../images/new/salon-babska-fanaberia-plock-1.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}
.gallery-inner { position: relative; z-index: 1; width: 100%; }
.gallery .section-head { text-align: center; margin-inline: auto; margin-bottom: 30px; }

.carousel { position: relative; }
.carousel-track {
	list-style: none; margin: 0; padding: 6px 2px 12px;
	display: flex; gap: 16px;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 clamp(240px, 40vw, 420px); scroll-snap-align: center; }
.carousel-open {
	display: block; width: 100%; margin: 0; padding: 0; border: 0;
	border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in;
	background: var(--color-charcoal); aspect-ratio: 3 / 2;
	box-shadow: 0 20px 40px -22px rgba(0,0,0,.7);
}
.carousel-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.carousel-open:hover img { transform: scale(1.05); }
.carousel-btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.3);
	background: rgba(20,19,18,.62); color: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	transition: background .2s var(--ease), opacity .25s var(--ease), border-color .2s;
}
.carousel-btn:hover { background: var(--color-accent); border-color: transparent; }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-btn .icon { width: 22px; height: 22px; }
.carousel-prev { left: -4px; }
.carousel-next { right: -4px; }

@media (max-width: 900px) {
	.gallery-bg { background-attachment: scroll; }
}
@media (max-width: 560px) {
	.carousel-slide { flex-basis: 80vw; }
	.carousel-prev { left: 4px; }
	.carousel-next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.gallery-bg { background-attachment: scroll; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { padding-block: 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.hours-list { margin: 0 0 28px; }
.hours-row {
	display: flex; justify-content: space-between; gap: 12px;
	padding-block: 9px; border-bottom: 1px dashed var(--color-line);
	font-size: .96rem;
}
.hours-row dt { font-weight: 500; }
.hours-row dd { margin: 0; font-family: var(--font-display); font-weight: 600; }
.hours-row-closed dd { color: var(--color-ink-soft); font-weight: 500; }

.contact-detail {
	display: flex; align-items: center; gap: 12px;
	margin-bottom: 12px; color: var(--color-ink-soft);
}
.contact-detail .icon { color: var(--color-accent); }
.contact-detail a { text-decoration: none; font-weight: 600; color: var(--color-ink); }

.social-links { display: flex; gap: 12px; margin-top: 22px; }
.social-links a {
	width: 42px; height: 42px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-ink); color: #fff;
	transition: background .25s, transform var(--dur) var(--ease);
}
.social-links a:hover { background: var(--color-accent); transform: translateY(-2px); }

.contact-map { position: relative; }
.map-embed {
	position: relative; border-radius: var(--radius-lg); overflow: hidden;
	aspect-ratio: 4 / 3; background: var(--color-charcoal);
	box-shadow: var(--shadow-card);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
	position: absolute; inset: 0; width: 100%; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 14px; color: var(--color-cream); background: var(--color-charcoal);
	border: none; cursor: pointer; text-align: center; padding: 24px;
	font-family: var(--font-body); font-size: .92rem;
}
.map-placeholder .icon { width: 2.2em; height: 2.2em; color: var(--color-accent); }
.map-placeholder:hover { background: var(--color-charcoal-2); }

@media (max-width: 860px) {
	.contact-grid { grid-template-columns: 1fr; }
}

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

.site-footer { background: var(--color-charcoal); color: rgba(236,231,225,.75); padding-block: 34px; }
.footer-inner {
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
	justify-content: space-between; font-size: .85rem;
}
.brand-footer { color: #fff; }
.footer-copy { margin: 0; flex: 1 1 260px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-link {
	background: none; border: none; color: inherit; text-decoration: underline;
	cursor: pointer; font: inherit; padding: 0;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(15, 14, 13, .93);
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { position: relative; max-width: min(96vw, 1400px); max-height: 94vh; display: flex; }
.lightbox-inner img {
	max-width: 100%; max-height: 94vh; width: auto; height: auto;
	border-radius: 8px; margin-inline: auto; display: block;
}
.lightbox-close {
	position: absolute; top: 8px; right: 8px; z-index: 2;
	width: 42px; height: 42px; border-radius: 50%;
	background: rgba(20,19,18,.55); color: #fff; border: none;
	font-size: 1.6rem; line-height: 1; cursor: pointer;
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	transition: background .2s;
}
.lightbox-close:hover { background: rgba(20,19,18,.85); }

/* ==========================================================================
   Floating call button (mobile)
   ========================================================================== */

.fab-call {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--color-accent); color: #fff;
	display: none; align-items: center; justify-content: center;
	box-shadow: var(--shadow-accent);
	opacity: 0; transform: translateY(12px) scale(.9);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
	text-decoration: none;
}
.fab-call.is-visible { opacity: 1; transform: translateY(0) scale(1); }
@media (max-width: 860px) {
	.fab-call { display: flex; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
	opacity: 0; transform: translateY(22px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Warianty wejścia — nie każda sekcja wchodzi tak samo */
.stat.reveal { transform: scale(.82); }
.stat.reveal.is-visible { transform: scale(1); }

/* Stagger — dzieci tego samego wiersza wchodzą po kolei, nie jednocześnie */
.stats-row .stat:nth-child(3) { transition-delay: 80ms; }
.stats-row .stat:nth-child(5) { transition-delay: 160ms; }
.stats-row .stat:nth-child(7) { transition-delay: 240ms; }

.services-groups .services-group:nth-child(2) { transition-delay: 90ms; }
.services-groups .services-group:nth-child(4) { transition-delay: 90ms; }

@media (prefers-reduced-motion: reduce) {
	.reveal, .stat.reveal {
		opacity: 1; transform: none; transition: none;
	}
	.btn, .carousel-open img, .about-media-frame img, .fab-call, .stat-ring-draw { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
	.site-nav { transition-duration: 1ms; transform: none; }
	.site-nav:not(.is-open) { transform: none; opacity: 0; }
}

[tabindex="-1"]:focus { outline: none; }
