/* ========================================================================== */
/* Responsive System — Blocksy Child (Enhancement Only)
	 - No HTML/class changes
	 - Preserves existing desktop design
	 - Adds fluid system + 3-layer hero responsiveness
/* ========================================================================== */


/* ========================================================================== */
/* 1) Design Tokens (Container / Type / Spacing / Hero Ratios)
/* ========================================================================== */

:root {
	/* Container (progressive max-width) */
	--container-width: 75rem; /* 1200px */
	--container-pad-x: clamp(1rem, 3vw, 2.5rem);

	/* Fluid spacing scale */
	--space-xs: clamp(0.5rem, 0.45rem + 0.2vw, 0.75rem);
	--space-sm: clamp(0.75rem, 0.65rem + 0.5vw, 1.125rem);
	--space-md: clamp(1rem, 0.9rem + 0.8vw, 1.75rem);
	--space-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
	--space-xl: clamp(2rem, 1.6rem + 1.8vw, 3.5rem);

	/* Base type */
	--font-size-body: clamp(1rem, 0.98rem + 0.15vw, 1.125rem);
	--line-height-body: 1.6;

	/* Component type */
	--font-size-nav: clamp(0.875rem, 0.86rem + 0.18vw, 0.975rem);
	--font-size-footer-heading: clamp(1.0625rem, 1.02rem + 0.25vw, 1.25rem);
	--font-size-footer-bottom: clamp(0.95rem, 0.9rem + 0.25vw, 1.125rem);

	/* Header sizing */
	--header-height: clamp(5.5rem, 4.95rem + 1.6vw, 8.25rem);
	--header-gap: clamp(0.75rem, 0.6rem + 0.8vw, 1.5rem);
	--logo-height: clamp(4rem, 3.35rem + 2vw, 7.25rem);
	--nav-gap: clamp(0.875rem, 0.75rem + 0.9vw, 1.375rem);
	--nav-link-pad-y: clamp(0.35rem, 0.32rem + 0.2vw, 0.5rem);
	--search-expanded-width: clamp(9rem, 18vw, 12rem);

	/* Hero — typography (smooth, no breakpoint jumps) */
	--hero-title-size: clamp(2.25rem, 1.65rem + 2.8vw, 5.375rem);
	--hero-arabic-size: clamp(2.5rem, 1.85rem + 3vw, 5.75rem);
	--hero-title-gap: clamp(0.6rem, 0.55rem + 0.4vw, 0.95rem);
	--hero-subtitle-gap: clamp(1.25rem, 0.95rem + 1.4vw, 2.5rem);

	/* Hero — spacing + ratio (Desktop default; overridden per layer) */
	--hero-pad-y: clamp(2.5rem, 5vw, 5rem);
	--hero-min-h: 100svh;
	--hero-content-max: clamp(28rem, 46vw, 51.25rem);
	--hero-content-translate-y: calc(-1 * clamp(4rem, 10vw, 9rem));

	/* Footer */
	--footer-pad-top: clamp(2.25rem, 3vw, 2.75rem);
	--footer-pad-bottom: clamp(1.125rem, 2vw, 1.5rem);
	--footer-grid-gap: clamp(1.5rem, 2.5vw, 2.75rem);
	--footer-list-gap: clamp(0.5rem, 1vw, 0.75rem);
	--footer-social-size: clamp(2.75rem, 2.4rem + 1vw, 3.25rem);
	--footer-bottom-pad-top: clamp(0.875rem, 1.2vw, 1.25rem);

	/* Promo carousel */
	--promo-gap: clamp(0.85rem, 1.2vw, 1.35rem);
	--promo-radius: clamp(0.85rem, 1.2vw, 1.15rem);
	--promo-card-w: calc((100% - (var(--promo-gap) * 3)) / 4);
	--promo-card-ar: 5 / 3;
}


/* ========================================================================== */
/* 2) Global Baseline
/* ========================================================================== */

:where(*, *::before, *::after) {
	box-sizing: border-box;
}

:where(body) {
	font-size: var(--font-size-body);
	line-height: var(--line-height-body);
}

:where(html) {
	scroll-padding-top: var(--header-height);
}


/* ========================================================================== */
/* 3) Fluid Container Scaling (hooks into existing header/hero/footer CSS)
/* ========================================================================== */

