/*
Theme Name:   Elisa Fusi Child
Theme URI:    https://elisafusipsychology.com
Description:  Kadence child theme for Elisa Fusi Psychology. Colors and fonts are set in Appearance → Customize (Kadence global palette + typography); this file only holds layout for the home sections.
Author:       EnzoIA
Template:     kadence
Version:      1.0.0
Requires PHP: 8.0
Text Domain:  elisa-fusi-child
*/

/*
 * Colors: Kadence global palette (Customize → Colors)
 *   1 #418D8D primary · 2 #2F7272 hover/links · 3 #634636 headings · 4 #2E2A27 text
 *   7 #F3F3F3 cards · 8 #F7F2EC beige · 9 #FFFFFF · 10 #CD754F terracotta
 * Fonts: Kadence typography (Playfair Display headings, Nunito Sans body).
 */
:root {
	--ef-hero-beige: #f2efeb;
	--ef-hero-text: #f6f1ea;
	--ef-hero-bubble: rgba(23, 143, 134, 0.92);
	--ef-hero-ring: #0f4034;
	--ef-radius: 6px;
	--ef-section-space: clamp(4rem, 8vw, 7.5rem);
}

/* ---------- Shared ---------- */
/* Higher specificity than Kadence's `.entry-content .alignfull`. */
.entry-content .wp-block-group.ef-section,
.editor-styles-wrapper .wp-block-group.ef-section {
	padding-top: var(--ef-section-space);
	padding-bottom: var(--ef-section-space);
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}
/* Sections alternate white / beige (#F7F2EC): each keeps its own padding,
   and no margin between them (it would show as a white strip). */
.entry-content > .ef-section,
.entry-content > .ef-hero,
.entry-content > .ef-retreats {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.ef-eyebrow,
.ef-subtitle {
	font-style: italic;
	font-size: 1.2em;
	color: var(--global-palette5);
}
.ef-eyebrow {
	font-family: var(--global-heading-font-family);
	color: var(--global-palette10);
}
.entry-content .ef-eyebrow {
	margin-bottom: 0;
}
.entry-content .ef-eyebrow + .wp-block-heading {
	margin-top: 0.2em;
}
.ef-photo img {
	border-radius: var(--ef-radius);
	width: 100%;
	height: auto;
	box-shadow: 0 18px 40px -24px rgba(46, 42, 39, 0.45);
}
.wp-block-button__link {
	font-weight: 700;
	border-radius: var(--ef-radius);
}

/* ---------- Buttons: CTAs in capitals (the text stays as written in the editor) ---------- */
.wp-block-button__link,
.wp-element-button,
.button,
button[type="submit"],
input[type="submit"],
.wc-block-components-button,
.tutor-btn,
.tribe-common-c-btn,
.tribe-events-c-search__button,
.ef-whatsapp__label {
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
/* Not in capitals: questionnaire answers (sentences), the hero button (written
   as in the original banner, client 30/09/2026) and the text-only link buttons. */
.ef-quiz__answers .wp-block-button__link,
.ef-hero .ef-hero__buttons .wp-block-button__link,
.tutor-btn-ghost,
.tutor-btn-link {
	text-transform: none;
	letter-spacing: normal;
}

/* ---------- Plugin buttons in the site palette ---------- */
/* Tutor LMS and The Events Calendar read these variables; WPForms and
   WooCommerce blocks get the same look as the theme buttons. */
body {
	--tutor-color-primary: var(--global-palette1);
	--tutor-color-primary-rgb: 65, 141, 141;
	--tutor-color-primary-hover: var(--global-palette2);
	--tec-color-accent-primary: var(--global-palette1);
	--tec-color-accent-primary-hover: var(--global-palette2);
	--tec-color-accent-primary-active: var(--global-palette2);
	--tec-color-button-primary: var(--global-palette1);
	--tec-color-button-primary-hover: var(--global-palette2);
	--tec-color-button-primary-active: var(--global-palette2);
	--tec-color-link-accent: var(--global-palette2);
	--tec-color-link-accent-hover: var(--global-palette1);
	--tec-color-background-button-secondary: var(--global-palette7);
	/* The Events Calendar: site fonts and text colors. */
	--tec-font-family-sans-serif: var(--global-body-font-family);
	--tec-font-family-base: var(--global-body-font-family);
	--tec-color-text-primary: var(--global-palette4);
	--tec-color-text-event-title: var(--global-palette3);
	--tec-color-text-events-title: var(--global-palette3);
	--tec-color-text-event-date: var(--global-palette4);
	--tec-color-link-primary: var(--global-palette3);
	--tec-color-accent-secondary: var(--global-palette10);
	--tec-color-background-messages: var(--global-palette8);
	--tec-color-background-secondary: var(--global-palette8);
	--tec-color-accent-primary-background: rgba(65, 141, 141, 0.1);
	--tec-border-radius-default: var(--ef-radius);
}
.wpforms-container {
	--wpforms-button-background-color: #418d8d;
	--wpforms-button-text-color: #ffffff;
	--wpforms-button-border-radius: 6px;
	--wpforms-button-border-size: 0px;
	--wpforms-field-border-radius: 6px;
}
div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-page-button,
.tutor-btn.tutor-btn-primary,
.wc-block-components-button:not(.is-link),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.tribe-common .tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button {
	background-color: var(--global-palette1) !important;
	border-color: var(--global-palette1) !important;
	color: var(--global-palette9) !important;
	font-weight: 700;
	border-radius: 6px;
}
div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form button[type="submit"]:focus,
.tutor-btn.tutor-btn-primary:hover,
.wc-block-components-button:not(.is-link):hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.tribe-common .tribe-common-c-btn:hover,
.tribe-events .tribe-events-c-search__button:hover {
	background-color: var(--global-palette2) !important;
	border-color: var(--global-palette2) !important;
	color: var(--global-palette9) !important;
}
div.wpforms-container-full .wpforms-form button[type="submit"] {
	padding: 14px 30px !important;
	height: auto !important;
	font-size: 17px !important;
	box-shadow: none;
}
.tutor-login-form-wrapper a,
.tutor-form-wrap a {
	color: var(--global-palette2);
}

/* ---------- Floating WhatsApp button ---------- */
.ef-whatsapp {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem;
	border-radius: 999px;
	background: var(--global-palette1);
	color: var(--global-palette9);
	box-shadow: 0 8px 24px -8px rgba(46, 42, 39, 0.45);
	text-decoration: none;
	transition: background-color 0.15s, transform 0.15s;
}
.ef-whatsapp svg {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
}
.ef-whatsapp__label {
	display: none;
	font-weight: 700;
	padding-right: 0.3rem;
}
.ef-whatsapp:hover,
.ef-whatsapp:focus-visible {
	background: var(--global-palette2);
	color: var(--global-palette9);
	transform: translateY(-2px);
}
.ef-whatsapp:focus-visible {
	outline: 3px solid var(--global-palette9);
	outline-offset: 2px;
}
@media (min-width: 1025px) {
	.ef-whatsapp {
		padding: 0.75rem 1.1rem 0.75rem 0.8rem;
	}
	.ef-whatsapp__label {
		display: inline;
	}
}
/* Kadence's "scroll to top" button sits above it. */
#kt-scroll-up,
#kt-scroll-up-reader {
	bottom: 90px !important;
}
.ef-intake__whatsapp .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}
.ef-intake__whatsapp svg {
	width: 1.3em;
	height: 1.3em;
}
/* Shown by view.js once the WhatsApp message is ready (WordPress gives the buttons a display). */
.ef-intake__whatsapp[hidden] {
	display: none !important;
}
.ef-intake__actions {
	gap: 0.8rem;
}

