/*
 * Shubh Laabh Arts — Global Header & Footer
 * Styles for wp-content/themes/shubh-laabh-arts/parts/header.html
 * and wp-content/themes/shubh-laabh-arts/parts/footer.html
 *
 * Decorative artwork lives in ../images/decorative/. Every reference below is a
 * path relative to THIS stylesheet, so the URLs resolve correctly on localhost,
 * staging and production without hardcoding a domain.
 *
 * Every artwork box is given an aspect-ratio matching its source file exactly,
 * so contain/cover can never stretch or squash the art.
 */

/* =========================================
   SHUBH LAABH ARTS — GLOBAL DESIGN TOKENS
   Every color and font below is an ALIAS onto WordPress's own global theme
   (wp-content/themes/shubh-laabh-arts/theme.json) — no brand color or font
   stack is redeclared here. Change the palette or type ramp in theme.json
   and every value in this file follows automatically. Alpha-blended
   variants (soft borders, faded gradients, the ivory veil behind the
   footer quote) are derived from those same tokens via color-mix(),
   rather than a second hardcoded hex/rgba copy that could drift out of
   sync with the palette.
   ========================================= */
:root {
	--sla-color-navy: var(--wp--preset--color--peacock-navy);
	--sla-color-navy-deep: var(--wp--preset--color--deep-navy);
	--sla-color-gold: var(--wp--preset--color--champagne-gold);
	--sla-color-gold-light: var(--wp--preset--color--light-gold);
	--sla-color-ivory: var(--wp--preset--color--ivory);
	--sla-color-cream: var(--wp--preset--color--cream);
	--sla-color-muted: var(--wp--preset--color--muted);
	--sla-color-white: var(--wp--preset--color--white);

	--sla-gold-soft: color-mix(in srgb, var(--sla-color-gold) 42%, transparent);
	--sla-gold-faint: color-mix(in srgb, var(--sla-color-gold) 22%, transparent);
	--sla-gold-half: color-mix(in srgb, var(--sla-color-gold) 50%, transparent);
	--sla-gold-thread: color-mix(in srgb, var(--sla-color-gold) 32%, transparent);
	--sla-white-faint: color-mix(in srgb, var(--sla-color-white) 25%, transparent);

	/* theme.json's "display"/"body" font-family tokens ARE Cormorant Garamond
	 * and Manrope (loaded site-wide by functions.php); --sla-font-display and
	 * --sla-font-quote both point at the same "display" token — the two
	 * roles are differentiated by weight/style below, not by typeface. */
	--sla-font-display: var(--wp--preset--font-family--display);
	--sla-font-quote: var(--wp--preset--font-family--display);
	--sla-font-body: var(--wp--preset--font-family--body);

	/* Shared content container — header and footer resolve to the SAME
	 * left/right edges (see the override rule in the "Shared content
	 * container" section below). 1400px matches the footer's original
	 * authored width; the header is widened to meet it. */
	--sla-container-max: 1400px;

	/* Height of the footer's copyright row, kept in one place so the temple
	 * artwork (which anchors to the divider above it) always lines up. */
	--sla-footer-bottom-h: 58px;

	/* header-edge-art.jpg — 2073 x 236 */
	--sla-art-header-edge: url("../images/decorative/header-edge-art.jpg");
	/* header-logo-horizontal.png — 2172 x 724 */
	--sla-art-logo-horizontal: url("../images/decorative/header-logo-horizontal.png");
	/* footer-mandala.png — 546 x 1024 (right half of a mandala, centre on its own left edge) */
	--sla-art-mandala: url("../images/decorative/footer-mandala.png");
	/* footer-temple.png — 1774 x 887 */
	--sla-art-temple: url("../images/decorative/footer-temple.png");
}

/*
 * Lighter delivery of the same artwork: resized WebP copies (generated by
 * shubh-laabh-core/tools/generate-image-derivatives.php, each >= 2x its
 * largest displayed size), picked via image-set(). Browsers without
 * image-set type() support skip this block and keep the originals above.
 */
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
	:root {
		--sla-art-logo-horizontal: image-set(url("../images/decorative/header-logo-horizontal-800w.webp") type("image/webp"), url("../images/decorative/header-logo-horizontal.png") type("image/png"));
		--sla-art-mandala: image-set(url("../images/decorative/footer-mandala-546w.webp") type("image/webp"), url("../images/decorative/footer-mandala.png") type("image/png"));
		--sla-art-temple: image-set(url("../images/decorative/footer-temple-1240w.webp") type("image/webp"), url("../images/decorative/footer-temple.png") type("image/png"));
	}

	/* Below 768px the temple art is at most 320px wide and the mandala at
	 * most 86px wide: smaller files. */
	@media (max-width: 767px) {
		:root {
			--sla-art-temple: image-set(url("../images/decorative/footer-temple-960w.webp") type("image/webp"), url("../images/decorative/footer-temple.png") type("image/png"));
			--sla-art-mandala: image-set(url("../images/decorative/footer-mandala-280w.webp") type("image/webp"), url("../images/decorative/footer-mandala.png") type("image/png"));
		}
	}
}

/* -----------------------------------------------------------------------
 * Shared helpers
 * --------------------------------------------------------------------- */
.sla-icon {
	width: 22px;
	height: 22px;
}

.sla-icon--sm {
	width: 18px;
	height: 18px;
}

.sla-icon--chevron {
	width: 14px;
	height: 14px;
}

/* Block themes do not always ship core's visually-hidden helper — and
 * plugin stylesheets that happen to define it (WooCommerce, Elementor) are
 * not loaded on every page, so the theme provides it globally. */
