:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --card: #1a1a1a;
    --red: #e31e24;
    --red-h: #b91519;
    --white: #ffffff;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --font-en: "Inter", sans-serif;
    --topbar-h: 42px;
    --nav-h: 74px;
    --header-h: 116px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.75rem;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    font-size: 0.9375rem;
}
.btn-primary:hover {
    background: var(--red-h);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s;
    font-family: inherit;
    font-size: 0.9375rem;
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.6rem;
}
.section-label::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--red);
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

#header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--topbar-h);
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    align-items: center;
}
.hdr-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}
.hdr-socials {
    display: flex;
    align-items: center;
    gap: 0.05rem;
}
.hdr-social-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: color 0.2s;
}
.hdr-social-btn:hover {
    color: #fff;
}
.hdr-top-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hdr-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.28rem 0.5rem;
    transition: color 0.2s;
}
.hdr-lang-btn:hover {
    color: #fff;
}
[data-lang-toggle] span {
    font-family: "Cairo", sans-serif;
    font-size: 0.78rem;
}
#navbar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 299;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.97);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.nav-inner {
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
.nav-inner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo-wrap {
    display: inline-flex;
}
.nav-logo-wrap img {
    height: 44px;
    width: auto;
}
.nav-sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0 auto;
}
.nav-links > li {
    position: relative;
}
.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.85rem;
    border-radius: 3px;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--red);
}
.nav-links > li > span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.85rem;
    border-radius: 3px;
    white-space: nowrap;
    font-family: inherit;
}
.nav-links > li > span .ti-chevron-down {
    font-size: 11px;
    transition: transform 0.2s;
    margin-top: 1px;
}
.has-dropdown:hover > span .ti-chevron-down {
    transform: rotate(180deg);
}
.nav-links > li > a .ti-chevron-down {
    font-size: 11px;
    transition: transform 0.2s;
    margin-top: 1px;
}
.nav-links > li.has-dropdown:hover > a .ti-chevron-down {
    transform: rotate(180deg);
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--red);
    border-radius: 0 0 6px 6px;
    list-style: none;
    min-width: 210px;
    padding: 0.4rem 0;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s,
        transform 0.18s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    z-index: 400;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.dropdown li a {
    display: block;
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    transition:
        color 0.15s,
        background 0.15s;
}
.dropdown li a:hover {
    color: var(--red);
    background: rgba(227, 30, 36, 0.04);
}
.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-login {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border: none;
    border-radius: 4px;
    padding: 0.48rem 1.2rem;
    transition: background 0.2s;
}
.nav-login:hover {
    background: var(--red-h);
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-inline-start: auto;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 499;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s,
        visibility 0.25s;
}
.mobile-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 85vw);
    background: #fff;
    z-index: 500;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mob-logo img {
    height: 36px;
    width: auto;
}
.mob-logo {
    display: none;
}
.mob-close-btn {
    width: 38px;
    height: 38px;
    border: 2px solid var(--red);
    background: rgba(227, 30, 36, 0.08);
    color: var(--red);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.mob-close-btn:hover {
    background: var(--red);
    color: #fff;
}
.mobile-menu-inner {
    padding: 0.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mobile-menu-inner > a {
    display: block;
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #222;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s;
}
.mobile-menu-inner > a:hover {
    color: var(--red);
}
.mob-accordion {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mob-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #222;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}
.mob-acc-trigger .ti-chevron-down {
    transition: transform 0.25s;
    font-size: 0.85rem;
    color: #888;
}
.mob-accordion.open .mob-acc-trigger .ti-chevron-down {
    transform: rotate(180deg);
}
.mob-acc-body {
    display: none;
    background: rgba(0, 0, 0, 0.025);
}
.mob-accordion.open .mob-acc-body {
    display: block;
}
.mob-acc-body a {
    display: block;
    padding: 0.6rem 1.4rem 0.6rem 2.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    transition: color 0.2s;
}
.mob-acc-body a:hover {
    color: var(--red);
}
.mob-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
    margin: 0.5rem 0;
}
.mob-login-btn {
    display: block;
    margin: 1rem 1.4rem;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s;
}
.mob-login-btn:hover {
    background: var(--red-h);
}
.mob-lang-row {
    display: none;
}
.mob-socials {
    display: none;
}

#footer {
    background: #000;
    padding: 5rem 0 0;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-logo-wrap {
    display: inline-flex;
    margin-bottom: 1rem;
}
.footer-logo {
    height: 40px;
    width: auto;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.footer-col h4 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--red);
    display: inline-block;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-social-link:hover {
    color: #fff;
}
.footer-social-link i {
    font-size: 1rem;
}
.footer-bottom {
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--muted);
}
.footer-policy-link {
    font-size: 0.8rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-policy-link:hover {
    color: #fff;
}

.page-hero {
    padding: calc(var(--header-h) + 3rem) 0 3rem;
    background:
        linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.68)),
        url("../images/hero4.jpg") center/cover no-repeat;
}
.page-hero-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.5rem;
}
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.page-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--muted);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #fff;
}
.breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}
@media (max-width: 768px) {
    :root {
        --topbar-h: 38px;
        --nav-h: 62px;
        --header-h: 100px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 1.1rem;
    }
}