/* ---------- Top bar ---------- */
.site-top-header-wrap .header-html-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.6rem;
	font-size: 0.85rem;
}
.ef-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
.ef-topbar__item svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- Language switcher ---------- */
.ef-lang {
	display: flex;
	gap: 0.5em;
	font-weight: 700;
}
.ef-lang a {
	text-decoration: none;
	opacity: 0.65;
}
.ef-lang a.is-current {
	opacity: 1;
	color: var(--global-palette1);
}
#mobile-drawer .ef-lang a {
	color: var(--global-palette3);
	text-decoration: none;
}
#mobile-drawer .ef-lang a.is-current,
#mobile-drawer .ef-lang a:hover {
	color: var(--global-palette1);
}
#mobile-drawer .ef-lang span {
	color: var(--global-palette3);
}
/* EN / ES always side by side, and menu labels never split in two lines. */
.secondary-navigation .menu,
.header-navigation .menu {
	flex-wrap: nowrap;
}
.header-navigation .menu > li > a {
	white-space: nowrap;
}
.header-navigation .lang-item.current-lang > a {
	color: var(--global-palette1);
	font-weight: 700;
}

/* ---------- Hero ---------- */
/* Desktop: texts placed inside the translucent teal box of the background,
   same composition as the client's banner (banner-home-2400.webp). */
.wp-block-cover.ef-hero {
	padding: 0;
	min-height: 0;
	aspect-ratio: 2 / 1;
	max-height: none;
	align-items: stretch;
}
.ef-hero .wp-block-cover__image-background {
	object-position: center;
}
.ef-hero .wp-block-cover__inner-container {
	position: relative;
	width: 100%;
	max-width: none;
	container-type: inline-size;
}
.ef-hero__box {
	position: absolute;
	inset: 0;
	color: var(--ef-hero-text);
}
.ef-hero__box > * {
	margin: 0;
}
.ef-hero .ef-hero__title {
	position: absolute;
	top: 9%;
	left: 14%;
	right: 5.5%;
	margin: 0;
	text-align: center;
	font-family: var(--global-heading-font-family);
	font-style: italic;
	font-weight: 400;
	font-size: 5.2cqi;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--ef-hero-text);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.ef-hero__cta {
	position: absolute;
	top: 30%;
	right: 14.7%;
	width: 48%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}
