/* ==========================================================================
   Home: last three sections before the footer.
   0. "أحدث المقالات" — image cards.
   1. Site introduction — one wide photo banner (--about-bg / --about-bg-m set
      inline): logo, title, text and a button; the four features float as
      tilted white badges over the photo's gold coupons.
   2. "أسئلة شائعة" — numbered accordion beside a sticky dark "عندك سؤال آخر؟" card.
   Home backgrounds alternate white / cream:
   categories (white) → latest (cream) → season (white) → stores (cream) →
   articles (white) → about (cream) → FAQ (white) → footer.
   Uses the tokens from sc-header.css.
   ========================================================================== */

/* 0. Articles */
.sc-hposts { padding-block: 52px 60px; background: #fff; }
.sc-hposts__all { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 2px solid var(--sc-green); border-radius: var(--sc-pill); color: var(--sc-green); font-size: 14px; font-weight: 800; transition: background .2s, color .2s; }
.sc-hposts__all:hover { background: var(--sc-green); color: #fff; }
[dir="ltr"] .sc-hposts__all .sc-icon, [dir="ltr"] .sc-pcard__more .sc-icon { transform: scaleX(-1); }
.sc-hposts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.sc-pcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--sc-line); border-radius: 24px; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.sc-pcard:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 20px 38px rgba(28, 43, 51, .12); }
.sc-pcard__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0B3A2C; }
.sc-pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sc-pcard:hover .sc-pcard__img img { transform: scale(1.06); }
.sc-pcard__ph { display: grid; place-items: center; height: 100%; color: #F5B82E; font-size: 64px; font-weight: 900; }
.sc-pcard__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.sc-pcard__date { display: inline-flex; align-items: center; gap: 6px; color: var(--sc-muted); font-size: 12.5px; font-weight: 700; }
.sc-pcard__title { display: -webkit-box; margin: 0; overflow: hidden; color: var(--sc-ink); font-size: 17px; font-weight: 900; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-pcard:hover .sc-pcard__title { color: var(--sc-green); }
.sc-pcard__excerpt { display: -webkit-box; overflow: hidden; color: #5C6B66; font-size: 13.5px; line-height: 1.85; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-pcard__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--sc-green); font-size: 13.5px; font-weight: 800; }

/* Shared gold pill button (about banner + FAQ card) */
.sc-about-home__btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--sc-pill); background: linear-gradient(135deg, #FFD86B, #F5B82E); color: #2B2000; font-size: 15px; font-weight: 900; box-shadow: 0 10px 22px rgba(245, 184, 46, .3); transition: transform .2s; }
.sc-about-home__btn:hover { transform: translateY(-2px); color: #2B2000; }
[dir="ltr"] .sc-about-home__btn .sc-icon { transform: scaleX(-1); }

/* 1. Site introduction banner */
.sc-about-home { padding-block: 52px 60px; background: #F4F1EA; }
.sc-about-home__banner { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 420px; padding: 48px 52px; overflow: hidden; border-radius: 30px; color: #fff; background: #0B3A2C var(--about-bg) center / cover no-repeat; box-shadow: 0 24px 50px rgba(7, 19, 15, .2); }
/* Dark on the text side, clear on the badges side so the photo's coupons show. */
.sc-about-home__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(5, 28, 21, .9) 0%, rgba(5, 28, 21, .6) 45%, rgba(5, 28, 21, .1) 80%); }
[dir="ltr"] .sc-about-home__banner::before { background: linear-gradient(to right, rgba(5, 28, 21, .9) 0%, rgba(5, 28, 21, .6) 45%, rgba(5, 28, 21, .1) 80%); }
/* Thin gold frame inside the edge, like the season banner */
.sc-about-home__banner::after { content: ""; position: absolute; inset: 10px; z-index: -1; border: 1px solid rgba(245, 184, 46, .25); border-radius: 22px; pointer-events: none; }
.sc-about-home__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sc-about-home__logo img { display: block; width: 210px; max-width: 100%; height: auto; }
.sc-about-home__title { margin: 0; color: #fff; font-size: clamp(22px, 2.4vw, 32px); font-weight: 900; line-height: 1.45; }
.sc-about-home__text p { margin: 0 0 6px; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 2; }

/* Button + a small trust line beside it */
.sc-about-home__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sc-about-home__trust { display: inline-flex; align-items: center; gap: 6px; color: #FFD86B; font-size: 13.5px; font-weight: 800; }

/* Stage: the phone floats in the middle; the four badges sit around it
   (two above, two below), overlapping its edges. */
.sc-about-home__stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.sc-about-home__phone { position: relative; z-index: 1; width: auto; max-width: 100%; height: 420px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: sc-about-bob 6s ease-in-out infinite; }
.sc-about-home__badges { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.sc-about-home__badge { position: absolute; max-width: 250px; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .96); color: #0B2E24; box-shadow: 0 18px 34px rgba(0, 0, 0, .3); animation: sc-about-bob 5s ease-in-out infinite; }
.sc-about-home__badge span { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #FFD86B, #F5B82E); color: #2B2000; }
.sc-about-home__badge b { display: grid; gap: 3px; font-size: 15px; font-weight: 900; }
.sc-about-home__badge small { color: #5C6B66; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.sc-about-home__badge--1 { top: 4%; inset-inline-start: 0; rotate: -4deg; }
.sc-about-home__badge--2 { top: 22%; inset-inline-end: 0; rotate: 4deg; animation-delay: -1.2s; }
.sc-about-home__badge--3 { bottom: 24%; inset-inline-start: -2%; rotate: 3deg; animation-delay: -2.4s; }
.sc-about-home__badge--4 { bottom: 2%; inset-inline-end: 4%; rotate: -3deg; background: linear-gradient(135deg, #FFE59A, #F5B82E); animation-delay: -3.6s; }
.sc-about-home__badge--4 span { background: #0B2E24; color: #FFD86B; }
.sc-about-home__badge--4 small { color: #5A4300; }
@keyframes sc-about-bob { 50% { translate: 0 -8px; } }

/* 2. FAQ: questions + sticky side card */
.sc-hfaq { padding-block: 52px 60px; background: #fff; }
.sc-hfaq__layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sc-hfaq__list { display: flex; flex-direction: column; gap: 12px; }
/* Side card: clean green gradient + gold frame; the 3D "?" art floats at the top. */
.sc-hfaq__ask { position: sticky; top: 110px; isolation: isolate; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 28px 30px; overflow: hidden; border-radius: 28px; color: #fff;
	background: radial-gradient(260px 220px at 50% 10%, rgba(245, 184, 46, .28), transparent 70%), linear-gradient(160deg, #0F5A44 0%, #0A3328 100%); box-shadow: 0 22px 44px rgba(7, 19, 15, .2); }
.sc-hfaq__ask::after { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1px solid rgba(245, 184, 46, .25); border-radius: 21px; }
.sc-hfaq__art { display: block; width: 82%; max-width: 280px; height: auto; margin: 0 auto 2px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); animation: sc-about-bob 6s ease-in-out infinite; }
.sc-hfaq__ask h3 { text-align: center; }
.sc-hfaq__ask > p { text-align: center; }
.sc-hfaq__ask h3 { margin: 0; color: #fff; font-size: 24px; font-weight: 900; }
.sc-hfaq__ask p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; line-height: 1.95; }
.sc-hfaq__ask .sc-about-home__btn { justify-content: center; }
/* Ways to reach us: frosted rows */
.sc-hfaq__ways { display: grid; gap: 10px; margin: 4px 0; padding: 0; list-style: none; }
.sc-hfaq__ways a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .2s, background .2s; }
.sc-hfaq__ways a:hover { border-color: rgba(245, 184, 46, .7); background: rgba(255, 255, 255, .14); color: #fff; }
.sc-hfaq__ways span { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #FFD86B, #F5B82E); color: #2B2000; }
.sc-hfaq__ways b { display: grid; gap: 1px; font-size: 14.5px; font-weight: 800; }
.sc-hfaq__ways small { color: rgba(255, 255, 255, .65); font-size: 12px; font-weight: 600; }
.sc-hfaq__ways i { font-style: normal; text-align: start; unicode-bidi: plaintext; }

.sc-qa { border: 1px solid var(--sc-line); border-radius: 18px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.sc-qa:hover { border-color: rgba(15, 90, 68, .35); }
.sc-qa[open] { border-color: var(--sc-green); box-shadow: 0 14px 28px rgba(15, 90, 68, .1); }
.sc-qa summary { display: flex; align-items: center; gap: 14px; padding: 15px 16px; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; }
.sc-qa summary::-webkit-details-marker { display: none; }
.sc-qa summary span { flex: 1; }
/* Gold number badge */
.sc-qa summary em { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #FFF4D6; color: #A87300; font-size: 14px; font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.sc-qa[open] summary em { background: linear-gradient(135deg, #FFD86B, #F5B82E); color: #2B2000; }
/* + / − toggle */
.sc-qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sc-green-soft); transition: background .2s; }
.sc-qa summary i::before, .sc-qa summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 2px; border-radius: 2px; background: var(--sc-green); transform: translate(-50%, -50%); transition: transform .25s, background .2s; }
.sc-qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.sc-qa[open] summary i { background: var(--sc-green); }
.sc-qa[open] summary i::before, .sc-qa[open] summary i::after { background: #fff; }
.sc-qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.sc-qa p { margin: 0; padding: 0 68px 18px 18px; color: #4A5A55; font-size: 14px; line-height: 1.95; }
[dir="rtl"] .sc-qa p { padding: 0 68px 18px 18px; }

@media (max-width: 1000px) {
	.sc-hposts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sc-about-home__banner { grid-template-columns: 1fr; }
	.sc-about-home__stage { min-height: 400px; }
	.sc-hfaq__layout { grid-template-columns: 1fr; }
	.sc-hfaq__ask { position: relative; top: auto; }
}
@media (max-width: 600px) {
	.sc-hposts { padding-block: 32px 40px; }
	.sc-hposts__grid { grid-template-columns: 1fr; gap: 14px; }
	.sc-hposts__all { padding: 6px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; gap: 4px; }
	.sc-about-home { padding-block: 32px 40px; }
	/* Portrait photo, text centred over its calm middle. */
	.sc-about-home__banner { min-height: 0; padding: 70px 20px; border-radius: 22px; background-image: var(--about-bg-m, var(--about-bg)); text-align: center; }
	.sc-about-home__banner::before, [dir="ltr"] .sc-about-home__banner::before { background: rgba(5, 28, 21, .6); }
	.sc-about-home__banner::after { inset: 6px; border-radius: 17px; }
	.sc-about-home__text { align-items: center; }
	.sc-about-home__logo img { width: 180px; }
	.sc-about-home__text p { font-size: 14px; }
	.sc-about-home__btn { padding: 12px 20px; font-size: 14px; }
	.sc-about-home__cta { justify-content: center; }
	/* Small screens: smaller phone, compact badges (icon + title only). */
	.sc-about-home__stage { min-height: 330px; text-align: start; }
	.sc-about-home__phone { height: 300px; }
	.sc-about-home__badge { max-width: 170px; gap: 7px; padding: 8px 10px; border-radius: 13px; }
	.sc-about-home__badge span { width: 30px; height: 30px; border-radius: 10px; }
	.sc-about-home__badge b { font-size: 12px; }
	.sc-about-home__badge small { display: none; }
	.sc-hfaq { padding-block: 40px 48px; }
	.sc-hfaq__ask { padding: 26px 22px; }
	.sc-qa summary { gap: 10px; padding: 12px; font-size: 14px; }
	.sc-qa summary em { width: 32px; height: 32px; font-size: 12.5px; }
	.sc-qa p, [dir="rtl"] .sc-qa p { padding: 0 14px 14px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.sc-about-home__badge { animation: none; }
}
