/*
 * home-sections.css — the home page sections rebuilt in D-046 (2026-11-17):
 *   services  «متجرك محتاج إيه؟»: cards the visitor adds to one WhatsApp request
 *   reviews   two rows gliding right and left, draggable, a round «اسحب» cursor
 *   banners   a strip that moves sideways while the page scrolls (desktop), a swipe row on phones
 *   logos     tiles that flood with the brand colour from where the pointer came in
 *   about     a short paragraph, three facts, quick questions that open smoothly
 * Loaded after home.css; only transform / opacity animate while scrolling (frame-drop-hunter).
 */

/* Shared: a quiet text link with an arrow */
.home-link { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-h6); font-weight: 500; color: inherit; }
.home-link span { transition: transform .4s cubic-bezier(.2, .6, .3, 1); }
.home-link:is(:hover, :focus-visible) span { transform: translateX(-6px); }
.home-btn--line { align-self: flex-start; border-color: var(--c-black); background: transparent; color: var(--c-black); }
.home-btn--line .home-btn__icon { background: var(--c-black); color: var(--c-white); }
.home-btn--line:is(:hover, :focus-visible) { background: var(--c-black); color: var(--c-white); }
.home-btn--line:is(:hover, :focus-visible) .home-btn__icon { background: var(--c-white); color: var(--c-black); }

/* ====================================================================== services (D-066)
 * Product cards like a store's: the picture with the title on it, «عرض تفاصيل الخدمة» opens a
 * quick view (a <dialog>) with the description, a few questions and «اطلب عرض سعر» (WhatsApp).
 * Phones: one sideways row that snaps, the quick view comes up from the bottom.
 * Only transform / opacity animate (frame-drop-hunter). */
.home-shop { max-width: 1500px; margin: 0 auto; }
.home-shop__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(32px, 5vh, 60px); }
.home-shop__eyebrow { margin: 0; font-size: var(--t-small); color: var(--c-muted); }
.home-shop__title { margin: 0; font-size: clamp(40px, 3.6vw, 76px); font-weight: 300; line-height: 1.15em; color: var(--c-black); }
.home-shop__lead { margin: 0; max-width: 40em; font-size: clamp(16px, 1vw, 21px); line-height: 1.6em; color: var(--c-muted); }
.home-shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }

.shop-card { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 14px; border: 1px solid rgb(0 0 0 / .07); border-radius: 30px; background: rgb(255 255 255 / .62); transition: transform .5s cubic-bezier(.2, .6, .3, 1); }
.shop-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; border-radius: 22px; background: linear-gradient(180deg, #f6f6f5, #ebebe9); }
.shop-card__img { position: absolute; inset: auto 8% 4% 8%; width: 84%; height: 70%; object-fit: contain; object-position: center bottom; transition: transform .7s cubic-bezier(.2, .6, .3, 1); }
.shop-card--store .shop-card__img, .shop-card--wide .shop-card__img { inset: auto 4% 3% 4%; width: 92%; height: 62%; }
.shop-card__label { position: absolute; top: 20px; right: 22px; left: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.shop-card__badge { order: -1; padding: 5px 11px; border-radius: 100px; background: var(--c-black); color: var(--c-white); font-size: 12px; line-height: 1; }
.shop-card__title { margin: 0; font-size: clamp(22px, 1.6vw, 32px); font-weight: 400; line-height: 1.2em; color: var(--c-black); }
.shop-card__kicker { margin: 0; font-size: 13px; color: var(--c-muted); }
.shop-card__btn {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 7px 7px 7px; padding-inline-start: 20px;
	border: 1px solid rgb(0 0 0 / .16); border-radius: 100px; background: var(--c-white); color: var(--c-black); font-size: 15px;
	transition: background-color .35s, color .35s, border-color .35s;
}
.shop-card__btn-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-black); color: var(--c-white); transition: transform .45s cubic-bezier(.2, .6, .3, 1), background-color .35s, color .35s; }
.shop-card__btn-icon svg { width: 12px; height: 12px; fill: currentColor; transform: rotate(-90deg); }
@media (hover: hover) {
	.shop-card:hover { transform: translateY(-6px); }
	.shop-card:hover .shop-card__img { transform: translateY(-10px) scale(1.04); }
	.shop-card__btn:hover { border-color: var(--c-black); background: var(--c-black); color: var(--c-white); }
	.shop-card__btn:hover .shop-card__btn-icon { background: var(--c-white); color: var(--c-black); transform: translateX(-4px); }
}
.home-shop__form { margin: 22px 0 0; font-size: var(--t-small); }
.home-shop__form a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 4px; }