.ef-hero .ef-hero__cta > * {
	margin: 0;
}
.ef-hero .ef-hero__subtitle {
	font-family: var(--global-heading-font-family);
	font-size: 2.05cqi;
	letter-spacing: 0.12em;
	line-height: 1.3;
	color: var(--ef-hero-text);
}
.ef-hero .ef-hero__cta > .ef-hero__buttons {
	margin-top: 0.7cqi;
	margin-right: 0.65cqi;
}
.ef-hero .is-style-ef-light .wp-block-button__link {
	background: var(--ef-hero-beige);
	color: var(--global-palette2);
	font-family: var(--global-body-font-family);
	font-weight: 400;
	font-size: 1.95cqi;
	line-height: 1.12;
	padding: 0.85cqi 1.5cqi;
	border-radius: 0;
	min-width: 20.4cqi;
	text-align: center;
	box-shadow: 0 6px 22px -12px rgba(0, 0, 0, 0.35);
}
.ef-hero .is-style-ef-light .wp-block-button__link:hover,
.ef-hero .is-style-ef-light .wp-block-button__link:focus {
	background: #fff;
	color: var(--global-palette2);
}
.ef-hero .ef-hero__cta > .ef-hero__line {
	margin-top: 2.1cqi;
	padding-bottom: 0.5cqi;
	border-bottom: 2px solid var(--ef-hero-text);
	width: 100%;
	font-family: var(--global-heading-font-family);
	font-style: italic;
	font-weight: 700;
	font-size: 2.3cqi;
	line-height: 1.3;
	color: var(--ef-hero-text);
	text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}
/* Portrait + name + bubble, anchored to the bottom so a longer bubble text
   (Spanish) grows upwards instead of leaving the teal box. */
.ef-hero__intro {
	position: absolute;
	left: 6.2%;
	bottom: 10.5%;
	width: 34%;
	display: grid;
	grid-template-columns: 12.4cqi 1fr;
	grid-template-areas:
		"portrait name"
		"bubble bubble";
	align-items: end;
	column-gap: 0.8cqi;
	row-gap: 1.6cqi;
}
.ef-hero .ef-hero__intro > * {
	margin: 0;
}
.ef-hero .ef-hero__intro .ef-hero__portrait {
	grid-area: portrait;
	margin: 0;
}
.ef-hero .ef-hero__portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 30%;
	background: var(--ef-hero-beige);
	border-radius: 50%;
	border: 0.35cqi solid var(--ef-hero-ring);
}
.ef-hero .ef-hero__intro .ef-hero__name {
	grid-area: name;
	align-self: end;
	margin: 0 0 -0.4cqi;
	padding: 0;
	line-height: 1.2;
	font-family: var(--global-heading-font-family);
	font-style: italic;
	font-size: 1.6cqi;
	color: var(--ef-hero-text);
	white-space: nowrap;
}
.ef-hero .ef-hero__bubble {
	grid-area: bubble;
	justify-self: start;
	width: 28.5cqi;
	margin-left: 5.3cqi;
	padding: 1.4cqi 1.9cqi;
	background: var(--ef-hero-bubble);
	border-radius: 3.5cqi;
	font-family: var(--global-heading-font-family);
	font-style: italic;
	font-weight: 400;
	font-size: 1.62cqi;
	line-height: 1.2;
	color: var(--ef-hero-text);
}

/* Tablet & phone: one column over the square background. */
@media (max-width: 767px) {
	.wp-block-cover.ef-hero {
		aspect-ratio: auto;
		min-height: 100vw;
	}
	.ef-hero .wp-block-cover__image-background {
		object-position: center top;
	}
	.ef-hero__box,
	.ef-hero__cta,
	.ef-hero__intro,
	.ef-hero .ef-hero__title {
		position: static;
		width: auto;
	}
	.ef-hero__box {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		padding: 2rem 1.25rem 2.25rem;
		text-align: center;
	}
	.ef-hero .ef-hero__title {
		font-size: clamp(2.4rem, 11vw, 3.4rem);
	}
	.ef-hero__cta {
		align-items: center;
		text-align: center;
		gap: 1rem;
	}
	.ef-hero .ef-hero__subtitle {
		font-size: 1.25rem;
	}
	.ef-hero .ef-hero__cta > .ef-hero__buttons {
		margin: 0;
	}
	.ef-hero .is-style-ef-light .wp-block-button__link {
		font-size: 1.15rem;
		padding: 0.8rem 1.4rem;
		min-width: 0;
	}
	.ef-hero .ef-hero__cta > .ef-hero__line {
		margin-top: 0;
		font-size: 1.3rem;
	}
	.ef-hero__intro {
		grid-template-columns: 5.5rem auto;
		justify-content: center;
		align-items: center;
		column-gap: 0.75rem;
		row-gap: 0.9rem;
		margin-top: 0.5rem;
	}
	.ef-hero .ef-hero__portrait img {
		border-width: 3px;
	}
	.ef-hero .ef-hero__intro .ef-hero__name {
		align-self: center;
		margin: 0;
		font-size: 1.2rem;
		text-align: left;
	}
	.ef-hero .ef-hero__bubble {
		width: auto;
		margin: 0;
		padding: 1rem 1.25rem;
		border-radius: 1.5rem;
		font-size: 1.05rem;
	}
}

