/* ===========================================================
   Al Fareedah Clean — main stylesheet (RTL)
   =========================================================== */

:root {
	--alf-primary: #0e7c66;
	--alf-accent: #f2b705;
	--alf-dark: #0b2a26;
	--alf-bg: #f7faf9;
	--alf-surface: #ffffff;
	--alf-text: #16302c;
	--alf-muted: #5d726e;
	--alf-border: #e2ece9;
	--alf-radius: 18px;
	--alf-shadow: 0 18px 45px -28px rgba(11, 42, 38, .55);
	--alf-container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Tajawal", "Cairo", system-ui, sans-serif;
	background: var(--alf-bg);
	color: var(--alf-text);
	line-height: 1.85;
	font-size: 17px;
}

h1, h2, h3, h4 { font-family: "Cairo", "Tajawal", sans-serif; line-height: 1.35; margin: 0 0 .6em; }
a { color: var(--alf-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(100% - 2.5rem, var(--alf-container)); margin-inline: auto; }
.section-space { padding-block: 4rem; }
.empty { color: var(--alf-muted); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; inset-block-start: 10px; inset-inline-start: 10px;
	width: auto; height: auto; clip: auto; z-index: 999;
	background: #fff; padding: .6rem 1rem; border-radius: 10px;
}

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-family: "Cairo", sans-serif; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--alf-primary); color: #fff; box-shadow: var(--alf-shadow); }
.btn--accent { background: var(--alf-accent); color: var(--alf-dark); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--block { display: flex; width: 100%; }

.link-more { font-weight: 700; color: var(--alf-primary); }
.link-more::after { content: " ←"; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--alf-surface); box-shadow: 0 6px 24px -20px rgba(0,0,0,.6); }
.topbar { background: var(--alf-dark); color: #dff1ec; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar__item { color: inherit; }

.header__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) auto;
	align-items: center; gap: 1rem; padding-block: .9rem;
}
.brand__text { display: block; min-width: 0; }
.brand__name { display: block; font-family: "Cairo", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--alf-dark); }
.brand__tagline { display: block; font-size: .8rem; color: var(--alf-muted); }
.custom-logo { max-height: 56px; width: auto; }

