/* ==========================================================================
   Imperial Horses – main stylesheet (cleaned)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@500;600&display=swap');
/* صفر بنقطة في النص (بنحمّل شكل الصفر بس من IBM Plex Mono) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&text=0&display=swap');

@import url('https://fonts.googleapis.com/css2?family=AR+One+Sans:wght@400..700&display=swap');

:root { --yellow: #F9B318; --yellow-soft: #fff3d6; --dark: #111111; --ink: #2a2a2a; --muted: #424141; --bg: #e9e9e9; --cream: #fbf3df; --white: #fff; --radius: 12px; --container: 1180px; --font-head: 'AR One Sans', 'Cairo', sans-serif; --font-body: 'Poppins', 'Cairo', sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.2; color: var(--dark); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

/* ---------- Helpers ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); }
.center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; z-index: 999; }
.ph { display: block; width: 100%; height: 100%; min-height: 160px; background: #d6d6d6; }
.icon { width: 1em; height: 1em; flex: none; }
.yellow { color: var(--yellow) !important; }
.hp { position: absolute; left: -9999px; }
.admin-hint { color: #aaa; font-size: 12px; text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty--dark { color: #aaa; text-align: center; }
.line { flex: 0 0 34px; height: 2px; background: var(--yellow); }

/* ---------- Top bar ---------- */
.topbar { background: #f9b019; color: #111; font-family: 'Cabin', 'Ubuntu', var(--font-body); font-size: 14px; font-weight: 500; }
.topbar__inner { display: flex; align-items: center; gap: 18px; padding: 9px 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 9px; }
.topbar__sep { width: 2px; height: 22px; background: #111; }
/* رقم التليفون: الصفر بنقطة، وباقي الحروف من Cabin */
.topbar__inner > .topbar__item:nth-child(n+2) { font-family: 'IBM Plex Mono', 'Cabin', 'Ubuntu', sans-serif; font-weight: 500; }

/* أيقونات ممتلئة (solid) بدل الـ outline */
.topbar .icon { width: 16px; height: 16px; font-size: 16px; background: currentColor; color: #111; stroke: none; fill: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.topbar .icon * { display: none; }
.topbar__inner > .topbar__item:first-child .icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E"); }
.topbar__inner > .topbar__item:nth-child(n+2) .icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--white); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0; }
.brand__img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-head); }
.brand__text b { font-size: 16px; letter-spacing: .04em; }
.brand__text small { font-size: 8px; letter-spacing: .02em; color: var(--muted); }
.nav__list { display: flex; gap: 30px; }
.nav__list a { display: block; padding: 8px 0; font-size: 16px; font-weight: 500; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav__list .current-menu-item > a, .nav__list a:hover { border-color: var(--yellow); }
.header__tools { display: flex; align-items: center; gap: 16px; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; font-size: 20px; color: var(--dark); }
.lang { font-weight: 700; font-size: 13px; }
.burger { display: none; width: 34px; height: 34px; padding: 6px; border: 0; background: none; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; height: 2px; background: var(--dark); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-search { background: var(--white); border-top: 1px solid #eee; padding: 12px 0; }
.header-search[hidden] { display: none; }
.search-pill { display: flex; align-items: center; width: 100%; max-width: 300px; border: 1px solid var(--dark); border-radius: 999px; background: var(--white); padding: 2px 4px 2px 16px; }
.search-pill input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 12px var(--font-body); padding: 7px 15px; }
.search-pill button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: visible; display: inline-flex; align-items: center; gap: 10px; padding: 0 0 0 25px; border: 1px solid transparent; border-radius: 12px; font: 500 11.5px var(--font-body); line-height: 1; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.btn__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: -1.5px -6px -1.3px 0; border-radius: 50%; font-size: 20px; }
.btn.btn--outline { gap: 14px; border: 1.5px solid #F9B318; background: #101010; color: #F9B318; font-size: 14px; font-weight: 600; }
.btn.btn--outline .btn__label { color: #F9B318; }
.btn.btn--outline .btn__icon { background: #F9B318; color: #101010; }
.btn--light { background: var(--white); border-color: #d8d8d8; color: var(--dark); }
.btn--light .btn__icon { background: var(--dark); color: var(--white); }
.btn--white { background: var(--white); color: var(--dark); border: 2px solid var(--yellow); }
.btn--white .btn__icon { background: var(--yellow); color: var(--dark); }
.about-home .btn { border: 2px solid #000; }
.about-home .btn .btn__icon { width: 32px; height: 32px; font-size: 16px; color: #F9B318; }
.ready .btn--light { border-color: #F9B318; }
.ready .btn--light .btn__icon { background: #F9B318; color: #101010; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; aspect-ratio: 1.86 / 1; color: var(--white); background: #1a1a1a var(--hero-bg, none) center / cover no-repeat; }
.hero__inner { position: relative; padding: 56px 0; }
.hero__title { color: var(--white); font-weight: bold; font-size: clamp(28px, 4vw, 44px); max-width: 20ch; text-wrap: balance; }

.hero--home .hero__title { text-transform: uppercase; font-size: clamp(28px, 3.6vw, 40px); max-width: 620px; margin-bottom: 16px; }
.hero--post .hero__title { font-size: clamp(24px, 3vw, 34px); max-width: 612px; white-space: normal; }
.hero__kicker { color: var(--yellow); font-size: 16px; font-weight: 500; letter-spacing: .08em; margin-bottom: 18px; }
.hero__text { max-width: 280px; margin-bottom: 24px; font-size: 15px; }
.hero__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--yellow); font-size: 12px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--yellow); font-size: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow__line { width: 28px; height: 2px; background: var(--yellow); display: inline-block; }
.eyebrow--dark { color: var(--dark); font-size: 11px; }

/* ---------- Section heads ---------- */
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.section-head p { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.section-head--dark p { color: rgba(255, 255, 255, .8); }
.section-head__sub { color: var(--white) !important; font: 500 17px var(--font-head) !important; margin-top: 18px !important; }
.title-sm { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.home-projects .section-head h2 { position: relative; padding-bottom: 14px; }
.services-page .section-head h2, .clients .section-head p, .home-blogs .section-head p { position: relative; padding-bottom: 16px; }
.home-projects .section-head h2::after, .services-page .section-head h2::after, .clients .section-head p::after, .home-blogs .section-head p::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 50px; height: 4px; background: #F9B318; transform: translateX(-50%); }

/* ---------- Prose ---------- */
.prose { color: #424141; font-size: 20px; }
.prose--sm { font-size: 12.5px; line-height: 1.75; }
.prose h2, .prose h3 { margin: 28px 0 14px; padding-left: 12px; border-left: 3px solid var(--yellow); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prose ul { margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 14px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.prose ul li strong { display: block; color: var(--dark); }
.prose a { color: #b57900; text-decoration: underline; }
.prose img { border-radius: 8px; }
.entry-content h2 { padding: 4px 0 4px 12px; border-left: 3px solid #F9B318; font-size: 20px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.entry-content ul { list-style: none; margin: 0 0 1em; padding: 0; }
.entry-content ul li { position: relative; padding-left: 22px; margin-bottom: 18px; }
.entry-content ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: #F9B318; }

/* ---------- Home: About ---------- */
.about-home { padding: 0; }
.about-home__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 64px; }
.about-home__media { position: relative; z-index: 0; }
.about-home__media::before { top: -14px; left: -14px; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.about-home__media::after { bottom: -14px; right: -14px; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.about-home__media img, .about-home__media .ph { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-home__body .btn { margin-top: 8px; }
.about-home__body .title-sm { padding-left: 14px; border-left: 3px solid #F9B318; }

/* ---------- Home: Services ---------- */
.home-services { padding: 56px 0 64px; background:#F9F1E0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.tile { position: relative; display: block; aspect-ratio: 1 / 1.1; overflow: hidden; border-radius: 6px; background: #d6d6d6; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: var(--white); font: 500 12px var(--font-head); text-align: center; }
.tile__label::before { content: ''; display: block; width: 26px; height: 3px; margin: 0 auto 6px; background: var(--yellow); }

/* ---------- Home: Projects ---------- */
.home-projects { padding: 64px 0 72px; background: var(--dark); color: var(--white); }
.home-projects .section-head h2 { color: var(--yellow); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.project-card { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 4; background: #dcdcdc; }
.project-card__link { display: block; height: 100%; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card__link:hover img { transform: scale(1.05); }
.project-card__body { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); display: flex; flex-direction: column; }
.project-card__title { font: 500 14px var(--font-head); }
.project-card__meta { font-size: 11px; color: var(--yellow); }

/* ---------- Home: Clients & Blogs (grey bg, no white container) ---------- */
.clients, .home-blogs { padding: 0; background: transparent; }
.clients > .container, .home-blogs > .container { padding-left: 0; padding-right: 0; background: transparent; }
.clients > .container { padding-top: 56px; padding-bottom: 40px; }
.home-blogs > .container { padding-top: 24px; padding-bottom: 72px; }

/* الجملة تنزل سطرين في البلوجز */
.home-blogs .section-head { max-width: 460px; }

/* كروت اللوجوهات */
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: stretch; }
.clients__grid li { position: relative; height: auto; aspect-ratio: 2 / 1; background: #fff; border-radius: 8px; overflow: hidden; }
.clients__grid img { position: absolute; inset: 0; margin: auto; width: 78%; height: 78%; max-width: none; max-height: none; object-fit: contain; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { overflow: hidden; background: var(--white); border: 1px solid var(--yellow); border-radius: 8px; padding: 5px; transition: background .25s, color .25s, transform .25s; }
.post-card:hover { transform: translateY(-2px); background: var(--dark); color: var(--white); border-color: var(--dark); }
.post-card:hover .post-card__title a, .post-card:hover .post-card__more { color: var(--white); }
.post-card:hover .post-card__date { color: #bbb; }
.post-card__media { display: block; overflow: hidden; border-radius: 6px; }
.post-card__media img, .post-card__media .ph { width: 100%; height: 100%; object-fit: cover; }
.post-card__date { display: block; font-size: 10px; color: #777; }
.post-card__title { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 4px 0 12px; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; }
.post-card__more .icon { font-size: 12px; }
.post-card--col .post-card__media { aspect-ratio: 16 / 9; }
.post-card--col .post-card__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 10px 8px; }
.post-card--col .post-card__title { order: 1; width: 100%; margin: 0 0 22px; font-size: 15px; font-weight: 600; }
.post-card--col .post-card__date { order: 2; font-size: 10px; font-weight: 500; color: #666; }
.post-card--col .post-card__more { order: 3; margin-left: auto; font-size: 10px; font-weight: 600; }
.post-card--row { display: grid; grid-template-columns: 38% 1fr; align-items: stretch; }
.post-card--row .post-card__media { height: 100%; min-height: 170px; border-radius: 6px; }
.post-card--row .post-card__body { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 22px; }
.post-card--row .post-card__date { position: static; font-size: 11px; }
.post-card--row .post-card__title { margin: auto 0; font-size: 24px; text-wrap: balance; }
.post-card--row .post-card__more { align-self: flex-end; margin-top: 0; }
.blogs-page { padding: 40px 0 24px; }
.blogs-page__search { display: flex; justify-content: flex-end; margin-bottom: 40px; }
.post-list { display: grid; gap: 18px; }
.pagination, .navigation.pagination { margin: 36px 0 12px; }
.pagination ul, .pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 50%; background: var(--white); font-size: 13px; }
.pagination .current, .pagination a.page-numbers:hover { background: var(--yellow); }

/* ---------- Home: FAQ ---------- */
.faq { position: relative; overflow: hidden; padding: 127px 0; background: var(--cream) var(--faq-bg, none) center / cover no-repeat; }
.faq__inner { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.faq__intro h2 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 500; letter-spacing: .08em; }
.faq__intro p { max-width: 280px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid #f0cf7a; border-radius: 10px; background: var(--white); transition: background .2s; }
.faq__item.is-open { background: var(--yellow-soft); border-color: var(--yellow); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 18px; border: 0; background: none; color: var(--dark); font: 500 13px var(--font-body); text-align: left; }
.faq__item.is-open .faq__q { position: relative; }
.faq__item.is-open .faq__q::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 1px; background: #F9B318; }
.faq__icon { position: relative; flex: none; width: 24px; height: 24px; border: 1.5px solid var(--dark); border-radius: 50%; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--dark); transform: translate(-50%, -50%); }
.faq__icon::before { width: 10px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 10px; }
.faq__item.is-open .faq__icon { background: var(--yellow); border-color: var(--yellow); }
.faq__item.is-open .faq__icon::after { display: none; }
.faq__a { display: none; padding: 0 18px 16px; font-size: 16px; color: #555; }
.faq__a p { margin: 0; }
.faq__item.is-open .faq__a { display: block; padding-top: 14px; }

/* ---------- Home: Ready ---------- */
.ready { padding: 0 0 40px; background: transparent; }
.ready > .container { position: relative; padding: 48px 20px 40px; background: #fff; }
.ready > .container::before { content: ''; display: block; width: 110px; height: 3px; margin: 0 auto 28px; background: #F9B318; }
.ready__title { font-size: clamp(22px, 3vw, 40px); font-weight: 600; letter-spacing: .1em; margin-bottom: 22px; line-height: 1.65; }
.ready__title span { display: block; color: var(--yellow); }
.ready p { margin-bottom: 26px; font-size: 14px; color: #424141; }
.ready__title { font-size: 40px; }
/* ---------- About ---------- */
.who { padding: 64px 0; }
.who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.goal { padding: 40px 0; background: var(--dark); color: var(--white); }
.goal__inner { display: flex; align-items: center; gap: 22px; }
.goal__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; color: var(--yellow); font-size: 40px; }
.goal__icon img { width: 100%; height: 100%; object-fit: contain; }
.goal__title { color: var(--white); font-size: 22px; letter-spacing: .3em; margin-bottom: 6px; font-weight: 500; }
.goal p { margin: 0; font-size: 13px; }
.cards-section { padding: 48px 0 24px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards .info-card:nth-child(odd):last-child { grid-column: 1 / -1; }
.info-card { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; background: var(--white); border: 1px solid #f0cf7a; border-radius: 10px; }
.info-card__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--dark); color: var(--yellow); font-size: 24px; overflow: hidden; }
.info-card__icon img { width: 60%; height: 60%; object-fit: contain; }
.info-card__num { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 20px 'IBM Plex Mono', monospace; color: var(--yellow); }
.info-card h3 { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; margin: 2px 0 8px; }
.info-card p:last-child { margin: 0; font-size: 11.5px; line-height: 1.7; color: #555; }

/* ---------- CTA banner ---------- */
.cta-wrap { padding: 32px 0 64px; }
.cta-banner { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 300px; border-radius: 14px; background: #1d1d1d var(--cta-bg, none) center / cover no-repeat; color: var(--white); }
.cta-banner__inner { position: relative; padding: 36px 44px; }
.cta-banner__title { color: var(--yellow); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; font-weight: 500; }
.cta-banner__text { font-size: 12px; margin-bottom: 14px; }
.cta-banner--card { container-type: inline-size; min-height: 345px; margin-top: 18px; border-radius: 18px; }
.cta-banner--card::before { background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .92) 24%, rgba(0, 0, 0, .45) 48%, rgba(0, 0, 0, 0) 72%); }
.cta-banner--card .cta-banner__inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: 100%; padding: 34px 6cqw; }
.cta-banner--card .cta-banner__title { max-width: 65%; margin-bottom: 22px; font: 600 clamp(22px, 6.4cqw, 36px)/1.25 var(--font-head); letter-spacing: .01em; }
.cta-banner--card .cta-banner__text { max-width: 65%; margin-bottom: 26px; font-size: clamp(14px, 3.2cqw, 18px); line-height: 1.5; text-wrap: balance; }
.cta-banner--card .btn { align-self: flex-start; }

/* ---------- Services page ---------- */
.services-page { padding: 56px 0 8px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 56px; }
.svc-row__media { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: #d6d6d6; }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row--flip .svc-row__media { order: 2; }
.svc-row__body { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: start; }
.svc-row__num { display: flex; align-items: center; gap: 12px; grid-column: 1; grid-row: 1 / span 3; margin: 0; font: 600 64px/.9 'IBM Plex Mono', monospace; color: #F9B318; }
.svc-row__num .line { display: none; }
.svc-row__body h3 { grid-column: 2; margin: 0 0 10px; font-size: 20px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.svc-row__body h3::before { content: ''; display: block; width: 50px; height: 2px; margin-bottom: 14px; background: #F9B318; }
.svc-row__sub { grid-column: 2; margin: 0 0 14px; font: 500 16px var(--font-body); color: #555; }
.svc-row__body > p:last-child { grid-column: 2; max-width: none; margin: 0; font-size: 13.5px; line-height: 1.85; color: #222; }

/* ---------- Projects page ---------- */
.projects-page { padding: 56px 0 8px; }
.projects-page .section-head h2 { position: relative; padding-bottom: 16px; }
.projects-page .section-head h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 50px; height: 2px; background: #F9B318; transform: translateX(-50%); }

/* ---------- Single post ---------- */
.post-page { padding: 40px 0 24px; }
.post-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.post-page__figure { margin: 0 0 22px; overflow: hidden; border-radius: 10px; }
.post-page__figure img { width: 100%; height: auto; }
.post-page__side { display: grid; gap: 16px; }
.post-page__side .search-pill { max-width: none; }
.side-title { font: 600 12px var(--font-body); letter-spacing: .02em; }
.related { display: grid; gap: 12px; }
.related__item { display: grid; grid-template-columns: 44% 1fr; gap: 14px; padding: 10px; background: #fff; border: 1.5px solid #F9B318; border-radius: 16px; }
.related__item > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.related__thumb { overflow: hidden; border-radius: 12px; }
.related__thumb img, .related__thumb .ph { width: 100%; height: 100%; min-height: 96px; object-fit: cover; }
.related time { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; color: #666; }
.related h3 { margin: auto 0; padding: 10px 0; font: 500 14px/1.7 var(--font-head); color: #101010; }
.related .post-card__more { align-self: flex-end; margin-top: 0; font-size: 12px; font-weight: 500; color: #101010; }

/* ---------- Contact ---------- */
.contact { padding: 56px 0 72px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; margin-bottom: 40px; }
.contact__info h2 { font: 500 32px/1.4 var(--font-head); color:#111111; }
.contact__rule { display: block; width: 38px; height: 2px; margin: 14px 0 18px; background: var(--yellow); }
.contact dl { margin: 0; }
.contact dt { margin-top: 20px; color: var(--yellow); font-weight: 600; font-size: 20px; }
.contact dd { margin: 2px 0 0; color: var(--dark); font-weight: 500; font-size: 18px; width:85%; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field__icon { position: absolute; left: 14px; top: 13px; font-size: 15px; color: #b7b7b7; pointer-events: none; }
.field__chev { position: absolute; right: 14px; top: 13px; font-size: 16px; color: var(--yellow); pointer-events: none; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--yellow); border-radius: 8px; background: var(--white); color: var(--dark); font: 400 12.5px var(--font-body); outline: 0; appearance: none; }
.field textarea { resize: vertical; min-height: 170px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(245, 168, 0, .25); }
.contact-form__submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 14px; padding: 13px; border: 0; border-radius: 8px; background: var(--dark); color: var(--yellow); font: 500 12px var(--font-body); }
.contact-form__submit:hover { background: #000; }
.notice { margin-bottom: 14px; padding: 12px 16px; border-radius: 8px; font-size: 13px; }
.notice--ok { background: #e6f5e8; color: #1d6b2c; }
.notice--err { background: #fde8e8; color: #9b1c1c; }
.map { overflow: hidden; height: 340px; border-radius: 10px; background: #d6d6d6; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Generic / project pages ---------- */
.generic { padding: 56px 0 40px; }
.project-page { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.project-page__facts { margin: 0; padding: 20px; background: var(--white); border-left: 3px solid var(--yellow); border-radius: 8px; }
.project-page__facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.project-page__facts dd { margin: 0 0 12px; font-weight: 500; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--white); }
.commit { display: grid; grid-template-columns: 60% 40%; align-items: stretch; min-height: 140px; border-bottom: 1px solid #F9B318; }
.commit__media { overflow: hidden; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); border-left: 1px solid #F9B318; }
.commit__media img, .commit__media .ph { width: 100%; height: 100%; object-fit: cover; background: #333; }
.site-footer .commit__media { height: 230px; }
.commit__text { display: flex; flex-direction: column; justify-content: center; padding: 20px 0 20px 8%; }
.commit__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--white); font-size: 13px; font-weight: 500; letter-spacing: .22em; }
.commit__big { margin: 0; font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--font-head); }
.commit__big--yellow { color: var(--yellow); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0 22px; }
.brand--footer .brand__img { height: 44px; }
.brand--footer .brand__text { color: var(--white); }
.brand--footer .brand__text small { color: #bbb; }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: 0; }
.footer-nav__list li { padding: 10px 12px; border-left: 1px solid #F9B318; line-height: 1; }
.footer-nav__list li:first-child { border-left: 0; }
.footer-nav__list li:last-child { padding-right: 0; }
.footer-nav__list a { font-size: 14px; font-weight: 500; color: #fff; }
.footer__mid { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
.footer-contact { display: flex; flex-wrap: nowrap; gap: 0; font-size: 11px; font-weight: 500; }
.footer-contact li { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border-left: 1px solid #F9B318; line-height: 1.5; }
.footer-contact li:first-child { padding-left: 0; border-left: 0; }
.footer-contact li:last-child { max-width: 270px; align-items: flex-start; }
.footer-contact li:last-child .icon { margin-top: 3px; }
.footer-contact .icon { color: var(--yellow); font-size: 13px; }
.footer-contact a { color: #fff; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; background: #F9B318; color: #101010; font-size: 20px; }
.socials--dark { gap: 10px; }
.socials--dark a { width: 26px; height: 26px; border: 2px solid var(--dark); border-radius: 5px; background: var(--dark); color: #fff; font-size: 17px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 22px; border-top: 1px solid #3a3a3a; font-size: 13px; }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 12px; }
.footer__legal span { color: #fff; }
.footer__legal a:hover { color: var(--yellow); }
.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: var(--white); font-size: 30px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s; }
.whatsapp-fab:hover { transform: scale(1.07); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.post-grid, .tiles, .project-grid { grid-template-columns: repeat(2, 1fr); }
	.about-home__panel { padding: 36px 28px; gap: 32px; }
}
@media (max-width: 900px) {
	.burger { display: flex; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid #eee; box-shadow: 0 12px 24px rgba(0, 0, 0, .1); }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 0; padding: 8px 16px 14px; }
	.nav__list a { padding: 12px 0; }
	.about-home__panel, .who__grid, .faq__inner, .contact__grid, .svc-row, .post-page__grid, .project-page { grid-template-columns: 1fr; }
	.svc-row { gap: 22px; margin-bottom: 40px; }
	.svc-row--flip .svc-row__media { order: 0; }
	.cards { grid-template-columns: 1fr; }
	.commit { grid-template-columns: 1fr; }
	.commit__media { clip-path: none; }
	.commit__text { padding: 20px 0; }
	.footer__top, .footer__mid { flex-direction: column; align-items: flex-start; }
	.footer-contact { flex-wrap: wrap; gap: 10px 0; }
	.footer-nav__list li { padding: 10px 9px; }
}
@media (max-width: 600px) {
	.topbar__inner { flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
	.post-grid, .project-grid { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.clients__grid { grid-template-columns: repeat(2, 1fr); }
	.post-card--row { grid-template-columns: 1fr; }
	.post-card--row .post-card__media { aspect-ratio: 16 / 9; height: auto; }
	.post-card--row .post-card__body { padding: 36px 18px 16px; }
	.contact-form__grid { grid-template-columns: 1fr; }
	.footer__bottom { flex-direction: column; }
	.gallery-grid { grid-template-columns: 1fr; }
	.cta-banner__inner { padding: 28px 22px; }
	.blogs-page__search { justify-content: stretch; }
	.blogs-page__search .search-pill { max-width: none; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .field input, [dir="rtl"] .field select, [dir="rtl"] .field textarea { padding: 11px 40px 11px 14px; }
[dir="rtl"] .field__icon { left: auto; right: 14px; }
[dir="rtl"] .field__chev { right: auto; left: 14px; }
[dir="rtl"] .btn { padding: 0 25px 0 0; }
[dir="rtl"] .btn__icon { margin: -1.5px 0 -1.3px -6px; }
[dir="rtl"] .btn__icon .icon, [dir="rtl"] .post-card__more .icon { transform: scaleX(-1); }

/* ---------- Contact Form 7 ---------- */
.contact__form .wpcf7-form-control-wrap { display: block; }
.contact__form .wpcf7-not-valid-tip { margin-top: 4px; font-size: 11px; color: #9b1c1c; }
.contact__form .wpcf7-not-valid { border-color: #9b1c1c; }
.contact__form .wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 12px 16px; border: 0; border-radius: 8px; font-size: 13px; background: #e6f5e8; color: #1d6b2c; }
.contact__form .wpcf7 form.invalid .wpcf7-response-output, .contact__form .wpcf7 form.failed .wpcf7-response-output { background: #fde8e8; color: #9b1c1c; }
.contact__form .contact-form__grid { gap: 16px; }
.contact__form .field svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__form .field input, .contact__form .field select, .contact__form .field textarea { height: 62px; padding: 0 18px 0 54px; border: 2px solid #F9B318; border-radius: 12px; font-size: 15px; color: #333; }
.contact__form .field textarea { height: auto; min-height: 250px; padding: 20px 18px 18px 54px; }
.contact__form .field input::placeholder, .contact__form .field textarea::placeholder { color: #9a9a9a; opacity: 1; }
.contact__form .field select { color: #9a9a9a; }
.contact__form .field__icon { position: absolute; left: 16px; top: 31px; width: 24px; height: 24px; transform: translateY(-50%); color: #9a9a9a; z-index: 1; }
.contact__form .field--area .field__icon { top: 32px; }
.contact__form .field__chev { position: absolute; right: 18px; top: 31px; width: 26px; height: 26px; transform: translateY(-50%); color: #F9B318; pointer-events: none; }
.contact__form .field__chev svg { stroke-width: 2.4; }
.contact__form .contact-form__submit { height: 58px; font-size: 15px; }
.contact__form .contact-form__submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* صورة الفوتر في العربي: من غير قلب (زي التصميم، الكتابة على الألواح تتقري عادي) */
[dir="rtl"] .commit__media img, html[lang^="ar"] .commit__media img { transform: none; }

/* Footer (Arabic): same look as the English footer, mirrored left <-> right. */
[dir="rtl"] .commit__label { letter-spacing: 0; }

@media (min-width: 901px) {
	/* الصورة يمين بحافة مائلة من ناحية الشمال، والنص شمالها ملزوق في الحافة */
	[dir="rtl"] .commit { grid-template-columns: 60% 40%; }
	[dir="rtl"] .commit__media { clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%); border-left: 0; border-right: 1px solid #F9B318; }
	[dir="rtl"] .commit__text { padding: 20px 8% 20px 0; text-align: right; align-items: flex-start; }

	[dir="rtl"] .footer__top, [dir="rtl"] .footer__mid, [dir="rtl"] .footer__bottom { flex-direction: row-reverse; }

	[dir="rtl"] .footer-nav__list li { border-left: 0; border-right: 1px solid #F9B318; }
	[dir="rtl"] .footer-nav__list li:first-child { border-right: 0; padding-right: 0; }
	[dir="rtl"] .footer-nav__list li:last-child { padding-right: 12px; }
}

[dir="rtl"] .footer-contact, [dir="rtl"] .socials { direction: ltr; }

[dir="rtl"] .footer__bottom p:first-child { direction: ltr; }

/* ---------- RTL: محتوى المقال ---------- */
[dir="rtl"] .prose h2, [dir="rtl"] .prose h3, [dir="rtl"] .entry-content h2 { padding: 4px 12px 4px 0; border-left: 0; border-right: 3px solid #F9B318; letter-spacing: 0; text-align: right; }

[dir="rtl"] .prose ul li, [dir="rtl"] .entry-content ul li { padding-left: 0; padding-right: 22px; }

[dir="rtl"] .prose ul li::before, [dir="rtl"] .entry-content ul li::before { left: auto; right: 0; }

/* ---------- RTL: فورم التواصل ---------- */
[dir="rtl"] .contact__form .field__icon { left: auto; right: 16px; }
[dir="rtl"] .contact__form .field__chev { right: auto; left: 18px; }

[dir="rtl"] .contact__form .field input, [dir="rtl"] .contact__form .field select, [dir="rtl"] .contact__form .field textarea { padding: 0 54px 0 18px; }

[dir="rtl"] .contact__form .field textarea { padding: 20px 54px 18px 18px; }

[dir="rtl"] .contact__form .contact-form__submit svg { transform: scaleX(-1); }

/* صفحة التواصل: أيقونات السوشيال على اليمين في العربي */
[dir="rtl"] .contact .socials { direction: rtl; }

/* ---------- منيو الفوتر (عربي): سطر واحد وينزل مظبوط ---------- */
[dir="rtl"] .site-footer .footer-nav__list { display: flex; flex-wrap: wrap; gap: 10px 0; overflow: hidden; }

[dir="rtl"] .site-footer .footer-nav__list li, [dir="rtl"] .site-footer .footer-nav__list li:first-child, [dir="rtl"] .site-footer .footer-nav__list li:last-child { padding: 0 14px; border: 0; border-inline-start: 1px solid #F9B318; margin-inline-start: -1px; line-height: 1.4; }

[dir="rtl"] .site-footer .footer-nav__list a { display: block; letter-spacing: 0; white-space: nowrap; }

.whatsapp-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; place-items: center; width: 62px; height: 62px; border: 4px solid #fff; border-radius: 50%; background: #25d366; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .2s; }
.whatsapp-fab svg { width: 34px; height: 34px; }
.whatsapp-fab:hover { transform: scale(1.07); }
/* الشريط العلوي: نفس شكل الإنجليزي (شمال) */
[dir="rtl"] .topbar__inner { direction: ltr; }

/* عنوان قسم "عن الشركة": الشرطة على اليمين */
[dir="rtl"] .about-home__body .title-sm { padding-left: 0; padding-right: 14px; border-left: 0; border-right: 3px solid #F9B318; letter-spacing: 0; }

/* زرار "اكتشف خدماتنا": نفس لون خلفية السكشن */
.home-services .btn--light { background: var(--cream); border-color: var(--dark); }
.home-services .btn--light .btn__icon { color: var(--yellow); }
[dir="rtl"] .home-services .btn .btn__label { letter-spacing: 0; }

/* كل الزراير: خط أتخن */
.btn, .btn.btn--outline, .btn .btn__label, .contact-form__submit { font-weight: 700; }

/* الفوتر السفلي: سنتر في التابلت والموبايل */
@media (max-width: 900px) {
	.footer__bottom { flex-direction: column; align-items: center; gap: 8px; padding-bottom: 84px; text-align: center; }
	.footer__legal { justify-content: center; flex-wrap: wrap; }
}

/* قسم "هدفنا / Our Goal" */
.goal__inner { align-items: flex-start; }
.goal__icon { margin-top: -4px; }
.goal__title { margin-bottom: 12px; }
.goal__title::after { content: ''; display: block; width: 40px; height: 2px; margin-top: 8px; background: var(--yellow); }
.goal__inner > div { min-width: 0; }
.goal p { overflow-wrap: anywhere; }

/* العربي: بدون تباعد حروف عشان الكلمة تفضل متصلة */
[dir="rtl"] .goal__title { font-size: 20px; letter-spacing: 0; }

/* بانر الـ CTA: خطوط وبادينج زي التصميم */
.cta-banner:not(.cta-banner--card) .cta-banner__inner { padding: 40px 44px; }

.cta-banner:not(.cta-banner--card) .cta-banner__title { margin-bottom: 18px; font: 600 19px/1.4 var(--font-head); letter-spacing: .04em; }

.cta-banner:not(.cta-banner--card) .cta-banner__text { margin-bottom: 22px; font-size: 12px; line-height: 1.6; }

.cta-banner:not(.cta-banner--card) .btn { font-size: 11px; }
.cta-banner:not(.cta-banner--card) .btn .btn__icon { width: 30px; height: 30px; font-size: 16px; }

/* العربي: بدون تباعد حروف عشان الكلمات تفضل متصلة */
[dir="rtl"] .cta-banner .cta-banner__title { letter-spacing: 0; }
.hero__title { line-height: 1.8; }

/* المقالات ذات الصلة: خطوط أتخن */
.side-title { font-weight: 700; }
.related time { font-weight: 600; }
.related h3 { font-weight: 600; }
.related .post-card__more { font-weight: 600; }
.side-title { font-size: 18px; }

/* ---------- كروت المقالات (post-card--col): زي التصميم ---------- */
.post-card--col { display: flex; flex-direction: column; padding: 5px; border: 1px solid #F9B318; border-radius: 8px; background: #fff; }
.post-card--col .post-card__media { flex: none; aspect-ratio: 16 / 9; border-radius: 6px; }
.post-card--col .post-card__media img, .post-card--col .post-card__media .ph { width: 100%; height: 100%; object-fit: cover; }

/* الجسم يتمدد عشان التاريخ و Read More ينزلوا تحت في كل الكروت */
.post-card--col .post-card__body { flex: 1; display: flex; flex-wrap: wrap; align-content: space-between; align-items: center; padding: 18px 12px 10px; }

.post-card--col .post-card__title { order: 1; width: 100%; margin: 0 0 22px; font: 500 16px/1.45 'Cabin', 'Cairo', sans-serif; letter-spacing: 0; color: var(--dark); text-wrap: pretty; }
.post-card__title a { color: inherit; }
.post-card--col .post-card__date { order: 2; font: 500 10px/1 'Cabin', 'Cairo', sans-serif; color: #555; }
.post-card--col .post-card__more { order: 3; margin-left: 0; margin-inline-start: auto; font: 600 10px/1 'Cabin', 'Cairo', sans-serif; color: var(--dark); }

/* هوفر: نص أبيض على الخلفية الغامقة */
.post-card--col:hover .post-card__title, .post-card--col:hover .post-card__title a, .post-card--col:hover .post-card__more { color: #fff; }
.post-card--col:hover .post-card__date { color: #bbb; }

/* العربي: خط Cairo، بدون تباعد حروف، النص يمين، والسهم متعكس */
[dir="rtl"] .post-card--col .post-card__body { direction: rtl; text-align: right; }
[dir="rtl"] .post-card--col .post-card__title, [dir="rtl"] .post-card--col .post-card__date, [dir="rtl"] .post-card--col .post-card__more { font-family: 'Cairo', 'Cabin', sans-serif; letter-spacing: 0; }
[dir="rtl"] .post-card--col .post-card__title { font-size: 17px; line-height: 1.7; }
[dir="rtl"] .post-card--col .post-card__date, [dir="rtl"] .post-card--col .post-card__more { font-size: 11px; }

/* زرار اللغة (EN / AR): أكبر وأتخن */
.lang, .header__tools .lang { font-size: 20px; font-weight: 800; letter-spacing: .02em; }

/* سكشن "Ready to start": بدون خلفية بيضاء */
.ready > .container { background: transparent; }

[dir="rtl"] .nav__list a { font-weight: 600; letter-spacing: 0; }

/* قسم الأسئلة: الخلفية تظهر كاملة (علامة الاستفهام مش مقصوصة) */
.faq { --faq-ratio: 2.6; background-size: cover; background-position: center; background-repeat: no-repeat; }
@media (min-width: 901px) {
	/* الصورة تملا العرض كله، والسكشن ياخد ارتفاع الصورة عشان علامة الاستفهام تظهر كاملة */
	.faq { display: grid; align-content: center; min-height: calc(100vw / var(--faq-ratio)); background-size: 100% 100%; }
}
.about-home__body .btn--light { background: transparent; }

/* خط أصفر صغير تحت جملة سكشن الخدمات */
.home-services .section-head p { position: relative; padding-bottom: 16px; }
.home-services .section-head p::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 50px; height: 4px; background: #F9B318; transform: translateX(-50%); }

/* كروت الخدمات: حواف أكتر استدارة واللابل نازل على حافة الكارد */
.tile { aspect-ratio: 1.1 / 1; border-radius: 18px; overflow: visible; /* عشان اللابل يعدّي حافة الكارد */ }

.tile img { border-radius: 18px; }
.tile:hover img { transform: none; filter: brightness(1.06); }
/* بدل الزوم عشان الحواف متتقصش */

.tile__label { left: 50%; right: auto; bottom: -12px; /* نازل على الحافة. زوّد الرقم السالب لو عايزه ينزل أكتر */ max-width: calc(100% - 20px); padding: 7px 18px; background: #F9B318; border-radius: 8px; color: #101010; font: 700 13px/1.2 var(--font-head); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); }
.tile__label::before { display: none; }

.tiles { margin-bottom: 44px; }
/* مساحة للابل اللي بيطلع تحت الكارد */

@media (max-width: 600px) {
	.tile__label { font-size: 12px; padding: 6px 12px; }
}

/* سكشن العملاء: عنوان أتخن وجملة أكبر */
.clients .section-head h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; }
.clients .section-head p { font-size: 16px; line-height: 1.7; }

/* العربي: بدون تباعد حروف، وده اللي كان مطّط الحروف */
[dir="rtl"] .clients .section-head h2, [dir="rtl"] .clients .section-head p { letter-spacing: 0; }

/* سكشن المدونة: عنوان أتخن وجملة أكبر */
.home-blogs .section-head h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; }
.home-blogs .section-head p { font-size: 16px; line-height: 1.7; }

/* العربي: بدون تباعد حروف عشان الحروف متتمطّطش */
[dir="rtl"] .home-blogs .section-head h2, [dir="rtl"] .home-blogs .section-head p { letter-spacing: 0; }

/* الفوتر (أساسات متينة لمستقبل أقوى): خط أكبر */
.commit__big { font-size: clamp(24px, 2.8vw, 34px); }
.commit__label { font-size: 15px; }

/* العربي: بدون تباعد حروف عشان الكلمات تفضل متصلة */
[dir="rtl"] .commit__big, [dir="rtl"] .commit__label { letter-spacing: 0; }

/* صورة الفوتر: من غير خلفية رمادي، وأي جزء شفاف ياخد لون الفوتر (عربي وإنجليزي) */
.commit__media { background: var(--dark); }
.commit__media img, .commit__media .ph { background: none; }

.goal__inner p { font-size: 14px !important; line-height: 1.6 !important; }
.goal__inner p { max-width: 830px; }

/* إخفاء الـ select الأصلي (بيفضل موجود عشان الفورم) */
.field select { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; }

/* الـ dropdown الجديد */
.cs { position: relative; }
.cs__btn { display: block; width: 100%; height: 62px; padding: 0 54px; border: 2px solid #F9B318; border-radius: 12px; background: #fff; color: #333; font: 400 15px 'Cabin', 'Cairo', sans-serif; text-align: left; cursor: pointer; }
.cs__btn.is-placeholder { color: #9a9a9a; }
.cs__btn:focus-visible { box-shadow: 0 0 0 3px rgba(245, 168, 0, .25); outline: 0; }

.cs__list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; overflow: hidden; background: #fff; border: 2px solid #F9B318; border-radius: 12px; }
.cs.is-open .cs__list { display: block; }

.cs__item { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid #F9B318; color: #101010; font: 500 15px 'Cabin', 'Cairo', sans-serif; cursor: pointer; }
.cs__item:last-child { border-bottom: 0; }
.cs__item:hover, .cs__item.is-selected { background: #101010; color: #F9B318; }

.cs__radio { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #a8a8a8; }
.cs__radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.cs__item:hover .cs__radio, .cs__item.is-selected .cs__radio { background: #F9B318; }

/* الأيقونات فوق الزرار + السهم يلف لما تفتح */
.field__icon, .field__chev { z-index: 2; }
.contact__form .field.is-open .field__chev { transform: translateY(-50%) rotate(180deg); }

/* العربي */
[dir="rtl"] .cs__btn { padding: 0 54px 0 18px; text-align: right; }
[dir="rtl"] .cs__item { flex-direction: row-reverse; }

.faq__q { display: flex; align-items: center; gap: 18px; }

/* دايرة علامة الاستفهام */
.faq__mark { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #fbb117; /* غيّره للبرتقالي بتاع الثيم */ color: #1a1a1a; font-size: 22px; font-weight: 700; line-height: 36px; text-align: center; }

/* نص السؤال ياخد المساحة المتبقية */
.faq__q-text { flex: 1; font-size: 20px; font-weight: 600; line-height: 1.4; }

/* الإجابة تبدأ تحت النص مش تحت الدايرة */
.faq__a { padding-inline-start: calc(var(--faq-pad, 28px) + 36px + 18px); }

@media (max-width: 767px) {
	/* Logo + nav: centered stack */
	.site-footer .footer__top { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
	.site-footer .brand--footer { display: inline-flex; justify-content: center; }
	.site-footer .brand--footer img, .site-footer .brand__img { max-width: 200px; height: auto; }

	/* Links: even 2-column grid, no dividers */
	.site-footer .footer-nav { width: 100%; }
	.site-footer .footer-nav__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
	.site-footer .footer-nav__list li { margin: 0; padding: 0; border: 0; }
	.site-footer .footer-nav__list li::before, .site-footer .footer-nav__list li::after { display: none; }
	.site-footer .footer-nav__list li:last-child:nth-child(odd) { grid-column: 1 / -1; /* odd one out takes the full row */ }
	.site-footer .footer-nav__list a { display: block; padding: 10px 12px; text-align: center; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; }

	/* Contact + socials: one aligned block, then socials centered */
	.site-footer .footer__mid { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 24px; }
	.site-footer .footer-contact { display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: max-content; max-width: 100%; margin: 0 auto; padding: 0; list-style: none; }
	.site-footer .footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 0; border: 0; }
	.site-footer .footer-contact li .icon { flex: 0 0 auto; margin-top: 2px; }
	.site-footer .socials { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }

	/* Bottom: copyright + legal links centered, room for the WhatsApp button */
	.site-footer .footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-bottom: 84px; }
	.site-footer .footer__bottom p { margin: 0; }
	.site-footer .footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
}

/* ==========================================================================
   Footer — organized tablet layout (768px – 1024px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
	.commit__media { border-left: none; }
	/* Logo centered, links in one tidy centered row */
	.site-footer .footer__top { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
	.site-footer .brand--footer img, .site-footer .brand__img { max-width: 220px; height: auto; }
	.site-footer .footer-nav { width: 100%; }
	.site-footer .footer-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
	.site-footer .footer-nav__list li { margin: 0; padding: 0; border: 0; }
	.site-footer .footer-nav__list li::before, .site-footer .footer-nav__list li::after { display: none; }

	/* Contact on one side, socials on the other */
	.site-footer .footer__mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 28px; }
	.site-footer .footer-contact { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
	.site-footer .footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 0; border: 0; }
	.site-footer .footer-contact li .icon { flex: 0 0 auto; margin-top: 2px; }
	.site-footer .socials { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }

	/* Copyright and legal links on one row, clear of the WhatsApp button */
	.site-footer .footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-bottom: 84px; }
	.site-footer .footer__bottom p { margin: 0; }
	.site-footer .footer__legal { display: flex; flex-wrap: wrap; gap: 6px 14px; }
}

.site-footer .commit__big, .site-footer .commit__big--yellow { font-size: 36px; line-height: 1.35; }

[dir="rtl"] .faq__a, [dir="rtl"] .faq__a p, [dir="rtl"] .faq__q-text { text-align: right; text-align-last: right; }

/* ==========================================================================
   Search — Option A: popover card under the search icon
   Paste at the END of the stylesheet (use ONLY ONE of the two options).
   ========================================================================== */
.header-search[hidden] { display: none !important; }
.header-search { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; padding: 12px 0 0; background: transparent; border: 0; pointer-events: none; /* only the card is clickable, the rest of the strip is click-through */ }
.header-search .container { display: flex; justify-content: flex-end; /* under the tools side (icon side), works in RTL too */ }
.header-search__card { pointer-events: auto; width: min(330px, 100%); padding: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .16); animation: hs-pop .18s ease-out; }
.header-search__close { display: none; /* not needed for the popover (Esc / click outside / icon) */ }
@keyframes hs-pop {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
	.header-search .container { justify-content: stretch; }
	.header-search__card { width: 100%; }
}

/* الـ placeholder يمين في العربي (والنص المكتوب بعد الكتابة يفضل زي ما هو) */
[dir="rtl"] .contact__form .field input:placeholder-shown, [dir="rtl"] .contact__form .field textarea:placeholder-shown { direction: rtl !important; text-align: right !important; }

/* تطويل كارد المقالات الأفقي */
@media (min-width: 601px) {
	.post-card--row .post-card__media { min-height: 240px; }
}

/* صفحة الخدمات (عربي + إنجليزي): الخطوط زي التصميم */
.svc-row__body h3 { font-weight: 700; }

.svc-row__sub { font-size: 17px; font-weight: 500; color: #555; }

.svc-row__body > p:last-child { font-size: 14.5px; line-height: 1.9; color: #222; text-align: justify; }

/* قسم "من نحن" (عربي + إنجليزي): زي التصميم */
.who .title-sm,
.who h2 {
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: .18em;
}

.who .prose {
	font-family: var(--font-head);
	font-size: 17px;
	line-height: 2;
	color: #333;
	text-align: justify;
}

.who .prose p {
	margin-bottom: 1.6em;
}

.wpcf7-spinner{display:none!important}

/* حالة الإرسال: الزرار يفضل غامق، والكلام والأيقونة يتشالوا، وتظهر دايرة + كلمة */
.contact__form form.submitting .contact-form__submit,
.contact__form form[data-status="submitting"] .contact-form__submit{
  font-size:0!important;
  opacity:1!important;
  pointer-events:none;
  cursor:wait;
  gap:12px;
}
.contact__form form.submitting .contact-form__submit svg,
.contact__form form[data-status="submitting"] .contact-form__submit svg{
  display:none!important;
}

/* الدايرة اللي بتلف (::before) */
.contact__form form.submitting .contact-form__submit::before,
.contact__form form[data-status="submitting"] .contact-form__submit::before{
  content:"";
  flex:none;
  width:20px;
  height:20px;
  border:3px solid #F9B318;
  border-top-color:transparent;
  border-radius:50%;
  animation:cf7-spin .7s linear infinite;
}

/* الكلمة (::after): بدون أي دايرة، وبتلغي أي كود قديم كان بيرسم دايرة تانية */
.contact__form form.submitting .contact-form__submit::after,
.contact__form form[data-status="submitting"] .contact-form__submit::after{
  content:"Loading…";
  display:block!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  animation:none!important;
  color:#F9B318;
  font:700 15px 'Cabin','Cairo',sans-serif;
}

[dir="rtl"] .contact__form form.submitting .contact-form__submit::after,
[dir="rtl"] .contact__form form[data-status="submitting"] .contact-form__submit::after,
html[lang^="ar"] .contact__form form.submitting .contact-form__submit::after,
html[lang^="ar"] .contact__form form[data-status="submitting"] .contact-form__submit::after{
  content:"جاري التحميل…";
}

@keyframes cf7-spin{
  to{transform:rotate(360deg)}
}