.screen-reader-text,
.sla-footer .screen-reader-text,
.sla-header__logo--horizontal img {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* -----------------------------------------------------------------------
 * Shared content container
 * WordPress's own "constrained" layout output centers each group's direct
 * child at that group's OWN contentSize: the header/announcement-bar groups
 * use theme.json's 1200px default, while the footer group declares 1400px —
 * two different edges. This overrides max-width on all four content rows to
 * the same value so header and footer align to one grid; WP's own margin:
 * auto (same specificity tier, untouched here) still does the centering.
 * !important matches the existing precedent in this file for beating
 * WP-generated layout CSS (see .sla-footer__columns below).
 *
 * The horizontal padding here is intentionally generous and NOT gated to
 * narrow viewports: at the 1400px cap it insets the visible content to
 * roughly 1250–1280px, restoring the more compact look the header had
 * before this box was widened to match the footer — the CONTENT stays
 * inset like this, while the header/footer decorative artwork (positioned
 * on the full-width wrappers, not these rows) still bleeds to the
 * viewport edge as before.
 * --------------------------------------------------------------------- */
.sla-announcement-bar__inner,
.sla-header__row,
.sla-footer__columns,
.sla-footer__bottom {
	max-width: var(--sla-container-max) !important;
	padding-left: clamp(1.5rem, 4vw, 4.5rem);
	padding-right: clamp(1.5rem, 4vw, 4.5rem);
	box-sizing: border-box;
}

/* -----------------------------------------------------------------------
 * Typography baseline
 * font-family is inherited, so setting it once on each root wrapper covers
 * every descendant — including WooCommerce-rendered buttons and labels —
 * without touching theme.json's global tokens used elsewhere on the site.
 * --------------------------------------------------------------------- */
.sla-announcement-bar,
.sla-header__main,
.sla-footer {
	font-family: var(--sla-font-body);
}

/* -----------------------------------------------------------------------
 * Flex-container baseline — every ".sla-*" group below marked "restored"
 * lost its display:flex (and, where noted, its justify-content/flex-wrap)
 * when header.php/footer.php replaced the old wp:group blocks with plain
 * static HTML. Each of those blocks declared a `"layout":{"type":"flex",
 * ...}` attribute, and WordPress turned that into a *uniquely-generated*
 * CSS class + rule per block instance (e.g. ".wp-container-core-group-is-
 * layout-f15824f9{display:flex;...}") rather than anything expressible as
 * a static selector — that generated stylesheet only exists on a page that
 * still contains the actual block, so it silently stopped loading once
 * this markup became static PHP. Restated explicitly here (once each,
 * matching that block's own original justifyContent/flexWrap attributes)
 * rather than left as an unstated assumption. .sla-footer__columns is the
 * one exception — it already overrides to display:grid intentionally, so
 * it never depended on this at all.
 * -----------------------------------------------------------------------
 * Announcement bar
 * --------------------------------------------------------------------- */
.sla-announcement-bar {
	position: relative;
	z-index: 3;
	padding-top: calc(var(--wp--preset--spacing--x-small) );
	padding-bottom: calc(var(--wp--preset--spacing--x-small) );
}

.sla-announcement-bar__inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
	width: 100%;
	gap: var(--wp--preset--spacing--small);
}

.sla-announcement-bar__left,
.sla-announcement-bar__right {
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(1.1rem, 1.7vw, 1.85rem);
	align-items: center;
}

.sla-announcement-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-family: var(--sla-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.015em;
	color: var(--sla-color-ivory);
	white-space: nowrap;
}

.sla-announcement-bar__item a {
	color: inherit;
	text-decoration: none;
}

.sla-announcement-bar__item a:hover {
	color: var(--sla-color-gold);
}

.sla-announcement-bar__item .sla-icon--sm {
	color: var(--sla-color-gold);
	stroke-width: 1.3;
	flex-shrink: 0;
}

.sla-announcement-bar__divider {
	width: 1px;
	height: 18px;
	background: linear-gradient(180deg, transparent, var(--sla-gold-thread) 25%, var(--sla-gold-thread) 75%, transparent);
	flex-shrink: 0;
}

.sla-announcement-bar__locale {
	cursor: default;
}

/* -----------------------------------------------------------------------
 * Main header row
 * --------------------------------------------------------------------- */
/*
 * <header> (header.php) wraps ONLY the announcement bar + main header — it
 * has no box of its own taller than those two rows combined, which is
 * otherwise a hard blocker for position:sticky below: a sticky element can
 * only remain pinned while its own containing block (normally its parent's
 * box) still has room left to scroll through, and a parent exactly as tall
 * as its sticky child has none — the header would immediately scroll back
 * out with the announcement bar instead of sticking. display:contents
 * removes only <header>'s own generated BOX from the render tree (the DOM
 * node, its semantics/landmark role, and every selector that targets it or
 * its children are all untouched) so its children's containing block
 * becomes <body> — which spans the full page — giving .sla-header__main
 * room to stay stuck for the rest of the scroll. header.php has no other
 * CSS of its own (confirmed: no bare `header {}`/`header > x` rule exists
 * elsewhere in this file) so nothing else depends on it having a box.
 *
 * Scoped to :has(> .sla-header__main) rather than the bare `header`
 * element — this stylesheet loads site-wide, and an unscoped rule would
 * also collapse unrelated <header> elements elsewhere (a blog post's
 * entry-header, WooCommerce's shop header, etc.). This selector only ever
 * matches the one global <header> built by header.php.
 */
header:has(> .sla-header__main) {
	display: contents;
}

/* Sticky-state trigger — see header.php for why this element exists.
 * height:0 (not e.g. 1px) so it can never itself be mistaken for visible
 * content and never nudges anything below it by even a sub-pixel; its
 * document position is fully determined by the announcement bar's height
 * alone, which never changes, so IntersectionObserver's read of it is a
 * pure function of scroll position — never of .sla-header__main's height. */
.sla-sticky-sentinel {
	height: 0;
	pointer-events: none;
}

/* -----------------------------------------------------------------------
 * Fix for the sticky-header grow/shrink fluctuation: confirmed root cause
 * was NOT the observer's target (it already only ever watched the
 * announcement bar / .sla-sticky-sentinel, never the header itself), but
 * the browser's scroll-anchoring heuristic (on by default in Chromium/
 * Firefox). The ~80% shrink transition below changes .sla-header__main's
 * own rendered height every frame for ~300ms, which — being in normal
 * flow — shifts the page content beneath it. Scroll anchoring reacts to
 * that shift by silently adjusting the REAL scroll offset to keep
 * whatever it picked as the anchor node visually stationary. Verified by
 * instrumenting window.scrollY with the header parked exactly past the
 * threshold: with scroll anchoring on, scrollY drifted ~20px on its own
 * (no scroll input at all) every time .is-stuck toggled — enough to walk
 * back across the sentinel threshold and re-trigger the opposite state,
 * over and over. overflow-anchor:none scoped to .sla-header__main alone
 * did NOT stop this (the anchor node the browser was actually compensating
 * for lives elsewhere in the tree); disabling anchoring for the whole root
 * scroller is what a re-test confirmed fixes it — scrollY held perfectly
 * still and .is-stuck settled once and stayed there. This only turns off a
 * jank-prevention heuristic for async, unrelated layout shifts elsewhere in
 * the page; it does not change anything this theme relies on. */
html {
	overflow-anchor: none;
}

