/* ============================================================
 * components.css — مكونات واجهة مشتركة
 * يُحمَّل على الصفحات التي تستخدم البطاقات والأكورديون والشرائح.
 * ============================================================ */

/* ────────────────────────────────────────────────────────────
 * الأقسام والخدمات
 * ──────────────────────────────────────────────────────────── */
.service-card {
	position: relative;
	min-height: 275px;
	overflow: hidden;
	border: 1px solid rgba(230, 237, 240, 0.9);
	border-radius: 22px;
	background: var(--vida-bg);
	box-shadow: var(--vida-shadow-soft);
	isolation: isolate;
	transition: transform var(--vida-motion), box-shadow var(--vida-motion), border-color var(--vida-motion);
}

.service-card .service-icon {
	width: 46px;
	height: 46px;
	margin: 0 0 10px;
	background: linear-gradient(135deg, rgba(12, 184, 182, 0.18), rgba(221, 174, 104, 0.2));
	color: var(--vida-teal-deep);
}

.service-card > div {
	position: absolute;
	right: 18px;
	bottom: 18px;
	left: 18px;
	z-index: 2;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(14px);
}

.service-card h3 {
	margin: 0 0 6px;
	color: var(--vida-ink-deep);
	font-size: 1.2rem;
}

.service-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	transition: transform 620ms ease, filter 260ms ease;
}

.service-card p {
	margin: 0;
	color: var(--vida-muted);
	font-size: 0.95rem;
	line-height: 1.65;
}

.service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(20, 35, 45, 0.04) 0%, rgba(20, 35, 45, 0.76) 100%),
        linear-gradient(135deg, rgba(12, 184, 182, 0.1), transparent 45%);
}

.service-card:hover {
	transform: translateY(-6px);
	border-color: rgba(221, 174, 104, 0.42);
	box-shadow: 0 22px 54px rgba(22, 37, 48, 0.16);
}

.service-card:hover img {
	transform: scale(1.06);
}

.service-icon {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: var(--vida-radius-full);
	border: var(--vida-border-teal);
	background: linear-gradient(135deg, rgba(12, 184, 182, 0.12), rgba(221, 174, 104, 0.12));
	color: var(--vida-teal-deep);
	transition: transform var(--vida-transition-slow), color var(--vida-transition-slow), background var(--vida-transition-slow), border-color var(--vida-transition-slow);
	margin-bottom: 14px;
}

.service-icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


.offer-card {
	border: var(--vida-border-light);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	box-shadow: 0 14px 38px rgba(22, 37, 48, 0.08);
	min-height: 100%;
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 3vw, 30px);
	transition: transform var(--vida-motion), box-shadow var(--vida-motion), border-color var(--vida-motion);
}

.offer-card h3 {
	margin: 18px 0 var(--vida-radius);
	color: var(--vida-ink-deep);
	font-size: 1.28rem;
}

.offer-card p {
	margin: 0;
	color: var(--vida-muted);
}

.offer-card:hover {
	transform: translateY(-4px);
	border-color: rgba(12, 184, 182, 0.22);
	box-shadow: 0 22px 52px rgba(22, 37, 48, 0.12);
}

.offer-card__cta {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	color: var(--vida-bg);
	font-weight: 700;
	border: 1px solid transparent;
	background: linear-gradient(135deg, var(--vida-gold-soft), var(--vida-gold-deep));
	box-shadow: 0 14px 28px rgba(184, 115, 34, 0.28);
	width: fit-content;
	min-width: min(100%, 180px);
	padding: 10px 18px;
	border-radius: var(--vida-radius);
	line-height: 1.25;
}

.offer-card__cta:focus-visible {
	background: linear-gradient(135deg, var(--vida-gold-mid), var(--vida-gold-dark));
	color: var(--vida-bg);
	box-shadow: 0 18px 34px rgba(184, 115, 34, 0.34);
	transform: translateY(-2px);
}

.offer-card__cta:hover {
	background: linear-gradient(135deg, var(--vida-gold-mid), var(--vida-gold-dark));
	color: var(--vida-bg);
	box-shadow: 0 18px 34px rgba(184, 115, 34, 0.34);
	transform: translateY(-2px);
}

.offer-card__icon {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	display: inline-grid;
	place-items: center;
	border: var(--vida-border-teal);
	border-radius: var(--vida-radius-full);
	background: linear-gradient(135deg, rgba(12, 184, 182, 0.12), rgba(221, 174, 104, 0.12));
	color: var(--vida-teal-deep);
}

.offer-card__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* ────────────────────────────────────────────────────────────
 * فريق الأطباء
 * ──────────────────────────────────────────────────────────── */
