/*
 * Shared components: header, navigation, mobile menu, footer, social icons, buttons.
 * Values from Figma: header 370:628, footer 370:875 / 281:2170 (desktop) · 386:2077, 386:2091, 441:216 (mobile).
 * Desktop layout from 1200px; below that the mobile header, menu and footer.
 */

/* Screen-reader-only text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ Buttons */

.zain-button--outline .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 33.5px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 12px;
	background: transparent;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.zain-button--outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

/*
 * States every button shares — Figma draws none (HANDOFF 2026-10-21). They follow the site's hover rule (light
 * at rest → forest fill, white text; hero Book Now, Back to top, "Get in touch" (FAQs, legal) and Contact Submit take
 * honey + white, like the calendar's selected day under the pointer): keyboard focus looks like hover (plus the
 * focus ring), pressed sinks 1px,
 * disabled fades to 40% like the calendar arrows and stops reacting.
 */
:is(.zain-button--outline, .zain-button--quiet) .wp-block-button__link:focus-visible,
.zain-booking__button:focus-visible {
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

.wp-block-button__link:active,
.zain-booking__button:active,
.zain-booking__prev:active,
.zain-booking__next:active,
.zain-form .wpcf7-submit:active,
.zain-social__link:active,
.zain-to-top:active {
	transform: translateY(1px);
}

.zain-form .wpcf7-submit:disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* ------------------------------------------------------------------ Logo */

.zain-logo {
	display: block;
	color: inherit;
	line-height: 0;
}

.zain-logo svg,
.zain-logo img {
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ Navigation lists */

.zain-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.zain-nav__link {
	color: inherit;
	text-decoration: none;
}

.zain-nav__link:hover {
	color: var(--wp--preset--color--forest);
}

.zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

/* ------------------------------------------------------------------ Header */

.zain-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 40px var(--wp--custom--edge) 29.56px; /* edge: lines up with the 1728 page on wide screens */
}

.zain-header .zain-logo {
	width: 179px;
}

.zain-header__links {
	display: flex;
	align-items: center;
	gap: 46px;
}

.zain-nav--header .zain-nav__list {
	display: flex;
	gap: 53px;
}

.zain-nav--header .zain-nav__link {
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
}

.zain-nav--header .zain-nav__link:hover,
.zain-nav--header .zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

.zain-header .wp-block-buttons {
	margin: 0;
}

/* ------------------------------------------------------------------ Mobile menu */

.zain-menu {
	display: none;
}

.zain-menu__open,
.zain-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 41px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.zain-menu__open:hover,
.zain-menu__close:hover {
	color: var(--wp--preset--color--forest);
}

.zain-menu__dialog {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 24px 24px 32px; /* Figma 69 (and the page header 61) leave room for a phone status bar the browser
	                            already draws — 24 like the side gutter (Habib 2026-10-22) */
	border: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	overflow-y: auto;
}

.zain-menu__dialog::backdrop {
	background: transparent;
}

/* Open menu (Figma 613:2): logo + 32px close button, then the links card 53px below */
.zain-menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 53px;
}

.zain-menu__bar .zain-logo {
	width: 111px;
}

.zain-menu__close {
	width: 32px;
	height: 32px;
	margin-right: -6px; /* Figma: 18px from the edge */
}

.zain-menu__close svg {
	overflow: visible;
}

/* Links card: 5% forest, 32 padding, rows 34 high with a 24 / rule / 24 rhythm */
.zain-nav--mobile .zain-nav__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px;
	border-radius: 20px;
	background: var(--wp--custom--color--forest-wash);
}

.zain-nav--mobile .zain-nav__item + .zain-nav__item {
	padding-top: 23px; /* + the 1px rule = 24 (Figma's line has no height) */
	border-top: 1px solid rgb(0 0 0 / 0.08);
}

.zain-nav--mobile .zain-nav__link {
	display: block;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 300;
	line-height: var(--wp--custom--line-height--heading-3);
}

.zain-nav--mobile .zain-nav__link:hover,
.zain-nav--mobile .zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

/* Social icons 40px under the card, policy links 40px under them (44px rows); both start at the card's text */
.zain-menu__dialog .zain-social {
	gap: 16px;
	margin: 40px 32px 0;
}

.zain-menu__dialog .zain-social__link {
	width: 44px;
	height: 44px;
	border-color: rgb(0 0 0 / 0.1);
	color: rgb(0 0 0 / 0.75);
}

