/**
 * Bariq Al Riyadh — homepage sections.
 * Depends on the tokens defined in css/bariq.css.
 */

/* ============================================================
   HERO
   ============================================================ */
.bq-hero {
	position: relative;
	padding: var(--bq-s-5) 0 var(--bq-s-7);
	background:
		radial-gradient(1100px 520px at 100% -10%, rgba(11, 179, 164, .16), transparent 60%),
		linear-gradient(180deg, #F4F9FB 0%, var(--bq-surface) 100%);
	overflow: hidden;
}

@media (min-width: 768px) {
	.bq-hero { padding: var(--bq-s-7) 0 var(--bq-s-8); }
}

@media (min-width: 992px) {
	.bq-hero { padding: var(--bq-s-9) 0; }
}

/*
 * Hero entrance — CSS only, on purpose.
 *
 * The spec is explicit that the H1 and primary CTA must never wait on
 * JavaScript, so the hero is excluded from the data-reveal system entirely.
 * A keyframe animation starts at first paint, needs no script, and if the
 * stylesheet itself fails the content is simply visible. `both` fill mode
 * keeps the pre-animation frame from flashing at full offset.
 */
@keyframes bq-hero-in {
	from { opacity: 0; transform: translate3d(0, 10px, 0); }
	to   { opacity: 1; transform: none; }
}

.bq-hero__content > * {
	animation: bq-hero-in var(--motion-medium, 320ms) var(--motion-ease, ease-out) both;
}

/* A very small, single-pass cascade — not a staged performance. */
.bq-hero__content > *:nth-child(1) { animation-delay: 0ms; }
.bq-hero__content > *:nth-child(2) { animation-delay: 40ms; }
.bq-hero__content > *:nth-child(3) { animation-delay: 80ms; }
.bq-hero__content > *:nth-child(4) { animation-delay: 110ms; }
.bq-hero__content > *:nth-child(5) { animation-delay: 140ms; }

.bq-hero__visual {
	animation: bq-hero-in var(--motion-slow, 480ms) var(--motion-ease, ease-out) 60ms both;
}

@media (prefers-reduced-motion: reduce) {
	.bq-hero__content > *,
	.bq-hero__visual { animation: none; }
}

.bq-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--bq-s-2);
	margin-bottom: var(--bq-s-4);
	padding: 7px 16px;
	border: 1px solid rgba(11, 179, 164, .28);
	border-radius: var(--bq-r-pill);
	background: var(--bq-teal-soft);
	color: var(--bq-teal-dark);
	font-size: .86rem;
	font-weight: 700;
}

.bq-hero__badge .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bq-teal);
}

.bq-hero__title {
	margin-bottom: var(--bq-s-4);
	color: var(--bq-navy);
}

.bq-hero__lead {
	max-width: 54ch;
	margin-bottom: var(--bq-s-5);
	font-size: 1.08rem;
	color: var(--bq-body);
}

.bq-hero__actions { margin-bottom: var(--bq-s-5); }

.bq-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bq-s-2) var(--bq-s-5);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--bq-body);
	font-size: .94rem;
	font-weight: 600;
}

.bq-hero__points i { color: var(--bq-teal); margin-inline-end: 6px; }

.bq-hero__visual { position: relative; }

.bq-hero__img {
	width: 100%;
	border-radius: var(--bq-r-lg);
	box-shadow: var(--bq-shadow-lg);
	object-fit: cover;
	aspect-ratio: 6 / 5;
}

.bq-hero__float {
	position: absolute;
	inset-inline-start: -12px;
	bottom: -22px;
	max-width: 240px;
	padding: var(--bq-s-4) var(--bq-s-5);
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-r-md);
	background: var(--bq-surface);
	box-shadow: var(--bq-shadow-md);
}

.bq-hero__float-label { display: block; color: var(--bq-muted); font-size: .8rem; }

