/*
 * wl-metamorphose.css
 * Backfill klas Tailwind użytych w nowych blokach METAMORPHOSE (S4/S5),
 * których brakuje w purdżowanym app.css (brak lokalnego buildu Tailwinda).
 * Wartości = dokładne odpowiedniki Tailwind v3.4.
 * Ładowany po appTheme.css (patrz functions/func-style.php).
 */

/* --- siatka (własna klasa, by uniknąć kolizji z Isotope motywu na .grid) --- */
.wl-grid { display: grid; }

/* --- HERO: tło = fala (góra) + slajd (osoba/talerz), tekst nałożony z lewej --- */
.wl-hero {
	position: relative;
	background-color: #ffffff;
	background-image: var(--wl-hero-shape);
	background-repeat: no-repeat;
	background-position: left top;
	background-size: 947px 378px;
	overflow: hidden;
}
.wl-hero.wl-hero--has-slide {
	/* slajd = tło całej sekcji jak na home (.site-slider): cover / center center;
	   fala (shape) jako warstwa na górze */
	background-image: var(--wl-hero-shape), var(--wl-hero-slide);
	background-position: left top, center top;
	background-size: 947px 378px, auto 100vh;
	background-repeat: no-repeat, no-repeat;
}
.wl-hero-content {
	position: relative;
	z-index: 2;
	max-width: 620px;
	padding-top: 170px;
	padding-bottom: 60px;
}
@media (min-width: 1024px) {
	.wl-hero { min-height: 100vh; }
	.wl-hero { background-size: 947px 378px; }
	.wl-hero.wl-hero--has-slide { background-size: 947px 378px, auto 100vh; background-position: left top, center top; }
	.wl-hero-content { padding-top: 320px; padding-bottom: 40px; }
	.wl-hero-title { font-size: 3rem; line-height: 1.05; }
}
.wl-hero-mobile-img { display: none; }
@media (max-width: 1023px) {
	.wl-hero.wl-hero--has-slide { background-image: var(--wl-hero-shape); background-size: 100% auto; background-position: left top; }
	.wl-hero { background-size: 100% auto; background-position: left top; }
	.wl-hero-content { max-width: 100%; padding-top: 165px; padding-bottom: 24px; }
	/* na telefonie pokaż slajd (kobieta/talerz) pod treścią, przycięty do prawej części kompozycji */
	.wl-hero-mobile-img {
		display: block;
		width: 100%;
		height: 300px;
		object-fit: cover;
		object-position: 75% center;
		border-radius: 1.25rem;
		margin: 0 auto 8px;
	}
}

/* --- HERO: promo jako pociągnięcie pędzla (lime) za tekstem --- */
.wl-promo-brush { position: relative; display: inline-block; max-width: 100%; }
.wl-promo-brush__bg {
	position: absolute;
	z-index: 0;
	top: -12px;
	left: -28px;
	width: calc(100% + 56px);
	height: calc(100% + 24px);
	fill: #d4ed85;
}
.wl-promo-brush__text { position: relative; z-index: 1; margin: 0; }

/* --- HERO: pionowa kreska między datami (Anmeldung | Gruppenstart) --- */
@media (min-width: 640px) {
	.wl-hero-dates > div + div { border-left: 1px solid #c3c7b6; padding-left: 2rem; }
}

/* --- HERO: wyróżnione ikony dat (zielone kółko) --- */
.wl-date-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	background-color: rgba(98, 108, 68, 0.12);
	color: #626c44;
}
.w-7 { width: 1.75rem; }
/* ciaśniej: brak marginesów akapitów motywu między etykietą a datą */
.wl-hero-dates p { margin: 0; line-height: 1.2; }

/* --- rozmiary --- */
.w-24 { width: 6rem; }
.w-6  { width: 1.5rem; }
.w-5  { width: 1.25rem; }
.h-8  { height: 2rem; }

/* --- marginesy --- */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-auto { margin-top: auto; }
.mt-14   { margin-top: 3.5rem; }

