/*
Theme Name: Psyche & Intima
Theme URI: https://joannawalaszek.pl/
Author: Rafal Palinowski
Description: Motyw marki Psyche & Intima - gabinet psychologiczny mgr Joanny Walaszek (psycholog i seksuolog, Torun). Paleta barw pobrana z identyfikacji wizualnej. Zawiera komplet szablonow (strona glowna, O mnie, Oferta i cennik, FAQ, Opinie, Kontakt, blog, strony prawne), wlasny modul SEO z danymi strukturalnymi oraz integracje z Contact Form 7 i wtyczka bazy maili.
Version: 1.10.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: joanna-walaszek
Tags: one-column, custom-menu, translation-ready
*/

/*
  Wlasciwe style motywu znajduja sie w assets/css/main.css (skompilowany Tailwind).
  Ten plik jest wymagany przez WordPress jako naglowek motywu.
  Ponizej tylko drobne uzupelnienia: menu mobilne, formularz CF7, elementy edytora.
*/

/* ---------- Menu mobilne ---------- */
.jw-mobile-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.jw-mobile-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--forest);
	transition: transform .3s ease, opacity .3s ease;
}

.jw-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.jw-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.jw-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
	.jw-mobile-toggle {
		display: none;
	}
}

.jw-mobile-nav {
	display: none;
	flex-direction: column;
	gap: 4px;
	margin-top: 12px;
	padding: 18px 22px 22px;
	border-radius: 22px;
	background: color-mix(in oklab, var(--cream) 97%, transparent);
	backdrop-filter: blur(14px);
	box-shadow: 0 24px 50px -28px color-mix(in oklab, var(--forest) 50%, transparent);
}

.jw-mobile-nav.is-open {
	display: flex;
}

.jw-mobile-nav a {
	padding: 12px 4px;
	font-size: 1rem;
	color: var(--forest);
	border-bottom: 1px solid color-mix(in oklab, var(--forest) 8%, transparent);
	text-decoration: none;
}

.jw-mobile-nav a:last-child {
	border-bottom: 0;
}

/*
 * Przycisk „Umów wizytę” w pasku nagłówka (obok logo i hamburgera) na
 * wąskich ekranach nie mieści się obok pełnego bloku logo (sygnet + nazwa
 * + podtytuł) — wiersz się ściska albo łamie. Na mobile chowamy go z paska
 * i przenosimy jako wyróżniony pierwszy element rozwijanego menu (patrz
 * .jw-mobile-cta niżej) — od 768px wraca na swoje miejsce w pasku.
 */
.jw-header-cta {
	display: none;
}

@media (min-width: 768px) {
	.jw-header-cta {
		display: inline-flex;
	}
}

.jw-mobile-nav .jw-mobile-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	padding: 14px 4px;
	border-bottom: 0;
	border-radius: 999px;
	background: var(--forest);
	color: var(--cream);
	font-weight: 500;
}

@media (min-width: 768px) {
	.jw-mobile-nav,
	.jw-mobile-nav.is-open {
		display: none;
	}
}

/* ---------- Formularz kontaktowy (CF7) ---------- */
/* Cała definicja .jw-form mieszka w assets/css/ui.css — patrz komentarz tam. */

/* ---------- Tresc stron / wpisow ---------- */
.jw-entry-content h2,
.jw-entry-content h3 {
	margin: 2rem 0 .8rem;
	color: var(--forest);
	font-family: "Lora", Georgia, serif;
}

.jw-entry-content p,
.jw-entry-content li {
	margin-bottom: 1rem;
	line-height: 1.75;
}

.jw-entry-content ul,
.jw-entry-content ol {
	margin: 0 0 1rem 1.2rem;
	list-style: disc;
}

.jw-entry-content a {
	color: var(--accent);
	text-decoration: underline;
}

.jw-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

/* ---------- Dostepnosc ---------- */
.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;
}

.jw-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--forest);
	color: var(--cream);
	text-decoration: none;
}