/* quick view */
.shop-qv {
	width: min(1040px, calc(100vw - 48px)); max-width: none; max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: 32px;
	background: var(--c-paper); color: var(--c-black); overflow: hidden;
	opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .35s, transform .45s cubic-bezier(.2, .6, .3, 1);
}
.shop-qv[open] { display: grid; grid-template-columns: 1fr 1.1fr; }
.shop-qv.is-open { opacity: 1; transform: none; }
.shop-qv::backdrop { background: rgb(0 0 0 / .5); }
.shop-qv__media { position: relative; display: grid; place-items: center; padding: 30px; background: linear-gradient(180deg, #f6f6f5, #e4e4e2); }
.shop-qv__img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.shop-qv__body { display: flex; flex-direction: column; gap: 14px; max-height: min(86vh, 760px); padding: 36px 34px 30px; overflow-y: auto; overscroll-behavior: contain; }
.shop-qv__title { margin: 0; padding-inline-end: 44px; font-size: clamp(26px, 2vw, 38px); font-weight: 300; line-height: 1.2em; }
.shop-qv__text { margin: 0; font-size: 16px; line-height: 1.75em; color: var(--c-ink); }
.shop-qv__label, .shop-qv__q legend { margin: 4px 0 0; padding: 0; font-size: 14px; font-weight: 700; color: var(--c-black); }
.shop-qv__includes { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--c-ink); }
.shop-qv__includes li::before { content: "✓ "; }
.shop-qv__q { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.shop-qv__q legend { width: 100%; margin-bottom: 8px; }
.shop-opt { position: relative; cursor: pointer; }
.shop-opt input { position: absolute; opacity: 0; pointer-events: none; }
.shop-opt span { display: block; padding: 9px 16px; border: 1px solid rgb(0 0 0 / .18); border-radius: 100px; background: var(--c-white); font-size: 14px; line-height: 1.2; transition: background-color .25s, color .25s, border-color .25s; }
.shop-opt input:checked + span { border-color: var(--c-black); background: var(--c-black); color: var(--c-white); }
.shop-opt input:focus-visible + span { outline: 2px solid var(--c-black); outline-offset: 2px; }
.shop-qv__note textarea { width: 100%; padding: 12px 16px; border: 1px solid rgb(0 0 0 / .18); border-radius: 18px; background: var(--c-white); font: 400 14px/1.6 var(--f-ar); resize: vertical; }
.shop-qv__send { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 30px 0 14px var(--c-paper), 0 -18px 18px 6px var(--c-paper); display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 8px; padding-inline-start: 24px; border-radius: 100px; background: var(--c-black); color: var(--c-white); font-size: 17px; }
.shop-qv__send .shop-card__btn-icon { width: 40px; height: 40px; background: var(--c-white); color: var(--c-black); }
.shop-qv__more { align-self: center; font-size: 13px; color: var(--c-muted); text-decoration: underline; text-underline-offset: 4px; }
.shop-qv__close-form { position: absolute; top: 18px; left: 18px; z-index: 2; margin: 0; }
.shop-qv__close { position: relative; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--c-white); cursor: pointer; }
.shop-qv__close span::before, .shop-qv__close span::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: var(--c-black); transform: rotate(45deg); }
.shop-qv__close span::after { transform: rotate(-45deg); }

