/*
Theme Name: Tisch Abelow
Description: Child theme for tischabelowtherapy.com. Pages are PHP templates; text is edited in the classic editor and Secure Custom Fields. Headings and lists use simple editorial styling.
Template: hello-elementor
Version: 1.0.0
Requires PHP: 7.4
Text Domain: tischabelow
*/

:root {
	--band-color: #f2e7dc;
	--ta-bg: #FEF6F0;
	--ta-bg-grey: #fbf5f4;
	--ta-text: #363636;
	--ta-ink: #000000;
	--ta-cream: #FDF1E9;
	--ta-line: #EED4CB;
	--ta-rose: #D99A84;
	--ta-tan: #B07A51;     /* decoration: bullet dots, underlines on dark panels, focus ring */
	--ta-link: #936543;    /* the tan darkened to pass 4.5:1 on the cream: link text, FAQ labels */
	--ta-current: #9A614B; /* the rose deepened to pass 4.5:1 on the cream: current menu item */
	--ta-panel: #201104;   /* About links panel */
	--ta-panel-text: #FFFFFF;
	--ta-panel-muted: rgba(255, 255, 255, 0.75);
	--ta-field: #9A8174;
	--ta-max: 920px;

	/* Fonts: Figtree throughout (loaded in functions.php; the editor's copy is assets/editor.css).
	   UI: menu, buttons, form fields, small labels. Head: her name, headings, short lines.
	   Body: paragraphs, list items, the Home quote. Each can be pointed at another font here. */
	--ta-font-ui: "Figtree", sans-serif;
	--ta-font-head: var(--ta-font-ui);
	--ta-font-body: var(--ta-font-ui);
	--ta-ui-weight: 400;
	--ta-ui-tracking: 0;
	--ta-ui-word: normal;
	--ta-strong: 600;
	/* Type scale: every piece of text uses one of these four sizes (phone sizes at the end of the file). */
	--ta-size-small: 16px;   /* footer, quote attribution, link notes */
	--ta-size-ui: 17px;      /* buttons, small labels */
	--ta-size-menu: var(--ta-body-size);   /* her name, menu, dropdown, phone Menu button: same as body text */
	--ta-body-size: 19px;    /* paragraphs, lists, FAQ questions, form fields */
	--ta-head-size: 22px;    /* page and section headings, Home row titles */
	--ta-body-weight: 400;
	--ta-body-leading: 1.55;
	--ta-body-tracking: 0;
	--ta-body-word: normal;
}

/* ---------------------------------------------------------------- base */

html { background: var(--ta-bg); -webkit-text-size-adjust: 100%; }

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; border-style: none; }
button, input, select, textarea { font-family: inherit; }
figure, blockquote { margin: 0; }

body {
	margin: 0;
	background: var(--ta-bg);
	color: var(--ta-text);
	font-family: var(--ta-font-ui);
	font-size: var(--ta-body-size);
	font-weight: var(--ta-ui-weight);
	line-height: 1.3;
	letter-spacing: var(--ta-ui-tracking);
	word-spacing: var(--ta-ui-word);
}

a { color: var(--ta-link); }
a:hover, a:active { color: var(--ta-rose); }

:focus-visible { outline: 2px solid var(--ta-tan); outline-offset: 3px; }

.ta-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ta-ink);
	color: var(--ta-cream);
	text-decoration: none;
	border-radius: 4px;
}
.ta-skip-link:focus { top: 12px; color: var(--ta-cream); }

.ta-header__inner,
.ta-main,
.ta-footer__inner {
	max-width: var(--ta-max);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- header */

.ta-header {
	position: sticky;
	top: var(--ta-header-offset, 0px);
	z-index: 20;
	background: var(--ta-bg);
}
/* On smaller phones the WordPress toolbar scrolls away with the page. */
@media (min-width: 601px) {
	.admin-bar .ta-header { --ta-header-offset: var(--wp-admin--admin-bar--height, 32px); }
}

.ta-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 40px;
	padding-block: 6px;
}

.ta-brand {
	font-family: var(--ta-font-head);
	font-size: var(--ta-size-menu);
	font-weight: 500;
	color: var(--ta-ink);
	text-decoration: none;
}
.ta-brand:hover { color: var(--ta-ink); }

.ta-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 30px;
}
.ta-nav__list > li { position: relative; }