:where(.bc-header__inner, .bc-hero__inner, .bc-footer__inner, .bc-promo-carousel__inner, .bc-product-grid__inner) {
	max-width: var(--container-width, 75rem);
	margin-inline: auto;
	padding-inline: var(--container-pad-x);
}


/* ========================================================================== */
/* 4) Header Optimization (non-destructive)
/* ========================================================================== */

.bc-header__inner {
	height: var(--header-height);
	padding: 0 var(--container-pad-x);
	gap: var(--header-gap);
}

.site-logo img {
	height: var(--logo-height);
}

.bc-nav ul {
	gap: var(--nav-gap);
}

.bc-nav .bc-nav__menu > li > a {
	font-size: var(--font-size-nav);
	padding: var(--nav-link-pad-y) 0.125rem;
}

.bc-search:hover .bc-search__input,
.bc-search:focus-within .bc-search__input {
	width: var(--search-expanded-width);
}

.nav-menu {
	width: 100%;
}

.menu-toggle {
	display: none;
}


/* ========================================================================== */
/* 5) Hero System
	 - Desktop default (1025px+): preserve existing visual impact
	 - Tablet: balanced composition, avoid desktop crop dominance
	 - Mobile: editorial split composition
/* ========================================================================== */

/* Desktop / Base (1025px+) */
.bc-hero {
	min-height: 100vh;
	min-height: var(--hero-min-h, 100svh);
}

.bc-hero__inner {
	padding: var(--hero-pad-y) var(--container-pad-x);
}

.bc-hero__content {
	max-width: var(--hero-content-max);
	transform: translateY(var(--hero-content-translate-y));
	padding-right: clamp(0rem, 4vw, 1.125rem);
}

.bc-hero__title {
	font-size: var(--hero-title-size);
	margin: 0 0 var(--hero-title-gap);
}

.bc-hero__arabic {
	font-size: var(--hero-arabic-size);
	margin: var(--hero-subtitle-gap) 0 0;
}


/* ========================================================================== */
/* 5.5) Premium Promo Carousel (below hero)
/* ========================================================================== */

.bc-promo-carousel {
	/* 1) very subtle separation under hero */
	margin-top: clamp(0.5rem, 0.8vw, 1rem);
	padding-block: clamp(1rem, 1.5vw, 1.5rem);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bc-promo-carousel__track {
	display: flex;
	gap: var(--promo-gap);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x mandatory;
	scroll-padding-left: var(--container-pad-x);
	padding-block: 0.25rem;
	scrollbar-gutter: stable;
	scrollbar-width: none;
}

.bc-promo-carousel__track::-webkit-scrollbar {
	height: 0;
}

.bc-promo-card {
	--promo-bg: none;
	flex: 0 0 var(--promo-card-w);
	min-width: 14rem;
	aspect-ratio: var(--promo-card-ar);
	border-radius: var(--promo-radius);
	position: relative;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.04);
	background-image: var(--promo-bg);
	background-size: cover;
	background-position: center;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	text-decoration: none;
	transform: translateZ(0);
	transition: transform 260ms ease;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.bc-promo-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.08) 35%,
		rgba(0, 0, 0, 0.52) 100%
	);
	pointer-events: none;
}

.bc-promo-card__content {
	position: absolute;
	left: clamp(0.9rem, 1.1vw, 1.25rem);
	right: clamp(0.9rem, 1.1vw, 1.25rem);
	bottom: clamp(0.9rem, 1.1vw, 1.25rem);
	color: #fff;
	letter-spacing: 0.01em;
}

.bc-promo-card__eyebrow {
	display: block;
	font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.85rem);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.92;
	margin-bottom: 0.25rem;
}

.bc-promo-card__title {
	display: block;
	font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.5rem);
	line-height: 1.12;
	font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
	.bc-promo-card:hover {
		transform: scale(1.018);
	}
}

.bc-promo-card:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.55);
	outline-offset: 3px;
}

