/* شركة كرم العالي — base, layout, header, hero, footer
   Identity: deep navy + amber orange (from the company profile), Changa headings, IBM Plex Sans Arabic text. */
:root {
    --primary: #f39c12; --primary-rgb: 243, 156, 18; --primary-dark: #cf8410; --primary-soft: #fdf1de;
    --dark: #0b1b33; --dark-rgb: 11, 27, 51; --dark-2: #14294a; --dark-3: #24406a;
    --accent: #ffc94a; --accent-soft: #fff6dd;
    --ink: #1b2434; --muted: #5f6b7c; --line: #e7e3dc; --bg: #ffffff; --bg-alt: #f6f3ee;
    --radius: 14px; --radius-lg: 22px; --shadow: 0 14px 40px -18px rgba(11, 27, 51, .35); --shadow-sm: 0 6px 18px -10px rgba(11, 27, 51, .3);
    --font-head: 'Changa', 'IBM Plex Sans Arabic', sans-serif; --font-body: 'IBM Plex Sans Arabic', 'Changa', sans-serif;
    --container: 1220px; --header-h: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.85; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; color: var(--dark); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .55); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }
.alt { background: var(--bg-alt); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.center-btn { text-align: center; margin-top: 46px; }
.hide-sm { }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 50px; border: 2px solid transparent;
    font-family: var(--font-head); font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; transition: all .25s; white-space: nowrap; background: none; }
.btn i { font-size: .85em; transition: transform .25s; }
.btn:hover i.fa-arrow-left { transform: translateX(-4px); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: var(--dark); }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #fff; color: var(--dark); }
.btn-outline { border-color: var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; }
.btn-sm { padding: 10px 22px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }
.dark-sec .btn-outline, .cta-band .btn-outline { border-color: #fff; color: #fff; }

/* ---------- section heads ---------- */
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--primary-dark); margin-bottom: 10px; letter-spacing: .2px; }
.eyebrow::before { content: ''; width: 34px; height: 4px; border-radius: 4px; background: var(--primary); }
.eyebrow.light { color: var(--accent); }
.sec-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.sec-title span { color: var(--primary); }
.sec-head.light .sec-title, .sec-head.light p { color: #fff; }
.sec-head.light p { opacity: .8; }
.mini-title { font-size: 22px; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.mini-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.check-list { display: grid; gap: 10px; margin: 20px 0 28px; }
.check-list.two { grid-template-columns: 1fr 1fr; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-list i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; display: grid; place-items: center; margin-top: 4px; }
.dot-list { display: grid; gap: 10px; }
.dot-list li { position: relative; padding-inline-start: 20px; }
.dot-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: .75em; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); transform: rotate(45deg); }

/* ---------- preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 9999; background: var(--dark); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
#preloader.hide { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.loader-inner img { width: 70px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.9); opacity: .6; } }

/* ---------- topbar + header ---------- */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .82); font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar-info i { color: var(--primary); margin-inline-end: 6px; }
.topbar-info a:hover { color: var(--primary); }
.topbar-end { display: flex; align-items: center; gap: 14px; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: .2s; }
.topbar-social a:hover { background: var(--primary); color: var(--dark); }
.lang-btn { min-width: 38px; height: 30px; padding: 0 10px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .3); background: none; color: #fff; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.lang-btn:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }

.site-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(11, 27, 51, .45); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 56px; width: auto; }
.brand-mark.icon { width: 50px; height: 50px; border-radius: 12px; background: var(--primary); display: grid; place-items: center; font-size: 22px; color: var(--dark); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--dark); }
.brand-text small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.brand.light .brand-text strong { color: #fff; }
.brand.light .brand-text small { color: rgba(255, 255, 255, .65); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 11px; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--dark); position: relative; }
.main-nav a::after { content: ''; position: absolute; inset-inline: 11px; bottom: 0; height: 3px; border-radius: 3px; background: var(--primary); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-dark); }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--dark); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--dark); }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s ease; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-shade { background: linear-gradient(90deg, rgba(var(--dark-rgb), .35) 0%, rgba(var(--dark-rgb), .82) 55%, rgba(var(--dark-rgb), .94) 100%); }
[dir="ltr"] .hero-shade { transform: scaleX(-1); }
.hero-swoosh { position: absolute; width: 900px; height: 900px; border-radius: 50%; border: 70px solid var(--primary); inset-inline-start: -520px; bottom: -640px; opacity: .95; }
.hero-swoosh::after { content: ''; position: absolute; inset: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center; padding-top: 90px; padding-bottom: 110px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 68px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: clamp(16px, 1.5vw, 19px); opacity: .9; max-width: 640px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 40px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 14.5px !important; margin: 0; }
.hero-note i { color: var(--accent); }
.quick-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); border-top: 5px solid var(--primary); }
.quick-card h3 { font-size: 20px; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.quick-card h3 i { color: var(--primary); }
.quick-card label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
.quick-card select { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-alt); }
.quick-card .btn { margin-top: 18px; }
.hero-dots { position: absolute; z-index: 3; bottom: 34px; inset-inline-end: 50%; transform: translateX(50%); display: flex; gap: 8px; }
[dir="ltr"] .hero-dots { transform: translateX(-50%); inset-inline-end: auto; left: 50%; }
.hero-dots button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: .3s; padding: 0; }
.hero-dots button.active { width: 34px; background: var(--primary); }