/* ---------- About ---------- */
.entry-content .wp-block-group.ef-section.ef-about {
	padding-top: clamp(2rem, 3vw, 2.5rem);
}
.ef-about__cols {
	gap: clamp(2rem, 6vw, 5.5rem);
}
.entry-content .ef-about__cols {
	align-items: flex-start;
}
.entry-content .ef-about__cols > .wp-block-column > :first-child {
	margin-top: 0;
}
.entry-content .ef-about .ef-photo {
	margin: 0;
}
.entry-content .ef-about__name {
	margin: 0 0 0.6rem;
	font-family: var(--global-heading-font-family);
	font-style: italic;
	font-size: 1.35em;
	color: var(--global-palette3);
	text-align: center;
}
.entry-content .ef-about h2 {
	margin-top: 0;
}

/* ---------- My Approach ---------- */
.entry-content .ef-approach__cols {
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: flex-start;
	margin-top: 2rem;
}
.entry-content .ef-approach__cols .wp-block-column > :first-child {
	margin-top: 0;
}
.entry-content .ef-approach .ef-photo {
	margin: 0;
}
.ef-approach__photo img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
	object-position: 50% 45%;
}
@media (max-width: 781px) {
	.entry-content .ef-approach__photo {
		max-width: 320px;
		margin-inline: auto;
	}
}

/* ---------- Areas of specialties ---------- */
.entry-content .ef-specialties h2 {
	margin-top: 0;
}
.entry-content .ef-specialties__list {
	columns: 2;
	column-gap: clamp(2rem, 5vw, 4rem);
	padding-left: 1.2em;
	margin: 1.5rem 0 2.5rem;
}
.ef-specialties__list li {
	margin-bottom: 0.6em;
	break-inside: avoid;
}
.ef-specialties__list li::marker {
	color: var(--global-palette1);
}
.ef-badges {
	gap: clamp(1rem, 3vw, 2rem);
}
.entry-content .ef-badges {
	align-items: center;
}
.entry-content .ef-badges .ef-badge {
	margin: 0 !important; /* Kadence adds a bottom margin to the first image */
}
.ef-badges .ef-badge img {
	width: 180px;
	height: auto;
}
@media (max-width: 781px) {
	.entry-content .ef-specialties__list {
		columns: 1;
	}
	.ef-badges .ef-badge img {
		width: 140px !important; /* the Image block writes width:180px inline */
	}
}

/* ---------- Free call request (block elisa-fusi/intake-form) ---------- */
.entry-content .ef-intake-section__cols {
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: flex-start;
}
.entry-content .ef-intake-section .ef-photo {
	margin: 0;
}
#free-consultation {
	scroll-margin-top: 110px;
}
.ef-intake__title {
	margin: 0 0 0.3rem;
}
.ef-intake__title:focus {
	outline: none;
}
.ef-intake__subtitle {
	margin: 0 0 1.4rem;
	font-style: italic;
	font-size: 1.15em;
	color: var(--global-palette5);
}
.ef-intake__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
	margin: 0 0 1.4rem;
	padding: 0;
	border: 0;
}
.ef-check {
	display: flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.8rem 1rem;
	background: var(--global-palette7);
	border: 2px solid transparent;
	border-radius: var(--ef-radius);
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}
.ef-check:hover {
	border-color: rgba(65, 141, 141, 0.35);
}
.ef-check:has(input:checked) {
	border-color: var(--global-palette1);
	background: var(--global-palette9);
}
.ef-check input,
.ef-radio input,
.ef-intake__consent input {
	width: 1.15em;
	height: 1.15em;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--global-palette1);
}
.ef-intake__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.2rem 1.2rem;
}
.ef-field {
	margin: 0 0 0.9rem;
}
.ef-field label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
	font-size: 0.95em;
}
.ef-field input {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid #cfc6bd;
	border-radius: var(--ef-radius);
	background: var(--global-palette9);
	font-size: 1rem;
}
.ef-field input:focus {
	outline: 2px solid var(--global-palette1);
	outline-offset: 0;
	border-color: var(--global-palette1);
}
.ef-intake__req {
	color: var(--global-palette13);
}
.ef-intake__contact {
	margin: 0.4rem 0 1rem;
	padding: 0;
	border: 0;
}
.ef-intake__contact legend {
	margin-bottom: 0.5rem;
	font-weight: 600;
}
.ef-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin-right: 1.4rem;
	cursor: pointer;
}
.ef-intake__consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	font-size: 0.92em;
	line-height: 1.5;
	cursor: pointer;
}
.ef-intake__consent input {
	margin-top: 0.25em;
}
.ef-intake__error {
	margin: 0 0 1rem;
	color: var(--global-palette13);
	font-weight: 600;
}
.ef-intake .wp-block-buttons {
	margin-top: 0.5rem;
}
.ef-intake button.wp-block-button__link {
	border: 0;
	cursor: pointer;
}
.ef-intake button.wp-block-button__link:disabled {
	opacity: 0.7;
	cursor: wait;
}
.ef-intake__thanks {
	padding: 2rem;
	background: var(--global-palette8);
	border-radius: var(--ef-radius);
}
.has-background .ef-intake__thanks {
	background: var(--global-palette9);
}
.ef-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
@media (max-width: 600px) {
	.ef-intake__options,
	.ef-intake__fields {
		grid-template-columns: 1fr;
	}
}

