/**
 * Site footer (footer.php). Scoped to .lotus-footer. Colours/type follow the approved
 * mockup and existing tokens; buttons use the site's existing global button styles.
 * Direction-neutral (logical properties) so the Persian (RTL) site mirrors on its own.
 */
.lotus-footer {
	--lf-ink: #2B2118;
	--lf-muted: #6B6055;
	--lf-soft: #6B6055; /* was #9C9186 (3.1:1 on white); #6B6055 is about 6:1 for the 14px tagline and © line */
	--lf-gold-text: #8A5E26; /* keyboard-focus colour of footer links (with a purple outline); hover uses --lf-gold #CE9F67 (owner, 27 Nov 2026) */
	--lf-purple: #543884;
	--lf-gold: #CE9F67;
	--lf-line: #F0EBE1;
	--lf-rule: rgba(206, 159, 103, .65); /* thin gold dividers around the disclaimer strip */
	--lf-pad-inline: 40px; /* columns, disclaimer and brand row share one start edge */
	--lf-row-gap: 42px;
	--lf-cols-end: 42px; /* space under the second row, above the disclaimer strip */
	/* 100px between the page's last section and the picture (owner spec). */
	margin-top: 100px;
	/* Garden scene behind the white panel (replaces the old flat backdrop), placed as in the approved
	   mock: the picture is fitted to the footer's width and anchored at the top (nudged up 3vw to drop
	   its pale top edge), padding-top puts the panel on the paving just below the pond, and 7.6% of the
	   width stays visible below the panel. Layers, top to bottom: a short fade from the page colour; a
	   strip of the picture's bottom (corner lavender) pinned to the footer's bottom, so the plants stay
	   visible when the footer is taller than the picture; a fade into paving colour at the picture's
	   lower edge; the picture; plain paving colour. */
	padding: 36.7vw clamp(16px, 3vw, 40px) clamp(40px, 7.6vw, 150px);
	background:
		linear-gradient(to bottom, #FBFAF7 0, rgba(251, 250, 247, .9) 22px, rgba(251, 250, 247, .65) 44px, rgba(251, 250, 247, .35) 66px, rgba(251, 250, 247, .1) 88px, rgba(251, 250, 247, 0) 110px),
		url("../images/footer-bg-desktop-bottom.webp") center bottom / 100% auto no-repeat,
		linear-gradient(to bottom, rgba(205, 182, 165, 0) calc(76.4vw - 120px), #CDB6A5 calc(76.4vw - 2px)),
		url("../images/footer-bg-desktop.webp") center -3vw / 100% auto no-repeat,
		#CDB6A5;
	color: var(--lf-ink);
	font-family: var(--sans, 'DM Sans', sans-serif);
}
.lotus-footer p { margin: 0; }

/* ---------- Invitation band ---------- */
.lotus-footer__band {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 340px;
	overflow: hidden;
	background: linear-gradient(120deg, #2B1C40 0%, #4A3868 60%, #5C4478 100%); /* until an image is chosen */
	isolation: isolate;
}
.lotus-footer__band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse at 50% 0%, rgba(20, 14, 34, .1) 0%, rgba(20, 14, 34, .55) 100%);
}
.lotus-footer__band-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.lotus-footer__band-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 720px;
	padding: 60px 32px 150px;
	text-align: center;
}
.lotus-footer__band-mark { color: #F3D9A8; font-size: 22px; line-height: 1; }
.lotus-footer .lotus-footer__band-title {
	margin: 16px 0 12px;
	color: #FFFFFF;
	font-family: var(--serif, 'Playfair Display', serif);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}
.lotus-footer .lotus-footer__band-text { margin-bottom: 26px; color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.6; }
.lotus-footer__band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- White card ---------- */
.lotus-footer__card {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	max-width: 1312px;
	margin: -64px auto 0;
	border-radius: 24px;
	background: #FFFFFF;
	box-shadow: 0 -20px 48px rgba(43, 33, 24, .10);
}
.home .lotus-footer__card,
.lotus-footer__card:first-child { margin-top: 0; box-shadow: 0 16px 40px rgba(43, 33, 24, .08); }
.lotus-footer__columns {
	display: grid;
	/* Two rows that share one five-column grid on desktop (owner's corrected design, 14 Nov):
	   row one = the Primary-menu groups and Book a Session, row two = Resources, Company and
	   Languages under the first three columns. Groups beyond five wrap with the same gap. */
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--lf-row-gap) 32px;
	padding: 36px var(--lf-pad-inline) var(--lf-cols-end);
}
/* The space between the two rows equals the grid's own row gap. */
.lotus-footer__columns--primary { padding-bottom: 0; }
.lotus-footer__columns--secondary { padding-top: var(--lf-row-gap); }
.lotus-footer .lotus-footer__col-title {
	margin-bottom: 16px;
	color: var(--lf-gold); /* footer reference (PR #102): gold headings in the brand gold #CE9F67 (owner 25 Nov 2026) */
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .08em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.lotus-footer__col ul { display: block; margin: 0; padding: 0; list-style: none; }
.lotus-footer__col li { margin: 0; }
.lotus-footer__col a {
	display: block;
	padding: 4px 0;
	color: var(--lf-muted);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color .2s ease;
}
.lotus-footer__col a:hover { color: var(--lf-gold); } /* brand gold on hover (owner, 27 Nov 2026) */
.lotus-footer__col a:focus-visible { color: var(--lf-gold-text); }
.lotus-footer__col a:focus-visible { outline: 2px solid var(--lf-purple); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
	.lotus-footer *, .lotus-footer *::before, .lotus-footer *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Bottom bar ---------- */
.lotus-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px var(--lf-pad-inline); /* the logo starts on the same edge as the link columns */
	border-top: 1px solid var(--lf-line);
}
.lotus-footer__brand { display: flex; align-items: center; gap: 9px; }
.lotus-footer__brand-mark { color: var(--lf-gold); font-size: 22px; line-height: 1; }
.lotus-footer .lotus-footer__brand-name { color: var(--lf-purple); font-family: var(--serif, 'Playfair Display', serif); font-size: 14px; font-weight: 600; line-height: 1.1; }
.lotus-footer .lotus-footer__tagline { color: var(--lf-soft); font-size: 14px; }
.lotus-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.lotus-footer .lotus-footer__legal { color: var(--lf-soft); font-size: 14px; margin: 0; }
/* © line and Site Map sit together; the row wraps instead of overflowing. Logical padding mirrors in Persian. */
.lotus-footer__copyright { display: flex; flex-wrap: wrap; align-items: center; }
.lotus-footer .lotus-footer__sitemap { padding: 20px; color: var(--lf-muted); font-size: 14px; text-decoration: none; }
.lotus-footer .lotus-footer__sitemap:hover { color: var(--lf-gold); text-decoration: underline; }
.lotus-footer .lotus-footer__sitemap:focus-visible { color: var(--lf-gold-text); outline: 2px solid var(--lf-purple); outline-offset: 2px; border-radius: 2px; }
/* Languages column: "English" and "فارسی" as ordinary column links; the current one is purple. */
.lotus-footer__lang .lotus-footer__lang-link[aria-current="page"] { color: var(--lf-purple); font-weight: 600; }
/* Links in the other language (Book a Session / رزرو جلسه, English / فارسی) keep the column's own
   alignment and use that language's font, on English and Persian pages alike. */
.lotus-footer__col a:is([lang="fa"], [lang="en"]) { width: fit-content; max-width: 100%; margin: 0; } /* sits at the column's start edge whatever its own direction */
.lotus-footer__col a[lang="fa"] { font-family: 'Vazirmatn', sans-serif; }
html:lang(fa) .lotus-footer__col a[lang="en"] { font-family: 'DM Sans', sans-serif; }

/* Disclaimer strip (only when wording is entered in the Customizer): between two thin gold rules,
   its text on the same start edge as the first column. */
.lotus-footer__disclaimer {
	padding: 18px var(--lf-pad-inline);
	border-top: 1px solid var(--lf-rule);
	border-bottom: 1px solid var(--lf-rule);
}
.lotus-footer .lotus-footer__disclaimer-text { max-width: 72em; color: #383E48; font-size: 14px; line-height: 1.6; }
.lotus-footer__disclaimer + .lotus-footer__bottom { border-top: 0; }

.lotus-footer__social ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lotus-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	box-sizing: border-box;
	padding: 0 10px;
	border: 1px solid #E7E0D4;
	border-radius: 999px;
	color: var(--lf-muted);
	font-size: 12px;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.lotus-footer__social a:hover,
.lotus-footer__social a:focus-visible { border-color: var(--lf-gold-text); color: var(--lf-gold-text); outline: 2px solid var(--lf-purple); outline-offset: 2px; }
/* Known networks show as round icons; the link text stays for screen readers. */
.lotus-footer__social a[href*="instagram.com"],
.lotus-footer__social a[href*="youtube.com"],
.lotus-footer__social a[href*="facebook.com"] {
	position: relative;
	width: 36px;
	padding: 0;
	overflow: hidden;
	color: transparent;
	font-size: 0;
}
.lotus-footer__social a[href*="instagram.com"]::before,
.lotus-footer__social a[href*="youtube.com"]::before,
.lotus-footer__social a[href*="facebook.com"]::before {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--lf-purple);
	-webkit-mask: var(--lf-icon) center / contain no-repeat;
	mask: var(--lf-icon) center / contain no-repeat;
}
.lotus-footer__social a:hover::before { background: var(--lf-gold); }
.lotus-footer__social a[href*="instagram.com"] { --lf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3H7zm5 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.5 5.8a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z'/%3E%3C/svg%3E"); }
.lotus-footer__social a[href*="youtube.com"] { --lf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 7.2a3 3 0 0 0-2.1-2.1C19 4.6 12 4.6 12 4.6s-7 0-8.9.5A3 3 0 0 0 1 7.2 31 31 0 0 0 .5 12a31 31 0 0 0 .5 4.8 3 3 0 0 0 2.1 2.1c1.9.5 8.9.5 8.9.5s7 0 8.9-.5a3 3 0 0 0 2.1-2.1 31 31 0 0 0 .5-4.8 31 31 0 0 0-.5-4.8zM9.8 15.1V8.9l5.8 3.1-5.8 3.1z'/%3E%3C/svg%3E"); }
.lotus-footer__social a[href*="facebook.com"] { --lf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8.5V6.6c0-.9.6-1.1 1-1.1h2.6V1.6L14 1.5c-4 0-4.9 3-4.9 4.9v2.1H6.8v4h2.3V22.5H14V12.5h3.3l.4-4H14z'/%3E%3C/svg%3E"); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1024px) {
	.lotus-footer { --lf-pad-inline: 32px; --lf-row-gap: 24px; --lf-cols-end: 28px; }
	.lotus-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 720px) {
	.lotus-footer__band { min-height: 0; }
	.lotus-footer__band-inner { padding: 48px 20px 96px; }
	.lotus-footer .lotus-footer__band-title { font-size: 24px; }
	.lotus-footer__card { margin-inline: 0; } /* the footer's own side padding sets the gutter */
	.lotus-footer { --lf-pad-inline: 20px; --lf-row-gap: 25px; --lf-cols-end: 20px; }
	/* Phones (owner, 1 Dec 2026), two columns, start side first (left in English, right in Persian):
	     Healing Pathway | Programs
	     Spiritual Offerings | Conscious Leadership
	     Company | Resources
	     Languages | Book A Session
	   The two rows become one two-column grid on the card (their own boxes are dropped with
	   display: contents) and `order` places each column. The four link groups follow the Primary
	   menu (1 Healing Pathway, 2 Spiritual Offerings, 3 Conscious Leadership, 4 Programs); any
	   extra group goes after Conscious Leadership, and the OM Maani column (when its menu is
	   assigned) after Resources. The disclaimer and brand row span both columns as before. */
	.lotus-footer__card {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--lf-row-gap) 16px;
		align-items: start;
		padding: 36px var(--lf-pad-inline) 0;
	}
	.lotus-footer__columns { display: contents; }
	.lotus-footer__columns--primary > .lotus-footer__col:nth-child(1) { order: 1; }
	.lotus-footer__columns--primary > .lotus-footer__col:nth-child(4) { order: 2; }
	.lotus-footer__columns--primary > .lotus-footer__col:nth-child(2) { order: 3; }
	.lotus-footer__columns--primary > .lotus-footer__col:nth-child(3),
	.lotus-footer__columns--primary > .lotus-footer__col:nth-child(n+5):not(.lotus-footer__col--booking) { order: 4; }
	.lotus-footer__columns--secondary > .lotus-footer__col { order: 6; } /* Resources, OM Maani */
	.lotus-footer__columns--secondary > .lotus-footer__col--company { order: 5; }
	.lotus-footer__columns--secondary > .lotus-footer__col--languages { order: 7; }
	.lotus-footer__columns--primary > .lotus-footer__col--booking { order: 8; }
	.lotus-footer__disclaimer,
	.lotus-footer__bottom { order: 9; grid-column: 1 / -1; margin-inline: calc(-1 * var(--lf-pad-inline)); }
	/* 20px under the last links, and no gap between the strip and the brand row. */
	.lotus-footer__columns--secondary + :is(.lotus-footer__disclaimer, .lotus-footer__bottom) { margin-top: calc(var(--lf-cols-end) - var(--lf-row-gap)); }
	.lotus-footer__disclaimer + .lotus-footer__bottom { margin-top: calc(-1 * var(--lf-row-gap)); }
	.lotus-footer__disclaimer { padding-block: 16px; }
	/* English uppercase headings only; Persian stays at 14px. */
	html:not(:lang(fa)) .lotus-footer .lotus-footer__col-title { font-size: 13px; }
	/* Owner 14 Nov: the brand row is centred on phones, stacked as logo, tagline, then the © line. */
	.lotus-footer__bottom { flex-direction: column; align-items: center; gap: 12px; padding-block: 22px; text-align: center; }
	.lotus-footer__brand { flex-direction: column; align-items: center; gap: 10px; }
	.lotus-footer__meta { flex-direction: column; justify-content: center; gap: 12px; }
	.lotus-footer__copyright { justify-content: center; }
}

/* Owner review #68: column headings link to their own page when the column's menu has an item
   of the same name (inc/lotus-footer.php); purple like the heading, gold on hover. */
.lotus-footer .lotus-footer__col .lotus-footer__col-link {
	display: inline;
	padding: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-decoration: none;
	transition: color .2s ease;
}
.lotus-footer .lotus-footer__col .lotus-footer__col-link:is(:hover, :focus-visible) { color: var(--lf-purple); }
.lotus-footer .lotus-footer__col .lotus-footer__col-link:focus-visible { outline: 2px solid var(--lf-gold); outline-offset: 0; border-radius: 2px; }

/* Same logo as the header (Appearance -> Customize -> Site Identity), same size limit. The
   logo already carries the name, so the separate text name is hidden; the tagline stays. */
.lotus-footer__brand .custom-logo-link { display: block; flex-shrink: 0; }
.lotus-footer__brand .custom-logo { display: block; width: auto; height: auto; max-height: 52px; }
.lotus-footer__brand:has(.custom-logo-link) .lotus-footer__brand-name { display: none; }

/* Phones: the tall portrait version of the same scene (3x as tall as wide), placed as in the supplied
   phone mock: panel top 69.2vw down (the picture is nudged up 8vw), side margins 3.7vw, and 50px of
   paving below the panel (owner spec; a bottom strip of the picture is pinned to the footer's bottom). Same panel, same content. */
@media (max-width: 720px) {
	.lotus-footer {
		margin-top: 100px;
		padding: 69.2vw clamp(10px, 3.7vw, 20px) 50px;
		background:
			linear-gradient(to bottom, #FBFAF7 0, rgba(251, 250, 247, .9) 22px, rgba(251, 250, 247, .65) 44px, rgba(251, 250, 247, .35) 66px, rgba(251, 250, 247, .1) 88px, rgba(251, 250, 247, 0) 110px),
			url("../images/footer-bg-mobile-bottom.webp") center bottom / 100% auto no-repeat,
			linear-gradient(to bottom, rgba(197, 173, 149, 0) calc(292vw - 120px), #C5AD95 calc(292vw - 2px)),
			url("../images/footer-bg-mobile.webp") center -8vw / 100% auto no-repeat,
			#C5AD95;
	}
}
