/* ── Variables ────────────────────────────────────────────── */
:root {
    --red:        #e63030;
    --red-dark:   #c42828;
    --red-light:  rgba(230,48,48,.10);
    --red-glow:   rgba(230,48,48,.35);
    --dark:       #111827;
    --dark-2:     #1f2937;
    --dark-3:     #374151;
    --mid:        #121212;
    --light:      #9ca3af;
    --lighter:    #d1d5db;
    --border:     #e5e7eb;
    --bg:         #f8f9fc;
    --bg-2:       #f1f3f7;
    --white:      #ffffff;
    --green:      #16a34a;
    --green-bg:   rgba(22,163,74,.10);
    --wa-green:   #25d366;

    --header-h:   72px;
    --container:  1200px;
    --radius-sm:  .5rem;
    --radius:     .75rem;
    --radius-lg:  1.25rem;
    --radius-xl:  1.75rem;
    --shadow-xs:  0 1px 2px rgba(0,0,0,.06);
    --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
    --shadow:     0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
    --shadow-xl:  0 24px 64px rgba(0,0,0,.14);

    --font-ar: 'Cairo', 'Segoe UI', Arial, sans-serif;
    --font-en: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: var(--header-h);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header > .container {
    height: 100%;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header-logo img { height: 48px; width: auto; }

/* Desktop Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: .125rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem .8rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: bold;
    color: var(--mid);
    cursor: pointer;
    transition: color .15s, background .15s;
    white-space: nowrap;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    color: var(--dark);
    background: var(--bg);
}
.nav-link .chevron {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform .2s;
    flex-shrink: 0;
}

/* Sectors Dropdown */
.nav-item { position: relative; }

.nav-dropdown {
    position: absolute;
    top: calc(100% + .625rem);
    min-width: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    z-index: 300;
}
[dir="rtl"] .nav-dropdown { right: 0; left: auto; }
[dir="ltr"] .nav-dropdown { left: 0; right: auto; }

.nav-dropdown-header {
    grid-column: 1 / -1;
    padding: .5rem .75rem .375rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .575rem .75rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    color: var(--mid);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.dropdown-item:hover {
    color: var(--dark);
    background: var(--bg);
}
.dropdown-item .di-icon {
    width: 30px;
    height: 30px;
    border-radius: .4rem;
    background: var(--red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dropdown-item .di-icon i {
    font-size: 1rem;
    color: var(--red);
}
.dropdown-view-all {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .575rem;
    margin-top: .25rem;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    font-weight: 700;
    color: var(--red);
    border-radius: var(--radius-sm);
    transition: background .15s;
}
.dropdown-view-all:hover { background: var(--red-light); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

/* Language Toggle */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .45rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 2rem;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    color: var(--mid);
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    text-decoration: none;
    letter-spacing: .02em;
}
.lang-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-light);
}

/* Header CTA */
.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .55rem 1.25rem;
    background: var(--red);
    color: #fff !important;
    border-radius: 2rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s, box-shadow .15s, transform .1s;
    box-shadow: 0 4px 14px -2px var(--red-glow);
    white-space: nowrap;
}
.btn-header-cta:hover {
    background: var(--red-dark);
    box-shadow: 0 6px 18px -2px var(--red-glow);
}
.btn-header-cta:active { transform: translateY(1px); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: .5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background .15s;
    width: 40px;
    height: 40px;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 998;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-h);
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 999;
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-menu-inner {
    padding: 1rem 1.25rem 1.5rem;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: .125rem;
    margin-bottom: .75rem;
}
.mobile-nav-list .nav-link {
    font-size: .925rem;
    padding: .7rem .875rem;
}

.mobile-sectors-label {
    padding: .5rem .875rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.mobile-sectors-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
    margin-bottom: .75rem;
}
.mobile-sector-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .625rem;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    color: var(--mid);
    transition: color .15s, background .15s;
}
.mobile-sector-item:hover { color: var(--dark); background: var(--bg); }
.mobile-sector-item i { font-size: .95rem; color: var(--red); flex-shrink: 0; }

.mobile-actions {
    display: flex;
    gap: .75rem;
    padding-top: .875rem;
    border-top: 1px solid var(--border);
}
.mobile-actions .lang-btn,
.mobile-actions .btn-header-cta { flex: 1; justify-content: center; }

.page-top-spacer { height: var(--header-h); }

/* ── Shared Button Styles ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: 2rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background .15s, box-shadow .15s, transform .1s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 16px -2px var(--red-glow);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 20px -2px var(--red-glow); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-white {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--bg); }

/* ── Section Title Pattern ─────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .875rem;
    background: var(--red-light);
    color: var(--red);
    border-radius: 2rem;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: .875rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--mid);
    line-height: 1.9;
    max-width: 600px;
    margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 3rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .header-nav { display: none; }
    .hamburger  { display: flex; }
    .header-actions .lang-btn,
    .header-actions .btn-header-cta { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 1.5rem; }
    :root { --header-h: 64px; }
}