.bq-hero__float-phone {
	display: block;
	margin: 2px 0 4px;
	color: var(--bq-navy);
	font-size: 1.3rem;
	font-weight: 700;
	direction: ltr;
	text-align: right;
}

.bq-hero__float-phone:hover { color: var(--bq-teal-dark); }
.bq-hero__float-note { color: var(--bq-muted); font-size: .78rem; }

/*
 * Mobile hero: the job of the first screen is brand context, headline,
 * one line of support, and the two CTAs. The image is supporting material
 * and must never be what pushes the CTA below the fold, so it is ordered
 * after the text column and its height is capped.
 */
@media (max-width: 991.98px) {
	.bq-hero .row { --bs-gutter-y: var(--bq-s-5); }

	.bq-hero__badge {
		margin-bottom: var(--bq-s-3);
		padding: 5px 13px;
		font-size: .8rem;
	}

	.bq-hero__title { margin-bottom: var(--bq-s-3); }

	.bq-hero__lead {
		margin-bottom: var(--bq-s-4);
		font-size: 1rem;
	}

	.bq-hero__actions { margin-bottom: var(--bq-s-4); }

	/* Stack the two CTAs full-width — thumb-friendly and unambiguous. */
	.bq-hero__actions .bq-btn { width: 100%; }

	.bq-hero__points {
		gap: 6px var(--bq-s-4);
		font-size: .88rem;
	}

	.bq-hero__img {
		aspect-ratio: 16 / 10;
		max-height: 220px;
	}
}

/* Below 360px every pixel of vertical space counts. */
@media (max-width: 359.98px) {
	.bq-hero { padding-top: var(--bq-s-4); }
	.bq-hero__lead { font-size: .95rem; }
	.bq-hero__points { display: none; } /* Duplicated verbatim by the "why us" section. */
	.bq-hero__img { max-height: 180px; }
}

/* The floating card overlaps awkwardly on small screens. */
@media (max-width: 767.98px) {
	.bq-hero__float {
		position: static;
		max-width: none;
		margin-top: var(--bq-s-4);
	}
}

/* ============================================================
   SERVICES
   ============================================================ */
.bq-service { display: flex; flex-direction: column; }
.bq-service .bq-card__tags { margin-top: auto; }

/* Full-width tappable row — 44px minimum, the main per-service conversion. */
.bq-service__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--bq-s-2);
	min-height: 46px;
	padding: 10px 18px;
	border: 1px solid rgba(11, 179, 164, .35);
	border-radius: var(--bq-r-pill);
	background: var(--bq-teal-soft);
	color: var(--bq-teal-dark);
	font-weight: 700;
	font-size: .95rem;
	transition: background-color var(--bq-dur) var(--bq-ease),
	            color var(--bq-dur) var(--bq-ease);
}

.bq-service__cta:hover,
.bq-service__cta:focus {
	background: var(--bq-wa);
	border-color: var(--bq-wa);
	color: #fff;
}

.bq-service__cta i { font-size: 1.05rem; }

/* The stacked services list gets long on phones — tighten the cards. */
@media (max-width: 575.98px) {
	.bq-service { padding: var(--bq-s-4); }
	.bq-service .bq-card__icon { width: 46px; height: 46px; margin-bottom: var(--bq-s-3); }
	.bq-service .bq-card__text { margin-bottom: var(--bq-s-3); }
}

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.bq-areas {
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-r-lg);
	background: var(--bq-surface);
	box-shadow: var(--bq-shadow-sm);
	overflow: hidden;
}

.bq-areas__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bq-s-2);
	padding: var(--bq-s-4);
	border-bottom: 1px solid var(--bq-line);
	background: var(--bq-surface-alt);
}

.area-pill {
	padding: 10px 20px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-r-pill);
	background: var(--bq-surface);
	color: var(--bq-body);
	font-family: var(--bq-font);
	font-size: .94rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--bq-dur) var(--bq-ease);
}