.sla-header__main {
	/* Sticky, not fixed: the box stays in normal flow (so it reserves its own
	 * space and nothing else needs a spacer/margin to compensate) and only
	 * pins to the viewport top once scrolled there — the announcement bar
	 * above it simply scrolls away first, since only THIS element carries
	 * position:sticky. */
	position: sticky;
	top: 0;
	z-index: 500;
	isolation: isolate;
	border-bottom: 0;
	transition: box-shadow 260ms ease;
	/* Almost-imperceptible ivory -> warm cream tonal lift, painted in the same
	 * background layer as (and above) the has-ivory-background-color utility
	 * class's flat color — not a visible banded gradient, just enough tonal
	 * depth that the header reads as considered rather than flat. */
	background-image: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--sla-color-cream) 55%, transparent) 100%);
}

/* Toggled by assets/js/sticky-header.js once the announcement bar has
 * scrolled out of view (i.e. exactly when the header is actually pinned to
 * the viewport top) — a soft lift shadow that fades in/out on top of the
 * header's own always-on hairline shadow (.sla-header__main::after),
 * rather than replacing it. No background darkening, no size/position
 * change, so nothing about the approved header appearance shifts. */
.sla-header__main.is-stuck {
	box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--sla-color-navy) 32%, transparent);
}

/* -----------------------------------------------------------------------
 * Sticky shrink — desktop (>=900px; the mobile/hamburger layout below
 * 900px gets its own, more conservative shrink further down, since it
 * needs a usability floor the desktop header doesn't).
 *
 * Every value here is ~80% of that same property's NORMAL value a few
 * rules up (e.g. the logo's clamp(56px, 6.2vw, 104px) becomes
 * clamp(45px, 5vw, 83px) — each number scaled by 0.8), so the header
 * settles at roughly 80% of its unstuck height without any single part
 * (padding, logo, icon, nav gap) doing all the work alone or being
 * skipped — exactly the "naturally compressed" (not cropped, not
 * distorted) effect asked for. Font sizes are deliberately left alone:
 * only spacing and element sizes shrink, so existing typography is
 * retained as-is in the stuck state. The transitions that animate each
 * of these are declared on the base (non-.is-stuck) rules above, so they
 * play in both directions — entering AND leaving the stuck state.
 * --------------------------------------------------------------------- */
@media (min-width: 900px) {
	.sla-header__main.is-stuck .sla-header__row {
		padding-top: 1.2rem;
		padding-bottom: 1.2rem;
	}

	.sla-header__main.is-stuck .sla-header__logo--horizontal a,
	.sla-header__main.is-stuck .sla-header__logo--horizontal .custom-logo-link {
		height: clamp(45px, 5vw, 83px);
	}

	.sla-header__main.is-stuck .sla-header__nav .wp-block-navigation__container {
		gap: clamp(1rem, 1.9vw, 2.2rem) !important;
	}

	.sla-header__main.is-stuck .sla-header__icon,
	.sla-header__main.is-stuck .sla-header__icon--cart.wp-block-woocommerce-mini-cart,
	.sla-header__main.is-stuck .sla-header__icon--cart .wc-block-mini-cart__button,
	.sla-header__main.is-stuck .sla-header__icon--account.wp-block-woocommerce-customer-account,
	.sla-header__main.is-stuck .sla-header__icon--account .wc-block-customer-account__link {
		width: 36px;
		height: 36px;
	}
}

/*
 * Sticky shrink — mobile/hamburger layout (<=899px). Nested inside the
 * existing mobile-nav media query further down would work identically
 * (media queries don't stack/compound specificity), but is kept here,
 * right beside its desktop counterpart, so both halves of the same
 * feature stay easy to find and compare. A gentler ~80% on the logo, but
 * a floor-protected, much lighter touch on the row's min-height and the
 * hamburger itself — shrinking a 46px tap target by a full 20% would
 * drop it under common touch-target comfort thresholds, which the brief
 * explicitly guards against ("hamburger must remain easy to tap").
 */
@media (max-width: 899px) {
	.sla-header__main.is-stuck .sla-header__row {
		min-height: 96px;
	}

	.sla-header__main.is-stuck .sla-header__logo--horizontal a,
	.sla-header__main.is-stuck .sla-header__logo--horizontal .custom-logo-link {
		height: clamp(52px, 16vw, 70px);
	}

	.sla-header__main.is-stuck .sla-mobile-toggle {
		width: 42px;
		height: 42px;
	}
}

/* 600-899px specifically: in this band the logo is already pegged at its
 * clamp() ceiling on BOTH sides of the shrink (70px stuck vs 88px normal),
 * and the row's own padding is still the untouched base 1.5rem (this band
 * never gets the <=599px tier's smaller padding token) — so unlike the
 * rest of the mobile range, min-height:96px above doesn't end up as the
 * binding constraint here (logo+padding already exceeds it), and without
 * shrinking padding too this band would land closer to ~87% than ~80%. */
@media (min-width: 600px) and (max-width: 899px) {
	.sla-header__main.is-stuck .sla-header__row {
		padding-top: 1.2rem;
		padding-bottom: 1.2rem;
	}
}

/* Sticky shrink still functions under reduced motion — the header still
 * becomes visually compact once stuck — only the animated transition
 * between the two states is removed, per prefers-reduced-motion. The
 * always-on box-shadow fade (declared on .sla-header__main itself) is
 * covered by the same rule since that transition property lives there. */
@media (prefers-reduced-motion: reduce) {
	.sla-header__main,
	.sla-header__row,
	.sla-header__logo--horizontal a,
	.sla-header__logo--horizontal .custom-logo-link,
	.sla-header__nav .wp-block-navigation__container,
	.sla-header__icon,
	.sla-header__icon--cart.wp-block-woocommerce-mini-cart,
	.sla-header__icon--cart .wc-block-mini-cart__button,
	.sla-header__icon--account.wp-block-woocommerce-customer-account,
	.sla-header__icon--account .wc-block-customer-account__link,
	.sla-mobile-toggle {
		transition: none;
	}
}

/* WordPress's admin toolbar is itself fixed at the viewport top (32px tall,
 * 46px on its own <=782px breakpoint) when a logged-in user has it enabled,
 * pushing page content down via a margin-top on <html> rather than taking
 * part in normal flow — so a top:0 sticky element must be offset by the
 * same amount or it pins directly underneath (hidden behind) the toolbar. */
body.admin-bar .sla-header__main {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .sla-header__main {
		top: 46px;
	}
}

/*
 * Decorative edge artwork.
 * header-edge-art.jpg is a wide band whose ornament (gold botanicals at the
 * bottom-left, peacock feather and temple finials at the right) sits in its two
 * outer edges. cover scales it by width and crops vertically, so the 2073:236
 * ratio is never distorted, and the mask dissolves it out of the middle third
 * so the navigation always reads against flat ivory.
 */