/* Background images (replace files as needed) */
.bc-promo-card--new { --promo-bg: url("../images/hero-background.jpg"); background-position: 50% 18%; }
.bc-promo-card--men { --promo-bg: url("../images/hero-background.jpg"); background-position: 50% 32%; }
.bc-promo-card--women { --promo-bg: url("../images/hero-background.jpg"); background-position: 50% 46%; }
.bc-promo-card--shoes { --promo-bg: url("../images/hero-background.jpg"); background-position: 50% 60%; }
.bc-promo-card--fragrance { --promo-bg: url("../images/hero-background.jpg"); background-position: 50% 74%; }
.bc-promo-card--accessories { --promo-bg: url("../images/hero-background.jpg"); background-position: 50% 88%; }


/* ========================================================================== */
/* 5.6) Premium Product Grid (below promo carousel)
/* ========================================================================== */

.bc-product-grid-section {
	padding-block: clamp(1.25rem, 2.2vw, 2.25rem);
}

.bc-section-title {
	margin: 0;
	font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
	letter-spacing: -0.01em;
}

.bc-section-subtitle {
	margin: 0.35rem 0 0;
	color: rgba(0, 0, 0, 0.65);
	font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
}

.bc-product-grid {
	margin-top: clamp(1rem, 1.6vw, 1.5rem);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 1.6vw, 1.65rem);
}

.bc-product-card {
	display: flex;
	flex-direction: column;
	gap: clamp(0.85rem, 1.2vw, 1.15rem);
	text-decoration: none;
	color: inherit;
	border-radius: clamp(0.9rem, 1.2vw, 1.15rem);
	padding: clamp(0.95rem, 1.25vw, 1.25rem);
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: transform 220ms ease;
}

.bc-product-card__media {
	border-radius: inherit;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: rgba(0, 0, 0, 0.03);
}

.bc-product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.001);
	transition: transform 260ms ease, opacity 260ms ease;
	opacity: 0.98;
}

.bc-product-card__body {
	display: grid;
	gap: 0.35rem;
}

.bc-product-card__brand {
	font-size: clamp(0.75rem, 0.72rem + 0.2vw, 0.85rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.55);
}

.bc-product-card__name {
	font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
	font-weight: 500;
	line-height: 1.2;
}

.bc-product-card__price {
	font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
	font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
	.bc-product-card:hover {
		transform: translateY(-2px);
	}

	.bc-product-card:hover .bc-product-card__img {
		transform: scale(1.035);
		opacity: 1;
	}
}

.bc-product-card:focus-visible {
	outline: 2px solid rgba(0, 0, 0, 0.55);
	outline-offset: 3px;
}

/* Sample card art-direction variance (safe defaults) */
.bc-product-card--01 .bc-product-card__img { object-position: 50% 20%; }
.bc-product-card--02 .bc-product-card__img { object-position: 50% 45%; }
.bc-product-card--03 .bc-product-card__img { object-position: 50% 70%; }


/* ========================================================================== */
/* 5.6.a) Homepage — Compact Product Cards + Denser Grid
   Requirements:
   - Keep image/title/price
	- Title default color (#0B1B3A) + hover color (#F59E0B)
	- Hover effect ONLY on the title (no card/image/price hover effects)
   - Grid density: 4 (desktop) / 3 (tablet) / 2 (mobile)
/* ========================================================================== */

body.home .bc-product-grid,
body.front-page .bc-product-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.65rem, 1.2vw, 1.05rem);
}

