/* ===== Tokens ===== */
:root {
	--navy: #070c1a;
	--navy-2: #0d1730;
	--surface: #ffffff;
	--tint: #f3f6fb;
	--text: #101828;
	--muted: #5c6b81;
	--border: #e3e8f2;
	--border-strong: #cbd5e8;
	--cyan: #17b8e8;
	--blue: #2451e0;
	--pink: #ff2f7e;
	--pink-dark: #d81862;
	--yellow: #ffcc33;
	--good: #17a866;
	--good-bg: #e7f8ef;
	--radius: 16px;
	--radius-sm: 11px;
	--shadow: 0 8px 26px rgba(10,20,50,.09);
	--shadow-lg: 0 24px 54px rgba(10,20,50,.2);
	--container: 1200px;
	--font-ar: 'Tajawal', system-ui, sans-serif;
	--font-en: 'Poppins', system-ui, sans-serif;
}
html[lang="ar"] { --font-primary: var(--font-ar); }
html:not([lang="ar"]) { --font-primary: var(--font-en); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-primary), var(--font-ar), var(--font-en), sans-serif; line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(23px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; top: -50px; inset-inline-start: 10px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; transition: top .2s; }
.skip-link:focus { top: 10px; }
.ic { flex-shrink: 0; vertical-align: middle; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 15px; border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-accent { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); color: #fff; box-shadow: 0 10px 26px rgba(255,47,126,.32); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255,47,126,.4); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

/* ===== Header ===== */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 26px; padding-block: 12px; }
.site-logo-img { height: 46px; width: auto; }
.primary-nav { flex: 1; }
.primary-menu { display: flex; gap: 4px; flex-wrap: wrap; }
.primary-menu a { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--navy); white-space: nowrap; }
.primary-menu a:hover { background: var(--tint); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-menu { display: none; }
.mobile-menu-list a { display: block; padding: 12px 20px; border-bottom: 1px solid var(--border); font-weight: 600; }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-current { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--border-strong); border-radius: 20px; font-weight: 700; font-size: 13.5px; color: var(--navy); background: none; cursor: pointer; }
.lang-current:hover { background: var(--tint); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 150px; padding: 6px; z-index: 50; }
.lang-menu[data-open] { display: block; }
.lang-menu li a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.lang-menu li a:hover { background: var(--tint); }

@media (max-width: 960px) {
	.primary-nav { display: none; }
	.menu-toggle { display: flex; }
	.mobile-menu[data-open] { display: block; background: var(--surface); border-top: 1px solid var(--border); }
	.site-logo-img { height: 38px; }
}