.ta-nav__list > li > a,
.ta-nav__list > li > .ta-subtoggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: inherit;
	font-size: var(--ta-size-menu);
	font-weight: 500;
	letter-spacing: inherit;
	line-height: 1.3;
	color: var(--ta-ink);
	text-decoration: none;
	cursor: pointer;
}
.ta-nav__list > li > .ta-subtoggle:hover,
.ta-nav__list > li > .ta-subtoggle:focus { background: transparent; }

.ta-nav a:hover,
.ta-nav .ta-subtoggle:hover { color: var(--ta-rose); }

/* Current page: a deeper rose, since the brand rose is too faint to read as text on the cream. */
.ta-nav .current-menu-item > a,
.ta-nav .current-menu-ancestor > a,
.ta-nav .current-menu-ancestor > .ta-subtoggle,
.ta-nav .current-menu-parent > .ta-subtoggle { color: var(--ta-current); }

.ta-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	background: var(--ta-bg);
}
.ta-nav .sub-menu a {
	display: block;
	padding: 11px 18px;
	font-size: var(--ta-size-menu);
	font-weight: 500;
	color: var(--ta-ink);
	text-decoration: none;
}
.ta-nav .sub-menu a:hover { color: var(--ta-rose); }
.ta-nav .sub-menu .current-menu-item > a { color: var(--ta-current); }

.ta-menu-toggle { display: none; }

@media (min-width: 901px) {
	/* Keep the first heading at its existing distance from the top of the page. */
	.ta-header { margin-bottom: 36px; }
	.ta-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: -18px;
		z-index: 30;
		display: none;
		width: max-content;
		border-radius: 0 0 4px 4px;
		box-shadow: 0 5px 8px -5px rgba(50, 37, 29, 0.20);
	}
	.ta-nav .menu-item-has-children:hover > .sub-menu,
	.ta-nav .menu-item-has-children.is-open > .sub-menu,
	html:not(.ta-js) .ta-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
}

@media (max-width: 900px) {
	html:not(.ta-js) .ta-header { position: static; }
	.ta-header__inner { min-height: 56px; gap: 10px 16px; padding-block: 0; }
	.ta-brand { flex: 1 1 0; min-width: 0; font-size: var(--ta-size-menu); }
	.ta-menu-toggle { flex: none; }

	.ta-js .ta-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: flex-end;
		min-width: 3.5em;
		min-height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		font-family: inherit;
		font-size: var(--ta-size-menu);
		font-weight: 500;
		color: var(--ta-link);
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 3px;
		cursor: pointer;
	}
	.ta-js .ta-menu-toggle:hover,
	.ta-js .ta-menu-toggle:focus { background: transparent; color: var(--ta-link); }

	.ta-nav { width: 100%; }
	.ta-js .ta-nav {
		display: none;
		position: absolute;
		inset: 100% 0 auto;
		max-height: calc(100dvh - 100% - var(--ta-header-offset, 0px));
		overflow-y: auto;
		overscroll-behavior-y: contain;
		padding: 0 20px 8px;
		background: var(--ta-bg);
		border-bottom: 1px solid var(--ta-line);
	}
	.ta-js .ta-nav.is-open { display: block; }

	.ta-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding-top: 8px;
		border-top: 1px solid var(--ta-line);
	}
	.ta-nav__list > li { width: 100%; }
	.ta-nav__list > li > a,
	.ta-nav__list > li > .ta-subtoggle { font-size: var(--ta-size-menu); }
	.ta-nav .sub-menu { width: fit-content; max-width: 100%; padding: 4px 16px; }
	.ta-js .ta-nav .sub-menu { display: none; }
	.ta-js .ta-nav .is-open > .sub-menu { display: block; }
	.ta-nav .sub-menu a { padding: 10px 0; font-size: var(--ta-size-menu); }
}

/* ---------------------------------------------------------------- page layout */

.ta-main { padding-top: 28px; padding-bottom: 72px; }

.ta-portrait-flow { display: flow-root; }
.ta-photo { float: right; width: 260px; margin: 0 0 12px 32px; }
.ta-photo__img { display: block; width: 100%; height: auto; }

@media (max-width: 700px) {
	.ta-photo { float: none; width: 100%; margin: 0 0 22px; }
}

.ta-h1 {
	margin: 0 0 18px;
	font-family: var(--ta-font-head);
	font-size: var(--ta-head-size);
	font-weight: 500;
	line-height: 1.3;
	color: var(--ta-ink);
}
.ta-h1--spaced { margin-bottom: 28px; }