.area-pill:hover { border-color: var(--bq-teal); color: var(--bq-teal-dark); }

.area-pill.active {
	background: var(--bq-navy);
	border-color: var(--bq-navy);
	color: #fff;
}

.bq-areas__panels { padding: var(--bq-s-5); }

.areas-group-panel { display: none; }
.areas-group-panel.active { display: block; }

.bq-areas__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--bq-s-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 576px) { .bq-areas__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .bq-areas__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.bq-areas__list li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-r-md);
	background: var(--bq-surface-alt);
	color: var(--bq-ink);
	font-size: .92rem;
	font-weight: 600;
}

.bq-areas__list i { color: var(--bq-teal); font-size: .82rem; }

.bq-areas__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bq-s-4);
	padding: var(--bq-s-5);
	border-top: 1px solid var(--bq-line);
	background: var(--bq-surface-alt);
}

.bq-areas__nearby { margin: 0; color: var(--bq-body); font-size: .95rem; }
.bq-areas__nearby strong { color: var(--bq-ink); }
.bq-areas__nearby-note { color: var(--bq-muted); font-size: .85rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.bq-steps {
	display: grid;
	gap: var(--bq-s-5);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bq-step;
}

@media (min-width: 768px) {
	.bq-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.bq-steps__item {
	position: relative;
	padding: var(--bq-s-5);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--bq-r-lg);
	background: rgba(255, 255, 255, .06);
}

.bq-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: var(--bq-s-4);
	border-radius: 50%;
	background: var(--bq-gold);
	color: var(--bq-navy-deep);
	font-size: 1.15rem;
	font-weight: 700;
}

.bq-steps__title { margin-bottom: var(--bq-s-2); font-size: 1.15rem; }
.bq-steps__text { margin: 0; color: rgba(255, 255, 255, .78); font-size: .96rem; }

/* Connector arrows between steps on wide screens. */
@media (min-width: 768px) {
	.bq-steps__item:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 44px;
		inset-inline-start: -22px;
		width: 22px;
		height: 2px;
		background: rgba(255, 255, 255, .22);
	}
}

/* ============================================================
   PROOF
   ============================================================ */
.bq-proof__empty {
	max-width: 620px;
	margin: 0 auto;
	padding: var(--bq-s-7) var(--bq-s-5);
	border: 2px dashed var(--bq-line);
	border-radius: var(--bq-r-lg);
	background: var(--bq-surface-alt);
	text-align: center;
}

.bq-proof__empty i {
	margin-bottom: var(--bq-s-4);
	color: var(--bq-muted);
	font-size: 2.2rem;
}

.bq-proof__empty p { color: var(--bq-body); }

.bq-proof__item { margin: 0; }

.bq-proof__item img {
	width: 100%;
	border-radius: var(--bq-r-md);
	box-shadow: var(--bq-shadow-sm);
	object-fit: cover;
	aspect-ratio: 6 / 5;
}

.bq-testimonial__body { color: var(--bq-body); }
.bq-testimonial__meta strong { display: block; color: var(--bq-ink); }
.bq-testimonial__meta span { color: var(--bq-muted); font-size: .88rem; }

/* ============================================================
   FAQ
   ============================================================ */
.bq-faq {
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-r-lg);
	background: var(--bq-surface);
	overflow: hidden;
}

.bq-faq__item + .bq-faq__item { border-top: 1px solid var(--bq-line); }

.bq-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bq-s-4);
	width: 100%;
	padding: var(--bq-s-4) var(--bq-s-5);
	border: 0;
	background: transparent;
	color: var(--bq-ink);
	font-family: var(--bq-font);
	font-size: 1.02rem;
	font-weight: 700;
	text-align: start;
	cursor: pointer;
}

.bq-faq__q i {
	flex-shrink: 0;
	color: var(--bq-teal);
	font-size: .85rem;
	transition: transform var(--bq-dur) var(--bq-ease);
}