@media (max-width: 1024px) {
	.home-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.home-shop { padding: 0; }
	.home-shop__head { padding: 0 20px; }
	.home-shop__title { font-size: 36px; }
	.home-shop__lead { font-size: 15px; }
	/* one sideways row that snaps, the next card peeking */
	.home-shop__grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; gap: 12px;
		padding: 4px 20px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
	}
	.home-shop__grid::-webkit-scrollbar { display: none; }
	.shop-card { scroll-snap-align: start; border-radius: 26px; }
	.shop-card__media { border-radius: 18px; }
	.shop-card__title { font-size: 22px; }
	/* D-067: no text on the picture on phones: the title on top, the picture under it */
	.shop-card__media { display: flex; flex-direction: column; aspect-ratio: auto; }
	.shop-card__label { position: static; padding: 16px 16px 0; }
	.shop-card__img, .shop-card--store .shop-card__img, .shop-card--wide .shop-card__img { position: static; width: 100%; height: 170px; margin: 6px 0 10px; padding: 0 10px; box-sizing: border-box; }
	.home-shop__form { padding: 0 20px; }
	/* quick view: a sheet from the bottom */
	/* D-072: dvh = the visible screen (vh counted the browser's bar, so the sheet's top, picture and ×,
	 * went off the screen); the sheet never grows past it and only its text scrolls */
	.shop-qv { width: 100vw; height: auto; max-height: 86vh; max-height: calc(100dvh - 56px); margin: auto 0 0; border-radius: 28px 28px 0 0; transform: translateY(40px); }
	.shop-qv[open] { overflow: hidden; }
	.shop-qv__close-form { top: 12px; left: 12px; }
	.shop-qv__close { box-shadow: 0 2px 10px rgb(0 0 0 / .12); }
	.shop-qv[open] { grid-template-columns: none; grid-template-rows: auto minmax(0, 1fr); }
	.shop-qv__media { padding: 18px 40px 10px; }
	.shop-qv__img { max-height: 22vh; max-height: 22dvh; }
	.shop-qv__body { max-height: none; min-height: 0; padding: 18px 20px 24px; gap: 12px; }
	.shop-qv__title { font-size: 26px; }
	.shop-qv__text { font-size: 15px; }
}

/* ====================================================================== reviews */
.home-reviews { padding: 80px 0 14vh; overflow: hidden; }
.home-reviews__head { display: flex; flex-direction: column; gap: 18px; padding: 0 6vw; margin-bottom: clamp(36px, 6vh, 70px); }
.home-reviews__head .home-reviews__title { margin: 0; font-size: clamp(40px, 3.6vw, 76px); font-weight: 300; line-height: 1.15em; }
.home-marquee { position: relative; display: flex; flex-direction: column; gap: 18px; }
.home-marquee__row { overflow-x: auto; direction: ltr; scrollbar-width: none; touch-action: pan-y; }
.home-marquee__row::-webkit-scrollbar { display: none; }
.home-marquee.is-live .home-marquee__row { overflow: hidden; }
.home-marquee.is-live { cursor: grab; user-select: none; -webkit-user-select: none; }
.home-marquee.is-dragging { cursor: grabbing; }
.home-marquee__track { display: flex; gap: 18px; width: max-content; padding: 0 6vw; direction: ltr; will-change: transform; }
.home-marquee.is-live .home-marquee__track { padding: 0; }
.home-review {
	direction: rtl; display: flex; flex-direction: column; gap: 22px; width: clamp(300px, 30vw, 480px); margin: 0;
	padding: 30px 32px; border-radius: 30px; background: var(--c-white); text-align: start;
}
.home-review__mark { width: 34px; height: auto; fill: var(--c-black); }
.home-review .home-review__text { flex: 1; margin: 0; font-size: clamp(18px, 1.1vw, 23px); line-height: 1.7em; color: var(--c-black); }
.home-review__who { display: flex; align-items: center; gap: 14px; margin: 0; font-family: var(--f-ar); }
.home-review__who b { display: block; font-size: 16px; font-weight: 500; }
.home-review__who small { display: block; margin-top: 3px; font-size: 13px; color: var(--c-muted); }
.home-review__avatar {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-black); color: var(--c-white);
	font-size: 18px; font-weight: 500;
}
/* the round cursor (desktop with a mouse) */
.home-marquee__cursor {
	position: fixed; top: 0; left: 0; z-index: 30; display: grid; place-items: center;
	width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--c-black); color: var(--c-white);
	pointer-events: none; opacity: 0; transform: translate3d(var(--cx, 50vw), var(--cy, 50vh), 0);
	transition: opacity .25s;
}
.home-marquee__cursor svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2, .6, .3, 1); }
.home-marquee.is-cursor .home-marquee__cursor { opacity: 1; }
.home-marquee.is-cursor.is-dragging .home-marquee__cursor svg { transform: scaleX(1.25); }
.home-marquee.is-cursor { cursor: none; }
.mouse-dot.is-off { opacity: 0 !important; }
@media (max-width: 767px) {
	.home-reviews { padding: 60px 0 90px; }
	.home-reviews__head { padding: 0 20px; }
	/* D-072: smaller cards with smaller text, so a whole review reads inside the screen */
	.home-review { width: 68vw; gap: 14px; padding: 18px 18px 20px; border-radius: 22px; }
	.home-review__mark { width: 24px; }
	.home-review .home-review__text { font-size: 15px; line-height: 1.7em; }
	.home-review__who b { font-size: 14px; }
	.home-review__who small { font-size: 12px; }
	.home-review__avatar { width: 36px; height: 36px; font-size: 15px; }
	.home-marquee, .home-marquee__track { gap: 12px; }
}