.ta-h2 {
	margin: 0 0 16px;
	font-family: var(--ta-font-head);
	font-size: var(--ta-head-size);
	font-weight: 500;
	line-height: 1.3;
	color: var(--ta-ink);
}

.ta-h3 {
	margin: 0 0 12px;
	font-family: var(--ta-font-head);
	font-size: var(--ta-size-ui);
	font-weight: 500;
	line-height: 1.3;
	color: var(--ta-ink);
}

/* ---------------------------------------------------------------- editor text */

/* Reading text: paragraphs, list items and the Home quote use the reading font. */
.ta-prose p,
.ta-prose li,
.ta-quote blockquote {
	font-family: var(--ta-font-body);
	font-weight: var(--ta-body-weight);
	letter-spacing: var(--ta-body-tracking);
	word-spacing: var(--ta-body-word);
}
.ta-prose p,
.ta-prose li {
	font-size: var(--ta-body-size);
	line-height: var(--ta-body-leading);
}
.ta-prose p { margin: 0 0 18px; }
.ta-prose > :last-child { margin-bottom: 0; }

.ta-prose a {
	color: var(--ta-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.ta-prose a:hover { color: var(--ta-rose); }

/* Heading 2: a section heading with a thin rule above (the focus areas). */
.ta-prose h2 {
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid var(--ta-line);
	font-family: var(--ta-font-head);
	font-size: var(--ta-head-size);
	font-weight: 500;
	line-height: 1.3;
	color: var(--ta-ink);
}
.ta-prose h2 + p { margin-top: 18px; }

.ta-prose h3 {
	margin: 0 0 8px;
	font-family: var(--ta-font-head);
	font-size: var(--ta-body-size);
	font-weight: 500;
	line-height: 1.3;
	color: var(--ta-ink);
}

/* Horizontal line: closes a run of Heading 2 sections. */
.ta-prose hr {
	margin: 0 0 32px;
	border: 0;
	border-top: 1px solid var(--ta-line);
}

.ta-prose ul { margin: 0 0 32px; padding-left: 1.25em; }
.ta-prose ul li { margin-bottom: 5px; }
.ta-prose ul li::marker { color: var(--ta-link); }

.ta-service-band,
.ta-affiliations {
	margin-block: 36px;
	padding-block: 36px;
	background: var(--band-color);
	/* Extend the color to both viewport edges while keeping the content on the page grid. */
	box-shadow: 0 0 0 100vmax var(--band-color);
	clip-path: inset(0 -100vmax);
}
.ta-service-band {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(26px, 4vw, 48px);
}
.ta-service-band--art-right { display: flow-root; }
.ta-service-band--art-right > p:last-child { margin-bottom: 0; }
.ta-service-band figure { margin: 0; }
.ta-service-band--art-right figure {
	float: right;
	width: 300px;
	margin: 0 0 16px clamp(26px, 4vw, 48px);
}
.ta-service-band img { display: block; width: 100%; height: auto; }
.ta-service-band ul, .ta-service-band li:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
	.ta-service-band, .ta-affiliations { padding-block: 28px; }
	.ta-service-band { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.ta-service-band--art-right figure { float: none; width: auto; margin: 0 0 22px; }
}
.ta-prose h3 { margin-top: 24px; font-weight: var(--ta-strong); }

.ta-prose ol { margin: 0 0 18px; padding-left: 1.4em; }

.ta-prose em { font-style: italic; }

/* ---------------------------------------------------------------- home */

/* Home quote: plain italics at the top of the text column, above the heading. */
.ta-quote { margin: 0 0 32px; }
.ta-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--ta-body-size);
	font-style: italic;
	line-height: 1.45;
	color: var(--ta-text);
}
.ta-quote figcaption { margin-top: 8px; font-size: var(--ta-size-small); color: var(--ta-text); }

.ta-rows {
	margin-top: 56px;
	max-width: 810px;
	border-bottom: 1px solid var(--ta-line);
}
.ta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
	border-top: 1px solid var(--ta-line);
	color: var(--ta-ink);
	text-decoration: none;
}
.ta-row:hover { color: var(--ta-ink); }
.ta-row:hover .ta-row__title,
.ta-row:hover svg { color: var(--ta-rose); }
.ta-row__text { display: flex; flex-direction: column; gap: 4px; }
.ta-row__title { font-family: var(--ta-font-head); font-size: var(--ta-head-size); font-weight: 500; }
.ta-row__desc { font-family: var(--ta-font-head); color: var(--ta-text); font-weight: var(--ta-ui-weight); }
.ta-row svg { flex: none; }