.sla-header__main::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: var(--sla-art-header-edge);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
	opacity: 0.78;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.4) 17%, transparent 34%, transparent 66%, rgba(0, 0, 0, 0.4) 83%, #000 100%);
	mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.4) 17%, transparent 34%, transparent 66%, rgba(0, 0, 0, 0.4) 83%, #000 100%);
}

/* Champagne-gold hairline closing the header, plus an extremely soft tonal
 * shadow so the photographic hero below never visually fuses with the
 * header — a hint of separation, not a floating card (no shadow on the
 * sides/top, just a tight low-opacity fade under the bottom edge). */
.sla-header__main::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	height: 1px;
	pointer-events: none;
	background: linear-gradient(90deg, transparent, var(--sla-gold-soft) 10%, var(--sla-color-gold) 50%, var(--sla-gold-soft) 90%, transparent);
	opacity: 0.85;
	box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--sla-color-navy) 30%, transparent);
}

.sla-header__row {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
	width: 100%;
	padding-top: var(--wp--preset--spacing--small);
	padding-bottom: var(--wp--preset--spacing--small);
	gap: clamp(1rem, 2.2vw, 2.5rem);
	align-items: center;
	transition: padding-top 300ms ease, padding-bottom 300ms ease;
}

.sla-header__brand {
	display: flex;
	flex-wrap: nowrap;
	flex-shrink: 0;
	align-items: center;
	padding-right: clamp(1rem, 2.2vw, 2.5rem);
	border-right: 1px solid var(--sla-gold-faint);
}

/*
 * Desktop logo: the Site Logo block supplies the correct dynamic home URL and
 * the link's accessible name; header-logo-horizontal.png is painted over the
 * link so the stacked mark is never shown here. The link carries the file's own
 * aspect-ratio, so contain reproduces it at its true proportions.
 */
.sla-header__logo.wp-block-site-logo {
	margin: 0;
	width: auto;
	max-width: none;
}

.sla-header__logo--horizontal a,
.sla-header__logo--horizontal .custom-logo-link {
	display: block;
	position: relative;
	height: clamp(56px, 6.2vw, 104px);
	/* aspect-ratio (not an explicit width) drives the box's width from
	 * whatever height is currently in effect, so the shrink below can only
	 * ever resize the logo proportionally — never distort it. */
	aspect-ratio: 2172 / 724;
	background-image: var(--sla-art-logo-horizontal);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
	transition: height 300ms ease;
}

/* Primary navigation */
.sla-header__nav {
	flex-grow: 1;
}

/* Baseline reset — previously supplied for free by WordPress's core
 * Navigation-block stylesheet (auto-loaded only when that block is
 * actually present on the page). Since header.php now renders this <nav>
 * via wp_nav_menu() instead of the block, that stylesheet never loads, so
 * the handful of rules this markup genuinely still depends on (flex
 * layout, no bullets, no underline) are restated here explicitly rather
 * than left as an unstated assumption. */
.sla-header__nav ul {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sla-header__nav li {
	display: flex;
	align-items: center;
}

.sla-header__nav a {
	text-decoration: none;
}

.sla-header__nav .wp-block-navigation__container {
	gap: clamp(1.25rem, 2.4vw, 2.75rem) !important;
	justify-content: center;
	transition: gap 300ms ease;
}

.sla-header__nav a.wp-block-navigation-item__content {
	position: relative;
	padding: 4px 0;
	font-family: var(--sla-font-body);
	font-size: clamp(0.95rem, 1.05vw, 1.0625rem);
	font-weight: 600;
	letter-spacing: 0.035em;
	color: var(--sla-color-navy);
	white-space: nowrap;
	transition: color 320ms ease, transform 320ms ease;
}

/* Hover underline: a separate layer from the persistent active-page underline
 * below, so it can animate in from the left (scaleX 0 -> 1) without disturbing
 * the always-on active indicator. */
.sla-header__nav a.wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--sla-color-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 280ms ease;
	pointer-events: none;
}

.sla-header__nav a.wp-block-navigation-item__content:hover,
.sla-header__nav a.wp-block-navigation-item__content:focus-visible {
	color: var(--sla-color-gold);
	transform: translateY(-1px);
}

.sla-header__nav a.wp-block-navigation-item__content:hover::before,
.sla-header__nav a.wp-block-navigation-item__content:focus-visible::before {
	transform: scaleX(1);
}

.sla-header__nav .wp-block-navigation-item.current-menu-item > a.wp-block-navigation-item__content,
.sla-header__nav a.wp-block-navigation-item__content[aria-current="page"] {
	color: var(--sla-color-gold);
}

/* Persistent active-page underline — always on, independent of hover. */
.sla-header__nav .wp-block-navigation-item.current-menu-item > a.wp-block-navigation-item__content::after,
.sla-header__nav a.wp-block-navigation-item__content[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--sla-color-gold);
}

/* Utility icons: account, cart */
.sla-header__utility {
	display: flex;
	flex-wrap: nowrap;
	flex-shrink: 0;
	gap: var(--wp--preset--spacing--2-x-small);
	align-items: center;
}

.sla-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--sla-color-navy);
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: color 240ms ease, background-color 240ms ease, width 300ms ease, height 300ms ease;
}

.sla-header__icon:hover {
	color: var(--sla-color-gold);
	background-color: color-mix(in srgb, var(--sla-color-gold) 10%, transparent);
}

/* Core Search block — icon-only button */
.sla-header__icon--search.wp-block-search {
	width: 44px;
	height: 44px;
}

.sla-header__icon--search .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: none;
	color: var(--sla-color-navy);
}

.sla-header__icon--search .wp-block-search__button:hover {
	color: var(--sla-color-gold);
	background: none;
}

.sla-header__icon--search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
}

/* WooCommerce Mini Cart icon */
.sla-header__icon--cart.wp-block-woocommerce-mini-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	transition: width 300ms ease, height 300ms ease;
}

.sla-header__icon--cart .wc-block-mini-cart__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--sla-color-navy);
	transition: width 300ms ease, height 300ms ease;
}

.sla-header__icon--cart .wc-block-mini-cart__button:hover {
	color: var(--sla-color-gold);
}

.sla-header__icon--cart .wc-block-mini-cart__badge {
	background: var(--sla-color-gold);
	color: var(--sla-color-navy);
	border-color: var(--sla-color-gold);
}

/* WooCommerce Customer Account icon */
.sla-header__icon--account.wp-block-woocommerce-customer-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	transition: width 300ms ease, height 300ms ease;
}

.sla-header__icon--account .wc-block-customer-account__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--sla-color-navy);
	transition: width 300ms ease, height 300ms ease;
}

.sla-header__icon--account .wc-block-customer-account__link:hover {
	color: var(--sla-color-gold);
}

.sla-header__icon--account .wc-block-customer-account__account-icon {
	width: 22px;
	height: 22px;
}