/* ====================================================================== stores (D-048)
 * Ported from samar-site/src/styles/stores.css (samar.saqlan.com): six whole store pages, each in a
 * small browser frame; hover (or keyboard focus) scrolls the page inside it, the card in view
 * does it on its own on touch screens (home-sections.js .is-playing). CSS transforms on a lazy
 * <img>. --ratio (height / width of the capture) is set per card; with the screen as an
 * inline-size container the travel is exact: image height = ratio × 100cqw, window = 1.25 × 100cqw. */
.home-stores { padding: 14vh 6vw 12vh; }
.home-stores__head { display: flex; flex-direction: column; gap: 18px; max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.home-stores__title, .home-gallery__title { margin: 0; font-size: clamp(40px, 3.6vw, 76px); font-weight: 300; line-height: 1.15em; }
.stores__grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 2rem); margin: 0; padding: 0; list-style: none;
}
.store {
	--travel: calc((var(--ratio) - 1.25) * -100cqw);
	--scroll-time: calc((var(--ratio) - 1.25) * 1.3s);
	min-width: 0;
}
.store__frame {
	display: block; overflow: hidden; border-radius: 1rem; background: var(--c-white);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1), 0 24px 50px -32px rgb(0 0 0 / .45);
	transition: transform 560ms cubic-bezier(.16, 1, .3, 1), box-shadow 560ms cubic-bezier(.16, 1, .3, 1);
	outline-offset: 4px;
}
.store__bar { display: flex; gap: .35rem; padding: .7rem .9rem; background: #f3f3f1; box-shadow: inset 0 -1px 0 rgb(0 0 0 / .1); }
.store__bar i { width: .5rem; height: .5rem; border-radius: 50%; background: rgb(0 0 0 / .2); }
.store__screen { position: relative; aspect-ratio: 4 / 5; overflow: hidden; container-type: inline-size; background: #dcdcd9; }
.store__screen img {
	position: absolute; inset-block-start: 0; inset-inline: 0; width: 100%; height: auto; max-width: none;
	transition: transform .9s cubic-bezier(.16, 1, .3, 1); /* the way back up is quick */
}
.store__name { margin: 1rem 0 0; font-size: var(--t-h6); font-weight: 500; color: var(--c-black); }
.store__sector { margin: 4px 0 0; font-size: var(--t-small); color: var(--c-muted); }
@media (hover: hover) {
	.store__frame:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2), 0 34px 60px -30px rgb(0 0 0 / .5); }
	.store__frame:hover img { transform: translateY(var(--travel)); transition: transform var(--scroll-time) cubic-bezier(.45, 0, .55, 1); }
}
.store__frame:focus-visible img { transform: translateY(var(--travel)); transition: transform var(--scroll-time) cubic-bezier(.45, 0, .55, 1); }
@keyframes store-auto { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(var(--travel)); } }
.store.is-playing .store__screen img { animation: store-auto calc(var(--scroll-time) * 2) ease-in-out infinite alternate; }
@media (max-width: 767px) {
	.home-stores { padding: 70px 20px 60px; }
	.stores__grid {
		display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
		margin-inline: -20px; padding-inline: 20px; padding-block-end: .5rem; scrollbar-width: none;
	}
	.stores__grid::-webkit-scrollbar { display: none; }
	.store { flex: 0 0 78vw; scroll-snap-align: center; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.home-stores { padding: 90px 30px 70px; }
	.stores__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.store__frame:hover img, .store__frame:focus-visible img, .store.is-playing .store__screen img { transform: none; animation: none; }
}

/* ====================================================================== banner spiral (D-048)
 * Ported from samar-site/src/styles/gallery.css + gl.css. Without WebGL (no html.gl-capable) an
 * ordinary grid of the banners. With it the section is a tall scroll track whose stage sticks
 * while the helix turns (gallery-gl.js draws the cards on one fixed canvas). */
.gallery { --count: 8; position: relative; padding-block: clamp(5rem, 12vh, 11rem); background: var(--c-paper); }
.gallery__stage { display: flex; flex-direction: column; padding-inline: 6vw; }
.gallery__stage > * { position: relative; z-index: 10; }
.gallery__head { display: flex; flex-direction: column; gap: 18px; }
.gallery__list {
	display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
	margin: 3rem 0 0; padding: 0; list-style: none; will-change: transform;
}
.gallery__card {
	position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
	background: #dcdcd9; text-align: start; cursor: pointer;
}
.gallery__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(.16, 1, .3, 1); }
.gallery__card:hover img { transform: scale(1.04); }
.gallery__card-label {
	position: absolute; inset-inline: 0; inset-block-end: 0; padding: 2rem 1rem .75rem; font-size: var(--t-small);
	color: #f7f3ea; background: linear-gradient(to top, rgb(0 0 0 / .7), transparent);
}
.gallery__caption-count { margin: 0; font-family: var(--f-en); font-size: var(--t-h6); color: var(--c-muted); }
html.gl-capable .gallery { height: calc(100dvh + (var(--count) - 1) * 32vh); padding-block: 0; }
html.gl-capable .gallery__stage {
	position: sticky; top: 0; height: 100dvh; overflow: hidden; padding-block: 6.5rem 2rem;
}
html.gl-capable .gallery .gallery__caption-count { position: absolute; inset-inline-start: 6vw; inset-block-end: 4.5rem; }
html.gl-capable .gallery.is-live .gallery__card { background: none; }
html.gl-capable .gallery.is-live .gallery__card img { visibility: hidden; }
html.gl-capable .gallery.is-live .gallery__list { transition: opacity 560ms cubic-bezier(.33, 1, .68, 1); }
html.gl-capable .gallery.is-live[data-mode='spiral'] .gallery__list { opacity: 0; pointer-events: none; }
html.gl-capable .gallery.is-live[data-mode='list'] .gallery__list { transition-delay: .8s; }
.gl-canvas {
	position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 2; width: 100vw; height: 100dvh; max-width: none;
	pointer-events: none;
}
@media (max-width: 767px) {
	.gallery__stage { padding-inline: 20px; }
	html.gl-capable .gallery .gallery__caption-count { inset-inline-start: 20px; }
}