@media (min-width: 48em) and (max-width: 73.75em) {
	body.home .bc-product-grid,
	body.front-page .bc-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 73.75em) {
	body.home .bc-product-grid,
	body.front-page .bc-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.home .bc-product-card,
body.front-page .bc-product-card {
	gap: clamp(0.55rem, 0.9vw, 0.85rem);
	padding: clamp(0.75rem, 1.05vw, 0.95rem);
	border-radius: clamp(0.8rem, 1vw, 1rem);
}

/* Disable base hover motion on homepage cards/images.
   Keep interaction only on the product title. */
@media (hover: hover) and (pointer: fine) {
	body.home .bc-product-card:hover,
	body.front-page .bc-product-card:hover {
		transform: none;
	}

	body.home .bc-product-card:hover .bc-product-card__img,
	body.front-page .bc-product-card:hover .bc-product-card__img {
		transform: none;
		opacity: 0.98;
	}
}

/* Image: keep it, reduce height slightly, avoid cropping */
body.home .bc-product-card__media,
body.front-page .bc-product-card__media {
	aspect-ratio: 1 / 1;
}

body.home .bc-product-card__img,
body.front-page .bc-product-card__img {
	object-fit: contain;
	transform: none;
}

body.home .bc-product-card__body,
body.front-page .bc-product-card__body {
	gap: 0.25rem;
}

body.home .bc-product-card__brand,
body.front-page .bc-product-card__brand {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
}

body.home .bc-product-card__name,
body.front-page .bc-product-card__name {
	font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
	font-weight: 700;
	line-height: 1.18;
	color: #0B1B3A;
	transition: color 0.25s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Hover effect only on title (when hovering card or title) */
body.home .bc-product-card:hover .bc-product-card__name,
body.front-page .bc-product-card:hover .bc-product-card__name,
body.home .bc-product-card__name:hover,
body.front-page .bc-product-card__name:hover {
	color: #F59E0B;
}


/* ========================================================================== */
/* 6) Footer Optimization (fluid rhythm)
/* ========================================================================== */

.bc-footer__inner {
	padding: var(--footer-pad-top) var(--container-pad-x) var(--footer-pad-bottom);
}

.bc-footer__grid {
	gap: var(--footer-grid-gap);
}

.bc-footer h4,
.bc-footer__social-title {
	font-size: var(--font-size-footer-heading);
	margin: 0 0 var(--space-sm);
}

.bc-footer__list {
	gap: var(--footer-list-gap);
}

.bc-social {
	width: var(--footer-social-size);
	height: var(--footer-social-size);
}

.bc-footer__bottom {
	padding-top: var(--footer-bottom-pad-top);
	font-size: var(--font-size-footer-bottom);
}


/* ========================================================================== */
/* 7) Responsive Layers & Container Strategy
/* ========================================================================== */

/* 1366px+ : container grows to 1400px */
@media (min-width: 85.375em) {
	:root {
		--container-width: 87.5rem; /* 1400px */
	}
}

/* 1600px+ : container grows to 1600px + breathing space */
@media (min-width: 100em) {
	:root {
		--container-width: 100rem; /* 1600px */
		--hero-pad-y: clamp(3rem, 5vw, 5.75rem);
		--footer-grid-gap: clamp(1.75rem, 2.5vw, 3.25rem);
	}
}

/* 2560px+ : stronger gutters on ultra-wide */
@media (min-width: 160em) {
	:root {
		--container-pad-x: clamp(1.5rem, 3vw, 4rem);
		--hero-content-max: clamp(32rem, 40vw, 56rem);
	}
}


/* ========================================================================== */
/* Layer A — Mobile (0–767px)
/* ========================================================================== */

@media (max-width: 47.9375em) {
	:root {
		--hero-pad-y: clamp(1.5rem, 6vw, 3rem);
		--hero-min-h: clamp(30rem, 84svh, 44rem);
		--hero-content-translate-y: 0rem;
	}

	.bc-hero {
		background-size: cover;
		background-position: 50% 45%;
	}

	.bc-hero::before {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.92) 0%,
			rgba(255, 255, 255, 0.62) 18%,
			rgba(255, 255, 255, 0.12) 50%,
			rgba(255, 255, 255, 0.62) 82%,
			rgba(255, 255, 255, 0.92) 100%
		);
	}

	.bc-hero__inner {
		display: grid;
		align-items: stretch;
		justify-content: stretch;
		padding: var(--hero-pad-y) var(--container-pad-x);
	}

	.bc-product-grid {
		grid-template-columns: 1fr;
	}

	.bc-hero__content {
		width: 100%;
		max-width: min(100%, var(--hero-content-max));
		height: 100%;
		display: grid;
		grid-template-rows: auto 1fr auto;
		row-gap: var(--space-md);
		justify-items: center;
		align-content: stretch;
		padding-right: 0;
		text-align: center;
		transform: none;
	}

	/* Middle spacer to keep model centered visually */
	.bc-hero__content::before {
		content: "";
		grid-row: 2;
		min-height: clamp(11rem, 28svh, 19rem);
	}

	.bc-hero__title {
		margin: 0;
		max-width: 20ch;
		text-wrap: balance;
	}

	.bc-hero__arabic {
		margin: 0;
		max-width: 18ch;
		text-wrap: balance;
	}
}