.zain-menu__dialog .zain-nav--legal {
	margin: 40px 32px 0;
}

.zain-menu__dialog .zain-nav--legal .zain-nav__link {
	display: flex;
	align-items: center;
	height: 44px;
	color: rgb(0 0 0 / 0.75);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
}

.zain-menu__dialog .zain-nav--legal .zain-nav__link:hover,
.zain-menu__dialog .zain-nav--legal .zain-nav__link[aria-current="page"] {
	color: var(--wp--preset--color--forest);
}

.zain-menu-is-open {
	overflow: hidden;
}

/* Mobile list rows (441:221): 44px text row, 4px, 1px line, 4px → 52px pitch */
.zain-footer .zain-nav--footer .zain-nav__item {
	padding: 10px 0 4px;
}

@media (max-width: 1199px) {
	.zain-header {
		padding: 24px var(--wp--custom--edge-m) 26px; /* edge-m: lines up with the phone / tablet column. Top 24, not
		   Figma's 60: the 440 frame reserves the iPhone status bar, which the browser already shows (Habib 2026-10-22) */
	}

	.zain-header .zain-logo {
		width: 111px;
	}

	.zain-header__links {
		display: none;
	}

	.zain-menu {
		display: block;
	}

	.zain-footer .zain-nav--footer .zain-nav__item {
		height: 49px;
		margin-bottom: 3px;
		border-bottom: 1px solid rgb(0 0 0 / 0.1);
	}

	.zain-footer .zain-nav--footer .zain-nav__link {
		display: block;
		font-size: var(--wp--preset--font-size--regular);
		line-height: var(--wp--custom--line-height--regular);
	}

	.zain-footer .zain-nav--footer .zain-nav__link[aria-current="page"] {
		text-decoration: underline;
	}
}

/* ------------------------------------------------------------------ Social icons */

.zain-social {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zain-social__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgb(51 51 51 / 0.15);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s, color 0.2s;
}

.zain-social__link:hover {
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--forest);
}