/* ====================================================================== logos */
.home-logos { padding: 14vh 6vw 10vh; }
.home-logos__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(30px, 5vh, 60px); }
.home-logos__head .home-eyebrow { flex-basis: 100%; }
.home-logos__title { margin: 0; max-width: 14em; font-size: clamp(40px, 3.6vw, 76px); font-weight: 300; line-height: 1.15em; }
.home-logos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.home-logo {
	display: grid; place-items: center; aspect-ratio: 1 / .7; border-radius: 26px; background: var(--c-white);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); transition: transform .5s cubic-bezier(.2, .6, .3, 1), box-shadow .5s;
}
.home-logo__mark { max-width: 70%; max-height: 64%; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: .85; transition: filter .5s, opacity .5s; }
.home-logo:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 22px 44px -26px rgb(0 0 0 / .35); }
.home-logo:hover .home-logo__mark { filter: none; opacity: 1; }
@media (hover: none) { .home-logo__mark { filter: none; opacity: 1; } }
@media (max-width: 1024px) {
	.home-logos { padding: 90px 30px 70px; }
	.home-logos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.home-logos { padding: 70px 20px 50px; }
	.home-logos__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.home-logo { border-radius: 20px; }
}

/* ====================================================================== about + quick questions */
.home-intro { gap: 7vw; padding: 12vh 6vw 14vh; border-top: 1px solid rgb(0 0 0 / .1); }
.home-intro__about { gap: 28px; }
.home-intro__title { font-size: clamp(36px, 3vw, 64px); }
.home-intro__text { max-width: 32em; font-size: clamp(17px, 1vw, 21px); }
.home-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 6px 0; border-block: 1px solid rgb(0 0 0 / .14); }
.home-stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 22px 0; }
.home-stats__item + .home-stats__item { padding-inline-start: 22px; border-inline-start: 1px solid rgb(0 0 0 / .14); }
.home-stats dd { margin: 0; font-family: var(--f-en); font-size: clamp(30px, 2.4vw, 50px); font-weight: 300; line-height: 1em; }
.home-stats dt { font-size: 14px; line-height: 1.5em; color: var(--c-muted); }

