/*
 * Kosmetyka — main.css (Faza 1: tokeny, baza, nagłówek, stopka).
 * Sekcje strony głównej, zabiegi, portfolio i widget rezerwacji dochodzą w Fazie 3.
 */

:root {
	/* Ciepłe pastele (nude / róż / szampan) */
	--kos-cream:        #faf5f0;
	--kos-cream-soft:   #fdfaf6;
	--kos-nude:         #ead9cc;
	--kos-blush:        #f2dcd8;
	--kos-champagne:    #d9c3a0;
	--kos-sand:         #efe4d6;

	/* Brand — mauve. #9a5f6f na bieli = ok. 4,9:1 (WCAG AA dla tekstu) */
	--kos-primary:      #9a5f6f;
	--kos-primary-700:  #7d4a59;
	--kos-primary-50:   #f6ebee;

	/* Tekst / tło */
	--kos-ink:          #2f2523;
	--kos-ink-soft:     #5e5250;
	--kos-ink-muted:    #7a6d6a;
	--kos-bg:           #ffffff;
	--kos-line:         #eadfd6;

	--kos-radius:       18px;
	--kos-radius-sm:    10px;
	--kos-shadow:       0 10px 30px rgba(47, 37, 35, .08);

	--kos-font:         'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--kos-font-script:  'Caveat', cursive;
	--kos-container:    1180px;
	--kos-gutter:       clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--kos-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--kos-ink);
	background: var(--kos-cream-soft);
}

img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--kos-primary); }
a:hover { color: var(--kos-primary-700); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--kos-container); margin: 0 auto; padding: 0 var(--kos-gutter); }
.content { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 6vw, 72px); }

/* Dostępność */
.screen-reader-text {
	position: absolute !important; 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; z-index: 1000;
	background: var(--kos-ink); color: #fff; padding: 10px 16px; border-radius: var(--kos-radius-sm);
	transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }
:focus-visible { outline: 3px solid var(--kos-primary); outline-offset: 2px; }

