/*
Theme Name:   Space for Growth (Blocksy child)
Theme URI:    https://psychotherapynet.com
Description:  Child theme of Blocksy for a multilingual (Russian / English / Hebrew, RTL-ready) psychotherapy practice. All texts, pictures and colours are editable in Appearance → Customize → Site content.
Author:       Space for Growth
Template:     blocksy
Version:      2.37.5
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  blocksy-child-therapy
*/

/* ==========================================================================
   1. DESIGN TOKENS  — change colours/fonts here (colours also in the Customizer)
   ========================================================================== */
:root {
	--pr-primary: #4f6c47;   /* sage green: buttons (white text 5.9:1) */
	--pr-accent:  #98493f;   /* dusty rose, text contrast 5:1 on all soft backgrounds */
	--pr-sage:    #eef5ec;   /* soft backgrounds */
	--pr-blush:   #f8efed;
	--pr-lav:     #eae7f5;
	--pr-almond:  #f0e0b8;   /* logo almond tone */
	--pr-text:    #3d3830;
	--pr-muted:   #6b645b;
	--pr-bg:      #faf7f2;
	--pr-line:    #e5e0d8;
	--pr-radius:  20px;
	--pr-max:     1120px;
	--pr-head:    'Playfair Display Variable', Georgia, 'Times New Roman', serif;
	--pr-body:    'Nunito Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Names the client-portal plugin understands */
	--site-text: var(--pr-text);
	--site-muted: var(--pr-muted);
	--site-border: var(--pr-line);
	--site-surface: #fff;
}
/* Hebrew uses its own fonts */
html[lang="he"] {
	--pr-head: 'Frank Ruhl Libre Variable', 'David Libre', Georgia, serif;
	--pr-body: 'Heebo Variable', Arial, sans-serif;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--pr-bg);
	color: var(--pr-text);
	font-family: var(--pr-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pr-primary); text-underline-offset: 3px; }