.doctor-card {
	border: var(--vida-border);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	box-shadow: var(--vida-shadow-soft);
	overflow: hidden;
	text-align: center;
	border-color: rgba(230, 237, 240, 0.9);
	transition: transform var(--vida-motion), box-shadow var(--vida-motion), border-color var(--vida-motion);
	display: flex;
	flex-direction: column;
}

.doctor-card h3 {
	margin: 0;
	color: var(--vida-ink-deep);
	font-size: 1.08rem;
	padding: 16px 12px 18px;
	line-height: 1.35;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--vida-radius);
}

.doctor-card img {
	width: 100%;
	aspect-ratio: 4 / 4.7;
	object-fit: cover;
	background: var(--vida-bg-soft);
	transition: transform 420ms ease, filter var(--vida-motion);
}

.doctor-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 48px rgba(22, 37, 48, 0.13);
}

.doctor-card:hover img {
	filter: saturate(1.03);
	transform: scale(1.035);
}

.doctor-card__bio {
	padding-inline: 14px;
	margin: 8px 0 0;
	color: var(--vida-ink);
	font-size: 0.9rem;
	line-height: 1.8;
}

.doctor-card__cta {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	color: var(--vida-bg);
	font-weight: 700;
	margin: 10px 14px 18px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: var(--vida-radius);
	background: linear-gradient(135deg, var(--vida-gold-soft), var(--vida-gold-deep));
	box-shadow: 0 14px 28px rgba(184, 115, 34, 0.28);
	transition: background var(--vida-transition), box-shadow var(--vida-transition), color var(--vida-transition), transform var(--vida-transition);
}

.doctor-card__cta:focus-visible {
	background: linear-gradient(135deg, var(--vida-gold-mid), var(--vida-gold-dark));
	color: var(--vida-bg);
	box-shadow: 0 18px 34px rgba(184, 115, 34, 0.34);
	transform: translateY(-2px);
}

.doctor-card__cta:hover {
	background: linear-gradient(135deg, var(--vida-gold-mid), var(--vida-gold-dark));
	color: var(--vida-bg);
	box-shadow: 0 18px 34px rgba(184, 115, 34, 0.34);
	transform: translateY(-2px);
}

.doctor-card__icon {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	transition: transform var(--vida-transition-slow), color var(--vida-transition-slow), background var(--vida-transition-slow), border-color var(--vida-transition-slow);
	width: 30px;
	height: 30px;
	border-radius: var(--vida-radius-full);
	background: rgba(12, 184, 182, 0.1);
	color: var(--vida-teal-deep);
}

.doctor-card__icon svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.doctor-card__placeholder {
	display: grid;
	width: 100%;
	aspect-ratio: 4 / 4.7;
	place-items: center;
	background: radial-gradient(circle at 24% 18%, rgba(12, 184, 182, 0.16), transparent 26%),
        linear-gradient(145deg, rgba(18, 31, 38, 0.96), rgba(50, 68, 72, 0.88));
	color: var(--vida-bg);
	font-size: clamp(2.3rem, 5vw, 4rem);
	font-weight: 700;
}

.doctor-card__profile {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.doctor-card__profile:focus-visible {
	outline: 3px solid rgba(12, 184, 182, 0.34);
	outline-offset: -3px;
}

.doctor-card__specialty {
	padding-inline: 14px;
	margin: -6px 0 0;
	color: var(--vida-muted);
	font-weight: 700;
}

.doctor-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.doctors {
	background: var(--vida-bg);
}


/* ────────────────────────────────────────────────────────────
 * الأجهزة
 * ──────────────────────────────────────────────────────────── */
.device-card {
	display: grid;
	grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--vida-radius);
	background: rgba(255, 255, 255, 0.09);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
	transition: transform var(--vida-motion), box-shadow var(--vida-motion), background var(--vida-motion);
}

.device-card a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	color: var(--vida-gold-soft);
	font-weight: 700;
}

.device-card h3 {
	margin: 14px 0 var(--vida-radius);
	color: var(--vida-ink-deep);
	font-size: 1.25rem;
	line-height: 1.35;
}

.device-card img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	box-shadow: inset 0 0 0 1px rgba(230, 237, 240, 0.8);
}

.device-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
}

.device-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 48px rgba(22, 37, 48, 0.13);
	background: rgba(255, 255, 255, 0.12);
}

.device-card__icon {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	transition: transform var(--vida-transition-slow), color var(--vida-transition-slow), background var(--vida-transition-slow), border-color var(--vida-transition-slow);
	width: 44px;
	height: 44px;
	margin-bottom: 12px;
	border-radius: var(--vida-radius-full);
	background: rgba(255, 255, 255, 0.12);
	color: var(--vida-gold-soft);
}