/* ---------- Somatic Therapy ---------- */
.entry-content .ef-somatic__cols {
	gap: clamp(2rem, 5vw, 4.5rem);
}
.ef-somatic__intro,
.ef-somatic__text {
	font-style: italic;
	color: var(--global-palette5);
}
.entry-content .ef-somatic__question {
	margin-top: 1.2rem;
}
.entry-content .ef-yesno.is-style-ef-options {
	max-width: 360px;
	margin: 1.2rem auto 1.6rem;
}
.ef-somatic__cta {
	font-size: 1.1em;
}
.entry-content .ef-somatic .ef-photo {
	margin: 0;
}

/* ---------- How can I help you today? ---------- */
.entry-content .ef-help__cards {
	gap: clamp(1rem, 3vw, 2.5rem);
	margin-top: 2.2rem;
}
.ef-help__card {
	padding: 1.6rem 1rem;
	border-radius: var(--ef-radius);
	transition: background-color 0.15s;
}
.ef-help__card:hover {
	background: var(--global-palette8);
}
/* On a beige section the hover is white. */
.has-background .ef-help__card:hover {
	background: var(--global-palette9);
}
.entry-content .ef-help__icon {
	margin: 0 auto 1rem;
}
.ef-help__icon img {
	width: 110px;
	height: 110px;
}
.ef-help__label a {
	font-family: var(--global-heading-font-family);
	font-size: 1.2em;
	line-height: 1.35;
	color: var(--global-palette3);
	text-decoration: none;
}
.ef-help__label a:hover {
	color: var(--global-palette2);
	text-decoration: underline;
}
@media (max-width: 781px) {
	.entry-content .ef-help__cards {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ef-help__icon img {
		width: 88px;
		height: 88px;
	}
}

/* ---------- Online & In-Person Therapy ---------- */
.entry-content .ef-online__cols {
	gap: clamp(2rem, 5vw, 4.5rem);
	margin-top: 1.5rem;
}
.entry-content .ef-online .ef-photo {
	margin: 0;
}

/* ---------- Online Courses & Education ---------- */
.entry-content .ef-courses__cols {
	gap: clamp(2rem, 5vw, 4rem);
	margin-top: 2rem;
}
.entry-content .ef-courses .ef-photo {
	margin: 0;
}
.entry-content .ef-courses__card {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: #f3e3d6; /* warmer beige than the section, like the client's sketch */
	border-radius: 28px;
}
.entry-content .ef-courses__card p {
	margin: 0 0 0.9em;
}
.entry-content .ef-courses__card p:last-child {
	margin-bottom: 0;
}
.entry-content .ef-courses .wp-block-buttons {
	margin-top: 1.8rem;
}

/* ---------- Online Clinic: one card per session ---------- */
.entry-content .ef-session-cards {
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin-top: 1rem;
}
.entry-content .ef-session-card {
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
	background: var(--global-palette8);
	border-radius: 20px;
	transition: box-shadow 0.15s, transform 0.15s;
}
.entry-content .ef-session-card:hover {
	box-shadow: 0 14px 34px -22px rgba(46, 42, 39, 0.45);
	transform: translateY(-2px);
}
.entry-content .ef-session-card h2 {
	margin: 0.4rem 0 0.2rem;
	font-size: clamp(1.6rem, 2.4vw, 2rem);
}
.entry-content .ef-session-card .ef-session-meta {
	margin: 0 0 0.6rem;
}
.entry-content .ef-session-card {
	display: flex;
	flex-direction: column;
}
.entry-content .ef-session-card .wp-block-buttons {
	margin-top: auto;
	padding-top: 1.2rem;
}

/* ---------- Session pages (booking) ---------- */
.ef-session-meta {
	font-size: 1.15em;
	color: var(--global-palette3);
}
.ef-booking {
	margin: 2rem 0;
}
.ef-booking--cal {
	min-height: 640px;
	border-radius: var(--ef-radius);
	overflow: hidden;
}
.ef-booking__fallback {
	font-size: 0.9em;
}
.ef-booking--whatsapp {
	padding: 1.6rem;
	background: var(--global-palette8);
	border-radius: var(--ef-radius);
}
.ef-booking__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}
.ef-booking__whatsapp svg {
	width: 1.3em;
	height: 1.3em;
}