.zain-social__link svg {
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------------ Footer */

.zain-footer {
	padding: 120px var(--wp--custom--edge) 60px;
}

.zain-footer__inner {
	display: grid;
	grid-template-columns: 434px 1fr;
	grid-template-areas:
		"mark    mark"
		"tagline navs"
		"social  navs"
		"legal   legal";
	grid-template-rows: auto auto 1fr auto;
	max-width: var(--wp--style--global--content-size);
	margin: 0 auto;
}

.zain-footer__mark {
	grid-area: mark;
	width: 75px;
	margin-bottom: 94px;
}

.zain-footer__tagline {
	grid-area: tagline;
	margin: 0;
	font-size: var(--wp--preset--font-size--intro);
	line-height: var(--wp--custom--line-height--intro);
}

.zain-footer__social {
	grid-area: social;
	align-self: end;
	margin-top: 98px;
}

.zain-footer__navs {
	grid-area: navs;
	display: flex;
	justify-content: space-between;
	justify-self: end;
	width: 508px;
}

.zain-footer .zain-nav--footer {
	width: 230px;
}

.zain-footer .zain-nav--legal {
	width: 166px;
}

.zain-footer__navs .zain-nav__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zain-footer__navs .zain-nav__link {
	font-size: var(--wp--preset--font-size--large);
	line-height: var(--wp--custom--line-height--large);
}

/* Current page in the desktop footer: Figma's dark green (Home 199:1397); mobile keeps forest */
@media (min-width: 1200px) {
	.zain-footer__navs .zain-nav__link[aria-current="page"] {
		color: var(--wp--preset--color--pine);
	}
}

.zain-footer .zain-nav--footer .zain-nav__item {
	padding: 0;
}

.zain-footer__legal {
	grid-area: legal;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 50px;
	padding-top: 32px;
	border-top: 1px solid rgb(0 0 0 / 0.15);
	color: var(--wp--preset--color--slate);
	font-size: var(--wp--preset--font-size--small);
	line-height: var(--wp--custom--line-height--small);
}

.zain-footer__legal p {
	margin: 0;
}

/* Nav captions ("Navigation"): only in the mobile footer of pages other than Home (below) */
.zain-nav__caption {
	display: none;
}

/* Desktop Home (199:1394…): 100px above the line (other pages 50) and 40px under the copyright (60) */
@media (min-width: 1200px) {
	.zain-page-home .zain-footer {
		padding-bottom: 40px;
	}

	.zain-page-home .zain-footer__legal {
		margin-top: 100px;
	}
}

@media (max-width: 1199px) {
	.zain-footer {
		padding: 32px var(--wp--custom--edge-m);
	}

	.zain-footer__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"mark"
			"tagline"
			"navs"
			"social"
			"legal";
		grid-template-rows: none;
	}

	.zain-footer__mark {
		width: 50px;
		margin-bottom: 24px;
	}

	.zain-footer__tagline {
		margin-bottom: 32px;
		font-size: var(--wp--preset--font-size--regular);
		line-height: var(--wp--custom--line-height--regular);
	}

	.zain-footer__navs {
		flex-direction: column;
		gap: 32px;
		width: auto;
		justify-self: stretch;
	}

	.zain-footer .zain-nav--footer,
	.zain-footer .zain-nav--legal {
		width: auto;
	}

	.zain-footer__navs .zain-nav__list {
		gap: 0;
	}

	.zain-footer .zain-nav--footer .zain-nav__item {
		padding: 10px 0 4px;
	}

	/* Legal links (441:234): 44px rows, 14/20 text, rows overlap by 6px */
	.zain-footer .zain-nav--legal .zain-nav__item {
		padding: 12px 0;
		margin-bottom: -6px;
	}

	.zain-footer .zain-nav--legal .zain-nav__link {
		display: block;
		font-size: var(--wp--preset--font-size--small);
		line-height: var(--wp--custom--line-height--small);
	}

	/* No gap after the last row (Figma's lists end on the row / line) */
	.zain-footer .zain-nav--footer .zain-nav__item:last-child,
	.zain-footer .zain-nav--legal .zain-nav__item:last-child {
		margin-bottom: 0;
	}

	.zain-footer__social {
		align-self: start;
		margin-top: 32px;
	}

	.zain-footer__social.zain-social {
		gap: 16px;
	}

	.zain-footer__social .zain-social__link {
		width: 44px;
		height: 44px;
	}

	.zain-footer__legal {
		flex-direction: column;
		gap: 8px;
		margin-top: 32px;
		padding-top: 0;
		border-top: 0;
		font-size: 12px;
		line-height: 20px;
	}

	/*
	 * Every page but Home (436:178, the same on About, Qualifications, Services, FAQs, Contact): "Navigation" labels
	 * in a 163px left column, both lists as 52px rows with lines between, then icons and copyright on the right.
	 */
	body:not(.zain-page-home) .zain-footer :is(.zain-nav--footer, .zain-nav--legal) {
		display: grid;
		grid-template-columns: 41.58% minmax(0, 1fr); /* Figma's 163 of 392 — a share, so narrow phones don't overflow */
		align-items: start;
	}

	body:not(.zain-page-home) .zain-footer .zain-nav__caption {
		display: block;
		margin: 8px 0 0;
		color: var(--wp--preset--color--forest);
		font-size: var(--wp--preset--font-size--large);
		line-height: var(--wp--custom--line-height--large);
	}

	/* Current page: colour only, no underline, in both lists (Habib 2026-10-22; Home keeps its underline) */
	body:not(.zain-page-home) .zain-footer .zain-nav__link[aria-current="page"] {
		text-decoration: none;
	}

	body:not(.zain-page-home) .zain-footer :is(.zain-nav--footer, .zain-nav--legal) .zain-nav__list {
		width: calc(100% - 7px); /* Figma's lines are 222 of the 229 column */
	}

	body:not(.zain-page-home) .zain-footer .zain-nav__item {
		height: auto;
		min-height: 49px; /* a link that wraps on a narrow phone grows its row */
		padding-bottom: 14px; /* 10 + 24 + 14 + 1px line = Figma's 49; a wrapped row keeps the same space */
	}

	body:not(.zain-page-home) .zain-footer .zain-nav--legal .zain-nav__item {
		margin-bottom: 3px;
		padding-top: 10px;
		border-bottom: 1px solid rgb(0 0 0 / 0.1);
	}

	body:not(.zain-page-home) .zain-footer .zain-nav--legal .zain-nav__link {
		font-size: var(--wp--preset--font-size--regular);
		line-height: var(--wp--custom--line-height--regular);
	}

	body:not(.zain-page-home) .zain-footer :is(.zain-nav--footer, .zain-nav--legal) .zain-nav__item:last-child {
		min-height: 44px;
		margin-bottom: 0;
		padding-bottom: 10px;
		border-bottom: 0;
	}

	/* Icons always start under the links (Figma: in line with the C of Cookie Policy). Narrower than the 440 frame,
	   the gaps close first (18 → 4) and only then the icons shrink (44 → ~37 at 320) — the row never leaves the column */
	body:not(.zain-page-home) .zain-footer__social {
		margin: 38px 0 0 41.58%;
		container-type: inline-size;
	}

	body:not(.zain-page-home) .zain-footer__social.zain-social {
		gap: clamp(4px, (100% - 176px) / 3, 18px); /* % of the row itself */
	}

	body:not(.zain-page-home) .zain-footer__social .zain-social__link {
		width: min(44px, (100cqw - 12px) / 4);
		height: min(44px, (100cqw - 12px) / 4);
	}

	body:not(.zain-page-home) .zain-footer__legal {
		display: grid;
		grid-template-columns: 42.86% minmax(0, 220px); /* Figma's 168 of 392 */
		justify-content: start;
		gap: 0;
		margin-top: 38px;
		font-size: var(--wp--preset--font-size--small);
		line-height: var(--wp--custom--line-height--small);
	}

	body:not(.zain-page-home) .zain-footer__credit {
		grid-area: 1 / 1;
	}

	body:not(.zain-page-home) .zain-footer__copyright {
		grid-area: 1 / 2;
	}
}