/* -----------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------------- */
.sla-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: 3.25rem;
	padding-bottom: 0;
	border-top: 1px solid var(--sla-color-gold);
	/* Two whisper-soft warm glows (near the brand mark, near the temple) in
	 * place of a flat ivory field — no visible gradient band, just enough
	 * tonal depth to read as considered rather than flat. */
	background-image:
		radial-gradient(120% 90% at 12% 0%, color-mix(in srgb, var(--sla-color-cream) 60%, transparent) 0%, transparent 58%),
		radial-gradient(110% 90% at 88% 100%, color-mix(in srgb, var(--sla-color-gold) 7%, transparent) 0%, transparent 55%);
}

/*
 * Mandala, entering from the LEFT edge.
 * The source art is the right half of a mandala whose centre sits on its own
 * left edge, so anchoring it at left:0 reads as a full mandala rising out of
 * the page edge. The mask dissolves it before it reaches the link columns.
 * Sized by WIDTH (not height) so it reads as a compact decorative frame
 * rather than the dominant element of the column.
 */
.sla-footer::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	z-index: 0;
	transform: translateY(-50%);
	pointer-events: none;
	width: clamp(230px, 18vw, 280px);
	height: auto;
	aspect-ratio: 546 / 1024;
	background-image: var(--sla-art-mandala);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
	opacity: 0.2;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 100%);
}

/*
 * Heritage temple, entering from the RIGHT edge and sitting behind the
 * right-hand message area. Masked on its left so it never crowds the
 * newsletter column.
 *
 * Anchored by `bottom` (not `top`) to the footer's own bottom divider — the
 * top edge of .sla-footer__bottom — so the artwork's base always meets that
 * line instead of stopping short and leaving bare cream underneath it.
 */
.sla-footer::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: var(--sla-footer-bottom-h);
	z-index: 0;
	pointer-events: none;
	width: min(620px, 40vw);
	aspect-ratio: 1774 / 887;
	background-image: var(--sla-art-temple);
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: contain;
	opacity: 0.95;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 36%);
}

.sla-footer__columns,
.sla-footer__bottom {
	position: relative;
	z-index: 1;
}

.sla-footer__columns {
	display: grid !important;
	/* Column 4 is the widest of the link columns so "Join Our Newsletter"
	 * stays on a single line down to the 1200px breakpoint. */
	grid-template-columns: 1.1fr 0.6fr 0.78fr 1.05fr 1fr;
	width: 100%;
	align-items: stretch;
	column-gap: 2rem;
	row-gap: 2.5rem;
	padding-bottom: 2.5rem;
}

.sla-footer__col {
	position: relative;
	min-width: 0;
}

/* Thin champagne-gold column rules, faded at both ends */
.sla-footer__explore,
.sla-footer__policies-col,
.sla-footer__newsletter,
.sla-footer__message {
	padding-left: var(--wp--preset--spacing--medium);
}

.sla-footer__explore::after,
.sla-footer__policies-col::after,
.sla-footer__newsletter::after,
.sla-footer__message::after {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 1px;
	pointer-events: none;
	background: linear-gradient(180deg, transparent, var(--sla-gold-thread) 16%, var(--sla-gold-thread) 84%, transparent);
}

.sla-footer__brand {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 1.75rem;
}


.sla-footer__logo.wp-block-site-logo img {
	height: 180px;
	width: auto;
	object-fit: contain;
}

.sla-footer__social {
	display: flex;
	flex-wrap: nowrap;
	gap: 14px;
}

.sla-footer__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(44px, 3.2vw, 48px);
	height: clamp(44px, 3.2vw, 48px);
	border-radius: 50%;
	background: var(--sla-color-navy);
	border: 1px solid color-mix(in srgb, var(--sla-color-gold) 35%, transparent);
	color: var(--sla-color-white);
	text-decoration: none;
	transition: transform 250ms ease, background-color 250ms ease, color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.sla-footer__social-icon:hover,
.sla-footer__social-icon:focus-visible {
	background: var(--sla-color-gold);
	color: var(--sla-color-white);
	transform: translateY(-2.5px);
	box-shadow: 0 6px 14px color-mix(in srgb, var(--sla-color-navy) 22%, transparent);
}

.sla-footer__social-icon .sla-icon {
	width: 22px;
	height: 22px;
}

/* Column headings with a small gold diamond-and-rule ornament */
.sla-footer__col-title {
	position: relative;
	margin: 0 0 1.05rem;
	padding-bottom: 16px;
	font-family: var(--sla-font-display);
	font-size: clamp(1.5rem, 1.6vw, 1.625rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.01em;
	color: var(--sla-color-navy);
	white-space: nowrap;
}

.sla-footer__col-title::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 7px;
	height: 7px;
	background: var(--sla-color-gold);
	transform: rotate(45deg);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sla-color-gold) 12%, transparent);
}

.sla-footer__col-title::after {
	content: "";
	position: absolute;
	left: 17px;
	bottom: 3px;
	width: 52px;
	height: 1px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--sla-color-gold) 95%, transparent), transparent);
}

.sla-footer__newsletter-copy {
	max-width: 30ch;
	margin: 0 0 var(--wp--preset--spacing--x-small);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	color: var(--sla-color-navy);
	opacity: 0.85;
}

.sla-footer__newsletter-form {
	display: flex;
	align-items: center;
	max-width: 100%;
	border: 1px solid var(--sla-gold-soft);
	background: color-mix(in srgb, var(--sla-color-white) 85%, transparent);
	transition: border-color 220ms ease, box-shadow 220ms ease;
}

.sla-footer__newsletter-form:focus-within {
	border-color: var(--sla-color-gold);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--sla-color-gold) 16%, transparent);
}

.sla-footer__newsletter-form input[type="email"] {
	flex-grow: 1;
	min-width: 0;
	padding: 13px 16px;
	border: none;
	background: none;
	font-size: 0.9375rem;
	color: var(--sla-color-navy);
}

.sla-footer__newsletter-form input[type="email"]:focus {
	outline: none;
}

.sla-footer__newsletter-form button {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	background: var(--sla-color-gold);
	color: var(--sla-color-navy);
	cursor: pointer;
	transition: background-color 220ms ease, color 220ms ease;
}

.sla-footer__newsletter-form button:hover {
	background: var(--sla-color-navy);
	color: var(--sla-color-ivory);
}

