/* هوية أكام: أخضر داكن + ذهبي */
:root {
    --green: #0d3b2e;
    --green-2: #14513f;
    --gold: #b88a3e;
    --gold-light: #d8b06a;
    --gold-grad: linear-gradient(135deg, #8a6424, #d8b06a 50%, #9c7230);
    --text: #1d2b26;
    --muted: #5f6b66;
    --bg: #faf8f4;
    --card: #ffffff;
    --border: #e9e3d7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }
html, body { overflow-x: clip; max-width: 100%; }
a { color: inherit; }
svg.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: -0.2em; }

.skip-link { position: absolute; top: -60px; right: 16px; background: var(--green); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ظهور تدريجي */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.groups-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .values .reveal:nth-child(2) { transition-delay: .1s; }
.groups-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .values .reveal:nth-child(3) { transition-delay: .2s; }
.groups-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .3s; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* الأزرار */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold-grad); color: #fff; border: 0;
    padding: 12px 30px; border-radius: 10px;
    font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
    box-shadow: 0 6px 16px rgba(184,138,62,.3);
    transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(184,138,62,.4); }
.btn-outline { background: transparent; border: 2px solid var(--gold-light); color: var(--gold-light); box-shadow: none; }
.btn-outline:hover { background: rgba(216,176,106,.12); }
.btn-sm { padding: 8px 18px; }

/* الترويسة */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { height: 64px; width: auto; display: block; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a:not(.btn) { text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 500; color: var(--green); position: relative; }
.nav nav a:not(.btn)::after { content: ''; position: absolute; inset-inline: 16px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav nav a:not(.btn):hover::after, .nav nav a.active::after { transform: scaleX(1); }
.nav nav .btn { margin-inline-start: 12px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--green); font-size: 1.4rem; cursor: pointer; }

/* البطل */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(circle at 15% 80%, rgba(216,176,106,.18), transparent 45%),
        linear-gradient(135deg, var(--green-2), var(--green) 60%, #082920);
    padding: 110px 0;
}
.hero::before, .hero::after {
    content: ''; position: absolute; width: 260px; height: 260px;
    border: 2px solid var(--gold); transform: rotate(45deg); opacity: .5;
}
.hero::before { top: -180px; right: -120px; }
.hero::after { bottom: -190px; left: -130px; }
.hero-text { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-light); font-weight: 700; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 40px; height: 2px; background: var(--gold-light); }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.4; font-weight: 800; margin-bottom: 18px; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* الركائز */
.values {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    margin-top: -50px; position: relative; z-index: 2;
    box-shadow: 0 16px 40px rgba(13,59,46,.08);
}
.value { text-align: center; padding: 30px 20px; }
.value + .value { border-inline-start: 1px solid var(--gold-light); }
.value-icon { display: inline-flex; color: var(--gold); font-size: 2.2rem; margin-bottom: 8px; }
.value h3 { font-size: 1.1rem; color: var(--green); font-weight: 700; }
.values-inline { margin: 20px 0 0; box-shadow: none; }

/* الأقسام */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 2.4rem; color: var(--green); font-weight: 800; }
.divider { display: block; width: 80px; height: 2px; background: var(--gold); margin: 8px auto 0; }

.groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.group-card {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 28px 24px; text-decoration: none; display: flex; flex-direction: column;
    border-top: 4px solid var(--green); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.group-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(13,59,46,.1); border-top-color: var(--gold); }
.group-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; background: var(--green); color: var(--gold-light); border-radius: 50%; font-size: 1.5rem; margin-bottom: 16px; }
.group-card h3 { color: var(--green); font-size: 1.15rem; margin-bottom: 12px; }
.group-card ul { list-style: none; color: var(--muted); flex: 1; }
.group-card li::before { content: '◆'; color: var(--gold); font-size: .6rem; margin-inline-end: 8px; vertical-align: middle; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; margin-top: 16px; }

