/* قوالب صفحة رائد الأعمال/الخدمة — Freelance
   لوحة الألوان: أخضر نخيل (#0f6b53) + رملي دافئ (#c9a15a) + محايدات داكنة. */

:root {
	--fl-primary: #0f6b53;
	--fl-primary-dark: #0c5643;
	--fl-accent: #c9a15a;
	--fl-text: #1f2937;
	--fl-muted: #6b7280;
	--fl-border: #e5e7eb;
	--fl-bg-soft: #f8f9f7;
}

.fl-page { color: var( --fl-text ); }

.fl-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;
}

.fl-section__title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
	position: relative;
	padding-inline-start: 14px;
	border-inline-start: 4px solid var( --fl-primary );
}

/* Hero */
.fl-hero {
	position: relative;
	background-color: var( --fl-bg-soft );
	background-size: cover;
	background-position: center;
	padding: 60px 20px;
	text-align: center;
	color: #fff;
}

.fl-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba( 15, 107, 83, 0.55 ), rgba( 15, 107, 83, 0.85 ) );
}

.fl-hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.fl-hero__avatar-wrap {
	position: relative;
	display: inline-block;
	margin-bottom: 34px;
}

.fl-hero__avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	display: block;
}

.fl-hero__name { font-size: 32px; font-weight: 800; margin: 0 0 8px; }

.fl-hero__bio { font-size: 16px; opacity: 0.95; margin-bottom: 16px; }

.fl-hero__badge {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate( -50%, 50% );
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	border: 2px solid #fff;
	box-shadow: 0 3px 8px rgba( 0, 0, 0, 0.25 );
}

.fl-hero__badge::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.8;
}

.fl-hero__badge--available { background: #22c55e; color: #fff; }
.fl-hero__badge--busy { background: var( --fl-accent ); color: #1f2937; }
.fl-hero__badge--unavailable { background: rgba( 60, 60, 60, 0.85 ); color: #fff; }

.fl-hero__socials { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }

.fl-hero__licenses {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.fl-hero__license-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	background: rgba( 255, 255, 255, 0.15 );
	border: 1px solid rgba( 255, 255, 255, 0.3 );
	color: #fff;
}

.fl-hero__socials a,
.fl-hero__social-link {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.2 );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 13px;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.fl-hero__social-link:hover {
	background: rgba( 255, 255, 255, 0.35 );
	transform: translateY( -2px );
}

.fl-hero__social-link--phone { background: #25d366; color: #fff; }
.fl-hero__social-link--phone:hover { background: #1fb855; }

/* بطاقات إحصائية */
.fl-stats { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: -30px; position: relative; z-index: 2; }

.fl-stats__card {
	background: #fff;
	border: 1px solid var( --fl-border );
	border-radius: 10px;
	padding: 16px 24px;
	min-width: 140px;
	text-align: center;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.06 );
}

.fl-stats__value { font-size: 24px; font-weight: 800; color: var( --fl-primary ); }
.fl-stats__label { font-size: 13px; color: var( --fl-muted ); margin-top: 4px; }

/* بطاقات عامة (برامج/إقامة/شركاء) */
.fl-cards-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) ); gap: 20px; }

.fl-card {
	border: 1px solid var( --fl-border );
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fl-card:hover { box-shadow: 0 8px 20px rgba( 0, 0, 0, 0.08 ); transform: translateY( -2px ); }

.fl-card__image { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var( --fl-bg-soft ); }

.fl-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.fl-card__title { font-size: 17px; font-weight: 700; margin: 0; }

.fl-card__meta { font-size: 13px; color: var( --fl-muted ); display: flex; gap: 10px; flex-wrap: wrap; }

.fl-card__price { font-weight: 700; color: var( --fl-primary ); margin-top: auto; }

.fl-card__cta {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	background: var( --fl-primary );
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.fl-card__cta:hover { background: var( --fl-primary-dark ); color: #fff; }

/* تقييمات */
.fl-review-card {
	border: 1px solid var( --fl-border );
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 12px;
	background: #fff;
}

.fl-review-card__stars { color: var( --fl-accent ); font-size: 15px; }
.fl-review-card__name { font-weight: 700; margin-inline-start: 6px; }
.fl-review-card__comment { margin-top: 8px; color: var( --fl-text ); }
.fl-review-card__date { font-size: 12px; color: var( --fl-muted ); margin-top: 6px; }

/* التواصل */
.fl-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fl-contact-list li { display: flex; gap: 10px; align-items: center; }
.fl-contact-list a { color: var( --fl-primary ); text-decoration: none; font-weight: 600; }

/* خريطة */
.fl-map iframe { width: 100%; height: 360px; border: 0; border-radius: 10px; }

/* صفحة الخدمة */
.fl-service-hero { background: var( --fl-bg-soft ); padding: 30px 20px; }
.fl-service-hero__title { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.fl-service-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var( --fl-muted ); font-size: 14px; }
.fl-service-hero__price { font-size: 22px; font-weight: 800; color: var( --fl-primary ); }

.fl-deliverables { list-style: none; margin: 0; padding: 0; }
.fl-deliverables li {
	border-inline-start: 3px solid var( --fl-primary );
	padding: 6px 16px;
	margin-bottom: 14px;
}
.fl-deliverables__title { font-weight: 700; color: var( --fl-primary ); }

.fl-services-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fl-services-columns ul { margin: 0; padding-inline-start: 18px; }

@media ( max-width: 600px ) {
	.fl-services-columns { grid-template-columns: 1fr; }
	.fl-hero__name { font-size: 24px; }
}

.fl-empty-note { color: var( --fl-muted ); font-size: 14px; }

/* نموذج البحث: شبكة أفقية بدل التكديس العمودي الافتراضي لـ .fl-form */
.fl-search-form {
	max-width: 100%;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 160px, 1fr ) );
	gap: 14px 16px;
	align-items: end;
	background: var( --fl-bg-soft );
	padding: 20px;
	border-radius: 10px;
}

.fl-search-form .fl-form__field { margin: 0; }

.fl-search-form .fl-form__submit {
	grid-column: 1 / -1;
	display: flex;
	gap: 10px;
	margin: 0;
}

.fl-search-form select,
.fl-search-form input[type="number"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var( --fl-border );
	border-radius: 6px;
}

/* --- شارات حالة الطلب --- */
.fl-status {
	display: inline-block;
	padding: .2em .7em;
	border-radius: 999px;
	font-size: .85em;
	font-weight: 600;
	line-height: 1.6;
}
.fl-status--new { background: #e7f0ff; color: #1e40af; }
.fl-status--under-review { background: #fef3c7; color: #92400e; }
.fl-status--in-progress { background: #dbeafe; color: #1e3a8a; }
.fl-status--awaiting-client { background: #fae8ff; color: #86198f; }
.fl-status--completed { background: #dcfce7; color: #166534; }
.fl-status--cancelled { background: #fee2e2; color: #991b1b; }

@media ( prefers-color-scheme: dark ) {
	.fl-status--new { background: rgba( 30, 64, 175, .25 ); color: #bfdbfe; }
	.fl-status--under-review { background: rgba( 146, 64, 14, .25 ); color: #fde68a; }
	.fl-status--in-progress { background: rgba( 30, 58, 138, .25 ); color: #bfdbfe; }
	.fl-status--awaiting-client { background: rgba( 134, 25, 143, .25 ); color: #f5d0fe; }
	.fl-status--completed { background: rgba( 22, 101, 52, .25 ); color: #bbf7d0; }
	.fl-status--cancelled { background: rgba( 153, 27, 27, .25 ); color: #fecaca; }
}