.sla-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sla-footer__links a {
	display: inline-block;
	font-family: var(--sla-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.8;
	color: var(--sla-color-navy);
	text-decoration: none;
	opacity: 1;
	padding-left: 0;
	transition: color 220ms ease, opacity 220ms ease, padding-left 220ms ease;
}

.sla-footer__links a:hover {
	color: var(--sla-color-gold);
	opacity: 1;
	padding-left: 5px;
}

/* Right-hand message column — sits over the temple artwork */
.sla-footer__message {
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 1;
	text-align: center;
}

/*
 * Soft ivory halo that keeps the message legible over the temple without
 * putting a visible panel on top of the artwork.
 */
.sla-footer__message::before {
	content: "";
	position: absolute;
	/* Left inset clears the column rule at left:0 so the halo cannot wash it out. */
	inset: -30px -18px -30px 14px;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sla-color-cream) 92%, transparent) 0%, color-mix(in srgb, var(--sla-color-cream) 66%, transparent) 50%, transparent 80%);
}

.sla-footer__message-text {
	margin: 0;
	font-family: var(--sla-font-quote);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(1.75rem, 2vw, 2rem);	
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--sla-color-navy);
	text-align: center;
}

/* "Shubh Laabh" — the last line of the quote — is the clear typographic
 * peak: extra-bold and a touch larger than "May Your Space" / "Be Filled
 * With" above it, rather than a color change (the brief's own preference). */
.sla-footer__message-emphasis {
	font-weight: 800;
	font-size: 1.06em;
}

/*
 * Quote entrance reveal (assets/js/footer-reveal.js).
 * Hidden state only exists under .sla-js (added by functions.php before any
 * paint) — so with JS disabled this rule never matches and the quote is
 * simply visible immediately, no permanently-hidden trap.
 */
.sla-js .sla-footer__message-text {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sla-js .sla-footer__message-text.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.sla-js .sla-footer__message-text {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.sla-footer__ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: var(--wp--preset--spacing--x-small);
}

.sla-footer__ornament span {
	width: 24px;
	height: 1px;
	background: var(--sla-color-gold);
}

.sla-footer__ornament i {
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--sla-color-gold);
	transform: rotate(45deg);
}

/* Bottom bar */
.sla-footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--sla-footer-bottom-h);
	padding-top: var(--wp--preset--spacing--x-small);
	padding-bottom: var(--wp--preset--spacing--x-small);
	border-top: 1px solid var(--sla-gold-faint);
	gap: var(--wp--preset--spacing--x-small);
	align-items: center;
}

.sla-footer__copyright {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--sla-color-navy);
}

.sla-footer__locale {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--sla-color-navy);
}

.sla-footer__locale .sla-icon--chevron {
	color: var(--sla-color-navy);
}

.sla-footer__bottom-right {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: center;
}

.sla-footer__bottom-right p {
	margin: 0;
}

.sla-footer__bottom-right a {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--sla-color-navy);
	text-decoration: none;
	opacity: 0.8;
	transition: color 220ms ease, opacity 220ms ease;
}

.sla-footer__bottom-right a:hover {
	color: var(--sla-color-gold);
	opacity: 1;
}

.sla-footer__bottom-divider {
	width: 1px;
	height: 14px;
	background: var(--sla-gold-faint);
}

/* -----------------------------------------------------------------------
 * Small laptop / large tablet — footer wraps, artwork pulled back
 * --------------------------------------------------------------------- */
@media (max-width: 1199px) {
	/* Four equal columns keep the link/newsletter row full — a 3-up grid would
	 * strand the newsletter alone on a second row beside two empty cells. */
	.sla-footer__columns {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 1.5rem;
		row-gap: 2.25rem;
	}

	/* Vertical rules only make sense in a single row; wrapped rows use spacing. */
	.sla-footer__explore,
	.sla-footer__policies-col,
	.sla-footer__newsletter,
	.sla-footer__message {
		padding-left: 0;
	}

	.sla-footer__explore::after,
	.sla-footer__policies-col::after,
	.sla-footer__newsletter::after,
	.sla-footer__message::after {
		display: none;
	}

	.sla-footer__message {
		grid-column: 1 / -1;
		padding-top: 1.75rem;
		border-top: 1px solid var(--sla-gold-faint);
	}

	/*
	 * Once the columns wrap, the message becomes the last full-width row, so the
	 * artwork moves with it: mandala up behind the brand mark, temple down behind
	 * the message. Left where they were, both would sit on top of link text.
	 * The temple still anchors to the same footer bottom divider as desktop.
	 */
	.sla-footer::before {
		top: 0;
		bottom: auto;
		transform: none;
		width: clamp(170px, 24vw, 220px);
		height: auto;
		opacity: 0.9;
	}

	.sla-footer::after {
		top: auto;
		bottom: var(--sla-footer-bottom-h);
		width: min(460px, 58vw);
		opacity: 0.9;
	}
}

/* -----------------------------------------------------------------------
 * Announcement bar — its items are nowrap by design, so they must be shed
 * progressively or the bar forces the whole page to scroll horizontally.
 * --------------------------------------------------------------------- */
/* 1439px, not 1023px: this is where the shared-container gutter (above) starts
 * taking width away from the announcement bar too, so the right-side content
 * must shed at the same point or it overflows before reaching 1023px. */
@media (max-width: 1439px) {
	.sla-announcement-bar__right.sla-announcement-bar__right {
		display: none;
	}

	.sla-announcement-bar__inner {
		justify-content: center;
	}
}

/* -----------------------------------------------------------------------
 * Tablet — navigation drops onto its own centred row
 * --------------------------------------------------------------------- */
@media (max-width: 899px) and (min-width: 600px) {
	/* !important: overrides the "is-nowrap" utility class WordPress generates
	 * from this block's own "flexWrap":"nowrap" attribute (used for desktop). */
	.sla-header__row {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--2-x-small);
	}

	.sla-header__brand {
		padding-right: 0;
		border-right: none;
	}

	.sla-header__nav.wp-block-navigation {
		order: 3;
		flex-basis: 100%;
	}

	.sla-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* -----------------------------------------------------------------------
 * Mobile (simplified, not merely scaled down)
 * 599px matches WordPress core's own Navigation block breakpoint
 * (min-width: 600px) so the icon row and nav simplify in lockstep
 * with the nav's hamburger toggle.
 * --------------------------------------------------------------------- */