/* ---------------------------------------------------------------- FAQ */

.ta-answer { margin: 0 0 28px; }
.ta-answer h2 {
	margin: 0 0 6px;
	color: var(--ta-ink);
	font-size: var(--ta-head-size);
	font-weight: 500;
	line-height: 1.35;
}
.ta-after { margin-top: 40px; }

/* ---------------------------------------------------------------- about */

.ta-affiliations {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 52px;
	margin-bottom: 0;
}
@media (min-width: 701px) {
	.ta-affiliations {
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
		padding-block: 34px;
	}
}
.ta-affiliations h2 {
	margin-bottom: 16px;
	font-size: 19px;
	line-height: 1.35;
	font-weight: 600;
}
.ta-linklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-family: var(--ta-font-body);
	font-size: 17px;
	line-height: 1.45;
	font-weight: 400;
	letter-spacing: 0;
	word-spacing: normal;
}
.ta-linklist a { color: #664e40; text-decoration-color: #a18a78; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ta-linklist a:hover { color: var(--ta-ink); }
.ta-linklist__note { display: block; margin-top: 5px; font-size: var(--ta-size-small); color: var(--ta-text); }

/* ---------------------------------------------------------------- contact form (Forminator) */

body .ta-prose .forminator-ui.forminator-custom-form { max-width: 100%; margin-top: 32px; }
body .ta-prose .forminator-ui.forminator-custom-form .forminator-row { margin-bottom: 18px; }

body .ta-prose .forminator-ui.forminator-custom-form .forminator-input,
body .ta-prose .forminator-ui.forminator-custom-form .forminator-textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--ta-field);
	border-radius: 4px;
	background: #FFFFFF;
	font-family: inherit;
	font-size: var(--ta-body-size);
	font-weight: 400;
	letter-spacing: var(--ta-ui-tracking);
	color: var(--ta-ink);
}
body .ta-prose .forminator-ui.forminator-custom-form .forminator-textarea { min-height: 160px; line-height: 1.4; resize: vertical; }
body .ta-prose .forminator-ui.forminator-custom-form ::placeholder { color: #6F625B; opacity: 1; }

/* Forminator's per-form CSS colors the button with an ID selector, so !important is needed here. */
body .ta-prose .forminator-ui.forminator-custom-form .forminator-button-submit {
	min-height: 48px;
	padding: 13px 30px;
	border: 0;
	border-radius: 4px;
	background: var(--ta-ink) !important;
	font-family: inherit;
	font-size: var(--ta-size-ui);
	font-weight: var(--ta-strong);
	letter-spacing: var(--ta-ui-tracking);
	color: var(--ta-cream) !important;
	cursor: pointer;
}
body .ta-prose .forminator-ui.forminator-custom-form .forminator-button-submit:hover,
body .ta-prose .forminator-ui.forminator-custom-form .forminator-button-submit:focus { background: #2B2B2B !important; }

/* The form shows placeholders in the boxes; keep its labels for screen readers instead of display: none. */
body .ta-prose .forminator-ui.forminator-custom-form .forminator-label {
	display: block !important;
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- footer */

.ta-footer__inner { padding-bottom: 48px; }
.ta-footer__rule {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	padding-top: 28px;
	border-top: 1px solid var(--ta-line);
	font-size: var(--ta-size-small);
	line-height: 1.5;
}
.ta-footer__col { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 768px) {
	.ta-footer__col + .ta-footer__col { text-align: right; }
}
@media (max-width: 767px) {
	.ta-footer__rule { flex-direction: column; align-items: flex-start; }
}
.ta-footer__name { font-family: var(--ta-font-head); font-size: var(--ta-size-small); font-weight: 500; color: var(--ta-ink); }
.ta-footer a {
	color: var(--ta-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.ta-footer a:hover { color: var(--ta-rose); }

/* ---------------------------------------------------------------- phones */

@media (max-width: 767px) {
	:root { --ta-size-ui: 16px; --ta-body-size: 18px; --ta-head-size: 20px; }
	.ta-main { padding-top: 20px; padding-bottom: 56px; }
}
