/**
 * Al Faisal Custom — front page sections.
 */

/* Front page content runs full width; sections provide their own container.
   Astra 4 makes .ast-container flex — force block so sections stack normally. */
body.home .ast-container,
body.blog .ast-container {
	display: block;
	flex-direction: unset;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */

.fas-hero {
	position: relative;
	background: #fff;
	overflow: hidden;
}

.fas-hero__track {
	display: flex;
	transition: transform 0.55s cubic-bezier(0.33, 0.9, 0.35, 1);
	will-change: transform;
	/* horizontal swipes go to the slider, vertical page-scroll stays native */
	touch-action: pan-y;
}

.fas-hero__slide {
	flex: 0 0 100%;
	min-width: 0;
	line-height: 0;
}

.fas-hero__slide img {
	width: 100%;
	height: auto;
	display: block;
	user-select: none;
	-webkit-user-drag: none;
}

.fas-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	padding: 0;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: var(--fas-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
	transition: background 0.2s ease, color 0.2s ease;
}

.fas-hero__arrow:hover {
	background: var(--fas-blue);
	color: #fff;
}

.fas-hero__arrow--prev {
	left: 18px;
}

.fas-hero__arrow--next {
	right: 18px;
}

.fas-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
}

.fas-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
	transition: background 0.2s ease, transform 0.2s ease;
}

.fas-hero__dot.is-active {
	background: var(--fas-blue);
	transform: scale(1.25);
}

/* ============================================================
   CATEGORY TILES
   ============================================================ */

.fas-cats {
	padding: 46px 0 34px;
	background: #fff;
}

.fas-cats__marquee {
	overflow-x: auto;
	overflow-y: hidden;
	position: relative;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.fas-cats__marquee::-webkit-scrollbar {
	display: none;
}

.fas-cats__track {
	display: flex;
	width: max-content;
}

.fas-cats__group {
	display: flex;
}

.fas-cat {
	flex: 0 0 auto;
	width: 150px;
	margin-right: 34px;
	background: transparent;
	border: 0;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transition: transform 0.18s ease;
}

.fas-cat:hover {
	transform: translateY(-3px);
}

.fas-cat__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid var(--fas-line);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.fas-cat__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
	transition: transform 0.3s ease;
}

.fas-cat:hover .fas-cat__img img {
	transform: scale(1.05);
}

.fas-cat:hover .fas-cat__img {
	border-color: var(--fas-blue);
}

.fas-cat__icon {
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: #fff;
	color: var(--fas-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fas-cat__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0;
	text-align: center;
}

.fas-cat__name {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--fas-ink);
	line-height: 1.25;
	text-align: center;
}

.fas-cat__more {
	display: none;
}

.fas-cats__nav {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--fas-line);
	background: #fff;
	color: var(--fas-blue);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.fas-cats__nav:hover {
	background: var(--fas-blue);
	color: #fff;
}

.fas-cats__nav--prev {
	left: -14px;
}

.fas-cats__nav--next {
	right: -14px;
}

.fas-cats__nav[hidden] {
	display: none;
}

/* ============================================================
   FEATURED COLLECTION BANNERS
   ============================================================ */

.fas-colls {
	padding: 34px 0 14px;
	background: #fff;
}

.fas-colls__title {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: var(--fas-ink);
	text-align: center;
}

.fas-colls__sub {
	margin: 6px 0 18px;
	text-align: center;
	color: var(--fas-muted);
	font-size: 13.5px;
}

.fas-colls__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

@media (max-width: 1024px) {
	.fas-colls__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fas-coll {
	display: flex;
	flex-direction: column;
	background: #f4f6fa;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	padding: 14px 12px 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fas-coll:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.fas-coll__title {
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--fas-blue);
	text-align: center;
	margin-bottom: 10px;
	min-height: 20px;
}

.fas-coll__img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.fas-coll__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.fas-coll:hover .fas-coll__img img {
	transform: scale(1.04);
}

/* --- Salma — intro video card (click → AI chat popup) --- */
.fas-salma-vid {
	display: block;
	max-width: 560px;
	margin: 22px auto 6px;
	border-radius: 26px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 14px 32px rgba(59, 47, 143, 0.22);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fas-salma-vid:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(59, 47, 143, 0.32);
}

.fas-salma-vid:focus-visible {
	outline: 3px solid var(--fas-blue);
	outline-offset: 3px;
}

.fas-salma-vid video {
	display: block;
	width: 100%;
	height: auto;
}

/* Desktop shows the fixed floating Salma widget instead (no duplicate). */
@media (min-width: 769px) {
	.fas-salma-vid {
		display: none;
	}
}

/* ============================================================
   PRODUCT ROWS
   ============================================================ */

.fas-products {
	padding: 20px 0;
	background: #fff;
}

.fas-products--alt {
	background: var(--fas-bg);
}

.fas-products__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.fas-products__head .fas-title {
	margin: 0;
	text-transform: uppercase;
}