a:hover { color: var(--pr-accent); }
h1, h2, h3 { font-family: var(--pr-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; color: var(--pr-text); }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--pr-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.pr-wrap { width: min(100% - 2.5rem, var(--pr-max)); margin-inline: auto; }
.pr-center { text-align: center; }
.pr-skip { position: absolute; inset-inline-start: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.pr-skip:focus { inset-inline-start: 1rem; top: 1rem; }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.pr-btn {
	display: inline-block; padding: .8em 1.6em; border-radius: 999px;
	background: var(--pr-primary); color: #fff; text-decoration: none;
	font-weight: 700; border: 2px solid var(--pr-primary);
	transition: background .2s, color .2s, transform .2s;
}
.pr-btn:hover { background: #fff; color: var(--pr-primary); transform: translateY(-1px); }
.pr-btn--ghost { background: transparent; color: var(--pr-primary); }
.pr-btn--ghost:hover { background: var(--pr-primary); color: #fff; }
.pr-btn--small { padding: .45em 1.1em; font-size: .95rem; }
.pr-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.pr-actions--center { justify-content: center; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.pr-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .94); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.pr-header.is-stuck { box-shadow: 0 2px 18px rgba(0, 0, 0, .07); }
.admin-bar .pr-header { top: 32px; }
.pr-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .6rem; }
.pr-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--pr-text); }
.pr-brand__logo { width: auto; height: 52px; }
.pr-brand__name { font-family: var(--pr-head); font-size: 1.25rem; font-weight: 600; line-height: 1.1; }

.pr-nav { display: flex; align-items: center; gap: 1.6rem; }
.pr-menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.pr-menu a { white-space: nowrap; color: var(--pr-text); text-decoration: none; font-weight: 600; font-size: .98rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.pr-menu a:hover { color: var(--pr-primary); border-color: var(--pr-accent); }

.pr-lang { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.pr-lang a { display: block; padding: .25em .55em; border-radius: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--pr-muted); text-decoration: none; }
.pr-lang a:hover { background: var(--pr-sage); color: var(--pr-text); }
.pr-lang a[aria-current] { background: var(--pr-primary); color: #fff; }

.pr-burger { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.pr-burger span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--pr-text); transition: transform .2s, opacity .2s; }
.pr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.pr-lang--bar { display: none; }
@media (max-width: 1180px) {
	/* On phones the languages sit in the top bar, not inside the menu. */
	.pr-lang--bar { display: flex; margin-inline-start: auto; }
	.pr-lang--nav { display: none; }
	.pr-burger { display: block; }
	.pr-nav {
		position: absolute; inset-inline: 0; top: 100%; background: var(--pr-bg);
		flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem 1.5rem 1.6rem;
		border-top: 1px solid var(--pr-line); box-shadow: 0 14px 24px rgba(0, 0, 0, .08);
		display: none;
	}
	.pr-nav.is-open { display: flex; }
	.pr-menu { flex-direction: column; gap: .4rem; }
	.pr-menu a { display: block; padding-block: .6rem; }
	.pr-lang { justify-content: flex-start; }
	.pr-nav .pr-btn { text-align: center; }
}
@media (max-width: 782px) { .admin-bar .pr-header { top: 46px; } }

/* ==========================================================================
   5. HOME SECTIONS
   ========================================================================== */
.pr-section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.pr-section--soft  { background: var(--pr-sage); }
.pr-section--blush { background: var(--pr-blush); }
.pr-section--lav   { background: var(--pr-lav); }
.pr-section__head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }

/* Hero: text + round picture framed by thin rings */
.pr-hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); background: #e4dbcd; }
.pr-hero--solo .pr-hero__grid { grid-template-columns: 1fr; max-width: 760px; }
.pr-hero__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pr-eyebrow { color: var(--pr-accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; margin-bottom: 1rem; }
.pr-hero__text p:not(.pr-eyebrow):not(.pr-actions) { font-size: 1.15rem; color: var(--pr-muted); max-width: 34em; }
.pr-hero__visual { display: grid; place-items: start center; isolation: isolate; }
.pr-disc { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; background: #f0ebe3; margin-top: 16px; }
.pr-disc__img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 22px; }
.pr-disc__logo { width: 62%; height: auto; }
@media (max-width: 800px) {
	.pr-hero__grid { grid-template-columns: 1fr; text-align: center; }
	.pr-hero__text p { margin-inline: auto; }
	.pr-hero .pr-actions { justify-content: center; }
	.pr-disc { width: 92%; order: -1; }
}

/* About */
.pr-about { display: grid; gap: 3rem; align-items: center; max-width: 760px; }
.pr-about--photo { grid-template-columns: .8fr 1.2fr; max-width: none; }
.pr-about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--pr-radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .12); }
@media (max-width: 800px) { .pr-about--photo { grid-template-columns: 1fr; } }

/* Leaf (almond) bullets — mirrored automatically in RTL */
.pr-leaf-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.pr-leaf-list li { position: relative; padding-inline-start: 1.9rem; margin-bottom: .7rem; }
.pr-leaf-list li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 14px;
	background: var(--pr-accent); border-radius: 0 100% 0 100%;
}
[dir="rtl"] .pr-leaf-list li::before { transform: scaleX(-1); }