/* --- flex --- */
.shrink-0 { flex-shrink: 0; }

/* --- cień --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* --- S2: Phasen --- */
/* identycznie jak h1–h6 motywu (appTheme.css): "Lora", serif */
.wl-serif { font-family: "Lora", serif; }
.wl-phase { position: relative; }
.wl-phase-icon { width: 3rem; height: 3rem; }
/* kółko ikony nachodzące na górną ramkę karty (jak w S4) */
.wl-phase-circle {
	position: absolute;
	top: -2.6rem;
	left: 50%;
	transform: translateX(-50%);
	width: 5.5rem;
	height: 5.5rem;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.18);
}
.metamorphose-phasen-block .wl-phase { padding-top: 4rem; }
@media (min-width: 1024px) {
	.metamorphose-phasen-block .wl-phase { padding-top: 4.5rem; }
}
/* odstępy między akapitami treści w kartach faz */
.wl-phase-text p { margin: 0 0 1rem; }
.wl-phase-text p:last-child { margin-bottom: 0; }
/* środkowa karta wyróżniona cieniem, ale wyrównana z pozostałymi (równy start/koniec) */
.wl-phase--featured {
	z-index: 2;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}
/* równa wysokość: siatka rozciąga karty do wspólnej wysokości */
.items-stretch { align-items: stretch; }
.wl-grid > .wl-phase { height: 100%; }