.site-nav { grid-column: 1 / -1; display: none; }
.site-nav.is-open { display: block; }
.menu { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.menu a { display: block; padding: .55rem .2rem; color: var(--alf-text); font-weight: 600; }
.menu .current-menu-item > a, .menu a:hover { color: var(--alf-primary); }

.nav-toggle {
	width: 46px; height: 42px; border-radius: 12px; border: 1px solid var(--alf-border);
	background: #fff; position: relative; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	content: ""; position: absolute; inset-inline: 12px; height: 2px; background: var(--alf-dark);
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.header__cta { display: none; }

@media (min-width: 900px) {
	.header__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
	.nav-toggle { display: none; }
	.site-nav { display: block; grid-column: auto; }
	.menu { flex-direction: row; align-items: center; gap: 1.35rem; justify-content: center; margin: 0; }
	.header__cta { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
	background: linear-gradient(to left, var(--alf-dark), #14453d);
	background-size: cover; background-position: center;
	color: #fff; padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero__inner { max-width: 720px; }
.hero__eyebrow {
	display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
	padding: .35rem 1rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; color: #fff; }
.hero__subtitle { font-size: 1.15rem; color: #dff1ec; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- usp ---------- */
.usp { margin-top: -2.5rem; position: relative; z-index: 2; }
.usp__grid {
	display: grid; gap: 1rem; grid-template-columns: 1fr;
	background: var(--alf-surface); border: 1px solid var(--alf-border);
	border-radius: var(--alf-radius); padding: 1.5rem; box-shadow: var(--alf-shadow);
}
.usp__item { display: flex; flex-direction: column; }
.usp__item strong { font-family: "Cairo", sans-serif; color: var(--alf-dark); }
.usp__item span { color: var(--alf-muted); font-size: .92rem; }
@media (min-width: 700px) { .usp__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sections ---------- */
.section__eyebrow { display: inline-block; color: var(--alf-primary); font-weight: 700; letter-spacing: .04em; }
.section__title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--alf-dark); font-weight: 800; }
.section__title--center { text-align: center; margin-bottom: 2.2rem; }
.section__head {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
	gap: 1rem; margin-bottom: 2rem;
}

.about { padding-block: 4.5rem; }
.about__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.about__text { color: var(--alf-muted); }
.about__media img, .media-placeholder { border-radius: var(--alf-radius); box-shadow: var(--alf-shadow); }
.media-placeholder { display: block; aspect-ratio: 3/2; background: linear-gradient(135deg, #dff1ec, #bfe0d7); }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.05fr .95fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .5rem; }
.check-list li { position: relative; padding-inline-start: 1.7rem; }
.check-list li::before {
	content: "✓"; position: absolute; inset-inline-start: 0; color: var(--alf-primary); font-weight: 800;
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.services-section { padding-block: 4rem; }

.service-card, .post-card {
	background: var(--alf-surface); border: 1px solid var(--alf-border);
	border-radius: var(--alf-radius); overflow: hidden; display: flex; flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--alf-shadow); }
.service-card__media, .post-card__media { position: relative; display: block; }
.service-card__media img, .post-card__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.service-card__placeholder { display: block; aspect-ratio: 3/2; background: linear-gradient(135deg, #dff1ec, #bfe0d7); }
.service-card__price {
	position: absolute; inset-block-end: .8rem; inset-inline-start: .8rem;
	background: var(--alf-accent); color: var(--alf-dark); font-weight: 800;
	padding: .3rem .8rem; border-radius: 999px; font-size: .9rem;
}
.service-card__body, .post-card { padding: 1.2rem; }
.service-card__body { padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.service-card__cat { color: var(--alf-primary); font-size: .85rem; font-weight: 700; }
.service-card__title, .post-card__title { font-size: 1.15rem; margin: 0; }
.service-card__title a, .post-card__title a { color: var(--alf-dark); }
.service-card__text, .post-card__text { color: var(--alf-muted); font-size: .95rem; margin: 0; }
.service-card__actions {
	margin-top: auto; padding-top: .8rem; display: flex; align-items: center;
	justify-content: space-between; gap: .5rem; border-top: 1px solid var(--alf-border);
}
.service-card__icons { display: flex; gap: .4rem; }
.icon-btn {
	width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	background: #eef7f4; color: var(--alf-primary); font-size: 1rem;
}
.icon-btn:hover { background: var(--alf-primary); color: #fff; text-decoration: none; }
.post-card__meta { color: var(--alf-muted); font-size: .85rem; margin: 0 0 .4rem; }

/* ---------- steps ---------- */
.steps { padding-block: 4rem; background: #eef7f4; }
.step { background: #fff; border-radius: var(--alf-radius); padding: 1.6rem; border: 1px solid var(--alf-border); }
.step__num {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--alf-primary); color: #fff; font-weight: 800; margin-bottom: .8rem;
}
.step h3 { font-size: 1.1rem; color: var(--alf-dark); }
.step p { margin: 0; color: var(--alf-muted); font-size: .95rem; }

.latest-posts { padding-block: 4rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
	padding: .45rem 1.1rem; border-radius: 999px; border: 1px solid var(--alf-border);
	background: #fff; color: var(--alf-text); font-weight: 600; font-size: .92rem;
}
.chip.is-active, .chip:hover { background: var(--alf-primary); color: #fff; border-color: transparent; text-decoration: none; }

/* ---------- page head + layout ---------- */
.page-head { background: linear-gradient(to left, var(--alf-dark), #14453d); color: #fff; padding-block: 3.2rem; }
.page-head__title { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.page-head__text { color: #dff1ec; max-width: 65ch; margin: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

.layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-block: 3.5rem; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } }

.entry { background: var(--alf-surface); border: 1px solid var(--alf-border); border-radius: var(--alf-radius); padding: clamp(1.2rem, 3vw, 2.4rem); }
.entry__title { color: var(--alf-dark); }
.entry__meta { color: var(--alf-muted); font-size: .9rem; }
.entry__media { margin: 0 0 1.6rem; }
.entry__media img { border-radius: var(--alf-radius); }
.entry__content h2, .entry__content h3 { color: var(--alf-dark); margin-top: 1.8rem; }
.entry__content ul, .entry__content ol { padding-inline-start: 1.4rem; }
.entry__content table { width: 100%; border-collapse: collapse; }
.entry__content th, .entry__content td { border: 1px solid var(--alf-border); padding: .6rem; }
.entry__content blockquote {
	margin: 1.5rem 0; padding: 1rem 1.2rem; background: #eef7f4;
	border-inline-start: 4px solid var(--alf-primary); border-radius: 12px;
}

.side-card, .sidebar .widget {
	background: var(--alf-surface); border: 1px solid var(--alf-border);
	border-radius: var(--alf-radius); padding: 1.4rem; margin-bottom: 1.5rem;
}
.side-card__title, .widget-title { color: var(--alf-dark); font-size: 1.1rem; }
.side-card__list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .35rem 0; border-bottom: 1px dashed var(--alf-border); }

/* ---------- search + pagination ---------- */
.search-form { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-form__field {
	flex: 1; padding: .8rem 1rem; border-radius: 999px;
	border: 1px solid var(--alf-border); font-family: inherit; background: #fff;
}
.pagination { margin-top: 2rem; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem;
	border-radius: 12px; background: #fff; border: 1px solid var(--alf-border); margin-inline-end: .35rem;
}
.pagination .current { background: var(--alf-primary); color: #fff; border-color: transparent; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__code { font-size: clamp(4rem, 14vw, 8rem); color: var(--alf-primary); margin: 0; }
.notfound .search-form { max-width: 460px; margin-inline: auto; }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--alf-primary); color: #fff; padding-block: 2.6rem; }
.cta-band__inner { display: grid; gap: 1.2rem; align-items: center; }
.cta-band__title { color: #fff; margin: 0 0 .3rem; }
.cta-band__text { margin: 0; color: #e7f6f1; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
@media (min-width: 860px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; } }

.site-footer { background: var(--alf-dark); color: #cfe4df; padding-top: 3.4rem; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__title { color: #fff; font-size: 1.1rem; }
.footer__text { color: #a9c7c0; font-size: .95rem; margin: .3rem 0; }
.footer__menu { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer__menu a { color: #cfe4df; font-size: .95rem; }
.footer__menu a:hover { color: var(--alf-accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1rem; font-size: .88rem; color: #9fbdb6; }

/* ---------- floating buttons ---------- */
.alf-floating {
	position: fixed; inset-block-end: 1rem; inset-inline-start: 1rem;
	display: flex; flex-direction: column; gap: .6rem; z-index: 80;
}
.alf-float {
	display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.05rem;
	border-radius: 999px; font-weight: 700; color: #fff; box-shadow: var(--alf-shadow); font-size: .92rem;
}
.alf-float:hover { text-decoration: none; transform: translateY(-2px); }
.alf-float--wa { background: #25d366; color: #06301c; }
.alf-float--tel { background: var(--alf-primary); }
.alf-float__icon { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
