/* Al Amal Al Mushriqa — identity taken from the logo: deep navy, brushed gold, metallic silver. */
:root {
    --bg: #0b1322;
    --bg-alt: #0f192c;
    --surface: #141f36;
    --surface-2: #1a2743;
    --line: rgba(227, 194, 107, .2);
    --line-soft: rgba(201, 206, 214, .1);
    --gold: #e3c26b;
    --gold-deep: #b8892e;
    --gold-light: #f6e3a1;
    --gold-grad: linear-gradient(135deg, #f6e3a1 0%, #e0b955 45%, #b8892e 100%);
    --silver: #c9ced6;
    --silver-grad: linear-gradient(160deg, #ffffff 0%, #c9ced6 45%, #8f97a5 100%);
    --text: #f4f6fa;
    --muted: #a9b3c6;
    --ink: #1b1505;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --font-head: "El Messiri", "Tajawal", system-ui, sans-serif;
    --font-body: "Tajawal", system-ui, "Segoe UI", sans-serif;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--gold); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.5rem; border-radius: 12px; font-weight: 700; font-size: 1rem; line-height: 1.4;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(227, 194, 107, .7); }
.btn-gold:hover { box-shadow: 0 14px 30px -12px rgba(227, 194, 107, .9); }
.btn-outline { border-color: var(--gold); color: var(--gold-light); background: rgba(227, 194, 107, .04); }
.btn-outline:hover { background: rgba(227, 194, 107, .12); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 19, 34, .88); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.brand span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav ul a { color: var(--silver); font-weight: 500; padding: .4rem 0; position: relative; transition: color .2s; }
.site-nav ul a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--gold-grad); transform: scaleX(0); transition: transform .2s; border-radius: 2px; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: var(--gold-light); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; color: var(--silver); font-size: .92rem; font-weight: 500; padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--line-soft); }
.lang-switch:hover { color: var(--gold-light); border-color: var(--line); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 10px; padding: .45rem; cursor: pointer; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0;
    background:
        radial-gradient(60% 55% at 50% 0%, rgba(227, 194, 107, .13), transparent 70%),
        radial-gradient(40% 50% at 85% 80%, rgba(201, 206, 214, .06), transparent 70%),
        var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kicker { color: var(--gold); font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin: 0 0 .5rem; }
.hero h1 { background: linear-gradient(180deg, #fff 30%, #d9dde4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.badges li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-light); font-size: .9rem; font-weight: 500; background: rgba(227, 194, 107, .05); }
.hero-logo { position: relative; justify-self: center; width: min(100%, 360px); }
.hero-logo::before { content: ""; position: absolute; inset: -12%; background: radial-gradient(closest-side, rgba(227, 194, 107, .28), transparent); filter: blur(10px); }
.hero-logo img { position: relative; border-radius: 28px; border: 1.5px solid rgba(227, 194, 107, .55); box-shadow: var(--shadow), 0 0 0 8px rgba(227, 194, 107, .05); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--gold-grad); margin: .7rem auto 0; }
.center-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin: 2.4rem 0 0; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.split-copy .btn { margin-top: .6rem; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.service-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }
.service-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-media-fallback {
    position: absolute; inset: 0; display: grid; place-items: center; color: rgba(227, 194, 107, .35);
    background:
        radial-gradient(circle at 30% 20%, rgba(227, 194, 107, .16), transparent 55%),
        repeating-linear-gradient(135deg, rgba(201, 206, 214, .035) 0 2px, transparent 2px 14px),
        linear-gradient(160deg, #1b2a48, #111b30);
}
.service-media-fallback .icon { width: 5rem; height: 5rem; stroke-width: 1.1; }
.service-icon {
    position: absolute; inset-inline-end: 1rem; bottom: -22px; width: 48px; height: 48px; border-radius: 12px;
    display: grid; place-items: center; background: var(--gold-grad); color: var(--ink); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8);
}
.service-icon .icon { width: 1.5rem; height: 1.5rem; }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 1.7rem 1.3rem 1.3rem; }
.service-title { font-size: 1.22rem; margin-bottom: .45rem; color: var(--text); }
.service-title a:hover { color: var(--gold-light); }
.service-body p { font-size: .98rem; flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.price-chip { font-size: .85rem; color: var(--silver); }
.price-chip strong { color: var(--gold-light); font-size: 1.05rem; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; color: var(--gold); font-weight: 700; font-size: .95rem; margin-inline-start: auto; }
.link-more .icon { transition: transform .2s; }
[dir="rtl"] .link-more .icon { transform: scaleX(-1); }
.link-more:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-more:hover .icon { transform: scaleX(-1) translateX(4px); }
.custom-card { justify-content: center; text-align: center; border-style: dashed; border-color: var(--line); background: linear-gradient(160deg, rgba(227, 194, 107, .07), transparent); }
.custom-card .service-body { align-items: center; justify-content: center; padding: 2rem 1.3rem; }
.custom-card p { flex: none; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.feature { text-align: center; padding: 1.8rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); }
.feature > .icon { width: 3.2rem; height: 3.2rem; padding: .75rem; border-radius: 14px; color: var(--gold); background: rgba(227, 194, 107, .08); border: 1px solid var(--line); margin: 0 auto 1rem; display: block; }
.feature h3 { margin-bottom: .35rem; }
.feature p { margin: 0; font-size: .97rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery span { position: absolute; inset-inline: 0; bottom: 0; padding: 2rem .9rem .7rem; font-weight: 700; font-size: .95rem; color: var(--gold-light); background: linear-gradient(transparent, rgba(8, 13, 24, .92)); }
.gallery-inline { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---------- Contact ---------- */
.cta { background: radial-gradient(55% 60% at 50% 100%, rgba(227, 194, 107, .1), transparent 70%), var(--bg); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; height: 100%;
    padding: 1.8rem 1rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
    transition: transform .2s, border-color .2s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact-card .icon { width: 2.2rem; height: 2.2rem; color: var(--gold); margin-bottom: .4rem; }
.contact-card strong { font-family: var(--font-head); font-size: 1.15rem; }
.contact-card span { color: var(--muted); font-size: .95rem; }
.cta-address { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--gold-light); font-weight: 700; margin: 2rem 0 0; text-align: center; }
.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.6rem 0 0; }
.info-row div { padding: 1.2rem 1.3rem; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); }
.info-row dt { display: flex; align-items: center; gap: .45rem; color: var(--gold); font-weight: 700; margin-bottom: .2rem; }
.info-row dd { margin: 0; color: var(--text); }
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.areas li { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--silver); font-size: .95rem; }
.areas .icon { color: var(--gold); width: 1em; height: 1em; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(2.4rem, 6vw, 4rem) 0; text-align: center; border-bottom: 1px solid var(--line-soft); background: radial-gradient(60% 90% at 50% 0%, rgba(227, 194, 107, .12), transparent 70%), var(--bg-alt); }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { margin-inline: auto; }
.breadcrumb ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; color: var(--gold-deep); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb [aria-current] { color: var(--silver); }

.two-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.panel { padding: 2rem 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); }
.panel > .icon { width: 2.4rem; height: 2.4rem; color: var(--gold); margin-bottom: .8rem; }
.panel h2 { font-size: 1.4rem; }
.panel p { margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.check-grid li { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-soft); color: var(--text); }
.check-grid .icon { color: var(--ink); background: var(--gold-grad); border-radius: 50%; padding: .2rem; width: 1.5rem; height: 1.5rem; stroke-width: 2.6; }

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.service-article h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.service-figure { margin: 0 0 1.8rem; }
.service-figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; border: 1.5px solid var(--line); }
.prose p { font-size: 1.1rem; color: #c3cbda; }
.book-card { position: sticky; top: 96px; padding: 1.8rem 1.5rem; border-radius: 20px; background: linear-gradient(170deg, var(--surface-2), var(--surface)); border: 1.5px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.book-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px; background: var(--gold-grad); color: var(--ink); }
.book-icon .icon { width: 1.9rem; height: 1.9rem; }
.book-card h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.book-price { color: var(--silver); margin-bottom: .5rem; }
.book-price strong { font-family: var(--font-head); font-size: 1.9rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-inline: .2rem; }
.book-card .btn { margin-top: .7rem; }
.book-points { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); display: grid; gap: .5rem; text-align: start; font-size: .92rem; color: var(--muted); }
.book-points li { display: flex; gap: .5rem; align-items: flex-start; }
.book-points .icon { color: var(--gold); margin-top: .3em; }