.device-card__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.device-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--vida-radius-xl);
}


/* ────────────────────────────────────────────────────────────
 * حركات الكشف والشرائح
 * ──────────────────────────────────────────────────────────── */
.reveal-ready .contact-ribbon__item.reveal-item {
	transform: translateY(-8px);
}

.reveal-ready .contact-ribbon__item.reveal-item.is-visible {
	transform: translateY(0);
}

.reveal-ready .reveal-item {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 520ms ease, transform 520ms ease;
	transition-duration: 420ms;
	transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
	will-change: opacity, transform;
}

.reveal-ready .reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.slider-dot {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.slider-dot.is-active::before {
	background: var(--vida-gold-soft);
	transform: scale(1.5);
}

.slider-dot::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: var(--vida-radius-full);
	background: rgba(255, 255, 255, 0.5);
	transition: background var(--vida-transition), transform var(--vida-transition);
}



/* ── FAQ Accordion ── */
/* ============================================================
 * FAQ Accordion — مشترك (faq-page + contact-faq-cta)
 * ============================================================ */
.faq-answer {
	padding: 0 20px 18px;
	color: var(--vida-muted);
	line-height: 1.8;
}

.faq-answer a {
	color: var(--vida-teal-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.faq-answer a:hover {
	color: var(--vida-gold);
}

.faq-answer li {
	margin-bottom: var(--vida-radius-sm);
}

.faq-answer ul {
	margin: 8px 0 0;
	padding-inline-start: var(--vida-radius-xl);
}

.faq-chevron {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	color: var(--vida-gold);
	transition: transform var(--vida-transition-slow);
}

.faq-item {
	border: var(--vida-border);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	margin-bottom: 10px;
	overflow: hidden;
	transition: box-shadow 200ms ease, border-color 200ms ease;
}

.faq-item summary {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px var(--vida-radius-xl);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--vida-ink);
	cursor: pointer;
	list-style: none;
	transition: color var(--vida-transition);
	user-select: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item[open] {
	border-color: rgba(12, 184, 182, 0.32);
	box-shadow: 0 8px 28px rgba(36, 50, 63, 0.09);
}

.faq-item[open] .faq-chevron {
	transform: rotate(180deg);
}

.faq-item[open] summary {
	color: var(--vida-teal-dark);
}

.faq-list {
	width: min(100%, 920px);
	display: grid;
	gap: 12px;
	margin-inline: auto;
	max-width: 860px;
}

.faq-list details {
	border: var(--vida-border-light);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	box-shadow: 0 14px 38px rgba(22, 37, 48, 0.08);
	overflow: hidden;
}

.faq-list details p {
	margin: 0;
	padding: 16px 20px var(--vida-radius-xl);
	color: var(--vida-muted);
}

.faq-list details[open] summary {
	border-bottom: var(--vida-border-light);
	background: rgba(245, 250, 249, 0.72);
}

.faq-list summary {
	min-height: 56px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px var(--vida-radius-xl);
	color: var(--vida-ink-deep);
	font-weight: 700;
	cursor: pointer;
}

.faq-list summary::marker {
	color: var(--vida-gold);
}

/* ────────────────────────────────────────────────────────────
 * مكوّنات مشتركة: journey-steps + trust-strip
 * (مشترك بين الرئيسية وصفحة من نحن)
 * ──────────────────────────────────────────────────────────── */

/* ── journey-steps ── */
.journey-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: journey;
}

.journey-steps h3 {
	margin: 18px 0 var(--vida-radius);
	color: var(--vida-ink-deep);
	font-size: 1.12rem;
}

.journey-steps article {
	border: var(--vida-border-light);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	box-shadow: 0 14px 38px rgba(22, 37, 48, 0.08);
	position: relative;
	min-height: 100%;
	padding: 24px var(--vida-radius-xl);
}

.journey-steps p {
	margin: 0;
	color: var(--vida-muted);
	font-size: 0.95rem;
}

.journey-steps span {
	width: 44px;
	height: 44px;
	display: inline-grid;
	place-items: center;
	border-radius: var(--vida-radius-full);
	background: var(--vida-gold);
	color: var(--vida-bg);
	font-weight: 700;
}

/* ── trust-strip ── */
.trust-strip {
	position: relative;
	z-index: 2;
	padding-bottom: var(--vida-radius-xl);
}

.trust-strip article {
	min-height: 100%;
	padding: var(--vida-radius-xl);
	border: var(--vida-border-light);
	border-radius: var(--vida-radius);
	background: var(--vida-bg);
	box-shadow: var(--vida-shadow-soft);
	position: relative;
}

.trust-strip article > span.section-icon {
	margin-bottom: 12px;
	background: linear-gradient(135deg, rgba(12, 184, 182, 0.13), rgba(221, 174, 104, 0.15));
	color: var(--vida-teal-deep);
	font-size: inherit;
}

.trust-strip h2 {
	margin: 8px 0 6px;
	color: var(--vida-ink-deep);
	font-size: 1.18rem;
	line-height: 1.3;
}

.trust-strip p {
	margin: 0;
	color: var(--vida-muted);
	font-size: 0.96rem;
}

.trust-strip span {
	color: var(--vida-teal-deep);
	font-weight: 700;
	font-size: 0.9rem;
}

.trust-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

/* ── استجابة journey-steps (مشترك) ── */
@media (max-width: 1080px) {
	.journey-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.journey-steps {
		grid-template-columns: 1fr;
	}

	.journey-steps article {
		padding: 22px;
	}
}

/* ── Services refined (shared: home + departments) ── */
.services-refined {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--vida-bg) 0%, rgba(245, 250, 249, 0.72) 100%);
}

