:root {
    --chrome-nav-height: 90px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.lang-btn {
    padding: 0.3rem 0.6rem;
    border: 1px solid #0076ce;
    background: transparent;
    color: #223865;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: #0076ce;
    color: #ffffff;
}

html[dir="rtl"] {
    font-family: 'Almarai', 'Inter', Arial, sans-serif;
}

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
    text-align: right;
}

html[dir="rtl"] .lang-switcher {
    margin-right: 0;
    margin-left: 1rem;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--chrome-nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #223865;
    text-decoration: none;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.nav-logo:hover {
    color: #0076ce;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    flex: 1;
    align-items: center;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #223865;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: auto;
    line-height: 1.2;
}

.nav-link:hover {
    color: #0076ce;
    background: rgba(85, 85, 85, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: #0076ce;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-contact-btn,
.nav-offer-btn {
    background: #0076ce;
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.nav-contact-btn:hover,
.nav-offer-btn:hover {
    background: #223865;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
body.nav-initialized .nav-offer-btn {
    opacity: 1;
    pointer-events: auto;
}
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    height: auto;
    line-height: 1.2;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-section {
    display: flex;
    flex-direction: column;
}

.dropdown-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0076ce;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 118, 206, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-link {
    text-decoration: none;
    color: #223865;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding-left: 0.8rem;
    margin-left: -0.8rem;
    position: relative;
}

.dropdown-link:hover {
    color: #0076ce;
    background: rgba(0, 118, 206, 0.05);
    transform: translateX(5px);
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #0076ce;
    transition: height 0.3s ease;
    border-radius: 2px;
}

.dropdown-link:hover::before {
    height: 70%;
}

.help-menu {
    min-width: 300px;
}

.help-menu .dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 118, 206, 0.1);
    transition: all 0.3s ease;
}

.help-menu .dropdown-link:hover {
    background: rgba(0, 118, 206, 0.1);
    border-color: #0076ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 118, 206, 0.2);
}

.help-menu .dropdown-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.help-whatsapp i {
    color: #25d366;
}

.help-call i {
    color: #007bff;
}

.help-email i {
    color: #6c757d;
}

.help-menu .dropdown-link:hover i {
    transform: scale(1.1);
}

@media (max-width: 1400px) {
    .nav-menu {
        gap: 1.2rem;
    }

    .dropdown-menu {
        min-width: 550px;
    }
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 1rem;
    }

    .dropdown-menu {
        min-width: 500px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        gap: 0.8rem;
    }

    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 450px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: auto;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        background: transparent;
        display: block;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        /*pointer-events: none;*/
        transition: max-height 0.35s ease, opacity 0.3s ease;
    }

    .dropdown.is-open .dropdown-menu {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        margin-top: 0.75rem;
        padding: 0.9rem 1rem;
        background: rgba(15, 23, 42, 0.82);
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, 0.18);
        box-shadow: 0 22px 45px rgba(8, 11, 23, 0.35);
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.is-open:hover .dropdown-menu {
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: 1000px;
        background: rgba(15, 23, 42, 0.82);
    }

    .dropdown-section {
        background: transparent;
        padding: 0.75rem 0;
        border-radius: 10px;
        border: none;
        margin-bottom: 0.35rem;
    }

    .dropdown-section:last-child {
        margin-bottom: 0;
    }

    .dropdown-section-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid rgba(96, 165, 250, 0.35);
        color: #60a5fa;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .dropdown-link {
        padding: 0.55rem 0;
        font-size: 0.85rem;
        margin: 0;
        padding-left: 0;
        color: rgba(226, 232, 240, 0.92);
        border-radius: 8px;
        transition: background 0.25s ease, color 0.25s ease;
    }

    .dropdown-link::before {
        display: none;
    }

    .dropdown-link:hover {
        background: rgba(96, 165, 250, 0.16);
        color: #ffffff;
        transform: none;
    }

    .dropdown-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        width: 1.75rem;
        height: 1.75rem;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.12);
        color: inherit;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    .dropdown.is-open .dropdown-icon {
        transform: rotate(180deg);
        background: rgba(59, 130, 246, 0.25);
    }

    .dropdown:hover .dropdown-icon {
        transform: none;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #223865;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

body.nav-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1300;
    }

    body.nav-open {
        height: 100vh;
    }

    .nav-menu {
        position: fixed;
        top: var(--chrome-nav-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--chrome-nav-height));
        background: linear-gradient(165deg, #0f172a 0%, #1e293b 45%, #0b1b35 100%);
        backdrop-filter: blur(18px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 2.5rem 1.5rem 4.75rem;
        gap: 1.2rem;
        overflow-y: auto;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s ease, opacity 0.25s ease;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
        z-index: 1200;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
        background: rgba(148, 163, 184, 0.1);
        color: #e2e8f0;
        transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    }

    .nav-link:hover {
        background: rgba(148, 163, 184, 0.22);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .nav-item.dropdown .dropdown-toggle {
        background: rgba(59, 130, 246, 0.12);
    }

    .nav-item.dropdown.is-open .dropdown-toggle {
        background: rgba(59, 130, 246, 0.25);
        color: #ffffff;
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
    }

    .nav-logo {
        order: 1;
    }

    .nav-tools {
        order: 2;
        display: flex;
        align-items: center;
        gap: 0.45rem;
        /*margin: 0;*/
        margin-left: 20px;
        background: transparent;
        padding: 0;
        box-shadow: none;
        flex-shrink: 0;
    }

    .nav-tools .lang-switcher {
        display: flex;
        gap: 0.35rem;
        padding: 0;
    }

    .nav-tools .lang-btn {
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        font-size: 0.8rem;
    }

    .nav-tools .lang-btn.active,
    .nav-tools .lang-btn:hover {
        background: #0076ce;
        color: #ffffff;
        border-color: #0076ce;
    }

    .nav-tools .nav-offer-btn {
        display: none;
    }

    .nav-toggle {
        order: 3;
        margin-left: auto;
    }

    .nav-menu {
        order: 4;
    }

    .nav-item.nav-offer-mobile {
        margin-top: 0.5rem;
    }

    .nav-item.nav-offer-mobile .nav-offer-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-radius: 16px;
        font-size: 1.05rem;
        padding: 1rem 1.5rem;
        background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
        box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
        color: #ffffff;
        text-decoration: none;
        letter-spacing: 0.03em;
    }

    .nav-item.nav-offer-mobile .nav-offer-btn:hover {
        box-shadow: 0 22px 40px rgba(37, 99, 235, 0.45);
        transform: translateY(-2px);
    }
}