/* Przyciski */
.kos-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; border-radius: 999px; border: 1px solid var(--kos-line);
	background: #fff; color: var(--kos-ink); font: inherit; font-weight: 600;
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.kos-btn:hover { background: var(--kos-sand); color: var(--kos-ink); }
.kos-btn.kos-btn--primary { background: var(--kos-primary); border-color: var(--kos-primary); color: #fff; }
.kos-btn.kos-btn--primary:hover { background: var(--kos-primary-700); border-color: var(--kos-primary-700); color: #fff; }

/* Nagłówek */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(253, 250, 246, .92); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--kos-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-logo { text-decoration: none; color: var(--kos-ink); display: inline-flex; align-items: center; }
.site-logo img { max-height: 44px; width: auto; }
.site-logo__text { font-family: var(--kos-font-script); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.site-logo { gap: 12px; }
.site-logo .site-logo__mark { height: 54px; width: auto; max-height: none; }
.site-logo__words { display: grid; gap: 5px; }
.site-logo .site-logo__word { height: 22px; width: auto; max-height: none; }
.site-logo__tag { font-size: .68rem; line-height: 1; letter-spacing: .17em; color: var(--kos-ink-soft); font-weight: 500; white-space: nowrap; }
@media (max-width: 420px) { .site-logo__tag { display: none; } .site-logo .site-logo__mark { height: 46px; } .site-logo .site-logo__word { height: 19px; } }
.site-footer__logo { display: block; width: 240px; height: auto; margin: 0 0 10px -6px; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__list, .site-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav__list a { color: var(--kos-ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--kos-primary); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--kos-line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	content: ''; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--kos-ink); border-radius: 2px;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle__bar::after { top: 7px; left: 0; right: 0; }

@media (max-width: 1180px) {
	.nav-toggle { display: inline-block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 20px var(--kos-gutter) 24px; background: var(--kos-cream-soft); border-bottom: 1px solid var(--kos-line);
		max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; /* poziomy telefon: dolne pozycje muszą być osiągalne */
	}
	.site-nav__list a, .site-nav__account { display: block; padding: 11px 0; }
	.no-js .nav-toggle { display: none; }
	.no-js .site-nav { display: flex; position: static; padding: 8px 0; background: none; border: 0; max-height: none; }
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; gap: 14px; }
}

/* Treść domyślna */
.entry { margin-bottom: 48px; }
.entry__title a { color: inherit; text-decoration: none; }
.entry__content { max-width: 760px; overflow-wrap: anywhere; } /* długie adresy URL w Regulaminie nie mogą poszerzać strony na telefonie */

/* Stopka */
.site-footer { background: var(--kos-cream); border-top: 1px solid var(--kos-line); padding: 40px 0 18px; color: var(--kos-ink-soft); line-height: 1.55; }
.site-footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; align-items: start; }
.site-footer__title { display: block; color: var(--kos-ink); margin-bottom: 8px; }
.site-footer p { margin: 0 0 4px; }
.site-footer__addr { margin-bottom: 8px !important; }
.site-footer a { color: var(--kos-ink-soft); }
.site-footer a:hover { color: var(--kos-primary); }
.site-footer__social { display: flex; gap: 10px; margin-top: 8px; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--kos-line); border-radius: 50%; background: #fff; }
.site-footer__social a:hover, .site-footer__social a:focus-visible { border-color: var(--kos-primary); background: var(--kos-primary-50, #f6ebee); }
.site-footer__social .icon { width: 20px; height: 20px; }
.site-footer__logo + .site-footer__social { margin: 0 0 10px; }
.site-footer__menu { flex-direction: column; gap: 0; }
.site-footer__copy { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--kos-line); color: var(--kos-ink-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.site-footer__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__credit a:hover { color: var(--kos-primary-700); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Pasek admina (zalogowani): lepki nagłówek nie może chować się pod nim */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.site-nav__account { font-weight: 600; color: var(--kos-ink-soft); text-decoration: none; white-space: nowrap; }
.site-nav__account:hover { color: var(--kos-primary); }

/* Cele dotykowe w stopce (36 px wysokości, 40 px na telefonie; WCAG 2.5.8 wymaga min. 24 px) — bez rozciągania odstępów:
   odstęp między pozycjami daje wyłącznie padding linku, a pierwszy wiersz kolumny jest cofnięty o ten padding */
.site-footer__menu a, .site-footer p a, .site-footer .kos-cc-open { display: inline-block; padding: 5px 0; line-height: 1.5; }
.site-footer p:has(> a) { margin: 0; }
.site-footer__col > .site-footer__menu:first-child, .site-footer__col > p:first-child > a:only-child { margin-top: -5px; }
.site-footer .kos-cc-open { font-size: inherit; }
.kos-btn.kos-btn--ghost { background: transparent; border-color: var(--kos-primary); color: var(--kos-primary-700); }
.kos-btn.kos-btn--ghost:hover { background: var(--kos-primary-50); }
@media (max-width: 720px) {
	.site-footer__logo { width: 170px; margin-left: 0; }
	.site-footer { padding-top: 32px; }
	.site-footer__inner { gap: 20px; }
	.site-footer__menu a, .site-footer p a, .site-footer .kos-cc-open { padding: 7px 0; }
	.site-footer__col > .site-footer__menu:first-child, .site-footer__col > p:first-child > a:only-child { margin-top: -7px; }
}
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } } /* pasek admina nie jest wtedy przyklejony */
/* Konto klientki w nagłówku: sama ikona na desktopie (podpis dla czytników), z podpisem w menu mobilnym */
.site-nav__account { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--kos-line); background: #fff; color: var(--kos-ink-soft); }
.site-nav__account:hover, .site-nav__account:focus-visible { border-color: var(--kos-primary); color: var(--kos-primary); }
.site-nav__account .icon { width: 22px; height: 22px; }
.site-nav__account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1180px) {
	.site-nav__account { width: auto; height: auto; border: 0; border-radius: 0; background: none; justify-content: flex-start; padding: 11px 0; }
	.site-nav__account-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-weight: 600; }
}

/* Ikony social w stopce: wyśrodkowane w kółku (bije ogólną regułę linków stopki z paddingiem) */
.site-footer .site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
.site-footer .site-footer__social .icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