/* كيف نعمل */
.steps-section { background: #fff; border-block: 1px solid var(--border); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps::before { content: ''; position: absolute; top: 36px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(to left, var(--gold-light) 0 8px, transparent 8px 16px); }
.step { text-align: center; position: relative; }
.step-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; background: var(--green); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; position: relative; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold-light); }
.step-num { position: absolute; top: -6px; left: calc(50% - 46px); z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: #fff; font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.step h3 { color: var(--green); font-size: 1.15rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .95rem; }

/* شريط الدعوة */
.cta { background: var(--green); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: 0; bottom: 0; right: -40px; width: 180px; background: var(--green-2); transform: skewX(-25deg); border-left: 3px solid var(--gold); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; }
.cta h2 { font-size: 1.8rem; color: var(--gold-light); }
.cta p { opacity: .85; }

/* ترويسة الصفحات الداخلية */
.page-banner { background: var(--green); color: #fff; text-align: center; padding: 56px 0; border-bottom: 3px solid var(--gold); }
.page-banner h1 { font-size: 2.4rem; font-weight: 800; }
.page-banner p { color: var(--gold-light); }
.page { padding: 60px 0; }

/* من نحن */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about h2 { color: var(--green); margin: 0 0 12px; }
.about h2:not(:first-child) { margin-top: 32px; }
.about p { color: var(--muted); margin-bottom: 12px; font-size: 1.05rem; }
/* لوحة الهوية في صفحة من نحن (بأسلوب البروشور) */
.brand-panel {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    background: radial-gradient(circle at 80% 20%, rgba(216,176,106,.16), transparent 50%),
                linear-gradient(160deg, var(--green-2), var(--green) 55%, #082920);
    border-radius: 18px; padding: 64px 36px; box-shadow: 0 18px 40px rgba(13,59,46,.22);
}
.brand-panel::before, .brand-panel::after {
    content: ''; position: absolute; width: 190px; height: 190px;
    border: 2px solid var(--gold); transform: rotate(45deg); opacity: .55;
}
.brand-panel::before { top: -130px; right: -130px; }
.brand-panel::after { bottom: -130px; left: -130px; }
.brand-panel img { width: min(240px, 80%); height: auto; display: block; margin: 0 auto; position: relative; }
.brand-divider { display: block; width: 70px; height: 2px; background: var(--gold); margin: 26px auto; }
.brand-panel .brand-tagline { font-size: 1.35rem; font-weight: 800; line-height: 1.7; color: #fff; margin: 0; position: relative; }
.brand-panel .brand-slogan { font-size: 1.05rem; color: var(--gold-light); font-weight: 700; margin: 0; position: relative; }

/* الخدمات */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
.service-group { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; scroll-margin-top: 100px; }
.service-group-head { background: var(--green); color: #fff; display: flex; align-items: center; gap: 12px; padding: 18px 24px; }
.service-group-head svg { color: var(--gold-light); font-size: 1.6rem; }
.service-group-head h2 { font-size: 1.2rem; }
.service-items { padding: 8px 24px; }
.service-item { display: flex; gap: 18px; padding: 18px 0; }
.service-item + .service-item { border-top: 1px solid var(--border); }
.item-icon { color: var(--gold); font-size: 2.2rem; display: inline-flex; }
.service-item h3 { color: var(--green); font-size: 1.1rem; }
.service-item p { color: var(--muted); }
.group-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-top: 1px solid var(--border); color: var(--gold); font-weight: 700; text-decoration: none; transition: background .2s; }
.group-cta:hover { background: var(--bg); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.form { position: relative; }

/* التواصل */
.contact { display: grid; grid-template-columns: 1fr 2fr; gap: 36px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-decoration: none; }
.info-card > svg { color: var(--gold); font-size: 1.8rem; }
.info-card h3 { color: var(--green); font-size: 1rem; }
.info-card p { color: var(--muted); }
.map { width: 100%; height: 260px; border: 1px solid var(--border); border-radius: 14px; }

.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--green); }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold); border-color: transparent; background: #fff; }
.form .btn { justify-self: start; }

.alert { display: flex; gap: 8px; align-items: flex-start; padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; }
.alert ul { padding-inline-start: 20px; }
.alert.success { background: #e3f1ea; color: var(--green); border: 1px solid #b9dcc9; }
.alert.error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* التذييل */
.site-footer { background: #082920; color: #c9d3cf; padding-top: 56px; }
.footer-logo { height: 72px; width: auto; display: block; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.5fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: var(--gold-light); font-size: 1.15rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list svg { color: var(--gold); }
.gold { color: var(--gold-light); font-weight: 700; margin-top: 8px; }
.copyright { text-align: center; padding: 18px; border-top: 1px solid rgba(216,176,106,.25); font-size: .9rem; }

/* زر واتساب العائم */
.whatsapp { position: fixed; bottom: 22px; left: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 30; }

/* الجوال */
@media (max-width: 900px) {
    .services, .about, .contact { grid-template-columns: 1fr; }
    .footer-grid, .steps { grid-template-columns: 1fr 1fr; }
    .steps::before { display: none; }
    .brand-panel { padding: 48px 24px; }
}
@media (max-width: 760px) {
    .menu-toggle { display: block; }
    .nav nav { display: none; position: absolute; top: 80px; inset-inline: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .nav nav .btn { margin: 8px 0 0; justify-content: center; }
    body.nav-open .nav nav { display: flex; }
    .logo img { height: 50px; }
    .value { padding: 18px 6px; }
    .value-icon { font-size: 1.7rem; }
    .value h3 { font-size: .85rem; line-height: 1.5; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .hero { padding: 64px 0 90px; }
    .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
    /* شريط التواصل السريع أسفل الشاشة */
    .mobile-bar { display: grid; }
    .whatsapp { display: none; }
    body { padding-bottom: 64px; }
}

/* صفحة 404 */
.not-found { text-align: center; }
.not-found p { color: var(--muted); margin-bottom: 24px; font-size: 1.1rem; }
.not-found .hero-actions { justify-content: center; }
.btn-outline-dark { background: transparent; border: 2px solid var(--gold); color: var(--gold); box-shadow: none; }
.btn-outline-dark:hover { background: rgba(184,138,62,.08); color: var(--gold); }

/* الصفحات القانونية */
.legal { max-width: 820px; }
.legal h2 { color: var(--green); font-size: 1.3rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-inline-start: 22px; margin-bottom: 8px; }
.legal a { color: var(--gold); }
.form-note { font-size: .88rem; color: var(--muted); }
.form-note a, .copyright a { color: var(--gold-light); }

/* بطاقة مجالات الخدمات في الواجهة الرئيسية */
.hero-inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero-card {
    position: relative; z-index: 1;
    background: rgba(255,255,255,.06); border: 1px solid rgba(216,176,106,.35);
    border-radius: 18px; padding: 22px 22px 10px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.hero-card-title { color: var(--gold-light); font-weight: 700; font-size: .95rem; margin: 0 0 8px; opacity: 1; }
.hero-card ul { list-style: none; }
.hero-card li + li { border-top: 1px solid rgba(255,255,255,.1); }
.hero-card a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: #fff; text-decoration: none; font-weight: 600; transition: color .2s, transform .2s; }
.hero-card a > span:nth-child(2) { flex: 1; }
.hero-card a > svg:last-child { color: var(--gold-light); opacity: .6; transition: opacity .2s, transform .2s; }
.hero-card a:hover { color: var(--gold-light); }
.hero-card a:hover > svg:last-child { opacity: 1; transform: translateX(-4px); }
.hero-card-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(216,176,106,.15); color: var(--gold-light); font-size: 1.25rem; flex-shrink: 0; }
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .hero-text { max-width: 760px; }
    .hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
}

/* شريط التواصل السريع (يظهر على الجوال فقط) */
.mobile-bar {
    display: none; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
}
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none; background: var(--gold-grad); color: #fff; }
.mobile-bar a.mobile-bar-wa { background: #25d366; }
@media (max-width: 760px) { .mobile-bar { display: grid; } }