/* Service cards */
.pr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.pr-card { position: relative; background: #fff; border-radius: var(--pr-radius); padding: 1.9rem; border: 1px solid var(--pr-line); border-top: 5px solid var(--pr-sage); transition: transform .2s, box-shadow .2s; }
.pr-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .07); }
.pr-card:nth-child(3n+1) { border-top-color: #a8b5a2; }
.pr-card:nth-child(3n+2) { border-top-color: #d4afa8; }
.pr-card:nth-child(3n)   { border-top-color: #b8b0cc; }
.pr-card p:last-child { margin-bottom: 0; color: var(--pr-muted); }
.pr-tag { position: absolute; inset-inline-end: 1.2rem; top: 1.2rem; background: var(--pr-almond); color: #5a4a20; border-radius: 999px; padding: .1em .8em; font-size: .78rem; font-weight: 700; }

/* Approach band */
.pr-band { background: #d6e4d0; color: var(--pr-text); }
.pr-band__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.pr-leaf-list--light li::before { background: var(--pr-accent); }
@media (max-width: 800px) { .pr-band__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Steps */
.pr-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; padding: 0; margin: 0; }
.pr-steps li { counter-increment: step; background: rgba(255, 255, 255, .7); border-radius: var(--pr-radius); padding: 1.8rem; }
.pr-steps li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem; border-radius: 50%; background: var(--pr-accent); color: #fff; font-family: var(--pr-head); font-weight: 700; }
.pr-steps p:last-child { margin-bottom: 0; color: var(--pr-muted); }

/* Testimonials (section off by default) */
.pr-quote { margin: 0; }
.pr-quote blockquote { margin: 0 0 1rem; font-family: var(--pr-head); font-size: 1.15rem; font-style: italic; }
.pr-quote figcaption { color: var(--pr-muted); font-size: .95rem; }

/* ==========================================================================
   6. ORDINARY PAGES (incl. client portal)
   ========================================================================== */
.pr-page { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: 860px; }
.pr-entry__title { margin-bottom: 1.2rem; }
.pr-entry__title a { color: inherit; text-decoration: none; }
.pr-entry__content > * + * { margin-top: 1em; }
.pr-link { font-weight: 700; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.pr-footer { background: #2f332d; color: #e6e8e3; margin-top: 0; }
.pr-footer a { color: #e6e8e3; text-decoration: none; }
.pr-footer a:hover { color: var(--pr-almond); text-decoration: underline; }
.pr-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.2rem 2rem; }
.pr-footer__logo { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 1rem; }
.pr-footer__name { font-family: var(--pr-head); font-size: 1.2rem; margin: 0; }
.pr-footer__tag { color: #aeb4a9; margin: .2rem 0 0; }
.pr-footer__col ul { list-style: none; margin: 0; padding: 0; }
.pr-footer__col li { margin-bottom: .55rem; }
.pr-crisis { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.4rem; margin: 0 0 1.6rem; font-size: .95rem; color: #cfd4ca; }
.pr-footer__bottom { background: #262922; padding-block: 1rem; font-size: .88rem; color: #9aa095; }
@media (max-width: 800px) { .pr-footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Cartel page */
.pr-cartel { max-width: 760px; }
.pr-topic { margin-top: 2rem; border-top-color: var(--pr-accent); }
.pr-topic h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }

/* ==========================================================================
   8. RIGHT-TO-LEFT (Hebrew)
   Layout uses logical properties and flex/grid, so most things flip by
   themselves. Only a few details below need help.
   ========================================================================== */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] .pr-eyebrow { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .pr-lang a { letter-spacing: 0; }

/* Cartel page extras */
.pr-cartel h2{margin-top:1.8em}
.pr-cartel .pr-list{padding-inline-start:1.2em;margin:.6em 0 1em}
.pr-cartel .pr-list li{margin:.35em 0}
.pr-cartel .pr-note{margin-top:2em;background:var(--pr-blush);padding:22px 26px;border-radius:20px}
.pr-cartel .pr-note p:last-child{margin-bottom:0}
.pr-about .pr-edu{font-size:1.05rem;margin:1.4em 0 .4em}
.pr-section__foot{max-width:640px;margin:2.5rem auto 0;text-align:center;color:var(--pr-muted)}
.pr-section__foot--strong{font-weight:700;color:var(--pr-text,inherit)}

/* Opening quotation: original serif italic, one colour, block centred, lines gently staggered */
.pr-opening { padding: 2.4rem 0 1.8rem; }
.pr-opening__text { margin: 0 auto; width: fit-content; max-width: 100%; font-family: 'Source Serif 4 Variable', var(--pr-head); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 3.2vw, 1.85rem); line-height: 1.4; color: var(--pr-primary); }
.pr-opening__call, .pr-opening__line { display: block; font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }
.pr-opening__call + .pr-opening__line { padding-inline-start: 1.4em; }
.pr-opening__line + .pr-opening__line { padding-inline-start: 3.3em; }
.pr-opening__line + .pr-opening__line + .pr-opening__line { padding-inline-start: 4.7em; }
@media (max-width: 560px) {
	.pr-opening__call + .pr-opening__line { padding-inline-start: .8em; }
	.pr-opening__line + .pr-opening__line { padding-inline-start: 2.1em; }
	.pr-opening__line + .pr-opening__line + .pr-opening__line { padding-inline-start: 2.9em; }
}
	.pr-opening__line + .pr-opening__line { padding-inline-start: 2.1em; }
	.pr-opening__line + .pr-opening__line + .pr-opening__line { padding-inline-start: 2.9em; }
}
.pr-band__side .pr-tech__label{margin-top:1.8em!important}

/* Approach: softer reading rhythm + technique pills */
.pr-band p { line-height: 1.75; margin: 0 0 1em; }
.pr-tech__label { margin: 1.4em 0 .6em !important; font-weight: 600; }
.pr-tech { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.pr-tech li { background: #fff; border: 1px solid rgba(98, 128, 88, .35); border-radius: 999px; padding: .35em 1.1em; font-size: .92rem; }
.pr-band__grid { align-items: start; }
.pr-band__side .pr-leaf-list { margin-top: 3.9rem; }
@media (max-width: 800px) { .pr-band__side .pr-leaf-list { margin-top: 1rem; } }

/* Approach layout: text left; principles right; techniques right, level with the 2nd paragraph */
.pr-approach { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 3rem; align-items: start; }
.pr-approach__p { margin: 0 0 1em; }
.pr-approach__side .pr-approach__p { margin-top: 1.4rem; }
.pr-approach__points { margin: 3.9rem 0 0; }
.pr-approach__tech { margin-top: 1.6rem; }
.pr-approach__tech .pr-tech__label { margin: 0 0 .7rem !important; }
.pr-approach__tech .pr-tech { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 800px) {
	.pr-approach { display: block; }
	.pr-approach__points { margin-top: 1.4rem; }
	.pr-approach__tech { margin-top: 1.6rem; }
	.pr-approach__tech .pr-tech { grid-template-columns: repeat(auto-fill, minmax(7.5rem, max-content)); }
}
.pr-approach__tech .pr-tech li { justify-self: start; }

/* price + cancellation line under the steps */
.pr-terms { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; margin: 2rem 0 0; text-align: center; font-size: 1.05rem; }
.pr-terms strong { font-family: inherit; font-weight: 400; color: inherit; }
.pr-terms span { color: var(--pr-muted); }

/* dream workshop landing */
.pr-ws-lead{font-size:1.2rem;line-height:1.6;margin:.4em 0 1.2em}
.pr-ws-lead p{margin:0}
.pr-ws-app li{margin:.6em 0}
.pr-ws-small{font-size:.92rem;color:var(--pr-muted);margin-top:.8em}
.pr-ws-small p{margin:0}

/* reading room details */
.pr-read{display:grid;grid-template-columns:minmax(7rem,12rem) 1fr;gap:.9rem 1.4rem;margin:1.6rem 0}
.pr-read dt{font-weight:700;color:var(--pr-muted,inherit)}
.pr-read dd{margin:0}
@media (max-width:560px){.pr-read{grid-template-columns:1fr;gap:.1rem}.pr-read dd{margin-bottom:.9rem}}

/* education item with a title */
.pr-edu__t{display:block;font-weight:700}
.pr-edu__d{display:block;color:var(--pr-muted);font-size:.9em;max-width:30em;text-wrap:balance}
.pr-edu + .pr-leaf-list li:first-child{font-weight:700}

/* FAQ accordion (native <details>: works with keyboard and screen readers) */
.pr-faq { margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.pr-faq__item { background: #fff; border: 1px solid var(--pr-line); border-radius: 14px; padding: 0 1.2rem; }
.pr-faq__item summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.pr-faq__item summary::-webkit-details-marker { display: none; }
.pr-faq__item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--pr-primary); flex: none; }
.pr-faq__item[open] summary::after { content: "\2212"; }
.pr-faq__item p { margin: 0 0 1.1rem; color: var(--pr-text); }

/* Workshops drop-down */
.pr-has-sub { position: relative; }
.pr-sub-toggle { font: inherit; font-weight: 600; font-size: .98rem; line-height: inherit; margin: 0; color: var(--pr-text); background: none; border: 0; padding: 0; cursor: pointer; display: inline-block; position: relative; top: .6px; }
.pr-sub-toggle::before { content: ""; position: absolute; inset-inline: 0; bottom: calc(-.3rem - 2px); height: 2px; background: transparent; }
.pr-sub-toggle::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-inline-start: .4em; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.pr-sub-toggle:hover, .pr-has-sub.is-open .pr-sub-toggle { color: var(--pr-primary); }
.pr-sub-toggle:hover::before, .pr-has-sub.is-open .pr-sub-toggle::before { background: var(--pr-accent); }
.pr-sub { display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 15rem; background: var(--pr-bg); border: 1px solid var(--pr-line); border-radius: 10px; box-shadow: 0 14px 24px rgba(0, 0, 0, .08); padding: .8rem 1rem 1rem; z-index: 60; }
[dir="rtl"] .pr-sub { inset-inline-start: auto; left: 0; }
.pr-has-sub.is-open .pr-sub, .pr-has-sub:hover .pr-sub, .pr-has-sub:focus-within .pr-sub { display: block; }
.pr-sub__h { margin: .2rem 0 .3rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-muted); font-weight: 700; }
.pr-sub__h:not(:first-child) { margin-top: .8rem; }
.pr-sub ul { list-style: none; margin: 0; padding: 0; display: block; }
.pr-sub a { display: block; padding: .35rem 0; }
@media (max-width: 1180px) {
	.pr-sub-toggle { cursor: default; padding: .6rem 0 0; pointer-events: none; }
	.pr-sub-toggle::before { display: none; }
	.pr-sub-toggle::after { display: none; }
	.pr-sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; background: transparent; }
}

/* Domain menu: a real button (the generic menu-link rules must not restyle it) */
.pr-menu a.pr-btn { color: #fff; padding: .45em 1.1em; font-size: .95rem; border: 2px solid var(--pr-primary); }
.pr-menu a.pr-btn:hover { color: #fff; border-color: var(--pr-primary); filter: brightness(.93); }
@media (max-width: 1180px) { .pr-menu a.pr-btn { display: inline-block; text-align: center; } }

/* Search form on the domain home page */
.pr-center .td-filter { justify-content: center; margin: 2rem auto 0; max-width: 60rem; }
.pr-center .td-filter label { text-align: start; }
@media (max-width: 640px) { .pr-center .td-filter { flex-direction: column; align-items: stretch; } }

/* Domain pages have no brand on the left: keep the menu on the right */
.pr-header__bar--domain .pr-nav { margin-inline-start: auto; }
.pr-header__bar--domain { min-height: 4.2rem; }

.pr-about .pr-leaf-list li{margin-bottom:.35rem}
.pr-about .pr-edu__d{line-height:1.4;margin-top:.1rem}
.pr-about .pr-edu + .pr-leaf-list{margin-top:.8rem}