/* --- S3: health-guide (how-we-work-2) — kolorowe nagłówki tylko na stronie landing --- */
.page-template-template-metamorphose-landing .health-guide .single-health-block h4 { font-weight: 700; }
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(1) h4 a,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(4) h4 a,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(6) h4 a,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(1) h4,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(4) h4,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(6) h4 { color: #4e8a2e; }
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(3) h4 a,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(5) h4 a,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(3) h4,
.page-template-template-metamorphose-landing .health-guide .row.grid > .grid-item:nth-child(5) h4 { color: #e0892b; }

/* --- Tekst opisowy sekcji METAMORPHOSE: Roboto 400, #666 (spójnie z resztą strony) --- */
.metamorphose-hero-block .text-gray-text,
.metamorphose-phasen-block .text-gray-text,
.metamorphose-phasen-block .wl-phase-text,
.metamorphose-eignung-block .text-gray-text,
.metamorphose-invest-block .text-gray-text,
.page-template-template-metamorphose-landing .health-guide .single-health-block p {
	color: #666;
	font-weight: 400;
	font-family: "Roboto", sans-serif;
}

/* --- S4: Eignung (Ist METAMORPHOSE das Richtige für dich?) --- */
.wl-eig-icon { width: 3rem; height: 3rem; }
/* karta: miejsce na kółko wychodzące ponad górną ramkę (wyższa specyficzność niż .p-6/.lg:p-8) */
.wl-eig-card { position: relative; }
.metamorphose-eignung-block .wl-eig-card { padding-top: 4rem; }
/* kółko ikony — większe i nachodzące na górną krawędź karty (jak w projekcie) */
.wl-eig-circle {
	position: absolute;
	top: -2.6rem;
	left: 50%;
	transform: translateX(-50%);
	width: 5.5rem;
	height: 5.5rem;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.18);
}
@media (min-width: 1024px) {
	.metamorphose-eignung-block .wl-eig-card { padding-top: 4.5rem; }
}
.wl-head-swoosh { display: block; width: 220px; max-width: 70%; height: 14px; margin: 12px auto 0; }
.wl-eig-text p { margin: 0 0 1rem; color: #666; font-weight: 400; font-family: "Roboto", sans-serif; }
.wl-eig-text p:last-child { margin-bottom: 0; }
.wl-eig-item { color: #444; font-weight: 400; font-family: "Roboto", sans-serif; }
.wl-eig-note span:last-child { color: #666; font-weight: 400; font-family: "Roboto", sans-serif; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* --- S5: układ wg projektu (zdjęcie jedzenia po lewej + fale + offset treści) --- */
.wl-invest { position: relative; overflow: hidden; background-color: #fbfcf6; }
.wl-invest-wave { position: absolute; left: 0; right: 0; height: 130px; background-repeat: no-repeat; background-size: auto 130px; background-position: left top; z-index: 0; pointer-events: none; opacity: 0.9; }
.wl-invest-wave--top { top: 0; }
.wl-invest-wave--bottom { bottom: 0; transform: scale(-1, -1); }
.wl-invest-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
@media (min-width: 1024px) {
	.wl-invest-inner { max-width: 720px; margin: 0 auto; }
}
@media (min-width: 640px) {
	.wl-invest-features > div + div { border-left: 1px solid rgba(123, 178, 65, 0.55); padding-left: 2rem; }
}
.wl-invest-quote { position: relative; }
.wl-quote-spark { position: absolute; top: -12px; right: 20px; }
.wl-quote-sparkle { width: 1.75rem; height: 1.75rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }

/* --- S5: Investition --- */
.italic         { font-style: italic; }
.line-through   { text-decoration-line: line-through; }
.items-baseline { align-items: baseline; }
.gap-x-3        { column-gap: 0.75rem; }
.gap-y-1        { row-gap: 0.25rem; }
.mt-1           { margin-top: 0.25rem; }
.mt-2           { margin-top: 0.5rem; }
.max-w-2xl      { max-width: 42rem; }

/* --- stan przycisku płatności (blokada do zaznaczenia zgody) --- */
.wl-pay-disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* --- S1/S2/S3: dodatkowe utility --- */
.gap-x-4       { column-gap: 1rem; }
.gap-y-2       { row-gap: 0.5rem; }
.mt-3          { margin-top: 0.75rem; }
.px-5          { padding-left: 1.25rem; padding-right: 1.25rem; }
.h-14          { height: 3.5rem; }
.h-7           { height: 1.75rem; }
.border-t      { border-top-width: 1px; }
.leading-tight { line-height: 1.25; }
.tracking-wide { letter-spacing: 0.025em; }
.\[\&_svg\]\:w-7 svg { width: 1.75rem; }
.\[\&_svg\]\:h-7 svg { height: 1.75rem; }

/* --- semantyczne przyciski / akcenty (marka: ciemna zieleń) --- */
.wl-btn-green        { background-color: #5f7d33; color: #ffffff; }
.wl-btn-green:hover  { opacity: 0.9; }
.wl-btn-outline      { border: 2px solid #5f7d33; color: #33501f; }
.wl-btn-outline:hover{ background-color: rgba(123, 178, 65, 0.18); color: #33501f; border-color: #4e8a2e; }
.wl-pill-green       { background-color: #5f7d33; color: #ffffff; }
.wl-accent-bar       { background-color: #626c44; }

/* --- responsywne --- */
@media (min-width: 640px) {
	.sm\:gap-8          { gap: 2rem; }
	.sm\:w-auto         { width: auto; }
	.sm\:border-l       { border-left-width: 1px; }
	.sm\:border-gray-text { border-left-color: #545454; }
	.sm\:pl-4           { padding-left: 1rem; }
	.sm\:pl-6           { padding-left: 1.5rem; }
	.sm\:ml-2           { margin-left: 0.5rem; }
}
@media (min-width: 1024px) {
	.lg\:p-8      { padding: 2rem; }
	.lg\:p-10     { padding: 2.5rem; }
	.lg\:gap-6    { gap: 1.5rem; }
	.lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
	.lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
	.lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Blok "our_experts" poza stroną główną (np. landing METAMORPHOSE).
   Motyw nadaje wysokość slajdom tylko regułą ".home .single-experts { height:350px }",
   więc poza home karuzela ma wysokość 0 i tła zdjęć są niewidoczne. Odtwarzamy wysokość. */
.page-template-template-metamorphose-landing .single-experts {
	height: 350px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

/* --- responsywne --- */
@media (max-width: 768px) {
	.items-stretch {
	  gap: 4.5rem;
	}
}
