/*
Theme Name: Studio Urody Lawenda
Description: Pokazowa strona salonu kosmetycznego.
Author: Jan Hajost
Version: 0.1
Text Domain: lawenda
*/

/* Kolory strony: lawenda, śliwka i krem */
:root {
	--sliwka: #3d2352;
	--lawenda: #6f4a99;
	--lawenda-ciemna: #573779;
	--lawenda-jasna: #ede6f6;
	--krem: #fbf8f4;
	--bialy: #fff;
	--tekst: #2e2438;
	--szary: #625870;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	color: var(--tekst);
	background: var(--krem);
	line-height: 1.65;
	overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #e09b00; outline-offset: 3px; }
.kontener { width: min(1100px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, .logo { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--sliwka); }

/* Dopasowanie bloków edytora: bez dodatkowego pudełka */
.wp-block-group__inner-container { display: contents; }

/* Nagłówek stale widoczny przy przewijaniu */
.naglowek { position: sticky; top: 0; z-index: 20; background: var(--bialy); border-bottom: 1px solid var(--lawenda-jasna); box-shadow: 0 4px 18px rgba(61, 35, 82, .07); }
.admin-bar .naglowek { top: 32px; }
.naglowek .kontener { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.logo { font-size: 1.45rem; text-decoration: none; }
.logo span { color: var(--lawenda); font-style: italic; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.menu a { text-decoration: none; padding: 8px 0; }
.menu a:hover { color: var(--lawenda); text-decoration: underline; }

/* Przyciski */
.przyciski { display: flex; flex-wrap: wrap; gap: 14px; }
.przycisk { display: inline-block; padding: 14px 28px; border-radius: 40px; font-weight: 700; text-decoration: none; border: 2px solid transparent; text-align: center; }
.przycisk-glowny { background: var(--lawenda); color: var(--bialy); }
.przycisk-glowny:hover { background: var(--lawenda-ciemna); }
.przycisk-obrys { border-color: var(--lawenda); color: var(--sliwka); }
.przycisk-obrys:hover { background: var(--bialy); }

/* Sekcja powitalna z rysunkiem lawendy */
.start { background: url("img/lawenda.svg") right 8% bottom / auto 90% no-repeat, linear-gradient(135deg, var(--krem) 0%, var(--lawenda-jasna) 100%); padding: 120px 0; }
.start h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.15; max-width: 16ch; }
.start p { font-size: 1.15rem; max-width: 50ch; margin: 20px 0 30px; color: var(--szary); }
.start .nadtytul { margin: 0 0 12px; font-size: .9rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--lawenda); }
.start .przyciski p { margin: 0; }

/* Wspólny wygląd sekcji */
.sekcja { padding: 76px 0; }
.sekcja-biala { background: var(--bialy); }
.sekcja h2 { font-size: clamp(1.7rem, 3.8vw, 2.4rem); text-align: center; }
.sekcja h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--lawenda); margin: 10px auto 0; border-radius: 3px; }
.wstep { color: var(--szary); margin: 16px auto 36px; max-width: 56ch; text-align: center; }

/* Kafelki zabiegów */
.zabiegi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 22px; }
.zabieg { background: var(--bialy); border: 1px solid var(--lawenda-jasna); border-radius: 18px; padding: 28px; box-shadow: 0 6px 22px rgba(61, 35, 82, .07); }
.zabieg::before { content: ""; display: block; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%; background: var(--lawenda-jasna) url("img/galazka.svg") center / 30px no-repeat; }
.zabieg h3 { font-size: 1.3rem; margin-bottom: 8px; }
.zabieg p { color: var(--szary); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.zabieg { transition: transform .2s, box-shadow .2s; }
	.zabieg:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(61, 35, 82, .14); }
}

/* Cennik */
.cennik-ramka { max-width: 760px; margin-inline: auto; }
.cennik { width: 100%; border-collapse: collapse; background: var(--krem); border-radius: 14px; overflow: hidden; }
.cennik th, .cennik td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--lawenda-jasna); }
.cennik thead th { background: var(--sliwka); color: var(--bialy); }
.cennik tbody th { font-weight: 400; }
.cennik td { white-space: nowrap; font-weight: 700; text-align: right; color: var(--lawenda-ciemna); }
.cennik thead th:last-child { text-align: right; }
.uwaga { margin-top: 16px; color: var(--szary); font-size: .95rem; text-align: center; }

/* Stopka */
.stopka { background: var(--sliwka); color: #e4dbf0; padding: 34px 0 96px; text-align: center; font-size: .95rem; }
.stopka p + p { margin-top: 8px; }

/* Przycisk telefonu stale widoczny */
.zadzwon-staly { position: fixed; right: 20px; bottom: 20px; z-index: 30; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); border-color: var(--bialy); }

/* Na telefonie menu rozwija się po naciśnięciu przycisku */
.menu-przycisk { display: none; }
@media (max-width: 782px) {
	.admin-bar .naglowek { top: 46px; }
}
@media (max-width: 700px) {
	html { scroll-padding-top: 78px; }
	.naglowek .kontener { padding: 10px 0; gap: 4px 8px; }
	.logo { line-height: 44px; font-size: 1.15rem; }
	.start { padding: 48px 0 190px; background: url("img/lawenda.svg") center bottom / auto 170px no-repeat, linear-gradient(160deg, var(--krem) 0%, var(--lawenda-jasna) 100%); }
	.sekcja { padding: 50px 0; }
	.start .przycisk { width: 100%; }
	.start .przyciski { display: grid; }
	.cennik th, .cennik td { padding: 13px 10px; }
	.zadzwon-staly { left: 12px; right: 12px; bottom: 12px; }
	.stopka { padding-bottom: 100px; }
}
@media (max-width: 380px) {
	/* Bardzo wąski ekran: nazwa i przycisk menu w jednym rzędzie */
	html { scroll-padding-top: 72px; }
	.naglowek .kontener { width: calc(100% - 24px); }
	.logo { font-size: 1rem; }
}
@media (max-width: 600px) {
	/* Na małym ekranie pasek WordPressa nie jedzie za stroną */
	.admin-bar .naglowek { top: 0; }
}