/* ---------- Residential Retreats & Somatic Therapy Training ---------- */
.wp-block-cover.ef-retreats {
	padding: var(--ef-section-space) var(--global-content-edge-padding, 1.5rem);
}
.entry-content .ef-retreats__cols {
	gap: clamp(2rem, 6vw, 5rem);
}
.wp-block-cover.ef-retreats h2 {
	margin-bottom: 0.2rem;
	color: var(--global-palette3);
}
.ef-retreats .ef-retreats__subtitle {
	margin-top: 0;
	font-weight: 700;
	color: var(--global-palette4);
}
.ef-retreats p {
	color: var(--global-palette4);
}

/* ---------- Option cards (List block, style "Option cards") ---------- */
.entry-content .is-style-ef-options,
.editor-styles-wrapper .is-style-ef-options {
	list-style: none;
	padding: 0;
	margin: 2rem 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
}
.is-style-ef-options li {
	margin: 0;
}
.is-style-ef-options li > a,
.is-style-ef-options li > span {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.8em;
	height: 100%;
	padding: 1rem 1.1rem;
	background: var(--global-palette7);
	border: 2px solid transparent;
	border-radius: var(--ef-radius);
	color: var(--global-palette4);
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, background-color 0.15s;
}
.is-style-ef-options li > a::before,
.is-style-ef-options li > span::before {
	content: "";
	flex: 0 0 auto;
	width: 1.1em;
	height: 1.1em;
	border: 2px solid var(--global-palette6);
	border-radius: 50%;
	background: var(--global-palette9);
	box-shadow: inset 0 0 0 3px var(--global-palette9);
}
.is-style-ef-options li > a:hover,
.is-style-ef-options li > span:hover {
	border-color: rgba(65, 141, 141, 0.35);
	color: var(--global-palette4);
}
.is-style-ef-options li > a:focus-visible,
.is-style-ef-options li > span:focus-visible {
	outline: 2px solid var(--global-palette2);
	outline-offset: 2px;
}
.is-style-ef-options li.is-selected > a,
.is-style-ef-options li.is-selected > span {
	border-color: var(--global-palette1);
	background: var(--global-palette9);
}
.is-style-ef-options li.is-selected > a::before,
.is-style-ef-options li.is-selected > span::before {
	border-color: var(--global-palette1);
	background: var(--global-palette1);
}
.ef-options-start.is-shaking .wp-block-button__link {
	animation: ef-shake 0.35s;
}
.ef-options-hint {
	margin: 0.6rem 0 0;
	font-size: 0.9em;
	color: var(--global-palette2);
}
@keyframes ef-shake {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
@media (max-width: 600px) {
	.entry-content .is-style-ef-options,
	.editor-styles-wrapper .is-style-ef-options {
		grid-template-columns: 1fr;
	}
}

/* ---------- Questionnaire ---------- */
.ef-quiz__progress {
	height: 6px;
	margin: 2rem 0 2.25rem;
	background: #d9d9d9;
	border-radius: 3px;
	overflow: hidden;
}
.ef-quiz__progress-bar {
	height: 100%;
	width: 0;
	background: var(--global-palette1);
	transition: width 0.35s ease;
}
.ef-quiz__progress-label {
	margin: -1.6rem 0 1.5rem;
	text-align: center;
	font-size: 0.85em;
	color: var(--global-palette5);
}
.ef-quiz .ef-quiz__question {
	font-size: 1.3em;
	font-weight: 700;
	color: var(--global-palette3);
	margin-bottom: 1.5rem;
}
.ef-quiz__answers.wp-block-buttons {
	gap: 0.8rem;
}
.ef-quiz__answers .wp-block-button {
	width: min(100%, 460px);
}
.ef-quiz__answers .wp-block-button__link {
	width: 100%;
	cursor: pointer;
	padding: 0.95rem 1.4rem;
}
.ef-quiz.is-ready .ef-quiz__progress-text {
	display: none;
}
.editor-styles-wrapper .ef-quiz__progress-text {
	font-size: 0.85em;
	color: var(--global-palette5);
	border: 1px dashed var(--global-palette6);
	padding: 0.3rem;
}
.ef-quiz.is-ready .ef-quiz__step,
.ef-quiz.is-ready .ef-quiz__form,
.ef-quiz.is-ready .ef-quiz__result {
	display: none;
}
.ef-quiz.is-ready .ef-quiz__step.is-active,
.ef-quiz.is-ready .ef-quiz__form.is-active,
.ef-quiz.is-ready .ef-quiz__result.is-active {
	display: block;
	animation: ef-fade 0.3s ease;
}
/* WPForms form as the last step of the questionnaire (see home.js). */
.ef-quiz .ef-quiz__form {
	max-width: 460px;
	margin-inline: auto;
}
.ef-quiz .ef-quiz__form .wpforms-field input,
.ef-quiz .ef-quiz__form .wpforms-field textarea,
.ef-quiz .ef-quiz__form .wpforms-field-row {
	max-width: 100% !important;
}
.ef-quiz .ef-quiz__form .wpforms-submit-container {
	text-align: center;
}
.ef-quiz .ef-quiz-answers {
	display: none !important;
}
/* In the editor every question is shown, one after the other. */
.editor-styles-wrapper .ef-quiz__step,
.editor-styles-wrapper .ef-quiz__result {
	padding: 1.25rem;
	margin-top: 1rem;
	border: 1px dashed var(--global-palette6);
	border-radius: var(--ef-radius);
}
@keyframes ef-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* ---------- Latest posts ---------- */
.ef-blog .wp-block-post-template {
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-top: 2rem;
}
.entry-content .ef-blog .ef-blog__query {
	margin-bottom: 2.5rem;
}
.ef-blog .wp-block-post-featured-image img {
	border-radius: var(--ef-radius);
}
.ef-blog .wp-block-post-title {
	margin: 1rem 0 0.35rem;
	font-size: 1.45rem;
	line-height: 1.3;
}
.ef-blog .wp-block-post-title a {
	text-decoration: none;
	color: var(--global-palette3);
}
.ef-blog .wp-block-post-date {
	font-size: 0.85em;
	color: var(--global-palette5);
}
.ef-blog .wp-block-post-excerpt__excerpt {
	margin-top: 0.6rem;
}
@media (max-width: 781px) {
	.ef-blog .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Newsletter (Mailchimp for WP) ---------- */
.ef-newsletter .mc4wp-form {
	margin-top: 1.5rem;
}
.ef-nl {
	display: flex;
	max-width: 480px;
	margin: 0 auto;
	background: var(--global-palette9);
	border: 1px solid #cfc6bd;
	border-radius: var(--ef-radius);
	overflow: hidden;
}
.ef-nl input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.9rem 1.1rem;
	font-size: 1rem;
}
.ef-nl input[type="email"]:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--global-palette1);
}
.ef-nl button {
	border: 0;
	border-radius: 0;
	padding: 0 1.4rem;
	background: var(--global-palette1);
	color: var(--global-palette9);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}
