/* ─── Lucki project styles ──────────────────────────────────────── */
:root :where(.wp-block-button .wp-block-button__link) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--wp--preset--gradient--custom-color-1);
  color: var(--wp--preset--color--white);
  transition: color 0.3s ease;
}

:root :where(.wp-block-button .wp-block-button__link)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgb(145,44,117) 0%, rgb(69,59,127) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

:root :where(.wp-block-button .wp-block-button__link:hover)::before,
:root :where(.wp-block-button .wp-block-button__link:focus-visible)::before {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 90px;
}
.single-post .wp-block-post-content img{
	border-radius: 1rem;
}
.single-post .medrev-reviewed-by p{
	margin:0;
	margin-bottom: 5px;
}

.medrev-reviewed-by {
	margin-bottom:10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #1A162E12;
}
.box-hover, .swiper .wp-block-post {
  transition: all .2s ease-in-out;
}

.box-hover:hover, .swiper .wp-block-post:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05) !important;
  transform: translateY(-.25rem);
}

header .wp-block-navigation__submenu-container {
  border-radius: 0.5rem;
  overflow: hidden !important;
  left: -15px !important;
	min-width: 300px !important;
}
header .wp-block-navigation__submenu-container .wp-block-navigation-item:hover{
  background-color:#f3f2f8;
}


header .wp-block-navigation-item__content {
  padding: 1rem 0;
}
/* ─── Footer ────────────────────────────────────────────────────── */

footer .wp-block-column a {
	text-decoration: none;
}
footer .wp-block-column a:hover {
	text-decoration: underline;
  	text-underline-offset: 5px; 
 	text-decoration-color: #b53791; 
	transition: text-decoration-color 0.7s ease;
}
footer ul {
	padding: 0;
  list-style: none;
  font-size: 1rem;
}
footer ul p{
	margin:0!important;
	padding:0;
}
footer ul li{
	line-height: 1.3;

}
footer ul li a{
	display: inline-block;
 padding-bottom: 7px;
	margin-bottom: 7px;

}
footer ul li a:hover{
	text-decoration: underline;

}
/* ─── decor-text ─────────────────────────────────────────────────── */
.decor-text {
	color: var(--wp--preset--color--accent-2) !important;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	position: relative;
	padding-left: 18px;
	font-weight: 400;
	display: inline-block;
}
.decor-text::before {
	position: absolute;
	content: '';
	top: 7px;
	left: 0;
	width: 9px;
	height: 9px;
	background-color: var(--wp--preset--color--accent-1) !important;
	border-radius: 10px;
}
h3.decor-text{
	font-size:clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
	text-transform: none;
	padding-left: 25px;
	color: var(--wp--preset--color--accent-3)!important;
}
h3.decor-text::before {
	top: 11px;
	left: 5px;
	width: 9px;
	height: 9px;
	border-radius: 20px;
}


/* ─── FAQ accordion (blok Yoast FAQ) ─────────────────────────────── */
/* Opcjonalny akordeon dla bloku Yoast FAQ. Aktywny dopiero gdy do      */
/* bloku dodasz klasę CSS `faq-accordion` (edytor → Zaawansowane →      */
/* Dodatkowe klasy CSS). Bez tej klasy blok zachowuje się standardowo.  */
/* Zwijanie i strzałka są dodatkowo bramkowane klasą `.faq-js-ready`    */
/* (dokłada ją JS) — gdy skrypt się nie wczyta, odpowiedzi są widoczne. */
.schema-faq.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq-accordion .schema-faq-section {
	border-radius: 8px;
	background: #f3f2f8;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.faq-accordion .schema-faq-section:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-accordion .schema-faq-question {
	display: block;
	position: relative;
	padding: 16px 48px 16px 20px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.4;
	user-select: none;
	outline: none;
}

.faq-accordion.faq-js-ready .schema-faq-question {
	cursor: pointer;
}

.faq-accordion .schema-faq-question:focus-visible {
	box-shadow: inset 0 0 0 2px #2563eb;
}

/* Ikona strzałki — tylko gdy JS aktywny */
.faq-accordion.faq-js-ready .schema-faq-question::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 12px;
	height: 12px;
	transform: translateY(-50%) rotate(0deg);
	transition: transform 0.25s ease;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23333' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-size: contain;
}