/* ========================================================================== */
/* Layer B — Tablet Composition System (768–1180px)
/* ========================================================================== */

@media (min-width: 48em) and (max-width: 73.75em) {
	:root {
		/* Fluid type scaling within tablet range */
		--hero-title-size: clamp(2.85rem, 2.15rem + 1.55vw, 3.75rem);
		--hero-arabic-size: clamp(3.05rem, 2.25rem + 1.75vw, 4.35rem);

		/* Luxury spacing for tablets */
		--hero-pad-y: clamp(2.25rem, 4.25vw, 4.25rem);
		--hero-title-gap: clamp(0.65rem, 0.55rem + 0.35vw, 0.95rem);
		--hero-subtitle-gap: clamp(0.95rem, 0.7rem + 0.9vw, 1.75rem);

		/* Balanced mid-range ratio */
		--hero-min-h: clamp(32rem, 76svh, 45rem);
		--hero-content-translate-y: 0rem;
		--promo-card-w: calc((100% - (var(--promo-gap) * 2)) / 2.5);
	}

	/* Keep model fully visible and centered */
	.bc-hero {
		background-size: contain;
		background-position: center;
		background-repeat: no-repeat;
	}

	.bc-hero::before {
		background: linear-gradient(
			90deg,
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0.18) 40%,
			rgba(255, 255, 255, 0.70) 100%
		);
	}

	.bc-hero__inner {
		display: grid;
		grid-template-columns: 1fr minmax(24rem, 40rem);
		align-items: start;
		justify-content: stretch;
		padding: var(--hero-pad-y) var(--container-pad-x);
	}

	.bc-hero__content {
		grid-column: 2;
		justify-self: end;
		align-self: start;
		text-align: center;
		padding-right: 0;
		max-width: min(100%, clamp(34rem, 54vw, 44rem));
		transform: none;
		position: relative;
		top: calc(clamp(3rem, 4vw, 6rem) + 4rem);
		left: clamp(-2.25rem, -2.2vw, -1rem);
	}

	/* Title: one line, no clipping risk */
	.bc-hero__title {
		white-space: nowrap;
		text-wrap: nowrap;
		max-width: none;
		overflow-wrap: normal;
		word-break: normal;
		transform: translateX(clamp(-1.75rem, -1.6vw, -0.75rem));
	}

	/* Subtitle: keep natural wrapping, lift away from shoe area */
	.bc-hero__arabic {
		max-width: 22ch;
		text-wrap: balance;
	}

	.bc-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}


/* ========================================================================== */
/* Layer C — Desktop (1025px+)
	 - Default base rules apply (no changes needed)
/* ========================================================================== */

/* Desktop-only refinements (keep mobile/tablet untouched) */
@media (min-width: 73.8125em) {
	/* Pull the content block left ~4 steps */
	.bc-hero__content {
		position: relative;
		left: clamp(-1.25rem, -1.2vw, -0.75rem);
	}

	/* Force French title onto one line */
	.bc-hero__title {
		transform: translateX(clamp(-5.4rem, -5vw, -3.5rem));
		white-space: nowrap;
		text-wrap: nowrap;
	}
}


/* ========================================================================== */
/* 8) Mobile Navigation (header enhancement; desktop unchanged)
/* ========================================================================== */