.fas-viewall {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--fas-blue);
	font-family: Poppins, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	padding: 8px 15px;
	border: 1.5px solid var(--fas-blue);
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.fas-viewall:hover {
	background: var(--fas-blue);
	color: #fff;
}

.fas-products__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.fas-pcard {
	background: #fff;
	border: 1px solid var(--fas-line);
	border-radius: var(--fas-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fas-pcard:hover {
	transform: translateY(-3px);
	box-shadow: var(--fas-shadow);
	border-color: var(--fas-blue);
}

.fas-pcard__media {
	display: block;
	padding: 10px;
	background: #fff;
	line-height: 0;
}

.fas-pcard__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	display: block;
}

.fas-pcard__body {
	padding: 0 12px 12px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.fas-pcard__title {
	font-family: Inter, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/* Reserve exactly two lines so every card is the same height and the
	   grid rows stay aligned regardless of title length. */
	min-height: 2.8em;
}

.fas-pcard__title a {
	color: var(--fas-ink);
	text-decoration: none;
}

.fas-pcard__title a:hover {
	color: var(--fas-blue);
}

.fas-pcard__price {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--fas-blue);
	margin-bottom: 10px;
	/* Reserve one line even when a product has no price, so grid rows align */
	min-height: 1.6em;
}

.fas-pcard__price .woocommerce-Price-currencySymbol {
	font-size: 12px;
}

.fas-pcard__btn {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1.5px solid var(--fas-blue);
	color: var(--fas-blue);
	border-radius: 9px;
	padding: 8px 0;
	font-family: Poppins, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.fas-pcard:hover .fas-pcard__btn {
	background: var(--fas-blue);
	color: #fff;
}

/* ============================================================
   BRANDS MARQUEE
   ============================================================ */

.fas-brands {
	padding: 44px 0 52px;
	background: #fff;
}

.fas-brands__marquee {
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.fas-brands__marquee + .fas-brands__marquee {
	margin-top: 16px;
}

.fas-brands__track {
	display: flex;
	width: max-content;
	animation: fas-marquee 30s linear infinite;
}

.fas-brands__track--ltr {
	animation-direction: reverse;
}

.fas-brands__group {
	display: flex;
	gap: 12px;
	padding-right: 12px;
}

.fas-brands__marquee:hover .fas-brands__track {
	animation-play-state: paused;
}

@keyframes fas-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.fas-brands__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--fas-line);
	border-radius: var(--fas-radius);
	padding: 10px 20px;
	line-height: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fas-brands__item:hover {
	border-color: var(--fas-blue);
	box-shadow: var(--fas-shadow);
}

.fas-brands__item img {
	height: 64px;
	width: auto;
	display: block;
}

/* ============================================================
   ABOUT / SEO BLOCK
   ============================================================ */

.fas-about {
	padding: 50px 0 56px;
	background: linear-gradient(180deg, var(--fas-bg) 0%, #fff 100%);
}

.fas-about__h1 {
	font-family: Poppins, sans-serif;
	font-size: 30px;
	font-weight: 700;
	color: var(--fas-ink);
	margin: 0 0 6px;
	line-height: 1.3;
}

.fas-about__lead {
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 500;
	color: var(--fas-blue);
	margin: 0 0 26px;
}

.fas-about__cols {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
}

.fas-about__text p {
	color: var(--fas-body-c);
	font-size: 14.5px;
	line-height: 1.85;
	margin: 0 0 16px;
}

.fas-about__stat {
	background: var(--fas-blue);
	color: #fff;
	border-radius: var(--fas-radius);
	padding: 18px 20px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-top: 20px;
}

.fas-about__stat strong {
	font-family: Poppins, sans-serif;
	font-size: 24px;
	font-weight: 700;
	white-space: nowrap;
	line-height: 1.15;
}

.fas-about__stat span {
	font-size: 12.5px;
	line-height: 1.6;
	opacity: 0.92;
}

.fas-about__features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	align-content: start;
}

.fas-feat {
	background: #fff;
	border: 1px solid var(--fas-line);
	border-radius: var(--fas-radius);
	padding: 18px;
}

.fas-feat h3 {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--fas-ink);
	margin: 0 0 8px;
	padding-left: 10px;
	border-left: 3px solid var(--fas-blue);
	line-height: 1.4;
}

.fas-feat p {
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--fas-body-c);
	margin: 0;
}

/* --- Who we serve --- */
.fas-serve {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 34px;
}

.fas-serve__card {
	background: #fff;
	border: 1px solid var(--fas-line);
	border-radius: var(--fas-radius);
	padding: 22px;
}

.fas-serve__card h3 {
	font-family: Poppins, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--fas-ink);
	margin: 0 0 10px;
}

.fas-serve__card p {
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--fas-body-c);
	margin: 0;
}

