/*
Theme Name: Kidly
Theme URI: https://mysticnord.com
Author: MysticNord
Author URI: https://mysticnord.com
Description: Ultra-lekki klasyczny motyw (bez Site Editor). Czysty, gotowy pod ACF i własne taksonomie.
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: kidly
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* -------------------------------------------------------------------------------- Structure */
/**/
@font-face {
  font-family: "Recoleta Light";
  src: url("assets/fonts/recoleta/Recoleta-Light.woff2") format("woff2"),
       url("assets/fonts/recoleta/Recoleta-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Recoleta Regular";
  src: url("assets/fonts/recoleta/Recoleta-Regular.woff2") format("woff2"),
       url("assets/fonts/recoleta/Recoleta-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Recoleta Medium";
  src: url("assets/fonts/recoleta/Recoleta-Medium.woff2") format("woff2"),
       url("assets/fonts/recoleta/Recoleta-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
:root {
	--white: #fff;
	--almostwhite: #fefefe;
	--black: rgb(18, 18, 18);
	--lightgrey: #f5f5f7;
	--lightgrey15: rgba(187, 187, 187, 0.15);
	--darkgrey: rgb(127, 128, 128);
	--light: rgb(255, 241, 240);
	--lightpink: rgb(246, 213, 218);
	--otherpink: rgb(249,144,182);
	--pink: rgb(255, 98, 137);
	--red: rgb(124, 1, 30);
}
img {
	max-width: 100%;
}
img.custom-logo {
	object-fit: contain;
}
body {
	background-color: var(--white);
	margin: 0;
	padding: 0;
}
.site-content {
	overflow: hidden;
}
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}
*:not(.site-header) .container {
	padding-left: 32px;
	padding-right: 32px;
}
.section .container {
	padding: 80px 32px;
	position: relative;
	z-index: 1;
}
.container.columns {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 40px;
}
a {
	text-decoration: none;
	transition-duration: .3s;
}
ul {
	list-style: none;
}
.flex {
	display: flex;
	flex-wrap: wrap;
}
.site-footer {
	background-color: var(--lightgrey);
	padding: 50px 0;
}
body.page-template-page-columns .site-content,
body.page-template-pricelist .site-content,
body.page-template-page-with-intro .site-content,
body.archive.post-type-archive .site-content {
	position: relative;
}
body.page-template-page-columns .site-content:before,
body.page-template-pricelist .site-content:before,
body.page-template-page-with-intro .site-content:before,
body.archive.post-type-archive .site-content:before {
	content: '';
	background-image: url('/wp-content/themes/kidly/img/page-bg.png');
	background-repeat: no-repeat;
	background-size: 30% auto;   
	min-height: 400px;	
	position: absolute;
	top: 10%;
	left: -200px;
	width: 100%;
	height: 100%;
	opacity: .045;
	z-index: 0;
}

/* -------------------------------------------------------------------------------- Typography */
/**/
h1, h2, h3, h4, h5, h6,
li,
.site-nav ul li a {
  font-family: "Recoleta Regular", serif;
}
p,
a,
h6,
.cf7-textarea, .kidly-contact__form .wpcf7 input,
.cf7-textarea, .kidly-contact__form .wpcf7 textarea,
.cf7-submit-btn, .kidly-contact__form .wpcf7 input[type="submit"] {
	font-family: "Recoleta Light";
	font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {margin: 0;}
h1 { font-size: 60px; line-height: 72px;}
h2 { font-size: 52px; }
h3 { font-size: 44px; line-height: 52px;}
h4 { font-size: 36px; }
h5 { font-size: 28px; }
h6 { font-size: 24px; line-height: 30px; }
.single-therapy_group .entry-title {
	font-size: 44px;
	line-height: 52px;
	color: var(--red);
}
p {
	font-size: 18px;
	line-height: 28px;
	color: var(--black);
}
p.subtitle {
	font-size: 28px;
	color: var(--pink);
}
p.section-title {
	color: var(--pink);
	margin-bottom: 0;
}
p.loc-address,
p.loc-nip,
p.loc-brand,
.footer-menu a,
.footer-contact-widget p {
	font-size: 14px;
	color: var(--darkgrey);
}
.wp-block-heading,
.footer-contact-widget p a {
	color: var(--red);
}
.single .wp-block-heading {
	color: var(--black);
	margin: 20px 0 40px;
}
.single h5.wp-block-heading {
	margin: 40px 0 30px;	
}
.single h6.wp-block-heading {
	margin: 60px 0 30px;	
}
.site-nav ul li a {
	color: var(--red);
	text-decoration: none;
	padding: 14px 18px;
	font-size: 16px;
}
.site-nav ul li:hover a {
	color: var(--pink);
}
/* --- Buttons --- */
a {
	cursor: pointer;
}
a.btn,
.btn-more,
.wp-block-button__link,
.site-nav ul li.menu-button a,
.entry-content p a,
.home .section p a {
	background-color: var(--red);
	color: var(--white);
	border-radius: 12px;
	border: solid 1px var(--red);
	padding: 10px 18px;
	white-space: nowrap; 
}
a.btn:hover,
.btn-more:hover,
.wp-block-button__link:hover,
.site-nav ul li.menu-button:hover a,
.entry-content p a:hover,
.home .section p a:hover {
	background-color: var(--pink);
}
.entry-content p a:last-of-type,
.location-card__actions a:last-of-type,
.home .section p a:last-of-type,
.home .section.parents p a,
a.btn.style-2 {
	background-color: var(--white);
	color: var(--black);
	border: solid 1px var(--black);
}
.entry-content p a:last-of-type:hover,
.location-card__actions a:last-of-type:hover,
.home .section p a:last-of-type:hover,
.home .section.parents p a:hover,
a.btn.style-2:hover {
	background-color: var(--black);
	color: var(--white);
}
.home .section.parents p a:last-of-type {
	background-color: var(--red);
	color: var(--white);
}
.home .section.parents p a:last-of-type:hover {
	background-color: var(--pink);
}
.entry-content p a,
.home .section p a {
	display: inline-block;
	margin-right: 20px;
	margin-bottom: 20px;
}
.buttons a {
	margin-right: 40px;
}
/* 🔵 Zamiast niebieskiej poświaty (outline), dajemy neutralną */
a:focus,
button:focus,
.kidly-modal__close:focus {
    outline: none; /* usuwa niebieską ramkę */
    box-shadow: 0 0 0 2px var(--accent, --red); /* np. Twoja główna barwa */
    border-radius: 4px;
}

/* Zmieniamy też kolor przycisków, żeby nie były niebieskie */
a.btn,
button.btn {
    background-color: var(--pink);
    border: none;
    color: var(--white);
}
a.btn:hover,
button.btn:hover {
    background-color: var(--red);   /* ciemniejszy wariant na hover */
    color: var(--white);
}
/*
a.btn.btn-outline {
    background: transparent;
    border: 2px solid var(--red);
    color: #ff5a5f;
}
a.btn.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}
*/






/* Listy */
:root { --checks-accent: #ff6b89; }

ul {
	margin: 0;
	padding: 0;
}
body.home .site-content ul:not(.base-elements):not(.tg-meta):not(.kidly-therapy-grid__list) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: .8rem 3rem;   /* odstęp pion / poziom */
	list-style: none;
	margin: 0;
	padding: 0;
}
body.single-therapy_group .site-content ul {
	grid-template-columns: 1fr;
	gap: 0;
	padding: 30px 0;
}
.single ol li {
	font-size: 18px;
	line-height: 28px;
	margin-bottom: 20px;
}
.site-content ul:not(.therapy-staff__grid) li {
	position: relative;
	margin: 0 0 .7em 0;
	padding-left: 30px;
}
.site-content ul:not(.cennik-list):not(.base-elements):not(.therapy-staff__grid):not(.therapy-staff__track) li::before {
	content: "";
	position: absolute;
	left: 0; 
	top: .1em;
	width: 1.15em; 
	height: 1.15em;
	background: var(--checks-accent);
  /* maska SVG – kolor bierze się z background */
	-webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.2 6.7c.4.4.4 1 0 1.4l-9 9c-.4.4-1 .4-1.4 0l-5-5a1 1 0 0 1 1.4-1.4l4.3 4.3 8.3-8.3c.4-.4 1-.4 1.4 0z" fill="%23000"/></svg>') center/contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.2 6.7c.4.4.4 1 0 1.4l-9 9c-.4.4-1 .4-1.4 0l-5-5a1 1 0 0 1 1.4-1.4l4.3 4.3 8.3-8.3c.4-.4 1-.4 1.4 0z" fill="%23000"/></svg>') center/contain no-repeat;
}
.site-content .base-elements {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding-left: 0;
}
.site-content .base-elements li {
	color: var(--white);
	background-color: var(--pink);
	padding: 10px 18px;
	border-radius: 12px;
	margin-right: 20px;
	font-size: 20px;
}


/* -------------------------------------------------------------------------------- Header */
/**/
.site-header {
	position: fixed;
	top: 16px;
	left: 0;
	width: 100%;
	z-index: 9;
	box-sizing: border-box;
}
.site-header .container {
	background-color: var(--lightpink);
	border-radius: 12px;
	padding: 14px 30px 14px 20px;
	box-shadow: rgba(125, 0, 29, 0.72) 0px 0.602187px 0.602187px -1.25px, rgba(125, 0, 29, 0.64) 0px 2.288533px 2.288533px -2.5px, rgba(125, 0, 29, 0.25) 0px 10px 10px -3.75px;
	display: flex;
	justify-content: space-between;
}
.site-branding img {
	max-width: 116px;
	object-fit: contain;
	height: auto;
	margin-bottom: -10px;
}
.site-nav,
.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
/* Social Media */
.site-social {
	display: flex;
	align-items: center;
	margin-left: 20px;
}
.site-social a {
	display: flex;
	align-items: center;
}
svg.social-icon {
	fill: var(--red);
	width: 32px;
	height: 32px;
	transition-duration: .3s;
}
svg.social-icon:hover {
	fill: var(--pink);
}

/* -------------------------------------------------------------------------------- Footer */
/**/
.site-footer { 
	padding: 60px 0 20px; 
}
.footer-inner.container {
	padding-top: 40px;
	border-top: solid 1px var(--lightpink);
}
.footer-grid { 
	display: grid; 
	grid-template-columns: 1fr 1fr 2.8fr 1.2fr; 
	gap: 40px; 
}
.footer-col-title { 
	margin: 0 0 16px; 
	color: var(--red);
	font-size: 20px;
}
.footer-logo img {
	max-width: 116px;
	height: auto;
	object-fit: contain;
}
.footer-menu-list { list-style: none; padding: 0; margin: 0; }
.footer-menu-list li { margin: 8px 0; }
.company-location { margin: 0 0 18px; }
.loc-name {
	font-weight: 600; 
	margin: 0 0 6px; 
}
.loc-address, .loc-contact { margin: 0 0 6px; }
.footer-bottom { margin-top: 40px; }
.footer-separator { 
	height: 1px; 
	background: var(--lightpink); 
	margin-bottom: 16px; 
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-locations__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 16px 40px;
}
.footer-locations__col .loc-address { margin: 0 0 14px; }
.footer-locations__col .loc-address a { text-decoration: none; color: inherit; }
.footer-locations__col .loc-nip { margin: 10px 0 20px 0; }
.footer-locations__col .loc-brand { margin: 0; }
@media (max-width: 800px){
	.footer-locations__cols { grid-template-columns: 1fr; }
}
.copyright {
	font-size: 12px;
}

/* -------------------------------------------------------------------------------- Content */
/**/
.site-content {
	padding-top: 180px;
}
.container.columns,
.additional-elements.columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.col-1,
.col-2 {
	width: 50%;
	max-width: 48%;
	flex: 1 1 50%;
}
.col-full {
	width: 100%;
}
.col-2 img {
	object-fit: cover;
	max-height: 580px;
	border-radius: 24px;
}

/* Video */
.col-full {
	text-align: center;
}
.col-full a {
	margin: 20px auto;
}
.video-embed {
	position: relative;
	width: 100%; 
	max-width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
}

.video-embed iframe {
	inset: 0;
	min-width: 100%;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 12px;
}

/* -------------------------------------------------------------------------------- Plan działania */
/**/
/* ===========================
   PLAN DZIAŁANIA — styl
   =========================== */
.plan-head { text-align: center; margin-bottom: 24px; }
.plan-subtitle { margin: 0; }
.plan-title { margin: 8px 0 0; }

.plan-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; margin-top: 50px;}
.plan-left { width: 100%; }
.plan-image { width: 100%; height: auto; border-radius: 12px; display: block; }

.plan-right { width: 100%; }
.plan-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.plan-step { display: grid; grid-template-columns: 54px 1fr; gap: 40px; align-items: start; }
.plan-step-iconwrap { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; }
.plan-step-icon { 
	width: 60px; 
	height: 60px; 
	object-fit: contain; 
	display: block; 
	margin-top: -10px;
}
.plan-step-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }

.plan-step-title { margin: 0 0 6px; }
.plan-step-num { margin-right: 6px; }
.plan-step-desc { margin: 0; opacity: .82; }

.plan-cta { 
	margin: 40px auto;
	text-align: center;
}
.plan-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #6c0b1a; /* bordowy jak na screenie */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, opacity .15s ease;
}
.plan-btn:hover { transform: translateY(-1px); opacity: .95; }

/* Desktop: dwie kolumny jak na screenie */
@media (min-width: 960px) {
  .plan-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}


/* -------------------------------------------------------------------------------- HomePage */
/**/
body.home {
	background-color: var(--light);
}
.wp-block-embed__wrapper iframe {
	width: 100%;
	min-height: 530px;
	border-radius: 16px;
}

/* --- Sections --- */
.section.offer,
.section.locations,
.section.theraphies,
.section.parents,
.section.contact,
.section.gallery,
.section.news {
	background-color: var(--white);
}
.section.diagnosis {
	background-color: var(--light);
}
.section.plan {
	background-color: var(--lightgrey);
}
.section.parents {
	background-image: url('/wp-content/themes/kidly/img/section-bg.svg');
	background-size: contain;  
	min-height: 400px;	
}
.section.therapies-individual {
	position: relative;
}
.section.therapies-individual:before {
	content: '';
	background-image: url('/wp-content/themes/kidly/img/page-bg.png');
	background-repeat: no-repeat;
	background-size: 30% auto;   
	min-height: 400px;	
	position: absolute;
	top: -200px;
	left: -200px;
	width: 100%;
	height: 100%;
	opacity: .045;
	z-index: 0;
}

/* -- */
/* --- Sekcja: Hero --- */
/* -- */
#hero {
	padding-bottom: 80px;
}
.photo-wrapper {
	position: relative;
	display: inline-block;
	border-radius: 20px;
	overflow: hidden;
	margin-right: -50px;
	margin-left: -50px;
	width: 120%;
}
.photo-wrapper img {
	display: block;
	border-radius: 20px;
	position: relative;
	max-width: 550px;
	z-index: 2;
	margin: 0 auto;
}
.photo-wrapper::before {
  content: "";
  position: absolute;
  top: 20%;
  left: -40px;
  width: 300px;
  height: 80px;
  background: linear-gradient(90deg, #f5b8c0, #e3a1b0);
  border-radius: 40px;
  transform: rotate(-25deg);
  filter: blur(5px);
  z-index: 1;
}
.photo-wrapper::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: -40px;
  width: 300px;
  height: 80px;
  background: linear-gradient(90deg, #7a0a23, #a31635);
  border-radius: 40px;
  transform: rotate(-25deg);
  filter: blur(5px);
  z-index: 1;
}

/* -- */
/* --- Sekcja: Oferta --- */
/* -- */
:root{
  --offer-shadow: 0 10px 28px rgba(0,0,0,.06);
}

/* GRID 2x2 */
.offer-grid{
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 28px;
}
@media (max-width: 540px){
  .offer-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* KARTA */
.offer-card {
	position: relative;
	display: block;
	padding: 30px 20px;
	background: var(--white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--offer-shadow);
	color: inherit;
	border: solid 1px var(--pink);
	cursor: pointer;
	transition-duration: .3s;
}
.offer-card:hover{
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(0,0,0,.08);
	background-color: var(--otherpink);
}
.offer-card .offer-title {
	max-width: 60%;
}
/* BADGE (pigułka) */
.offer-badge {
	position: absolute;
	top: 0;
	right: 0;     
	padding: 10px 18px;
	border-radius: 0 8px;
	font-weight: 300;
	line-height: 1;
	background-color: var(--pink);
	color: var(--white);
	box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.offer-card:last-of-type .offer-badge {
	background-color: var(--red);
}
/* IKONA w jasnym kole */
.offer-icon {
	width: 80px; 
	height: 80px;
	border-radius: 999px;
	background: var(--lightpink);
	display: inline-flex; 
	align-items:center; 
	justify-content:center;
	margin-bottom: 18px;
}
.offer-icon img {
	width: 64px; 
	height: 64px; 
	object-fit: contain; 
	display: block;
	filter: invert(53%) sepia(79%) saturate(3774%) hue-rotate(311deg) brightness(103%) contrast(101%);
}


/* --- Sekcja: Galeria --- */
.section.gallery { padding: 0 0 50px 0;}
.section.gallery .section-titles { 
	text-align: center; 
	margin-bottom: 24px; 
}

.gallery-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-left: -10%;
	gap: 28px;
	padding: 6px 4px;
}
.gallery-img {
	width: 100%;
	max-width: 300px;
	height: 348px;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(0,0,0,.10);
	flex: 0 0 auto;
	transition-duration: .3s;
}
.gallery-img:nth-child(odd) {
	margin-bottom: -40px;
}
.gallery-img:hover {
	transform: scale(1.03);
}


/* Responsywność */
@media (max-width: 1200px) {
	.gallery-img { max-width: 300px; height: 300px; }
	.gallery-img--2, 
	.gallery-img--4 { height: 320px; }
}
@media (max-width: 780px) {
	.gallery-row { gap: 18px; }
	.gallery-img { max-width: 240px; height: 240px; }
	.gallery-img--2, 
	.gallery-img--4 { height: 260px; }
}
@media (max-width: 520px) {
	.gallery-img { max-width: 200px; height: 200px; }
	.gallery-img--2, 
	.gallery-img--4 { height: 220px; }
}







/* ---------------- Home Therapies */
.section.theraphies .section-titles .section-title,
.section.theraphies .section-titles > h3 {
	text-align: center;
}
.tg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	align-items: stretch;
	margin-top: 40px;
}
.tg-card {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	border: solid 1px var(--lightpink);
}
.tg-thumb img,
.tg-placeholder {	
	display: block;
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	height: 200px;
	transition-duration: .3s;
}
.tg-card .tg-thumb {
	overflow: hidden;
}
.tg-card:hover .tg-thumb img {
	transform: scale(1.03);
}
.tg-body {
	padding: 1rem 1rem 1.2rem; 
	display: flex; 
	flex-direction: column; 
	gap: .6rem; 
	flex: 1;
	background-color: var(--light);
}
.tg-title {
	margin: 0; 
	font-size: 24px; 
	line-height: 28px;
}
.tg-title a {
	color: var(--black);
	font-family: "Recoleta Medium";
}
.tg-excerpt {
	margin: 0; 
	flex: 1;
}
.site-content ul.tg-meta {
	grid-template-columns: 1fr;
}
.tg-cta {
	margin-top: .4rem; 
	align-self: flex-start;
	display: inline-block; 
	padding: .55rem .95rem;
	border-radius: 12px; 
	background: #7b0e24; 
	color: #fff;
	text-decoration: none; 
	font-weight: 700;
}
.tg-cta:hover{ filter:brightness(1.08); }

/* ---------------- Terapie indywidualne */
.kidly-therapy-grid.section .section-title {
	text-align: center;
}
.kidly-therapy-grid__title { 
	text-align: center; 
	margin: 0 0 24px; 
}
body.home .site-content ul.kidly-therapy-grid__list {
 	display: flex !important;
	flex-wrap: wrap;
	grid-template-columns: none;
	justify-content: center;
	padding: 0; margin: 0;
	list-style: none;
	gap: 0;
}
.site-content ul.kidly-therapy-grid__list li {
	padding: 0;
	margin: 40px 0;
}
.site-content ul.kidly-therapy-grid__list li:before {
	display: none;
}
.kidly-therapy-grid__item {
	width: 30%;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
 	display: flex; 
	flex-direction: column; 
	align-items: center; 
	text-align: center;
}
.kidly-therapy-grid__icon {
	width: 210px; 
	height: 210px;
	border-radius: 100%;
	background: var(--light);
	border: solid 1px var(--pink);
	display: grid; 
	place-items: center;
	margin: 0 auto 16px;
}
.kidly-therapy-grid__icon img {
 	max-width: 96px; 
	max-height: 96px; 
	object-fit: contain; 
	display:block;
}
.kidly-therapy-grid__name {
	margin: 0;
	max-width: 28ch;
}


/* ---------------- Home News */
.section.news .section-titles {
	text-align: center;
	margin-bottom: 50px;
}
.home-news__more {
	text-align: center;
}

/* -------------------------------------------------------------------------------- Blog Archive */
/**/
body.blog {
	background: linear-gradient(to bottom,
		var(--white) 0%,
		var(--white) 15%,
		var(--lightgrey) 15%,
		var(--lightgrey) 100%
	);
	position: relative;
}
body.blog:before {
	content: '';
	background-image: url('/wp-content/themes/kidly/img/archive-bg.png');
	background-repeat: no-repeat;
	background-size: 35%;
	background-position: -30% 50%;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
body.blog .section.contact, 
body.blog .section.gallery {
	background-color: var(--lightgrey);
}
.blog-archive { margin-top: 24px; }
.blog-archive .page-header {display: none;}
/* ---------- HERO ---------- */
.post-hero { margin-bottom: 56px; }
.post-hero__wrap { position: relative; }

.post-hero__media { display: block; }
.post-hero__img {
	width: 100%; 
	max-width: 60%;
	margin: 0 0 0 auto;
	height: auto; 
	display: block;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,.06);
	object-fit: cover;
}
.post-hero__meta-box {
	position: absolute;
	left: 24px; 
	top: 80px;
	transform: translateY(0);
	max-width: 50%;
	background: var(--white);
	border-radius: 18px;
	padding: 22px 26px;
	box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

.post-cat {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	color: var(--lightpink);
}

.post-hero__title { 
	margin: 14px 0 10px;
	font-size: 44px; 
	line-height: 52px; 
}
.post-hero__title a { 
	color: inherit; 
	text-decoration: none; 
	font-family: "Recoleta Regular";
}
.post-hero__meta { 
	color: #6b7280; 
	font-size: 0.95rem; 
}
.post-hero__meta .sep { 
	margin: 0 8px; 
	color: #9ca3af; 
}

@media (max-width: 900px) {
  .post-hero__meta-box { position: static; max-width: 100%; margin-top: -10px; }
}

/* ---------- GRID 3 ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin-bottom: 40px;
}
.post-grid article .post-card__thumb {
	overflow: hidden;
}
.post-grid article .post-card__thumb img {
	transition-duration: .3s;
}
.post-grid article:hover .post-card__thumb img {
	transform: scale(1.03);
}

.post-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
}

.post-card__thumb { display: block; }
.post-card__img { width: 100%; height: auto; display: block; object-fit: cover; }

.post-card__body { padding: 16px 18px 18px; }

.post-card__cat .post-cat { color: var(--red); }

.post-card__title { margin: 12px 0 8px; font-size: 1.06rem; line-height: 1.3; }
.post-card__title a { color: inherit; text-decoration: none; }

.post-card__meta { color: #6b7280; font-size: .95rem; }
.post-card__meta .sep { margin: 0 8px; color:#9ca3af; }

/* Responsywność */
@media (max-width: 1200px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ---------- Paginacja ---------- */
.pagination { text-align: center; margin: 12px 0 40px; }
.pagination a, .pagination span {
  display: inline-block; margin: 0 4px; padding: 8px 12px;
  border-radius: 10px; border: 1px solid #eee; text-decoration: none; color: #333;
}
.pagination .current { background: #ffe8ef; border-color: #ffd1df; color: #c52964; }



/* ----- Lokacje: grid kart ----- */
.locations-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding-left: 15%;
	padding-right: 15%;
}
.locations-grid > * {
	width: 100%;
	max-width: 360px;
	min-height: 280px;
	margin: 20px 25px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column; 
	align-items: space-between;
	justify-content: space-between;
}


@media (max-width: 980px) { .locations-grid { grid-template-columns: 1fr; } }

.location-card {
	position: relative;
	background: var(--light);
	border: 1.5px solid #ffd1df;
	border-radius: 24px;
	padding: 22px 22px 18px;
	box-shadow: 0 10px 28px rgba(0,0,0,.06);
	box-sizing: border-box;
}

.location-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.location-card__title {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
  margin: 0;
}
.location-card__icon {
  color: #ff5d8c;                   
  line-height: 0;
}

.location-card__address {
  color: #4b5563;
  margin: 8px 0 14px;
}

.location-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: .15s ease;
}
.btn-primary {
  background: #7b002c;              
  color: #fff;
  border: 1px solid #7b002c;
}
.btn-primary:hover { background: #a1003d; border-color: #a1003d; }

.btn-outline {
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
}
.btn-outline:hover { border-color: #111; }

















/* ===== Sekcja: Kontakt ===== */
.kidly-contact__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 28px;
	align-items: start;
	box-sizing: border-box;
	margin-top: 50px;
}
@media (max-width: 990px) {
	.kidly-contact__grid { grid-template-columns: 1fr; }
}
.kidly-contact__grid > * {
	height: 100%;
}

.kidly-contact__left .kidly-contact__card {
	background: var(--red);
	color: var(--white);
	border-radius: 24px;
	padding: 36px 38px;
	min-height: 360px;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 22px;
	box-sizing: border-box;
}
.kidly-contact__lead h4 {
	margin-bottom: 40px;
}
.kidly-contact__phone {
	display: block;
	align-items: center;
	gap: 12px;
	background: var(--light);
	color: var(--red);
	border-radius: 12px;
	padding: 14px 18px;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(0,0,0,.12) inset;
	transition-duration: .3s;
}
.kidly-contact__phone:hover {
	opacity: .6;
}
.kidly-contact__phone-icon { display: inline-flex; }

/* ===== CF7: pola prawej kolumny ===== */
.kidly-contact__form .wpcf7 form {
  display: grid;
  gap: 14px;
}
.cf7-input,
.kidly-contact__form .wpcf7 input[type="text"],
.kidly-contact__form .wpcf7 input[type="email"],
.kidly-contact__form .wpcf7 input[type="tel"],
.cf7-textarea,
.kidly-contact__form .wpcf7 textarea {
	padding: 10px 16px;
	width: 100%;
	background: var(--lightgrey15);
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	outline: none;
	margin-bottom: 10px;
}
.cf7-textarea,
.kidly-contact__form .wpcf7 textarea {
	resize: vertical;
	max-height: 250px;
}

/* Checkboksy/akceptacje */
.kidly-cf7-consents {
	display: grid; gap: 8px;
 	color: #4b5563; font-size: .95rem;
}
.kidly-cf7-consents label { display: inline-flex; align-items: center; gap: 8px; }
.kidly-cf7-consents p {
	margin-top: 0;
}
/* Submit */
.cf7-submit-btn,
.kidly-contact__form .wpcf7 input[type="submit"] {
  width: 100%;
  background: #7b002c;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
}
.cf7-submit-btn:hover { background: #a1003d; }
.kidly-cf7 p:first-of-type {
	margin-top: 0;
}
.kidly-cf7 p:last-of-type {
	margin-bottom: 0;
}
.wpcf7-spinner {display: none;}
/* Komunikaty CF7 */
.kidly-contact__form .wpcf7 form .wpcf7-response-output {
  margin: 8px 0 0;
  border-radius: 10px;
}
















/* -------------------------------------------------------------------------------- Page with Intro */
/**/
.page-template-page-with-intro .site-content {
	background-color: var(--light);
	padding-bottom: 50px;
}
.page-template-page-with-intro .site-content.text-content {
	padding: 80px 0;
	background-color: var(--white);
}

.page-template-page-with-intro .site-content.text-content .container.content img {
	width: 100px;
	height: 100px;
	object-fit: contain;
}
.page-template-page-with-intro .site-content.text-content .section-titles {
	text-align: center;
	margin-bottom: 60px;
}
.page-template-page-with-intro .site-content.text-content .wp-block-columns {
	margin-bottom: 80px;
}



/* -------------------------------------------------------------------------------- Single */
/**/
.single article .entry-header {
	max-width: 60%;
	margin: 80px auto 40px auto;
	text-align: center;
}
.single article .entry-header .entry-meta {
	display: none;
}
.post-thumbnail img {
	width: 100%;
	object-fit: cover;
	border-radius: 12px;
}


/* -------------------------------------------------------------------------------- Lekcje */
/**/
body.single-therapy_group .site-content {
	padding-top: 0;
}
body.single-therapy_group .site-content h5 {
	margin-bottom: 30px; 
}
body.single-therapy_group .site-content li {
	font-family: "Recoleta Light";
	margin-right: 20px;
}
body.single-therapy_group .container.columns {
	align-items: flex-end;
}
.lesson-intro {
	padding-top: 180px;
	padding-bottom: 80px;
	background-color: var(--light);
}

/* ===== Terapie Grupowe – Umiejętności (grid 3/2/1, kółko z ikoną) ===== */
.tg-skills {
  margin: 72px 0;
}
.tg-skills__container {
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 20px;
}
.tg-skills__title {
  text-align: center;
  margin: 0 0 32px;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.2;
  font-weight: 500;
}
body.single-therapy_group .site-content ul.tg-skills__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 56px 72px; /* wiersz x kolumna */
}
body.single-therapy_group .site-content ul.tg-skills__grid li:before {
	display: none;
}

.tg-skills__item {
  text-align: center;
}

.tg-skills__circle {
  --skill-accent: var(--kidly-accent, #ff6b93);         /* kolor akcentu */
  --skill-accent-soft: color-mix(in srgb, var(--skill-accent) 12%, #ffffff);
  width: clamp(140px, 18vw, 180px);
  height: clamp(140px, 18vw, 180px);
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 2px solid var(--skill-accent);
  background: var(--skill-accent-soft);
  display: grid;
  place-items: center;
}

.tg-skills__icon {
	display: block;
	width: 56%;
	height: auto;
	max-height: 70%;
	object-fit: contain;
	filter: invert(53%) sepia(79%) saturate(3774%) hue-rotate(311deg) brightness(103%) contrast(101%);
}

.tg-skills__label {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.35;
  max-width: 20ch;
  margin: 0 auto;
}

/* (opcjonalnie) delikatny hover */
@media (hover:hover) {
  .tg-skills__item:hover .tg-skills__circle {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transition: .25s ease;
  }
}


.lesson-conclusion,
.goals-methods {
	margin: 40px 0;
}
.lesson-conclusion {
	padding: 30px;
	border-radius: 12px;
	border: solid 1px var(--red);
	background-color: var(--light);
}
.goals-methods {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
}
.goals-methods > *,
.additional-elements > *,
article .entry-content blockquote {
	background-color: var(--light);
	padding: 30px;
	border-radius: 12px;
	border: solid 1px var(--pink);
	box-sizing: border-box;
}
article .entry-content blockquote {
	margin: 0;
	padding: 0 30px;
}
.goals-methods > *,
.additional-elements > * {
	max-width: 48%;
}
.goals-methods .col-2 {
	background-color: var(--red);
	border: solid 1px var(--black);
	color: var(--white);
}
.goals-methods .col-2 p {
	color: var(--white);
}

/* -------------------------------------------------------------------------------- Cennik */
/**/
.cennik-section {
	border-radius: 12px;
	border: solid 1px var(--red);
	overflow: hidden;
	margin-bottom: 50px;
}
.cennik-section__title {
	padding: 16px;
	background-color: var(--red);
	color: var(--white);
	margin: 0;
}
.site-content ul.cennik-list {
	display: flex;
	grid-template-columns: 1fr;
	gap: 0;
	flex-wrap: wrap;
	width: 100%;
	align-items: center;
	justify-content: space-between;
}
.site-content ul li.cennik-item {
	display: flex; 
	width: 100%;
	align-items: center; 
	justify-content: space-between;
	margin: 0;
	padding: 16px; 
	background-color: var(--light);
}
.site-content ul li.cennik-item:nth-child(2n){
	background-color: var(--lightpink);
}
.cennik-item + .cennik-item{
	border-top: 1px solid #f1d4da;
	margin: 0;
}


/* -------------------------------------------------------------------------------- Zespół */
/**/
.zespol-title {
    text-align: center;
    margin: 40px 0;
    font-size: clamp(28px, 4vw, 42px);
}
/* pierwszy członek zespołu */
.person-first {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}
.person-photo img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}
.person-first .person-desc h6 {
	max-width: 60%;
	margin: 0 auto;
}
.person-first .person-desc h6 strong {
	color: var(--red);
}
/* siatka dla reszty */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
}
.person {
    background: transparent;
    text-align: center;
}
.person-name {
    margin: 0 0 12px;
	color: var(--red);
}
.person-desc h6 {
	text-align: center;
}
.person-desc {
    text-align: justify;
}
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .person-first .person-photo img {
        width: 200px; height: 200px;
    }
}

/* -------------------------------------------------------------------------------- RWD */
/**/
.menu-toggle { display:none; }
.menu-toggle {
	background: transparent; 
	border: 0; 
	padding: 10px; 
	cursor: pointer; 
	line-height: 1;
	height: 100%;
	align-items: center;
	min-height: 50px;
}
.menu-toggle .hamburger-bars,
.menu-toggle .hamburger-bars::before,
.menu-toggle .hamburger-bars::after {
	display: block; 
	width: 28px; 
	height: 2px; 
	background: var(--red); 
	content: ""; 
	position: relative;
}
.menu-toggle .hamburger-bars::before{ position:absolute; top:-8px; left:0; }
.menu-toggle .hamburger-bars::after { position:absolute; top: 8px; left:0; }

.mobile-menu {
	position: fixed; 
	inset: 0; 
	background: var(--lightpink);
	opacity: 0; 
	pointer-events: none; 
	transform: scale(1.02);
	transition: opacity .2s ease, transform .2s ease;
	z-index: 9999;
}
.mobile-menu.is-open {
	opacity: 1; 
	pointer-events: auto; 
	transform: scale(1);
}
.mobile-close {
	position: absolute; 
	top: 18px; 
	right: 24px; 
	font-size: 36px; 
	color: var(--red);
	background: transparent; 
	border: 0; 
	cursor: pointer; 
	line-height: 1;
}
.mobile-inner {
	min-height: 100%; 
	display: flex; 
	flex-direction: column; 
	align-items: center; 
	justify-content: flex-start;
	padding: 84px 24px 32px;
}
.mobile-logo { margin-bottom: 12px; }

.mobile-menu-list { 
	list-style: none; 
	padding: 0; 
	margin: 24px 0 8px 0; 
	text-align: center; 
}
.mobile-menu-list > li { margin: 14px 0; }
.mobile-menu-list a {
	color:var(--red); 
	text-decoration:none; 
	font-size:22px; 
	font-weight:600;
}
.mobile-menu-list a:hover { 
	text-decoration: underline; 
}
.mobile-menu-list .menu-button a,
.mobile-cta {
	margin-top: 20px; 
	display: inline-block; 
	background: var(--red); 
	border: solid 1px var(--red);
	color: var(--white);
	padding: 14px 22px; 
	border-radius: 12px; 
	text-decoration: none; 
	font-weight: 700;
}
.mobile-menu-list .menu-button:hover a,
.mobile-cta {
	background: var(--pink); 
}
.mobile-logo img {
	max-width: 200px;
	height: auto;
}
.mobile-insta { 
	margin-top: auto; 
	display: inline-flex; 
	color:var(--red); 
}

@media (max-width: 992px){
	.site-nav{ display: none; }
	.menu-toggle { 
		display: inline-flex; 
		margin-left: auto; 
	}
	.site-header {
		padding: 8px 20px;
	}
	.site-header .container {
		display: flex;
		align-items: center;
		width: fit-content;
	}
	.site-header .container > * {
		padding: 0 20px;
	}
}

@media screen and (max-width: 1480px) {
	.locations-grid {
		padding-left: 0;
		padding-right: 0;
	}
}
@media screen and (max-width: 1320px) {
	.container {
		max-width: 1120px;
	}
}
@media screen and (max-width: 1160px) {
	.container {
		max-width: 1000px;
	}
	.tg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media screen and (max-width: 1080px) {
	h1 { font-size: 36px; line-height: 42px; }
	h2 { font-size: 29px; line-height: 35px; }
	h3 { font-size: 24px; line-height: 30px;}
	h4 { font-size: 22px; line-height: 28px; }
	h5 { font-size: 20px; line-height: 24px; }
	h6 { font-size: 16px; line-height: 24px; }	
	p { font-size: 16px; line-height: 24px; }
	.post-hero__title {
		 font-size: 29px; line-height: 35px; 
	}
	.post-hero__img {max-width: 100%;}
	.single article .entry-header {max-width: 100%;}
	.container {
		max-width: 840px;
	}
	*:not(.site-header) .container {
		padding-left: 0;
		padding-right: 0;
	}
	.site-header {
		padding: 0 2%;
	}
	.section .container {
		padding: 80px 2%;
	}
	.locations-grid > * {
		max-width: 360px;
		margin: 20px 10px;
	}
	.section.gallery {
		overflow: hidden;
		padding: 0;
	}
	.grid {
		grid-template-columns: 1fr;
	}
  	body.single-therapy_group .site-content ul.tg-skills__grid { 
		grid-template-columns: repeat(2, 1fr); 
	}
	.kidly-therapy-grid__item { 
		width: 45%; 
	}
	.kidly-therapy-grid__icon { 
		width: 190px; 
		height: 190px; 
	}
}
@media screen and (max-width: 860px) {
	.container {
		max-width: 720px;
	}
	.container.columns {
		grid-template-columns: 1fr;
	}
	body:not(.home) main.site-content,
	#hero.container,
	.footer-inner.container,
	.page-template-page-with-intro .site-content.text-content,
	.footer-bottom {
		padding-left: 4%;
		padding-right: 4%;
	}
	body.single-therapy_group main.site-content {
		padding-left: 0;
		padding-right: 0;
	}
	body.single-therapy_group main.site-content > * {
		padding-left: 4%;
		padding-right: 4%;
	}
	.section.gallery {
		margin-left: -4%;
		margin-right: -4%;
	}
	.col-1, .col-2 {
		width: 100%;
		max-width: 100%;
		flex: 1 1 100%;
	}
	.col-1 {
		margin-bottom: 40px;
	}
	
	.kidly-therapy-grid__item { 
		width: 25%; 
	}
	.kidly-therapy-grid__icon { 
		width: 120px; 
		height: 120px; 
	}
	.kidly-therapy-grid__icon img {
		width: 80px;
		max-width: 80px;
		height: 80px;
		max-height: 80px;
	}
	.photo-wrapper,
	.photo-wrapper img {
		max-height: 480px;
	}
}
@media screen and (max-width: 760px) {
	.container {
		max-width: 100%;
		padding-left: 4%;
		padding-right: 4%;
	}
	.tg-skills__container {
		max-width: 100%;
		padding-left: 2%;
		padding-right: 2%;
	}
	body.single-therapy_group .site-content ul.tg-skills__grid {
		gap: 20px 10px;
	}
	.site-content ul:not(.therapy-staff__grid) li.tg-skills__circle {
		padding-left: 0;
		margin: 0;
	}
}
@media screen and (max-width: 680px) {
	.container {
		padding-left: 2%;
		padding-right: 2%;
	}
	.section .container {
		padding: 30px 2%;
	}
	body.home .site-content ul:not(.base-elements):not(.tg-meta):not(.kidly-therapy-grid__list),
	.tg-grid {
		grid-template-columns: 1fr;
	}
	.kidly-therapy-grid__list {
		grid-template-columns: repeat(2, 1fr);
	}
	.site-content ul.base-elements li {
		padding: 10px 18px;
	}
	.section.therapies-individual .container {padding-top: 20px;}
	.site-content .base-elements li {
		font-size: 15px;
	}
	.photo-wrapper,
	.photo-wrapper img {
		max-height: 320px;
	}
}
@media (max-width: 540px) {
	.kidly-therapy-grid__item { 
		width: 45%; 
	}
	.kidly-therapy-grid__icon { 
		width: 100px; 
		height: 100px; 
	}
	.kidly-therapy-grid__icon img {
		width: 60px;
		max-width: 60px;
		height: 60px;
		max-height: 60px;
	}
	.tg-skills__circle {
		width: 90px;
		height: 90px;
	}
}






