@media (max-width: 64em) {
	.bc-header__inner {
		position: relative;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: clamp(0.25rem, 0.2rem + 0.4vw, 0.375rem);
		width: clamp(2.5rem, 8vw, 3rem);
		height: clamp(2.5rem, 8vw, 3rem);
		border: 1px solid rgba(0, 0, 0, 0.1);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.6);
		color: inherit;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		transition:
			background-color 200ms ease,
			border-color 200ms ease;
	}

	.menu-toggle:hover {
		background: rgba(255, 255, 255, 0.75);
	}

	.menu-toggle:focus-visible {
		outline: 2px solid rgba(191, 161, 74, 0.55);
		outline-offset: 2px;
	}

	.menu-toggle span {
		display: block;
		width: clamp(1.25rem, 4.5vw, 1.5rem);
		height: 0.125rem;
		border-radius: 999px;
		background: currentColor;
		transition:
			transform 260ms ease,
			opacity 200ms ease;
		transform-origin: center;
	}

	.nav-menu {
		position: absolute;
		left: 0;
		right: 0;
		top: calc(100% - 1px);
		background: var(--bc-header-bg, #fafafa);
		border-top: 1px solid rgba(0, 0, 0, 0.06);
		box-shadow: 0 14px 22px rgba(0, 0, 0, 0.06);

		max-height: 0;
		overflow: clip;
		opacity: 0;
		transform: translateY(-0.25rem);
		pointer-events: none;
		transition:
			max-height 320ms ease,
			opacity 200ms ease,
			transform 260ms ease;
	}

	body.menu-open .nav-menu {
		max-height: min(70vh, 34rem);
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}

	.nav-menu .bc-nav {
		justify-content: flex-start;
	}

	.nav-menu .bc-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--space-sm) 0;
	}

	.nav-menu .bc-nav .bc-nav__menu > li > a {
		display: block;
		padding: var(--space-sm) 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	}

	/* Mobile menu: allow long Arabic labels to wrap instead of clipping */
	.nav-menu .bc-nav .bc-nav__menu > li > a {
		white-space: normal;
		word-break: break-word;
		line-height: 1.4;
		padding-inline: 1rem;
	}

	/* Arabic typography: avoid letter spacing on mobile */
	.bc-nav .bc-nav__menu > li > a {
		letter-spacing: normal;
	}

	.nav-menu .bc-nav .bc-nav__menu > li:last-child > a {
		border-bottom: 0;
	}

	body.menu-open .menu-toggle span:nth-child(1) {
		transform: translateY(clamp(0.375rem, 0.25rem + 0.8vw, 0.5rem)) rotate(45deg);
	}

	body.menu-open .menu-toggle span:nth-child(2) {
		opacity: 0;
	}

	body.menu-open .menu-toggle span:nth-child(3) {
		transform: translateY(calc(-1 * clamp(0.375rem, 0.25rem + 0.8vw, 0.5rem))) rotate(-45deg);
	}

	@media (prefers-reduced-motion: reduce) {
		.menu-toggle,
		.menu-toggle span,
		.nav-menu {
			transition: none;
		}
	}
}


/* ====================================================================== */
/* Mobile Header UX (≤768px)
	 - Layout: ☰  logo  🔍
	 - Search input appears as full-width bar below header on :focus-within
	 - CSS only: preserves body.menu-open + keeps .nav-menu inside center
/* ====================================================================== */

@media (max-width: 768px) {
	:root {
		/* Mobile logo size (safe): capped by the rule below using header height */
		--header-height: 6.75rem;
		--logo-height: 7.25rem;
	}

	.bc-header__inner {
		position: relative;
		height: auto;
		min-height: var(--header-height);
		justify-content: space-between;
	}

	.bc-header__center {
		flex: 0 0 auto;
		width: 0;
		min-width: 0;
		overflow: visible;
	}

	.site-logo {
		position: absolute;
		left: 50%;
		top: calc(var(--header-height) / 2);
		transform: translate(-50%, -50%);
		z-index: 1;
	}

	.menu-toggle,
	.bc-search__btn {
		position: relative;
		z-index: 2;
	}

	.lang-switch:empty {
		display: none;
	}

	.site-logo img {
		height: min(var(--logo-height), calc(var(--header-height) - 0.125rem));
		max-height: calc(var(--header-height) - 0.125rem);
	}

	.bc-search__btn {
		display: inline-flex;
	}

	.bc-search {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		justify-content: flex-end;
		gap: 0;
	}

	.bc-search__input {
		position: static;
		width: 100%;
		max-width: none;

		opacity: 0;
		pointer-events: none;

		margin-top: 0;
		padding: 0;
		border: 0;
		background: #fff;
		border-radius: 10px;
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

		max-height: 0;
		overflow: hidden;
		transform: translateY(-6px);
		will-change: opacity, transform;
		transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
		z-index: auto;
	}

	.bc-search:focus-within .bc-search__input {
		margin-top: 8px;
		padding: 10px 14px;
		opacity: 1;
		pointer-events: auto;
		max-height: 3.25rem;
		transform: translateY(0);
	}
}


/* ========================================================================== */
/* 9) Footer Grid Responsive
/* ========================================================================== */

@media (max-width: 64em) {
	.bc-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 30em) {
	.bc-footer__grid {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}
}