.home-faq { border-top: 0; }
.home-faq__label { margin: 0 0 14px; font-size: var(--t-small); font-weight: 500; color: var(--c-muted); }
.home-faq__item:first-of-type { border-top: 1px solid rgb(0 0 0 / .18); }
.home-faq__item summary { justify-content: flex-start; }
.home-faq__item summary::after { margin-inline-start: auto; }
.home-faq__num { flex: none; width: 2.6em; font-family: var(--f-en); font-size: 14px; font-weight: 500; color: var(--c-muted); }
.home-faq__q { transition: transform .45s cubic-bezier(.2, .6, .3, 1); }
.home-faq__item summary:hover .home-faq__q { transform: translateX(-6px); }
.home-faq__item p { margin: -6px 0 26px; padding-inline-start: calc(2.6em * 14 / 18); }
/* smooth open/close where the browser can animate to auto height (Chromium); instant elsewhere */
.home-faq { interpolate-size: allow-keywords; }
.home-faq__item::details-content {
	height: 0; overflow: clip; opacity: 0;
	transition: height .5s cubic-bezier(.2, .6, .3, 1), opacity .4s, content-visibility .5s allow-discrete;
}
.home-faq__item[open]::details-content { height: auto; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .home-faq__item::details-content { transition: none; } }
.home-faq__ask {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 28px; padding: 22px 26px;
	border-radius: 24px; background: var(--c-black); color: var(--c-white); font-size: var(--t-h6);
}
.home-faq__ask b { font-weight: 500; }
.home-faq__ask b span { display: inline-block; transition: transform .4s cubic-bezier(.2, .6, .3, 1); }
.home-faq__ask:hover b span { transform: translateX(-6px); }
@media (max-width: 767px) {
	.home-stats dd { font-size: 26px; }
	.home-stats__item + .home-stats__item { padding-inline-start: 14px; }
	.home-intro__about .home-btn--line { align-self: stretch; justify-content: space-between; }
}

/* ---------- D-050 (2026-11-17): new order — works, stores, banners, logos, «ابدأ اليوم», services,
 * questions, reviews last. The stores slide over the last pinned work card; the rest are plain
 * sections (services no longer pinned). ---------- */
.home-stores { position: relative; z-index: 8; margin-top: -60px; border-radius: 60px 60px 0 0; background: var(--c-paper); }
.home-start { margin-top: 0; }
.home-services { position: relative; top: auto !important; z-index: 8; margin-top: -60px; }
.home-reviews { margin-top: 0; border-radius: 0; border-top: 1px solid rgb(0 0 0 / .1); }
@media (max-width: 767px) {
	.home-stores { margin-top: -40px; border-radius: 40px 40px 0 0; }
	.home-services { margin-top: -40px; }
	.home-reviews { border-radius: 0; }
}

/* ---------- D-050: logos as two sliding rows (theme.selia-tech.com layout) ----------
 * Square grey tiles, logos in grey, the rows moving opposite ways forever (transform only, paused
 * under the pointer and off screen via animation-play-state), both ends fading into the page
 * through two paper-coloured gradients laid over them (a mask on a moving row costs a re-draw
 * every frame). */