/* Powitanie ze zdjęciem (blok „Okładka”): jasne przejście pod napisami */
.start.wp-block-cover { display: block; min-height: 0; padding: 130px 0; background: var(--lawenda-jasna); }
.start .wp-block-cover__inner-container { width: 100%; }
.start .wp-block-cover__image-background { object-position: 70% center; }
.start .wp-block-cover__background { opacity: 1 !important; background: linear-gradient(90deg, rgba(251, 248, 244, .97) 0%, rgba(251, 248, 244, .9) 42%, rgba(251, 248, 244, .1) 75%) !important; }
.start p, .start .nadtytul { color: var(--sliwka); }

/* Zdjęcia w sekcjach */
.zdjecie img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.zdjecie-szerokie { margin: 0 0 30px; }
.zdjecie-szerokie img { aspect-ratio: 21 / 9; }
.dwie-kolumny { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 34px; }
.dwie-kolumny p + p { margin-top: 14px; }

/* Opinie i kontakt */
.zabiegi.opinie .zabieg::before { display: none; }
.autor { margin-top: 14px; font-weight: 700; color: var(--sliwka); }
.kontakt address { font-style: normal; color: var(--szary); }
.numer { display: inline-block; padding: 10px 0; font-weight: 700; }
.mapa { margin-top: 28px; }
.mapa iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: 18px; }
.srodek { text-align: center; margin-top: 20px; }

@media (max-width: 800px) {
	.dwie-kolumny { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 700px) {
	.start.wp-block-cover { padding: 48px 0; }
	.start .wp-block-cover__background { background: rgba(251, 248, 244, .86) !important; }
	.zdjecie-szerokie img { aspect-ratio: 4 / 3; }
	.mapa iframe { height: 260px; }
}

/* Blok "Okładka" domyślnie bieli napisy, a tu mają być ciemne */
.start.wp-block-cover, .start.wp-block-cover h1 { color: var(--sliwka); }


/* Mocniejszy napis w powitaniu */
.start.wp-block-cover h1 { font-weight: 700; font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.1; max-width: 13ch; text-shadow: 0 1px 12px rgba(251, 248, 244, .9); }

/* Menu z szóstym przyciskiem */
.menu { gap: 20px; }
.menu a.menu-umow { color: var(--lawenda); font-weight: 700; }

/* Zespół: kółka z inicjałami */
.zabiegi.zespol .zabieg { text-align: center; }
.zabiegi.zespol .zabieg::before { display: none; }
.zespol .inicjal { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--lawenda-jasna); color: var(--lawenda-ciemna); font: 1.7rem Georgia, serif; }

/* Pytania i odpowiedzi */
.pytania { max-width: 760px; margin-inline: auto; }
.pytania details { border-bottom: 1px solid var(--lawenda-jasna); }
.pytania summary { cursor: pointer; padding: 17px 0; font-weight: 700; color: var(--sliwka); }
.pytania details p { padding-bottom: 17px; color: var(--szary); }

/* Formularz wizyty */
.sekcja-lawenda { background: var(--lawenda-jasna); }
.formularz { display: grid; gap: 6px; max-width: 560px; margin-inline: auto; background: var(--bialy); padding: 28px; border-radius: 18px; }
.formularz label { font-weight: 700; color: var(--sliwka); margin-top: 10px; }
.formularz input, .formularz select, .formularz textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px; font: inherit; border: 1px solid #8d7fa5; border-radius: 10px; background: var(--bialy); color: var(--tekst); }
.formularz button { margin-top: 18px; font: inherit; font-weight: 700; }
.formularz button:disabled { background: #6f687a; cursor: not-allowed; }

/* Facebook i Instagram w stopce */
.profile { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-bottom: 16px; }
.profile a, .profile summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; cursor: pointer; list-style: none; }
.profile summary::-webkit-details-marker { display: none; }
.profile svg { width: 28px; height: 28px; }

@media (max-width: 700px) {
	.formularz { padding: 20px 16px; }
}
/* Telefon i tablet: menu rozwija się po naciśnięciu przycisku, więc nagłówek ma jeden rząd */
@media (max-width: 960px) {
	html { scroll-padding-top: 80px; }
	.menu { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
	.menu a { display: block; padding: 12px 0; border-top: 1px solid var(--lawenda-jasna); }
	.z-przyciskiem .menu-przycisk { display: inline-block; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 700; color: var(--sliwka); background: transparent; border: 1px solid var(--lawenda); border-radius: 40px; cursor: pointer; }
	.z-przyciskiem .menu { display: none; }
	.z-przyciskiem.otwarte .menu { display: flex; max-height: calc(100vh - 150px); overflow-y: auto; }
}
@media (max-width: 380px) {
	.z-przyciskiem .menu-przycisk { padding: 0 10px; font-size: .9rem; }
}

/* Na telefonie zdjęcie w powitaniu jest w całości widoczne nad napisami */
@media (max-width: 700px) {
	.start.wp-block-cover { padding: 0 0 40px; background: var(--krem); }
	.start.wp-block-cover .wp-block-cover__background { display: none; }
	.start.wp-block-cover .wp-block-cover__image-background { position: static; display: block; width: 100%; height: 240px; object-fit: cover; object-position: 72% center; margin-bottom: 28px; }
}