@media (max-width: 599px) {
	/* Announcement bar: all three messages now rotate via the carousel added
	 * in the "Mobile navigation" section below; only the right-side group
	 * (Track Order / currency) stays hidden here. */
	.sla-announcement-bar__right.sla-announcement-bar__right {
		display: none !important;
	}

	.sla-announcement-bar__inner {
		justify-content: center;
	}

	/* Header row: hamburger left, logo centred, utility icons right.
	 * flex-wrap is a safety net so nothing is ever clipped off-canvas. */
	.sla-header__row {
		padding-top: var(--wp--preset--spacing--2-x-small);
		padding-bottom: var(--wp--preset--spacing--2-x-small);
		flex-wrap: wrap !important;
		gap: 6px;
		row-gap: var(--wp--preset--spacing--2-x-small);
	}

	/* The edge art is cropped hard at this width, so pull it back further. */
	.sla-header__main::before {
		opacity: 0.9;
		-webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 46%, transparent 54%, #000 100%);
		mask-image: linear-gradient(90deg, #000 0%, transparent 46%, transparent 54%, #000 100%);
	}

	.sla-header__brand {
		order: 2;
		flex: 1 1 auto;
		justify-content: center;
		padding-right: 0;
		border-right: none;
	}

	.sla-header__logo--horizontal a,
	.sla-header__logo--horizontal .custom-logo-link {
		height: 44px;
	}

	/* The nav only holds the hamburger button here; it must not flex-grow and
	 * crowd out the utility icons. */
	.sla-header__nav.wp-block-navigation {
		order: 1;
		flex-grow: 0;
		flex-basis: auto;
	}

	.sla-header__utility {
		order: 3;
		gap: 0;
	}

	.sla-header__icon,
	.sla-header__icon--search.wp-block-search,
	.sla-header__icon--search .wp-block-search__button,
	.sla-header__icon--cart.wp-block-woocommerce-mini-cart,
	.sla-header__icon--cart .wc-block-mini-cart__button,
	.sla-header__icon--account.wp-block-woocommerce-customer-account,
	.sla-header__icon--account .wc-block-customer-account__link {
		width: 38px;
		height: 38px;
	}

	.sla-icon {
		width: 20px;
		height: 20px;
	}

	/* Footer: single column, compact stacked spacing, simplified artwork.
	 * The bottom bar stacks to two lines here, so its own anchor height grows
	 * to match — the temple still terminates exactly at its top divider. */
	.sla-footer {
		--sla-footer-bottom-h: 92px;
		padding-top: 2.25rem;
	}

	/* Mandala moves from the left edge (where it sat behind the logo) to a
	 * compact corner element on the right, paired with the message/quote
	 * section at the bottom instead of the top. rotate(180deg) flips the
	 * whole painted box — image AND its fade mask together, since both are
	 * painted in the same local box before the transform is applied — so the
	 * asset's flat/cut edge (built to blend into a page edge on the left)
	 * now blends into the RIGHT edge instead, with the same fade-toward-
	 * content behaviour it already had on the left, just mirrored. */
	.sla-footer::before {
		top: auto;
		/* Cleared above the temple's own footprint (bottom: var(--sla-footer-
		 * bottom-h), height ~125-160px at these widths) by a fixed buffer, so
		 * the much fainter mandala doesn't render fully hidden underneath the
		 * far more opaque temple that would otherwise paint over it. */
		bottom: calc(var(--sla-footer-bottom-h) + 150px);
		left: auto;
		right: 0;
		width: clamp(70px, 20vw, 100px);
		height: auto;
		transform: rotate(180deg);
		opacity: 0.22;
	}

	.sla-footer::after {
		top: auto;
		bottom: var(--sla-footer-bottom-h);
		width: min(320px, 78vw);
		opacity: 0.9;
	}

	.sla-footer__columns {
		grid-template-columns: 1fr !important;
		padding-bottom: 2rem;
		row-gap: 2rem;
	}

	.sla-footer__logo.wp-block-site-logo img {
		height: 96px;
	}

	.sla-footer__explore,
	.sla-footer__policies-col,
	.sla-footer__newsletter,
	.sla-footer__message {
		padding-left: 0;
		padding-top: 1.75rem;
		border-top: 1px solid var(--sla-gold-faint);
	}

	/* Left-aligned so the text and the right-side mandala/temple artwork
	 * occupy separate zones rather than the text sitting on top of either.
	 * .sla-footer__message-text carries its own explicit text-align:center
	 * (the desktop/base rule) which inheriting from the wrapper alone can't
	 * beat, so it's overridden directly here too. */
	.sla-footer__message {
		grid-column: auto;
		text-align: left;
	}

	.sla-footer__message-text {
		text-align: left;
	}

	.sla-footer__ornament {
		justify-content: flex-start;
	}

	.sla-footer__bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* =========================================================================
 * MOBILE NAVIGATION — header only (<=899px)
 * A self-contained addition: the desktop header (>899px) is completely
 * unaffected, since every rule here either lives inside the 899px media
 * query below or targets elements (.sla-mobile-toggle, .sla-drawer, ...)
 * that don't exist in the desktop layout at all. Desktop keeps using the
 * existing .sla-header__nav (core Navigation block) and .sla-header__utility
 * exactly as before; below 899px those are hidden in favour of a custom
 * logo + hamburger + right-side drawer, and the announcement bar's three
 * messages switch from a horizontal row to a crossfading carousel.
 * ========================================================================= */

/* ---- Hamburger trigger — hidden by default, shown only at <=899px ---- */
.sla-mobile-toggle {
	display: none;
	position: relative;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: width 300ms ease, height 300ms ease;
}

.sla-mobile-toggle__bar {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 2px;
	border-radius: 1px;
	background: var(--sla-color-navy);
	transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease;
}

.sla-mobile-toggle__bar:nth-child(1) {
	top: 16px;
}

.sla-mobile-toggle__bar:nth-child(2) {
	top: 23px;
}

.sla-mobile-toggle__bar:nth-child(3) {
	top: 30px;
}

/* Hamburger -> elegant X, navy -> gold */
.sla-mobile-toggle.is-active .sla-mobile-toggle__bar:nth-child(1) {
	top: 23px;
	transform: rotate(45deg);
	background: var(--sla-color-gold);
}

.sla-mobile-toggle.is-active .sla-mobile-toggle__bar:nth-child(2) {
	opacity: 0;
}

.sla-mobile-toggle.is-active .sla-mobile-toggle__bar:nth-child(3) {
	top: 23px;
	transform: rotate(-45deg);
	background: var(--sla-color-gold);
}

/* ---- Right-side drawer — inert on desktop: only ever opened via the
 * hamburger above, which doesn't exist visually/interactively there. ---- */
.sla-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	visibility: hidden;
	pointer-events: none;
}

.sla-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.sla-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--sla-color-navy-deep) 55%, transparent);
	opacity: 0;
	transition: opacity 350ms ease;
}

.sla-drawer.is-open .sla-drawer__backdrop {
	opacity: 1;
}

.sla-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 80vw;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--sla-color-white);
	box-shadow: -12px 0 40px color-mix(in srgb, var(--sla-color-navy-deep) 18%, transparent);
	transform: translateX(100%);
	transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
	overflow-y: auto;
}