/* Page-specific styles */
.legal-content {
    max-width: 860px;
    padding: 5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9875rem;
    line-height: 1.85;
}
.legal-content h1,
.legal-content h2,
.legal-content h3 {
    color: #fff;
    font-weight: 800;
    line-height: 1.3;
    margin: 2rem 0 1rem;
}
.legal-content h1:first-child,
.legal-content h2:first-child,
.legal-content h3:first-child {
    margin-top: 0;
}
.legal-content h2 {
    font-size: 1.4rem;
}
.legal-content h3 {
    font-size: 1.15rem;
}
.legal-content p {
    margin-bottom: 1.25rem;
}
.legal-content ul,
.legal-content ol {
    margin: 0 0 1.25rem 1.5rem;
}
.legal-content li {
    margin-bottom: 0.5rem;
}
.legal-content strong {
    color: #fff;
}
.legal-content a {
    color: var(--red);
    text-decoration: underline;
}
.legal-content a:hover {
    color: var(--red-h);
}

@media (max-width: 900px) {
    .legal-content {
        padding: 3rem 0;
    }
}

/* ════ RESPONSIVE ENHANCEMENTS ════ */

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
    .page-hero {
        padding: calc(var(--header-h) + 2rem) 0 2rem;
    }
    .page-hero-title {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }
}

/* ── 768px: tablet portrait ── */
@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--header-h) + 1.75rem) 0 1.75rem;
    }
    .page-hero-title {
        font-size: clamp(1.6rem, 5vw, 2.4rem);
    }
    .page-hero-sub {
        font-size: 0.9rem;
    }
}

/* ── 600px: large phones ── */
@media (max-width: 600px) {
    .page-hero {
        padding: calc(var(--header-h) + 1.25rem) 0 1.25rem;
    }
    .page-hero-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
}

/* ── 480px: small phones ── */
@media (max-width: 480px) {
    .page-hero-title {
        font-size: clamp(1.25rem, 7vw, 1.75rem);
    }
    .breadcrumb {
        font-size: 0.68rem;
    }
    .btn-primary,
    .btn-outline {
        padding: 0.7rem 1.4rem;
        font-size: 0.875rem;
    }
}

/* ── Print styles ── */
@media print {
    #header-top,
    #navbar,
    .mobile-menu,
    .mobile-menu-backdrop,
    #footer {
        display: none !important;
    }
    .page-hero {
        padding: 1.5rem 0;
        background: none !important;
        border-bottom: 2px solid #000;
    }
    .page-hero-title {
        color: #000 !important;
        font-size: 1.6rem !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
    }
    .legal-content,
    .legal-content h1,
    .legal-content h2,
    .legal-content h3,
    .legal-content strong {
        color: #000 !important;
    }
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
}