.elegant-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f5f5f5;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.elegant-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(103, 126, 234, 0.5) 50%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 0;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-style: italic;
}

.company-description {
    line-height: 1.6;
    color: #d0d0d0;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(103, 126, 234, 0.1);
    border: 1px solid rgba(103, 126, 234, 0.3);
    border-radius: 50%;
    color: #667eea;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.3);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #d0d0d0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.contact-item i {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    width: 20px;
}

.contact-item strong {
    color: #f5f5f5;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: #d0d0d0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

.footer-policies {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.policy-link {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #667eea;
}

.separator {
    color: #666666;
    font-size: 0.8rem;
}

html[dir="rtl"] .footer-main {
    direction: rtl;
}

html[dir="rtl"] .footer-section h4::after {
    right: 0;
    left: auto;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .footer-section ul li a:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .social-links {
    justify-content: flex-end;
}

html[dir="rtl"] .footer-bottom-content {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        padding: 2rem 1rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-policies {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .company-info {
        text-align: center;
    }

    html[dir="rtl"] .company-info {
        text-align: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}


 .elegant-footer {
            background: #0f172a;
            color: rgba(248, 250, 252, 0.85);
            padding: 4rem 0 2.5rem 0;
        }

        .footer-content {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2.5rem;
        }

        .footer-section h4 {
            color: #ffffff;
            margin-bottom: 1.2rem;
            font-weight: 700;
        }

        .footer-logo h3 {
            font-size: 1.8rem;
            color: #ffffff;
            letter-spacing: 0.12em;
        }

        .footer-tagline {
            color: rgba(255, 255, 255, 0.65);
            font-size: 0.9rem;
        }

        .company-description {
            margin: 1rem 0 1.5rem 0;
            color: rgba(248, 250, 252, 0.7);
            font-size: 0.95rem;
        }

        .social-links a {
            display: inline-flex;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
            align-items: center;
            justify-content: center;
            margin-left: 0.6rem;
            transition: background 0.3s ease, transform 0.3s ease;
        }

        .social-links a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-4px);
        }

        .footer-section ul {
            list-style: none;
            display: grid;
            gap: 0.6rem;
        }

        .footer-section ul a {
            color: rgba(248, 250, 252, 0.7);
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

        .footer-section ul a:hover {
            color: #ffffff;
        }

        .contact-item {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .contact-item i {
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.1rem;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 3rem;
            padding-top: 1.5rem;
        }

        .footer-bottom-content {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: space-between;
            align-items: center;
        }

        .footer-policies {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        .policy-link {
            color: rgba(248, 250, 252, 0.7);
        }

        .policy-link:hover {
            color: #ffffff;
        }

        .separator {
            color: rgba(255, 255, 255, 0.4);
        }