.services-refined__card {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.05fr);
	align-items: stretch;
	overflow: hidden;
	border: 1px solid rgba(230, 237, 240, 0.95);
	border-radius: 18px;
	background: var(--vida-bg);
	box-shadow: 0 18px 52px rgba(22, 37, 48, 0.09);
	transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.services-refined__card figure {
	position: relative;
	min-height: 310px;
	margin: 0;
	overflow: hidden;
	background: var(--vida-bg-soft);
}

.services-refined__card figure::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.64) 100%),
        linear-gradient(180deg, rgba(12, 184, 182, 0.04), rgba(221, 174, 104, 0.08));
	pointer-events: none;
}

.services-refined__card img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 520ms ease, filter 260ms ease;
}

.services-refined__card:hover {
	transform: translateY(-5px);
	border-color: rgba(221, 174, 104, 0.44);
	box-shadow: 0 24px 64px rgba(22, 37, 48, 0.14);
}

.services-refined__card:hover img {
	filter: saturate(1.04);
	transform: scale(1.045);
}

.services-refined__content {
	position: relative;
	display: flex;
	min-height: 310px;
	flex-direction: column;
	justify-content: center;
	padding: clamp(24px, 3.4vw, 38px);
}

.services-refined__content .service-icon {
	width: 64px;
	height: 64px;
	margin: 0 0 16px;
	border: 1px solid rgba(221, 174, 104, 0.34);
	background: linear-gradient(135deg, rgba(221, 174, 104, 0.14), rgba(12, 184, 182, 0.08));
	color: var(--vida-gold);
}

.services-refined__content .service-icon svg {
	width: 34px;
	height: 34px;
	stroke-width: 1.55;
}

.services-refined__content a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	width: max-content;
	max-width: 100%;
	margin-top: 18px;
	color: var(--vida-gold-deep);
	font-weight: 700;
}

.services-refined__content a::before {
	content: "";
	width: 26px;
	height: 1px;
	margin-left: 10px;
	background: currentColor;
}

.services-refined__content h3 {
	margin: 0;
	color: var(--vida-ink-deep);
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	line-height: 1.28;
}

.services-refined__content p:not(.services-refined__label) {
	margin: 12px 0 0;
	color: var(--vida-muted);
	line-height: 1.85;
}

.services-refined__content::before {
	content: "";
	position: absolute;
	top: 30px;
	bottom: 30px;
	right: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent, rgba(221, 174, 104, 0.54), transparent);
}

.services-refined__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 34px);
}

.services-refined__heading {
	max-width: 860px;
	margin: 0 auto clamp(34px, 5vw, 56px);
	text-align: center;
}

.services-refined__heading h2 {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-bottom: 18px;
	color: var(--vida-ink-deep);
	font-size: clamp(2.1rem, 5vw, 3.35rem);
	line-height: 1.12;
}

.services-refined__heading h2 span {
	display: block;
	color: var(--vida-gold-soft);
	font-weight: 600;
}

.services-refined__heading h2::after {
	content: "";
	position: absolute;
	right: var(--vida-radius-full);
	bottom: 0;
	width: min(210px, 72%);
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--vida-gold), transparent);
	transform: translateX(50%);
}

.services-refined__heading p:not(.eyebrow) {
	max-width: 820px;
	margin: 18px auto 0;
	color: var(--vida-ink-deep);
	font-size: clamp(1rem, 1.7vw, 1.14rem);
	line-height: 1.95;
}

.services-refined__label {
	margin: 0 0 var(--vida-radius-sm);
	color: var(--vida-teal-deep);
	font-weight: 700;
}