.home-logos { padding-inline: 0; overflow: hidden; }
.home-logos__head { padding-inline: 6vw; }
.home-logos__rows { position: relative; display: flex; flex-direction: column; gap: 18px; direction: ltr; }
.home-logos__rows::before, .home-logos__rows::after {
	content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: min(18vw, 260px); pointer-events: none;
}
.home-logos__rows::before { left: 0; background: linear-gradient(to right, var(--c-paper), rgb(233 233 231 / 0)); }
.home-logos__rows::after { right: 0; background: linear-gradient(to left, var(--c-paper), rgb(233 233 231 / 0)); }
.home-logos__row {
	display: flex; gap: 18px; width: max-content; margin: 0; padding: 0; list-style: none;
	animation: logos-slide 40s linear infinite; will-change: transform;
}
.home-logos__row--rev { animation-direction: reverse; }
.home-logos__rows:hover .home-logos__row, .home-logos.is-off .home-logos__row { animation-play-state: paused; }
@keyframes logos-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - 9px), 0, 0); } }
.home-logos .home-logo {
	/* 2026-11-24: landscape cards. The two tall logos (With Sara, Konoz) made the square ones look tall;
	   With Sara is out and Konoz is scaled down (content/pages/home.json logos[].scale). */
	flex: none; display: grid; place-items: center; width: clamp(132px, 10vw, 168px); aspect-ratio: 5 / 3; padding: 16px 22px;
	border-radius: 14px; background: #f3f3f2; box-shadow: none; transform: none;
}
.home-logos .home-logo__mark { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; transform: scale(var(--logo-scale, 1)); filter: grayscale(1) brightness(.55) contrast(1.3); opacity: .8; transition: filter .4s, opacity .4s; }
.home-logos .home-logo:hover { transform: none; box-shadow: none; }
.home-logos .home-logo:hover .home-logo__mark { filter: none; opacity: 1; }
@media (max-width: 767px) {
	.home-logos__rows, .home-logos__row { gap: 12px; }
	@keyframes logos-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - 6px), 0, 0); } }
	.home-logos .home-logo { width: 104px; padding: 12px 14px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .home-logos__row { animation: none; } }

/* ---------- D-050: «عني» + questions — two columns of the same height, «عني» labelled like
 * «أسئلة سريعة» (a small label over a rule), shorter text, «شوف الأسعار» instead of the about page. */
.home-intro { align-items: stretch; }
.home-intro__about { display: flex; flex-direction: column; gap: 22px; }
.home-intro__label { margin: 0 0 -8px; }
.home-intro__label + .home-intro__title { padding-top: 26px; border-top: 1px solid rgb(0 0 0 / .18); }
.home-intro__title { font-size: clamp(32px, 2.6vw, 54px); }
.home-intro .home-stats { margin-top: auto; }
.home-intro__cta { align-self: stretch; justify-content: space-between; }
.home-faq { display: flex; flex-direction: column; }
.home-faq__ask { margin-top: auto; }
.home-faq__item:last-of-type { margin-bottom: 28px; }


/* D-053: the review rows fade out at both ends, strongly (as the logo rows), through two
 * paper-coloured gradients over them (no mask on moving rows). */
.home-marquee::before, .home-marquee::after {
	content: ""; position: absolute; top: -2px; bottom: -2px; z-index: 3; width: min(24vw, 340px); pointer-events: none;
}
.home-marquee::before { left: 0; background: linear-gradient(to right, var(--c-paper) 18%, rgb(233 233 231 / .85) 45%, rgb(233 233 231 / 0)); }
.home-marquee::after { right: 0; background: linear-gradient(to left, var(--c-paper) 18%, rgb(233 233 231 / .85) 45%, rgb(233 233 231 / 0)); }
@media (max-width: 767px) { .home-marquee::before, .home-marquee::after { width: 7vw; } }


/* T078: lowest price on the service card and the price lines in its quick view. */
.shop-card__price { margin-inline-start: auto; padding-inline-end: 10px; font-size: 12px; opacity: .75; white-space: nowrap; }
.shop-card__price b { font-weight: 600; font-size: 14px; }
.shop-qv__prices { list-style: none; margin: 0 0 6px; padding: 0; }
.shop-qv__prices li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgb(127 127 127 / .2); font-size: 14px; }
.shop-qv__prices b { font-weight: 600; white-space: nowrap; }
.shop-qv__price-note { margin: 0 0 14px; font-size: 12px; color: var(--c-muted); }

.shop-card__price--m { display: none; }
@media (max-width: 767px) {
	.shop-card__btn .shop-card__price { display: none; }
	.shop-card__price--m { display: block; margin: 2px 0 0; padding: 0; }
}