/* --- Expert CTA card --- */
.fas-expert {
	margin-top: 34px;
	background: var(--fas-navy);
	border-radius: var(--fas-radius);
	padding: 30px 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	color: #fff;
}

.fas-expert h3 {
	font-family: Poppins, sans-serif;
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.5;
}

.fas-expert p {
	font-size: 13.5px;
	line-height: 1.75;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	max-width: 640px;
}

.fas-expert__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 auto;
}

/* ============================================================
   FAQ
   ============================================================ */

.fas-faq {
	padding: 50px 0 56px;
	background: var(--fas-bg);
}

.fas-faq__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	align-items: start;
}

.fas-faq__item {
	background: #fff;
	border: 1px solid var(--fas-line);
	border-radius: 10px;
	overflow: hidden;
}

.fas-faq__item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	font-family: Inter, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--fas-ink);
	line-height: 1.5;
}

.fas-faq__item summary::-webkit-details-marker {
	display: none;
}

.fas-faq__item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--fas-blue);
	border-bottom: 2px solid var(--fas-blue);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -4px;
}

.fas-faq__item[open] summary::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.fas-faq__item[open] summary {
	color: var(--fas-blue);
}

.fas-faq__a {
	padding: 0 18px 16px;
}

.fas-faq__a p {
	margin: 0;
	font-size: 13px;
	line-height: 1.75;
	color: var(--fas-body-c);
}

/* ============================================================
   CTA BAND
   ============================================================ */

.fas-cta {
	background: linear-gradient(120deg, var(--fas-blue) 0%, var(--fas-blue-2) 100%);
	padding: 44px 0;
}

.fas-cta__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.fas-cta h2 {
	font-family: Poppins, sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.45;
}

.fas-cta p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	margin: 0;
	line-height: 1.6;
}

.fas-cta__actions {
	display: flex;
	gap: 12px;
	flex: 0 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
	.fas-products__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 860px) {
	.fas-about__cols {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.fas-faq__grid {
		grid-template-columns: 1fr;
	}

	.fas-expert {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
	}

	.fas-expert__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.fas-cta__in {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 640px) {
	.fas-hero {
		margin: 10px 12px 26px;
		border-radius: 18px;
	}

	/* Dots sit just BELOW the slide (kept, per user) — image keeps its own
	   ratio everywhere, so 2500×1000 slides render complete with no crop. */
	.fas-hero__dots {
		bottom: -24px;
	}

	/* Mobile: no arrows on the slider — dots below the images navigate. */
	.fas-hero__arrow {
		display: none;
	}

	.fas-cats {
		padding-top: 34px;
	}

	.fas-cat {
		width: 108px;
		margin-right: 20px;
	}

	.fas-cat__img img {
		padding: 8px;
	}

	.fas-cat__name {
		font-size: 12px;
	}

	.fas-cats__nav {
		display: none;
	}

	/* Featured Collections: 2-up cards like the reference */
	.fas-colls {
		padding: 28px 0 10px;
	}

	.fas-colls__title {
		font-size: 21px;
	}

	.fas-colls__sub {
		font-size: 12.5px;
		margin-bottom: 14px;
	}

	.fas-colls__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.fas-coll {
		padding: 12px 10px 0;
		border-radius: 14px;
	}

	.fas-coll__title {
		font-size: 13px;
	}

	.fas-salma-vid {
		margin-top: 16px;
		border-radius: 18px;
	}

	.fas-products {
		padding: 18px 0;
	}

	/* products: 2-column grid on mobile */
	.fas-products__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.fas-pcard__media {
		padding: 10px;
	}

	.fas-pcard__body {
		padding: 0 10px 12px;
	}

	.fas-pcard__title {
		font-size: 12.5px;
		min-height: 2.8em;
		-webkit-line-clamp: 2;
	}

	.fas-pcard__btn {
		padding: 8px 0;
		font-size: 11.5px;
	}

	/* Brands: show ~3 logos per screen with tight gaps */
	.fas-brands__group {
		gap: 8px;
		padding-right: 8px;
	}

	.fas-brands__item {
		width: 30vw;
		padding: 12px 4px;
	}

	/* Bigger logos INSIDE the same 3-per-screen boxes (width-constrained:
	   at ~30vw the img height below is the cap for squarer marks only). */
	.fas-brands__item img {
		height: 56px;
		width: auto;
		max-width: 100%;
		object-fit: contain;
	}

	.fas-about {
		padding: 38px 0 44px;
	}

	.fas-about__h1 {
		font-size: 23px;
	}

	.fas-about__lead {
		font-size: 15px;
	}

	.fas-about__features {
		grid-template-columns: 1fr;
	}

	.fas-serve {
		grid-template-columns: 1fr;
		margin-top: 24px;
	}

	.fas-faq {
		padding: 38px 0 44px;
	}

	.fas-cta {
		padding: 36px 0;
	}

	.fas-cta h2 {
		font-size: 18px;
	}
}