/* ---------- Footer ---------- */
.site-footer { background: #080e1a; border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.2rem; }
.site-footer h2 { font-size: 1.05rem; color: var(--gold); margin-bottom: 1rem; }
.site-footer li { margin-bottom: .55rem; }
.site-footer nav a, .footer-contact a { color: var(--muted); transition: color .2s; }
.site-footer nav a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-brand p { margin-top: 1rem; font-size: .97rem; max-width: 34ch; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); }
.footer-contact .icon { color: var(--gold); margin-top: .35em; }
.social-list { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.social-list li { margin: 0; }
.social-list a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--gold); transition: background .2s, color .2s; }
.social-list a:hover { background: var(--gold-grad); color: var(--ink); }
.footer-bottom { margin-top: 2.5rem; padding-block: 1.2rem; border-top: 1px solid var(--line-soft); text-align: center; }
.footer-bottom p { margin: 0; font-size: .9rem; }

.wa-float { position: fixed; inset-inline-end: 1.1rem; bottom: 1.1rem; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 1.9rem; height: 1.9rem; }

/* ---------- Error page ---------- */
.error-page { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.error-page strong { display: block; font-family: var(--font-head); font-size: 6rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem;
        padding: 1.2rem 1rem 1.5rem; background: #0b1322; border-bottom: 1px solid var(--line); display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--line-soft); }
    .site-nav ul a::after { display: none; }
    .nav-actions { justify-content: space-between; }
    .hero-inner, .split, .service-layout { grid-template-columns: 1fr; }
    .hero-inner { text-align: center; }
    .hero-logo { order: -1; width: min(60%, 240px); }
    .hero-actions, .badges { justify-content: center; }
    .lead { margin-inline: auto; }
    .book-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    body { font-size: 1rem; }
    .brand span { font-size: 1rem; }
    .hero-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