/* ---------- page banner ---------- */
.page-banner { position: relative; padding: 110px 0 120px; background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--dark-rgb), .92), rgba(var(--dark-rgb), .62)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; opacity: .9; }
.crumbs li + li::before { content: '/'; margin-inline-end: 8px; color: var(--primary); }
.crumbs a:hover { color: var(--primary); }
.banner-swoosh { position: absolute; inset-inline-end: -10%; bottom: -1px; width: 70%; height: 70px; background: var(--primary); border-start-start-radius: 100% 140px; }
.banner-swoosh::after { content: ''; position: absolute; inset: 18px 0 0; background: #fff; border-start-start-radius: 100% 140px; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--dark); color: rgba(255, 255, 255, .75); padding-top: 80px; margin-top: 0; overflow: hidden; }
.footer-swoosh { position: absolute; width: 760px; height: 760px; border-radius: 50%; border: 54px solid rgba(var(--primary-rgb), .1); inset-inline-end: -380px; top: -420px; pointer-events: none; }
.footer::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 38%; height: 6px; background: var(--primary); border-end-end-radius: 6px; }
[dir="rtl"] .footer::before { border-radius: 0 0 0 6px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer .brand { margin-bottom: 18px; }
.footer .brand-mark { height: 62px; }
.footer h4 { color: #fff; font-size: 19px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--primary); }
.footer .links { display: grid; gap: 8px; }
.footer .links a:hover { color: var(--primary); padding-inline-start: 4px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--primary); margin-top: 6px; width: 16px; text-align: center; }
.footer-contact small { display: block; font-size: 12px; opacity: .6; line-height: 1.3; }
.footer-contact a:hover { color: var(--primary); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: .25s; }
.social a:hover { background: var(--primary); color: var(--dark); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 14px; text-align: center; }
.footer-bottom p { margin: 0; }
.wa-float { position: fixed; z-index: 800; bottom: 24px; inset-inline-start: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); }
.to-top { position: fixed; z-index: 800; bottom: 24px; inset-inline-end: 24px; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--primary); color: var(--dark); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9990; background: rgba(5, 12, 24, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-family: var(--font-head); }
.lb-close { position: absolute; top: 16px; inset-inline-end: 22px; background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.lb-nav:hover { background: var(--primary); color: var(--dark); }
.lb-prev { inset-inline-start: 14px; } .lb-next { inset-inline-end: 14px; }
.lightbox.single .lb-nav { display: none; }

.load-error { max-width: 640px; margin: 18vh auto; text-align: center; padding: 20px; }
.empty-note { text-align: center; color: var(--muted); padding: 30px 0; }
.empty-note a { color: var(--primary-dark); font-weight: 600; }

/* ---------- responsive (layout) ---------- */
@media (max-width: 1240px) {
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(330px, 86vw); background: var(--dark); padding: 90px 22px 30px; transform: translateX(105%); transition: transform .35s ease; z-index: 950; overflow-y: auto; margin: 0; }
    [dir="rtl"] .main-nav { transform: translateX(-105%); }
    .main-nav.open, [dir="rtl"] .main-nav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 12, 24, .55); }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { color: #fff; padding: 12px 14px; border-radius: 10px; font-size: 17px; }
    .main-nav a::after { display: none; }
    .main-nav a.active, .main-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--primary); }
    .header-actions { margin-inline-start: auto; }
    .nav-toggle { position: relative; z-index: 960; }
}
@media (max-width: 991px) {
    .section-pad { padding: 76px 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 70px; }
    .quick-card { max-width: 520px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    :root { --header-h: 72px; }
    .hide-sm { display: none !important; }
    .topbar-info li:first-child { display: none; }
    .brand-mark { height: 46px; }
    .brand-text strong { font-size: 19px; }
    .brand-text small { font-size: 11px; }
    .grid-3, .footer-top { grid-template-columns: 1fr; }
    .check-list.two { grid-template-columns: 1fr; }
    .hero-swoosh { width: 560px; height: 560px; border-width: 46px; inset-inline-start: -340px; bottom: -430px; }
    .page-banner { padding: 80px 0 96px; }
    .btn { padding: 13px 22px; }
    .lightbox { padding: 60px 12px; }
    .wa-float { width: 50px; height: 50px; font-size: 25px; bottom: 18px; inset-inline-start: 16px; }
    .to-top { bottom: 18px; inset-inline-end: 16px; }
}