/* ------------------------------------------------------------------ Booking calendar (zain/booking)
 * Figma calendar-card 218:2336 (desktop) / 386:3309 (mobile). The "10:30–10:45" slot line appears only when a
 * provider adapter returns times (ADR 0002); the link adapter has none.
 */

.zain-booking {
	display: flex;
	flex-direction: column;
	gap: 64px;
	padding: 47px; /* Figma's 48px padding includes the 1px inside stroke */
	border: 1px solid var(--wp--custom--color--line);
	border-radius: 25px;
	background: var(--wp--preset--color--white);
}

.zain-booking__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
}

.zain-booking__title {
	margin: 0;
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: var(--wp--custom--type--calendar-month--size);
	font-weight: 400;
	line-height: var(--wp--custom--type--calendar-month--line);
}

.zain-booking__nav {
	display: flex;
	gap: 12px;
}

.zain-booking__prev,
.zain-booking__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--wp--preset--color--forest);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--forest);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.zain-booking__next {
	border-color: var(--wp--preset--color--honey);
	background: var(--wp--preset--color--honey);
	color: var(--wp--preset--color--white);
}

.zain-booking__next svg {
	transform: scaleX(-1);
}

.zain-booking__prev:disabled,
.zain-booking__next:disabled {
	opacity: 0.4;
	cursor: default;
}

/* Figma draws the previous arrow as it is in the current month: grey ring and arrow, full opacity */
.zain-booking__prev:disabled {
	border-color: var(--wp--custom--color--arrow-off);
	color: var(--wp--custom--color--arrow-off);
	opacity: 1;
}