.bq-faq__item.is-open .bq-faq__q i { transform: rotate(180deg); }

.bq-faq__a {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--bq-dur) var(--bq-ease);
}

.bq-faq__item.is-open .bq-faq__a { grid-template-rows: 1fr; }

.bq-faq__a > p {
	overflow: hidden;
	margin: 0;
	padding: 0 var(--bq-s-5);
	color: var(--bq-body);
	font-size: .97rem;
}

.bq-faq__item.is-open .bq-faq__a > p { padding-bottom: var(--bq-s-5); }

.bq-faq__aside {
	padding: var(--bq-s-6);
	border-radius: var(--bq-r-lg);
	background: var(--bq-navy);
	color: rgba(255, 255, 255, .82);
}

.bq-faq__aside h3 { margin-bottom: var(--bq-s-3); color: #fff; }
.bq-faq__aside p { margin-bottom: var(--bq-s-5); }

/* ============================================================
   QUOTE FORM
   ============================================================ */
.bq-quote {
	padding: var(--bq-s-6);
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-r-lg);
	background: var(--bq-surface);
	box-shadow: var(--bq-shadow-md);
}

.bq-quote__title { margin-bottom: var(--bq-s-2); }
.bq-quote__sub { margin-bottom: var(--bq-s-5); color: var(--bq-body); font-size: .95rem; }

.bq-quote__pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bq-s-2);
}

.service-pill {
	padding: 8px 16px;
	border: 1px solid var(--bq-line);
	border-radius: var(--bq-r-pill);
	background: var(--bq-surface);
	color: var(--bq-body);
	font-family: var(--bq-font);
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--bq-dur) var(--bq-ease);
}

.service-pill:hover { border-color: var(--bq-teal); color: var(--bq-teal-dark); }

.service-pill.active {
	background: var(--bq-teal-soft);
	border-color: var(--bq-teal);
	color: var(--bq-teal-dark);
}

.bq-form-status {
	margin: var(--bq-s-3) 0 0;
	color: var(--bq-teal-dark);
	font-size: .9rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity var(--bq-dur) var(--bq-ease);
}

.bq-form-status.is-visible { opacity: 1; }
.bq-form-status.is-error { color: #C0392B; }

.bq-btn.is-loading { opacity: .7; cursor: progress; pointer-events: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.bq-hero--compact { padding: var(--bq-s-7) 0; }

.bq-info-list {
	margin: 0 0 var(--bq-s-4);
	padding: 0;
	list-style: none;
}

.bq-info-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--bq-s-2);
	padding: var(--bq-s-3) 0;
	border-bottom: 1px solid var(--bq-line);
}

.bq-info-list li:last-child { border-bottom: 0; }
.bq-info-list .label { color: var(--bq-muted); font-size: .88rem; }
.bq-info-list .value { color: var(--bq-ink); font-size: .92rem; font-weight: 600; }

.bq-contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bq-contact-list li {
	display: flex;
	align-items: center;
	gap: var(--bq-s-4);
	padding: var(--bq-s-3) 0;
}

.bq-contact-list li + li { border-top: 1px solid var(--bq-line); }

.bq-contact-list .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--bq-r-md);
	background: var(--bq-teal-soft);
	color: var(--bq-teal-dark);
}

.bq-contact-list .text { display: flex; flex-direction: column; }
.bq-contact-list .label { color: var(--bq-muted); font-size: .82rem; }

.bq-contact-list .value {
	color: var(--bq-ink);
	font-size: 1.04rem;
	font-weight: 700;
}

.bq-contact-list .value:hover { color: var(--bq-teal-dark); }

.bq-note-list {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--bq-body);
	font-size: .95rem;
}

.bq-note-list li {
	position: relative;
	padding-inline-start: 22px;
	margin-bottom: var(--bq-s-3);
}

.bq-note-list li:last-child { margin-bottom: 0; }

.bq-note-list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 11px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bq-teal);
}
