@font-face {
    font-family: 'Abar';
    src: url('../fonts/Abar-Regular.woff2') format('woff2'), url('../fonts/Abar-Regular.woff') format('woff');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abar';
    src: url('../fonts/Abar-Bold.woff2') format('woff2'), url('../fonts/Abar-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abar';
    src: url('../fonts/Abar-Black.woff2') format('woff2'), url('../fonts/Abar-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent: #1d4ed8;
    --accent-light: #3b82f6;
    --font: 'Abar', Tahoma, sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Abar', Tahoma, sans-serif !important;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }

.delay-2 { transition-delay: 0.3s; }

.delay-3 { transition-delay: 0.45s; }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.35s ease,
                backdrop-filter 0.35s ease,
                -webkit-backdrop-filter 0.35s ease,
                box-shadow 0.35s ease;
    direction: rtl;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo .logo-svg {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: #555;
}

.nav-links .nav-cta {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
}

.nav-links .nav-cta:hover {
    background: #333333 !important;
    transform: translateY(-1px);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item > a svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s ease;
}

.nav-sub {
    position: absolute;
    top: 100%;
    inset-inline-start: -16px;
    z-index: 20;
    min-width: 260px;
    padding: 18px 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-sub-box {
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-item:hover > a svg,
.nav-item:focus-within > a svg {
    transform: rotate(180deg);
}

.nav-links .nav-sub a {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.nav-links .nav-sub a small {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 400;
}

.nav-links .nav-sub a:hover {
    background: var(--gray-100);
    color: #000000;
}

.navbar:not(.scrolled) .nav-links .nav-sub a {
    color: #1a1a1a;
}

.navbar:not(.scrolled) .nav-links .nav-sub a:hover {
    color: #000000;
}

.nav-links a:focus-visible,
.mobile-menu a:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 18px;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;

    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px;

    cursor: pointer;
    padding: 0;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
    position: relative;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a !important;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.nav-toggle.active {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #0c42d8 !important;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #0c42d8 !important;
}

.mobile-menu {
    display: none;
}

@media (max-width: 1023px) {
    .nav-links {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-container {
        padding: 14px 16px;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.35s ease,
                    visibility 0.35s ease,
                    padding 0.45s ease;
    }

    .mobile-menu.open {
        max-height: min(680px, calc(100vh - 72px));
        padding: 16px 0 24px;
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu .mobile-sub {
        font-size: 14px;
        font-weight: 400;
        padding: 10px 24px;
        color: var(--gray-600);
    }

    .mobile-menu .mobile-cta {
        width: calc(100% - 48px);
        margin-top: 8px;
        padding: 14px 24px;
        border-radius: 50px;
        background: #1a1a1a;
        color: #ffffff;
        font-weight: 700;
    }

    .mobile-menu .mobile-cta:hover {
        background: #333333;
    }

    .mobile-menu a {
        text-decoration: none;
        color: #1a1a1a;
        font-size: 16px;
        font-weight: 500;
        padding: 14px 24px;
        width: 100%;
        text-align: center;
        transition: background 0.2s ease,
                    opacity 0.35s ease,
                    transform 0.35s ease;
        opacity: 0;
        transform: translateY(-8px);
    }

    .mobile-menu.open a {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
    .mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
    .mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
    .mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
    .mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
    .mobile-menu.open a:nth-child(6) { transition-delay: 0.3s; }
    .mobile-menu.open a:nth-child(7) { transition-delay: 0.35s; }
    .mobile-menu.open a:nth-child(8) { transition-delay: 0.4s; }
    .mobile-menu.open a:nth-child(9) { transition-delay: 0.45s; }
    .mobile-menu.open a:nth-child(10) { transition-delay: 0.5s; }
    .mobile-menu.open a:nth-child(11) { transition-delay: 0.55s; }

    .mobile-menu a:hover {
        background: rgba(0, 0, 0, 0.04);
    }
}

body.menu-open {
    overflow: hidden;
}

.navbar:not(.scrolled) .logo-svg {
    filter: brightness(0) invert(1);
}

.navbar:not(.scrolled) .nav-links a {
    color: #d2d2d2;
}

.navbar:not(.scrolled) .nav-links a:hover {
    color: var(--white);
}

.navbar:not(.scrolled) .nav-links .nav-cta {
    background: var(--white) !important;
    color: var(--black) !important;
}

.navbar:not(.scrolled) .nav-links .nav-cta:hover {
    background: var(--gray-200) !important;
}

.navbar:not(.scrolled) .nav-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: none;
}

.navbar:not(.scrolled) .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;
}

.navbar:not(.scrolled) .nav-toggle span {
    background: var(--white) !important;
}


.mini-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 1px 20px 36px;
    background: #fff;
}

.mini-footer .enamad-badge img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mini-footer .enamad-badge:hover img {
    opacity: 1;
    transform: scale(1.06);
}

.mini-footer-copy {
    color: #999;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.mini-footer {
    gap: 22px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    max-width: 1040px;
    margin: 0 auto;
    padding-top: 34px;
    border-top: 1px solid var(--gray-200);
    width: 100%;
}

.footer-links a {
    color: var(--gray-600);
    font-size: 0.84rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--black);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2000;
    width: auto;
    height: auto;
    padding: 12px 22px;
    clip: auto !important;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