.sla-drawer.is-open .sla-drawer__panel {
	transform: translateX(0);
}

html.sla-drawer-locked {
	overflow: hidden;
}

/* Top bar: just the close button, right-aligned. The brand mark sits in its
 * own centred section below (.sla-drawer__brand) per the required layout —
 * X top-right, logo/wordmark centred beneath it with its own breathing room. */
.sla-drawer__header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
	padding: 1.25rem 1.25rem 0;
}

.sla-drawer__brand {
	display: flex;
	justify-content: center;
	flex-shrink: 0;
	padding: 0.25rem 1.5rem 1.75rem;
	border-bottom: 1px solid var(--sla-gold-faint);
}

/*
 * Real WordPress Site Logo (same block the footer uses) — its image already
 * contains the emblem + "Shubh Laabh Arts" + "Think Beyond Imagination"
 * stacked, so no separate text markup is needed here. Sized by height only;
 * width is genuinely auto via object-fit:contain, so its real aspect ratio
 * (whatever it is) is always preserved — never stretched or cropped.
 */
.sla-drawer__logo.wp-block-site-logo {
	margin: 0;
}

.sla-drawer__logo.wp-block-site-logo img {
	height: 150px;
	width: auto;
	object-fit: contain;
}

.sla-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: none;
	border: none;
	color: var(--sla-color-navy);
	cursor: pointer;
	transition: color 220ms ease, transform 220ms ease;
}

.sla-drawer__close svg {
	width: 20px;
	height: 20px;
}

.sla-drawer__close:hover,
.sla-drawer__close:focus-visible {
	color: var(--sla-color-gold);
	transform: rotate(90deg);
}

.sla-drawer__nav {
	flex-grow: 1;
	overflow-y: auto;
	padding: 0.5rem 0;
}

.sla-drawer__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sla-drawer__nav-link {
	position: relative;
	display: block;
	padding: 1rem 1.75rem;
	font-family: var(--sla-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--sla-color-navy);
	text-decoration: none;
	transition: color 220ms ease, padding-left 220ms ease;
}

.sla-drawer__nav-link::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 60%;
	background: var(--sla-color-gold);
	transform: translateY(-50%) scaleY(0);
	transition: transform 220ms ease;
}

.sla-drawer__nav-link:hover,
.sla-drawer__nav-link:focus-visible,
.sla-drawer__nav-link.is-active {
	color: var(--sla-color-gold);
	padding-left: 2.1rem;
}

.sla-drawer__nav-link:hover::before,
.sla-drawer__nav-link:focus-visible::before,
.sla-drawer__nav-link.is-active::before {
	transform: translateY(-50%) scaleY(1);
}

.sla-drawer__social {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
	padding: 1.25rem 1.75rem 1.75rem;
	border-top: 1px solid var(--sla-gold-faint);
}

.sla-drawer__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--sla-color-navy);
	color: var(--sla-color-white);
	transition: transform 250ms ease, background-color 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.sla-drawer__social-icon:hover,
.sla-drawer__social-icon:focus-visible {
	background: var(--sla-color-gold);
	color: var(--sla-color-navy);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px color-mix(in srgb, var(--sla-color-navy-deep) 20%, transparent);
}

.sla-drawer__social-icon .sla-icon {
	width: 16px;
	height: 16px;
}

@keyframes sla-announce-cycle {
	0%,
	100% {
		opacity: 0;
	}

	4%,
	29% {
		opacity: 1;
	}

	33% {
		opacity: 0;
	}
}

@media (max-width: 899px) {
	/* Announcement bar: three messages crossfade in place instead of sitting
	 * in a row. animation-delay is staggered by a third of the 12s cycle per
	 * item (0s / -4s / -8s) so exactly one is visible at any moment. */
	.sla-announcement-bar__divider {
		display: none;
	}

	.sla-announcement-bar__left {
		position: relative;
		width: 100%;
		justify-content: center;
		min-height: 2.5em;
	}

	.sla-announcement-bar__item {
		position: absolute;
		inset: 0;
		align-items: center;
		justify-content: center;
		text-align: center;
		white-space: normal;
		padding: 0 0.5rem;
		opacity: 0;
		animation: sla-announce-cycle 12s ease-in-out infinite;
	}

	.sla-announcement-bar__item:nth-child(1) {
		animation-delay: 0s;
	}

	.sla-announcement-bar__item:nth-child(3) {
		animation-delay: -4s;
	}

	.sla-announcement-bar__item:nth-child(5) {
		animation-delay: -8s;
	}

	@media (prefers-reduced-motion: reduce) {
		.sla-announcement-bar__item {
			animation: none;
			opacity: 0;
		}

		.sla-announcement-bar__item:nth-child(1) {
			opacity: 1;
		}
	}

	/* Main header: logo left, hamburger right — search/wishlist are already
	 * gone site-wide, and account/cart + the full nav move into the drawer.
	 * !important: WordPress's own generated "body .is-layout-flex { display:
	 * flex }" (specificity 0,1,1) otherwise outranks this plain class selector
	 * (0,1,0) regardless of source order — same class of override already
	 * used on .sla-footer__columns above. */
	.sla-header__nav,
	.sla-header__utility {
		display: none !important;
	}

	.sla-mobile-toggle {
		display: inline-flex;
	}

	.sla-header__row {
		justify-content: space-between;
	}

	/* order/flex/justify-content reset: the old <=599px rules below (still
	 * present for the properties this block doesn't need to touch) set
	 * order:2, flex:1 1 auto and justify-content:center on .sla-header__brand
	 * for a since-retired centered-logo layout — reasserted here so the logo
	 * is first (left) and the toggle is last (right), per [LOGO] ... [MENU]. */
	.sla-header__brand {
		order: 0;
		flex: 0 0 auto;
		justify-content: flex-start;
		padding-right: 0;
		border-right: none;
	}

	.sla-mobile-toggle {
		order: 1;
	}

	/* Logo/header area: >=120px tall (min-height, not a forced logo size),
	 * with the existing align-items:center on .sla-header__row (unchanged)
	 * centering the logo within it. The logo itself sizes by HEIGHT only —
	 * width is genuinely auto, computed from height via the aspect-ratio
	 * already set on this rule at the top of the file — so it can never be
	 * distorted; the height clamp exists purely to guarantee it still fits
	 * next to the hamburger at 320px without triggering horizontal overflow. */
	.sla-header__row {
		min-height: 120px;
		transition: min-height 300ms ease, padding-top 300ms ease, padding-bottom 300ms ease;
	}

	.sla-header__logo--horizontal a,
	.sla-header__logo--horizontal .custom-logo-link {
		width: auto;
		height: clamp(64px, 20vw, 88px);
	}
}