/* Hover (no Figma design): forest fill, white arrow — the site's button hover */
.zain-booking__prev:not(:disabled):hover,
.zain-booking__next:not(:disabled):hover {
	border-color: var(--wp--preset--color--forest);
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

.zain-booking__grid,
.zain-booking__grid thead,
.zain-booking__grid tbody {
	display: grid;
	gap: 16px;
	width: 100%;
}

/* Grid instead of table layout (exact gaps); the markup keeps explicit table roles for screen readers */
.zain-booking__grid {
	margin-top: 16px;
	border-collapse: collapse;
}

.zain-booking__grid tr {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.zain-booking__grid th {
	height: 32px;
	padding: 0;
	color: var(--wp--preset--color--forest);
	font-size: var(--wp--custom--type--calendar-label--size);
	font-weight: 400;
	line-height: var(--wp--custom--type--calendar-label--line);
	text-align: center;
}

.zain-booking__grid td {
	height: 52px;
	padding: 0;
}

.zain-booking__day {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 26px;
	background: none;
	color: var(--wp--custom--color--day-off);
	font: inherit;
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
}

.zain-booking__day.is-past {
	color: var(--wp--custom--color--day-past);
}

.zain-booking__day.is-open {
	background: var(--wp--custom--color--honey-tint);
	color: var(--wp--preset--color--forest);
	cursor: pointer;
	transition: background-color 0.15s;
}

.zain-booking__day.is-open:hover {
	background: var(--wp--preset--color--honey);
}

.zain-booking__day[aria-pressed="true"] {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.zain-booking__selection {
	padding-top: 16px;
}

.zain-booking__date {
	margin: 0;
	color: var(--wp--preset--color--forest);
	font-family: var(--wp--preset--font-family--hanken-grotesk);
	font-size: var(--wp--custom--type--calendar-date--size);
	line-height: var(--wp--custom--type--calendar-date--line);
}

.zain-booking__meta {
	margin: 8px 0 0;
	color: var(--wp--custom--color--meta);
	font-size: var(--wp--custom--type--calendar-label--size);
	line-height: var(--wp--custom--type--calendar-label--line);
}

.zain-booking__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 50px;
	margin-top: 16px;
	border-radius: 6px;
	background: var(--wp--custom--color--forest-tint);
	color: var(--wp--preset--color--forest);
	font-size: var(--wp--preset--font-size--regular);
	line-height: var(--wp--custom--line-height--regular);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.zain-booking__button:hover {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

@media (max-width: 1199px) {
	.zain-booking {
		gap: 20px;
		padding: 15px;
		border-radius: 12px;
	}

	.zain-booking__header {
		height: 44px;
		margin: 0 16px;
	}

	.zain-booking__prev,
	.zain-booking__next {
		width: 44px;
		height: 44px;
	}

	.zain-booking__prev:disabled {
		border-color: var(--wp--custom--color--arrow-off-line-m);
		color: var(--wp--custom--color--arrow-off-m);
	}

	.zain-booking__grid {
		gap: 20px;
		margin-top: 20px;
	}

	.zain-booking__grid tbody,
	.zain-booking__grid tr {
		gap: 4px;
	}

	/* Day pill keeps Figma's 48 × 44 shape (386:3309): never wider than 48, shrinks in proportion on narrow phones
	   (a fixed 44 height turned it into an upright oval below 440 and a long pill on tablets) */
	.zain-booking__grid td {
		display: grid;
		place-items: center;
		height: auto;
	}

	.zain-booking__day {
		width: min(100%, 48px);
		height: auto;
		aspect-ratio: 48 / 44;
		border-radius: 999px; /* Figma's radius 22 on a 44 height = full pill */
		color: var(--wp--custom--color--day-off-m);
		font-size: var(--wp--preset--font-size--small);
		line-height: var(--wp--custom--line-height--small);
	}

	.zain-booking__day.is-past {
		color: var(--wp--custom--color--day-off-m);
	}

	.zain-booking__day[aria-pressed="true"] {
		font-weight: 400;
	}

	.zain-booking__panel {
		margin: 0 15px;
	}

	.zain-booking__selection {
		padding-top: 12px;
	}

	.zain-booking__button {
		width: 100%;
		height: 48px;
		margin-top: 32px;
		border: 0;
		border-radius: 12px;
		background: var(--wp--preset--color--forest);
		color: var(--wp--preset--color--white);
		font-weight: 600;
	}

	.zain-booking__button:hover {
		background: var(--wp--preset--color--pine);
	}
}

/*
 * ------------------------------------------------------------------ Back to top (zain-core, no Figma design)
 * Colours of the calendar's available day (.zain-booking__day.is-open); the tint is laid over white so the
 * button stays solid over the page. Shown per layout when switched on in Zain Therapy menu.
 */
.zain-to-top {
	position: fixed;
	right: 32px;
	bottom: 32px;
	z-index: 10;
	display: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(var(--wp--custom--color--honey-tint), var(--wp--custom--color--honey-tint)), var(--wp--preset--color--white);
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
	color: var(--wp--preset--color--forest);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s, background-color 0.15s;
}

/* Hover / focus: the calendar's selected day under the pointer — honey, white arrow (Habib 2026-10-22) */
.zain-to-top:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--honey);
	color: var(--wp--preset--color--white);
}

.zain-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--forest);
	outline-offset: 2px;
}

.zain-to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

body[tabindex="-1"]:focus {
	outline: 0;
}

@media (min-width: 1200px) {
	.zain-to-top--desktop {
		display: flex;
	}
}

@media (max-width: 1199px) {
	.zain-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}

	.zain-to-top--mobile {
		display: flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zain-to-top {
		transition: none;
	}
}