.ef-newsletter .mc4wp-form-fields {
	display: flex;
	justify-content: center;
}
.ef-newsletter .mc4wp-response {
	text-align: center;
	margin-top: 0.75rem;
}
@media (max-width: 480px) {
	.ef-nl {
		flex-direction: column;
		border: 0;
		background: transparent;
		gap: 0.6rem;
	}
	.ef-nl input[type="email"] {
		background: var(--global-palette9);
		border: 1px solid #cfc6bd;
		border-radius: var(--ef-radius);
	}
	.ef-nl button {
		padding: 0.85rem 1.4rem;
		border-radius: var(--ef-radius);
	}
}
.ef-nl button:hover {
	background: var(--global-palette2);
}

/* ---------- Footer ---------- */
.site-footer .footer-navigation .menu {
	flex-direction: column;
	align-items: flex-start;
}
@media (max-width: 1024px) {
	.site-footer .footer-navigation,
	.site-footer .footer-navigation .footer-menu-container,
	.site-footer .site-footer-section:has(.footer-navigation) {
		justify-content: flex-start;
		text-align: left;
	}
	.site-footer .footer-navigation .menu {
		margin-left: 0;
		padding-left: 0;
	}
	/* Kadence pads these links with a more specific rule. */
	.site-footer .footer-navigation .menu > li > a {
		padding-left: 0 !important;
	}
}
.site-footer .ef-footer-logo img {
	max-width: 180px;
	height: auto;
}
.site-footer .wp-block-social-links {
	margin-top: 1rem;
}