.faq-accordion.faq-js-ready .schema-faq-section.is-open .schema-faq-question::after {
	transform: translateY(-50%) rotate(180deg);
}

/* Odpowiedź — animowane zwijanie (tylko gdy JS aktywny) */
.faq-accordion.faq-js-ready .schema-faq-answer {
	margin: 0;
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

.faq-accordion.faq-js-ready .schema-faq-section.is-open .schema-faq-answer {
	max-height: 1000px;
	opacity: 1;
	padding: 0 20px 18px;
}


/* ─── Treatment cards ────────────────────────────────────────────── */
.treatment-card {
	z-index:999;
}
.treatment-card a {
	display: block;
	padding: 6rem 0;
	text-decoration: none;
	color: white;
	 letter-spacing: 0;
  transition: all 0.4s ease;
	position:relative;
	z-index: 9;
	font-size: 30px;
}
.page-id-1141 .treatment-card a {
	padding: 5rem 0;
}
.treatment-card a:hover {
  letter-spacing: 0.04em;
}

.treatment-card a:before {
	content: '';
	position: absolute;
	top:1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	border: 1px solid #ffffff11;
	border-radius: 0.5rem;
	transition: all 0.4s ease;
	backdrop-filter: blur(5px);
	z-index:-1;
	
}
.treatment-card a:hover:before {
  border: 1px solid #ffffff66;
	top:2rem;
	left: 2rem;
	right: 2rem;
	bottom: 2rem;
	backdrop-filter: blur(0px);
}
.cta-cover .wp-block-cover, .acf-cta{
	transition: all 0.4s ease;
	position:relative;
}
.cta-cover .wp-block-cover:before,
.acf-cta:before{
	content: '';
	position: absolute;
	top:2.5rem;
	left: 2.5rem;
	right: 2.5rem;
	bottom: 2.5rem;
	border: 1px solid #ffffff11;
	border-radius: 0.5rem;
	transition: all 0.4s ease;
	backdrop-filter: blur(5px);
	z-index:9;
}
.cta-cover .wp-block-cover:hover:before,
.acf-cta:hover:before{
  border: 1px solid #ffffff66;
	top:3rem;
	left: 3rem;
	right: 3rem;
	bottom: 3rem;
	backdrop-filter: blur(0px);
}
.cta-cover .wp-block-cover__inner-container,
.acf-cta__inner{
	z-index:99;
	padding: 0 6rem;
}
/* ─── Section circle decoration ─────────────────────────────────── */
.bg-circle {
	position: relative;
	z-index: 99;

}
.circle.big {
	width: 600px;
	height: 600px;
}
.circle.medium {
	width: 300px;
	height: 300px;
}
.circle.small {
	width: 100px;
	height: 100px;
}
.circle {
	position: absolute;
	border-radius: 100%;
	background-color: #453b7f33;
	z-index: -1;
	transition: 1200ms all ease;
}
.bg-circle:hover .circle {
	scale: 0.9;
	opacity:0.5;
}
.face.bg-circle .circle.small{
	bottom: -60px;
	right: -60px;
	background-color: #453b7f44;
}
.body.bg-circle .circle.medium{
	bottom: -170px;
	left: -170px;
background-color: #453b7f55;
}

.dark-section-circle.bg-circle  {
	overflow: hidden;
}
.dark-section-circle.bg-circle .circle.big {
	bottom: -140px;
	left: -40px;
}
.dark-section-circle.bg-circle .circle.small {
bottom: 25px;
  left: 35%;
}
footer .dark-section-circle.bg-circle .circle.big {
  bottom: -240px;
  right: -80px;
	left: auto;
}

/* ─── Archive header ─────────────────────────────────────────────── */
.archive-header * {
	color: white;
}

/* ─── Home blog Swiper carousel ─────────────────────────────────── */
.homeBlogSwiper {
	overflow: hidden;
}
@media (min-width: 992px) {
	.homeBlogSwiper.swiper {
		overflow: visible;
	}
}

.homeBlogSwiper .wp-block-post {
	flex-shrink: 0;
	height: 100%;
	position: relative;
	background: #ffffff;
	border-radius: 1rem;
	overflow: hidden;
	padding-bottom: 1.25rem;
	opacity: .15;
	transition: all .3s ease;
}
.homeBlogSwiper .wp-block-post.swiper-slide-visible {
	opacity: 1;
}

/* Nawigacja karuzelki — pod slajderem, wyśrodkowana */
.home-blog-section .swiper-button-prev,
.home-blog-section .swiper-button-next {
	top: auto;
	bottom: 45px;
	border: 1px solid var(--wp--preset--color--accent-3) !important;
	border-radius: 0.375rem;
	width: 44px;
	color: var(--wp--preset--color--accent-3) !important;
	transition: all .2s ease-in-out;
}
.home-blog-section .swiper-button-prev::after,
.home-blog-section .swiper-button-next::after {
	font-size: 22px;
	font-weight: bold;
}
.home-blog-section .swiper-button-prev:hover,
.home-blog-section .swiper-button-next:hover {
	background-color: var(--wp--preset--color--accent-3) !important;
	color: #fff;
}
.home-blog-section .swiper-button-prev {
	left: 47%;
}
.home-blog-section .swiper-button-next {
	left: 51%;
}

/* ─── Archive zabiegi ────────────────────────────────────────────── */
.post-type-archive-zabiegi .content-area,
.tax-kategoria_zabiegow .content-area {
	margin: 0;
}
.zabiegi-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.zabiegi-grid article {
	width: calc(33% - 17px);
	background: #f3f2f8;
	border-radius: 1rem;
	padding: 1rem;
}
.zabiegi-grid .zabieg-card-linkbox {
	text-decoration: none !important;
}
.zabiegi-grid article img {
	border-radius: 0.25rem;
	aspect-ratio: 3/2;
	object-fit: cover;
	margin-bottom: .5rem;
}
.zabiegi-grid article h2 {
	font-size: 1.6rem;
	margin-bottom: .5rem;
}
.zabiegi-grid article p {
	margin: 0 0 .5rem;
}

/* ─── Single zabiegi ─────────────────────────────────────────────── */
.single-zabiegi h1 {
	color: white;
}
.hero-zabieg-wpis{
	position:relative;

}
.hero-zabieg-wpis .wp-block-group.is-vertical {
	position: absolute;
  	left: 0;
  	right: 0;
  	bottom: 2.5rem;
	color:white;
}
.hero-zabieg-wpis .wp-block-post-title{
	color: white!important;
}
.hero-zabieg-wpis .attachment-post-thumbnail {
	max-height: 430px;
}
/* ─── Breadcrumbs (Lucki override) ───────────────────────────────── */
.base-block-breadcrumbs__current {
	color: var(--wp--preset--color--accent-1);
}

/* ─── Post Card (Lucki override) ─────────────────────────────────── */
.base-block-post-card {
	background: #f3f2f8;
	border-radius: 0.5rem;
}

.base-block-post-card__body {
	padding: var(--wp--preset--spacing--30);
}
.base-block-post-card__image {
	position:relative;
}
.base-block-post-card__image:before {
	content: '';
	position: absolute;
	top:0;
	left: 0;
	right: 0;
	bottom: 0;
	transition: all 0.4s ease;
	backdrop-filter: blur(0px);
	z-index:99;	
}
.base-block-post-card__image:hover:before {
	background-color:#1a162eb3;
	backdrop-filter: blur(5px);
}
.base-block-post-card__title {
	font-weight: 400;
	line-height: 1.3;
	font-size: 1.3rem;
	margin: 0;
}

/* contact form */
.wpcf7-form label,
.wpcf7-form-control-wrap,
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea{
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea{
	padding: 0.75rem;
  border-radius: 0.35rem;
  border: none;
  font-size: 1rem;
}
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.wpcf7-form-control-wrap input[type=checkbox]{
	width: auto;
}
.wpcf7-form label{
	margin-bottom:0.5rem;
}
.wpcf7-submit {
  background: white;
  color: black;
}

/* =========================================
   CTA — Sekcja Kontakt
   ========================================= */

.acf-cta {
	position: relative;
	overflow: hidden;

	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 1rem;


	min-height: 430px;
	color: #fff;
}

/* Obrazek tła */
.acf-cta__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

/* Ciemna nakładka — dopasuj kolor/krycie do akcentu motywu */
.acf-cta__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: -1;
}

/* Kontener treści */


/* Treść z WYSIWYG */
.acf-cta__content {
	margin-bottom: 2rem;
	color: inherit;
}



.acf-cta__content > *:last-child {
	margin-bottom: 0;
}

 .acf-cta__content h1,
.acf-cta__content h2,
.acf-cta__content h3,
.acf-cta__content h4 {
	margin: 0 0 1rem;
	line-height: 1.2;
	color: white!important;
}



.acf-cta__content p {
	margin: 0 0 1em;
	font-size: clamp(1rem, 1.3vw, 1.125rem);
	line-height: 1.6;
	color: inherit;
}

.acf-cta__content a {
	color: inherit;
	text-decoration: underline;
}




/* Wrap pod przycisk */
.acf-cta__button-wrap {
	display: flex;
	justify-content: center;
}

/* Przycisk — dopasuj kolor do palety motywu */
.acf-cta__button {
	display: inline-block;
	padding: 0.85em 2.2em;
	background-color: var(--wp--preset--color--accent, #7e3f9c);
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.acf-cta__button:hover,
.acf-cta__button:focus-visible {
	background-color: var(--wp--preset--color--accent-2, #6a3486);
	color: #fff;
	transform: translateY(-1px);
}

.acf-cta__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Page blog */

.blog-list-item-image {
	position: relative;
	overflow:hidden;
}

.blog-list-item-image figure{
	height:100%;
}
.blog-list-item-image .wp-block-group {
	position: absolute;
  bottom: 1rem;
  left: 1rem;
	backdrop-filter: blur(5px);
}

/* Responsywność */
@media (max-width: 600px) {
	.acf-cta {
		border-radius: 0.75rem;
		min-height: 260px;
		padding: clamp(2rem, 8vw, 3rem) 1.25rem;
	}
}
@media (max-width: 780px) {
	.home-hero, .archive-hero, .hero-zabieg-wpis{
		    min-height: auto!important;
    		margin-top: 57px!important;
	}
	.cta-cover .wp-block-cover:before{
		top:1.5rem;
		left: 1.5rem;
		right: 1.5rem;
		bottom: 1.5rem;
}
.cta-cover .wp-block-cover:hover:before {
  border: 1px solid #ffffff66;
	top:2rem;
	left: 2rem;
	right: 2rem;
	bottom: 2rem;
}
.cta-cover .wp-block-cover__inner-container,
	.acf-cta__inner{
	z-index:99;
	padding: 2rem;
}
	
	.face.bg-circle .circle.small{
	bottom: -60px;
	right: 5px;
	background-color: #453b7f44;
}

    header .wp-block-image img {
            max-height: 28px;
    object-fit: contain;
    object-position: left;
    
}
	.treatment-card a {
	font-size: 24px;
}
}

.wrap-input {
  display: flex;
  gap: 30px;
}

h2.wp-block-accordion-heading {
	font-size:clamp(1.6rem, 1.35rem + 1vw, 2rem);
}
@media (max-width: 781px) {
  /* rodzic pozycji z dzieckiem: flex z zawijaniem, bez kotwicy absolutnej */
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item.has-child {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    position: static !important;
  }

  /* button z etykietą: wypełnia szerokość, trzyma się w linii */
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-submenu__toggle {
    flex: 1 1 auto !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  /* ikona strzałki: dosunięta do prawej, w tej samej linii co etykieta */
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item.has-child
    > .wp-block-navigation__submenu-icon {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    position: static !important;
    order: 1 !important;
  }

  /* sub-menu: łamie linię, pełna szerokość, płynie w dół (rozpycha) */
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container {
    flex-basis: 100% !important;
    width: 100% !important;
    order: 2 !important;
    position: static !important;
  }
	  .wpcf7-form .wrap-input {
    flex-direction: column !important;
  }
  .wpcf7-form .wrap-input > p {
    width: 100% !important;
  }
	.mobile-text-left{
		text-align:left!important;
	}
	.hero-zabieg-wpis .wp-block-group.is-vertical{
		left: var(--wp--style--root--padding-right);
		right: var(--wp--style--root--padding-right);
	}
	.single-post .hero-zabieg-wpis .wp-block-group.is-vertical{
		top: 60px;
	}
	.single-post .hero-zabieg-wpis .wp-block-group.is-vertical h1{
		font-size:1.5rem;
	}
	.wp-block-search {
		margin-top: 2rem!important;
	}
}