/* ===== Hero ===== */
.hero--home { position: relative; overflow: hidden; background: radial-gradient(ellipse 120% 100% at 50% -10%, var(--navy-2) 0%, var(--navy) 55%); padding: clamp(60px,9vw,120px) 0 clamp(70px,9vw,120px); text-align: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 25%, rgba(23,184,232,.22), transparent 42%), radial-gradient(circle at 88% 75%, rgba(255,47,126,.18), transparent 42%); pointer-events: none; }
.hero-inner { position: relative; max-width: 820px; margin-inline: auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 30px; border: 1px solid rgba(23,184,232,.4); background: rgba(23,184,232,.12); color: #7fe0f7; font-size: 14px; font-weight: 700; margin-bottom: 22px; }
.hero--home h1 { color: #fff; background: linear-gradient(90deg, #fff, #bfe9fb); -webkit-background-clip: text; background-clip: text; }
.hero-sub { color: #aab8d1; font-size: 18px; max-width: 46em; margin-inline: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero--home .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero--home .btn-outline:hover { background: #fff; color: var(--navy); }
.trust-stats { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.trust-stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trust-stats strong { font-size: 26px; font-weight: 800; background: linear-gradient(90deg, var(--cyan), #7fe0f7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.trust-stats span { font-size: 13px; color: #93a3c0; }
.trust-stats--inline { justify-content: flex-start; margin: 26px 0; padding: 24px; background: var(--tint); border-radius: var(--radius); }
.trust-stats--inline strong { color: var(--navy); -webkit-text-fill-color: initial; background: none; }
.trust-stats--inline span { color: var(--muted); }

.page-hero { background: var(--tint); border-bottom: 1px solid var(--border); padding-block: 34px 30px; }
.page-hero-desc { font-size: 17px; max-width: 55em; }
.page-hero--pillar { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.page-hero--pillar h1 { color: #fff; }
.page-hero--pillar .page-hero-desc { color: #aab8d1; }
.page-hero--pillar .crumbs a, .page-hero--pillar .crumbs span { color: #aab8d1; }

/* ===== Breadcrumbs ===== */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13.5px; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '/'; margin-inline-start: 6px; opacity: .5; }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--navy); font-weight: 700; }

/* ===== Sections ===== */
.section { padding-block: clamp(46px,6vw,84px); }
.section--tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }

/* ===== Card grid ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--cyan); }
.cat-card p { font-size: 14px; margin: 0; }
.cat-card > .ic:last-child { margin-top: auto; color: var(--pink); }
.cat-icon { width: 50px; height: 50px; border-radius: 13px; background: linear-gradient(135deg, rgba(23,184,232,.14), rgba(36,81,224,.14)); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.card-badge { position: absolute; top: 16px; inset-inline-end: 16px; background: linear-gradient(135deg, var(--yellow), #ffb020); color: #4a2c00; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }

/* ===== Intent/entry content ===== */
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.entry-content ul li { color: var(--text); margin-bottom: .4em; }
.entry-content ol { padding-inline-start: 1.4em; margin-bottom: 1em; }
.entry-content ol li { color: var(--text); margin-bottom: .5em; }
.entry-content strong { color: var(--text); }

/* ===== Service layout ===== */
.cat-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; padding-block: 40px; align-items: start; }
.cat-side { position: sticky; top: 90px; }
@media (max-width: 980px) { .cat-layout { grid-template-columns: 1fr; } .cat-side { position: static; } }

.side-form-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; }
.side-form-card h2 { color: #fff; font-size: 19px; }
.request-form label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; color: #cfd9ec; }
.contact-main .request-form label { color: var(--text); }
.request-form input, .request-form textarea { width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; font-family: inherit; margin-bottom: 14px; }
.contact-main .request-form input, .contact-main .request-form textarea { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.request-form input::placeholder, .request-form textarea::placeholder { color: rgba(255,255,255,.5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.request-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.form-success { display: flex; align-items: center; gap: 8px; background: var(--good-bg); color: var(--good); padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

/* ===== Pricing ===== */
.pricing-tab-heads { display: flex; gap: 10px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pricing-tab-head { position: relative; padding: 13px 26px; border-radius: 30px; border: 2px solid var(--border-strong); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pricing-tab-head.is-active { border-color: var(--pink); color: var(--pink-dark); background: #fff0f5; }
.tab-badge { background: linear-gradient(135deg, var(--yellow), #ffb020); color: #4a2c00; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.pricing-tab-panel { display: none; }
.pricing-tab-panel.is-active { display: block; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing-card { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.pricing-card.is-featured { border-color: var(--pink); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-featured-tag { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--pink), var(--pink-dark)); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
html[dir="rtl"] .pricing-featured-tag { transform: translateX(50%); }
.pricing-card h3 { font-size: 20px; margin-bottom: 6px; }
.pricing-price { font-size: 38px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.pricing-price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.pricing-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--text); }
.pricing-features .ic { color: var(--good); margin-top: 3px; }
.pricing-card .btn { justify-content: center; }
.pricing-help { text-align: center; margin: 44px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (max-width: 900px) { .pricing-cards { grid-template-columns: 1fr; } .pricing-card.is-featured { transform: none; } }

/* ===== Proof / results ===== */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.proof-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.proof-img { border-bottom: 1px solid var(--border); }
.proof-img img { width: 100%; }
.proof-card figcaption { padding: 20px 22px; }
.proof-stat { display: block; font-size: 26px; font-weight: 800; background: linear-gradient(90deg, var(--pink), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; }
.proof-card figcaption > span { display: block; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.proof-card figcaption p { font-size: 13.5px; margin: 0; }

/* ===== FAQ ===== */
.faq-block { padding-block: 44px; max-width: 820px; margin-inline: auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 18px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item summary .ic { transition: transform .2s; color: var(--pink); }
.faq-a { padding-bottom: 16px; color: var(--muted); }

/* ===== CTA ===== */
.cta-block { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; text-align: center; padding: clamp(44px,6vw,68px) 20px; margin-top: 40px; position: relative; overflow: hidden; }
.cta-block::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,47,126,.18), transparent 40%), radial-gradient(circle at 80% 70%, rgba(23,184,232,.18), transparent 40%); }
.cta-block > * { position: relative; }
.cta-block h2 { color: #fff; }
.cta-block p { color: #aab8d1; }

/* ===== Blog ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.post-card:hover { transform: translateY(-3px); }
.post-card-body { padding: 18px 20px; }
.post-card-body p { font-size: 14px; margin: 0; }
.empty-inline { text-align: center; padding: 40px 0; color: var(--muted); }

/* ===== Contact/stats/footer ===== */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-block: 40px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.site-footer { background: var(--navy); color: #b0bcd4; margin-top: 60px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 50px; }
.footer-brand .site-logo-img { height: 42px; }
.footer-brand .btn-outline { margin-top: 16px; border-color: rgba(255,255,255,.3); color: #fff; }
.footer-brand .btn-outline:hover { background: #fff; color: var(--navy); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a:hover { color: #fff; }
.footer-lang-title { font-weight: 700; color: #fff; margin-bottom: 10px; font-size: 14px; }
.footer-lang-list { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-lang-list a { padding: 5px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; font-size: 13px; }
.footer-lang-list a:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 16px; text-align: center; font-size: 13px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }

.error-404 { text-align: center; padding-block: 100px; }
.search-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }

/* ===== Floating WhatsApp button ===== */
.fab-whatsapp { position: fixed; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); z-index: 90; transition: transform .2s; }
.fab-whatsapp:hover { transform: scale(1.08); }

.footer-legal { margin-top: 8px; font-size: 12.5px; }
.footer-legal a { color: #93a3c0; }
.footer-legal a:hover { color: #fff; }