/* ---------- Calendar (The Events Calendar) ---------- */
/* Titles in the heading font of the site. */
.tribe-events .tribe-events-c-top-bar__datepicker-button,
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event-title,
.tribe-events .tribe-events-calendar-day__event-title,
.tribe-events .tribe-events-calendar-latest-past__heading,
.tribe-events-single .tribe-events-single-event-title,
.tribe-events .tribe-events-calendar-list__month-separator-text {
	font-family: var(--global-heading-font-family);
	font-weight: 400;
}
.tribe-events-single .tribe-events-single-event-title {
	color: var(--global-palette3);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.15;
}
/* Month view: event titles small, so in the body font (bold) to stay legible; today in teal. */
.tribe-events .tribe-events-calendar-month__calendar-event-title,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link {
	font-family: var(--global-body-font-family);
	font-weight: 700;
	color: var(--global-palette3);
}
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum,
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link {
	color: var(--global-palette1);
}
.tribe-events .tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date-daynum {
	color: var(--global-palette9);
}
.tribe-events-single .tribe-events-schedule,
.tribe-events-single .tribe-events-event-meta {
	font-family: var(--global-body-font-family);
}
/* Date and time line: body font, not a second big title. */
.tribe-events-single .tribe-events-schedule h2,
.tribe-events-single .tribe-events-schedule .tribe-event-date-start,
.tribe-events-single .tribe-events-schedule .tribe-event-time {
	font-family: var(--global-body-font-family);
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--global-palette4);
}
.tribe-events-single .tribe-events-schedule .tribe-events-cost {
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}
/* Details / Venue box in beige, at reading size. */
.tribe-events-single .tribe-events-event-meta.primary,
.tribe-events-single .tribe-events-event-meta.secondary {
	background: var(--global-palette8);
	border: 0;
	padding: 0.5rem 1.5rem 1rem;
}
.tribe-events-single .tribe-events-event-meta.primary {
	border-radius: var(--ef-radius);
}
.tribe-events-single .tribe-events-event-meta dt,
.tribe-events-single .tribe-events-event-meta dd,
.tribe-events-single .tribe-events-event-meta .tribe-venue,
.tribe-events-single .tribe-events-event-meta .tribe-venue-location,
.tribe-events-single .tribe-events-event-meta address {
	font-size: 1rem;
	line-height: 1.5;
}
.tribe-events-single .tribe-events-event-meta abbr {
	text-decoration: none;
	border: 0;
}
.tribe-events-single .tribe-events-event-meta .tribe-events-single-section-title {
	font-family: var(--global-heading-font-family);
	color: var(--global-palette3);
	text-transform: none;
	letter-spacing: normal;
	font-size: 1.35rem;
	font-weight: 400;
}
.tribe-events-single .tribe-events-cost,
.tribe-events-single .tribe-events-schedule .tribe-events-cost {
	color: var(--global-palette1);
	font-weight: 700;
}

/* No upcoming events: friendly empty state with a button to the newsletter. */
.tribe-events .tribe-events-c-messages__message:has(.ef-events-empty) {
	display: block;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
	background: var(--global-palette8);
	border-radius: var(--ef-radius);
	text-align: center;
}
.tribe-events .tribe-events-c-messages__message:has(.ef-events-empty) .tribe-events-c-messages__message-icon-svg {
	display: none;
}
.ef-events-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.4rem;
}
.ef-events-empty__text {
	max-width: 34em;
	font-family: var(--global-heading-font-family);
	font-style: italic;
	font-size: clamp(1.25rem, 2.4vw, 1.6rem);
	line-height: 1.45;
	color: var(--global-palette3);
}
.tribe-events .ef-events-empty__button,
.ef-events-empty__button {
	display: inline-block;
	padding: 0.85rem 1.8rem;
	background: var(--global-palette1);
	border-radius: var(--ef-radius);
	color: var(--global-palette9);
	font-family: var(--global-body-font-family);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: background-color 0.15s;
}
.tribe-events .ef-events-empty__button:hover,
.tribe-events .ef-events-empty__button:focus {
	background: var(--global-palette2);
	color: var(--global-palette9);
}
/* The newsletter strip, reached through #newsletter, below the sticky header. */
#newsletter {
	scroll-margin-top: 90px;
}

/* ---------- Option cards: answer to the chosen card (Somatic Therapy yes / no) ---------- */
.has-option-answers .ef-options-answer {
	display: none;
}
.has-option-answers .ef-options-answer.is-visible {
	display: block;
	animation: ef-answer-in 0.35s ease-out;
}
.entry-content .ef-options-answer {
	margin: 0 auto 1.2rem;
	max-width: 30em;
	padding: 0.9rem 1.2rem;
	background: var(--global-palette8);
	border-left: 3px solid var(--global-palette1);
	border-radius: var(--ef-radius);
	font-weight: 600;
	color: var(--global-palette3);
}
@keyframes ef-answer-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
.ef-options-cta .wp-block-button__link {
	transition: box-shadow 0.3s, transform 0.3s, background-color 0.15s;
}
.ef-options-cta.is-highlighted .wp-block-button__link {
	box-shadow: 0 0 0 4px rgba(65, 141, 141, 0.25), 0 10px 24px -12px rgba(46, 42, 39, 0.5);
	transform: translateY(-1px);
	animation: ef-cta-pulse 1.2s ease-out 1;
}
@keyframes ef-cta-pulse {
	0% { box-shadow: 0 0 0 0 rgba(65, 141, 141, 0.45); }
	100% { box-shadow: 0 0 0 4px rgba(65, 141, 141, 0.25), 0 10px 24px -12px rgba(46, 42, 39, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
	.has-option-answers .ef-options-answer.is-visible,
	.ef-options-cta.is-highlighted .wp-block-button__link {
		animation: none;
		transition: none;
	}
}

