:root {
    --wm-primary: #a31030;
    --wm-primary-dark: #760b22;
    --wm-primary-soft: rgba(163, 16, 48, 0.12);
    --wm-secondary: #1a2f50;
    --wm-secondary-dark: #0d1728;
    --wm-secondary-soft: rgba(26, 47, 80, 0.1);
    --wm-ink: #142033;
    --wm-muted: #667487;
    --wm-line: rgba(26, 47, 80, 0.12);
    --wm-surface: #f4f6fa;
    --wm-card: rgba(255, 255, 255, 0.92);
    --wm-radius-sm: 14px;
    --wm-radius: 22px;
    --wm-radius-lg: 34px;
    --wm-shadow: 0 22px 60px rgba(26, 47, 80, 0.12);
    --wm-shadow-strong: 0 28px 80px rgba(26, 47, 80, 0.2);
}

body.wm-layout {
    min-height: 100vh;
    margin: 0;
    font-family: 'Almarai', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(163, 16, 48, 0.1), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, var(--wm-surface) 48%, #ffffff 100%);
    color: var(--wm-ink);
    text-rendering: optimizeLegibility;
}

body.wm-layout[dir="rtl"] {
    font-family: 'Almarai', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.wm-top-accent {
    height: 5px;
    background: linear-gradient(90deg, var(--wm-primary) 0%, #d6425e 45%, var(--wm-secondary) 100%);
}

[dir="rtl"] .wm-top-accent {
    transform: scaleX(-1);
}

.wm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 66, 94, 0.3), transparent 22rem),
        linear-gradient(135deg, var(--wm-secondary-dark) 0%, #132741 58%, var(--wm-primary-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 50px rgba(13, 23, 40, 0.28);
    backdrop-filter: blur(18px);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wm-header.wm-sticky {
    background:
        radial-gradient(circle at 10% 0%, rgba(212, 66, 94, 0.24), transparent 20rem),
        linear-gradient(135deg, #091321 0%, #10223a 60%, #69091e 100%);
    box-shadow: 0 22px 60px rgba(13, 23, 40, 0.34);
}

.wm-header .navbar {
    padding: 0.75rem 0;
}

.wm-header .navbar-nav.wm-nav.ml-auto {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

.wm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    color: #fff !important;
    text-decoration: none !important;
}

.wm-brand img {
    width: auto;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.24));
}

.wm-toggler {
    width: 46px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.wm-toggler span {
    display: block;
    width: 21px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #fff;
}

.wm-nav {
    gap: 0.25rem;
}

.wm-nav .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.85rem !important;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    color: var(--wm-secondary-dark) !important;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    text-shadow: none;
    box-shadow: 0 8px 18px rgba(13, 23, 40, 0.1);
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wm-nav .nav-link:hover,
.wm-nav .nav-link.wm-active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--wm-primary-dark) 0%, var(--wm-primary) 100%);
    border-color: rgba(255, 255, 255, 0.24);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(163, 16, 48, 0.3);
}

.wm-nav .nav-link.wm-active::after {
    content: '';
    position: absolute;
    inset-inline: 18px;
    bottom: 4px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wm-primary) 0%, #d6425e 100%);
}

.wm-nav .wm-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wm-auth {
    gap: 0.4rem;
}

.wm-auth .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.01em;
    border-width: 1px;
    box-shadow: none;
    text-decoration: none !important;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wm-auth .btn-wm-ghost {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: linear-gradient(135deg, var(--wm-secondary-dark) 0%, var(--wm-secondary) 100%);
    box-shadow: 0 12px 26px rgba(13, 23, 40, 0.24);
}

.wm-auth .btn-wm-ghost:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #132741 0%, #284772 100%) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(13, 23, 40, 0.3);
}

.wm-auth .btn-wm-primary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background: linear-gradient(135deg, #bd1238 0%, #e04a65 100%) !important;
    box-shadow: 0 12px 28px rgba(163, 16, 48, 0.38);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.wm-auth .btn-wm-primary:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(163, 16, 48, 0.46);
    filter: brightness(1.04);
}

.wm-auth .btn-wm-danger-outline {
    color: #ffd5dd !important;
    border-color: rgba(255, 213, 221, 0.34) !important;
    background: transparent;
}

.wm-auth .btn-wm-danger-outline:hover {
    color: #fff !important;
    background: rgba(163, 16, 48, 0.28) !important;
}

.wm-float-call {
    position: fixed;
    inset-inline-end: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: linear-gradient(145deg, var(--wm-primary) 0%, var(--wm-primary-dark) 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 18px 40px rgba(163, 16, 48, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wm-float-call::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(163, 16, 48, 0.22);
    animation: wmPulse 1.8s ease-in-out infinite;
}

.wm-float-call:hover {
    color: #fff !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 24px 52px rgba(163, 16, 48, 0.46);
}

.wm-float-call i {
    font-size: 1.35rem;
}

.wm-footer {
    position: relative;
    margin-top: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 12% 18%, rgba(163, 16, 48, 0.35), transparent 26rem),
        radial-gradient(circle at 90% 86%, rgba(71, 103, 151, 0.24), transparent 24rem),
        linear-gradient(145deg, var(--wm-secondary-dark) 0%, var(--wm-secondary) 100%);
}

.wm-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 100%);
    pointer-events: none;
}

.wm-footer-inner {
    position: relative;
    z-index: 1;
    padding: 4.5rem 0 1.5rem;
}

.wm-footer-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.wm-footer-logo img {
    width: auto;
    max-height: 54px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

.wm-footer-desc {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.8;
}

.wm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
}

.wm-contact-item i {
    flex: 0 0 20px;
    margin-top: 0.18rem;
    color: #ffbdca;
    text-align: center;
}

.wm-contact-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

.wm-contact-item a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.wm-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.wm-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wm-footer-social a:hover {
    transform: translateY(-3px);
    background: var(--wm-primary);
    border-color: var(--wm-primary);
}

.wm-footer-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.55rem;
    border-bottom: 3px solid var(--wm-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wm-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wm-footer-links li {
    margin-bottom: 0.58rem;
}

.wm-footer-links a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.wm-footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-inline-end: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.2s ease;
}

.wm-footer-links a:hover {
    color: #fff !important;
    transform: translateX(4px);
}

[dir="rtl"] .wm-footer-links a:hover {
    transform: translateX(-4px);
}

.wm-footer-links a:hover::before {
    background: var(--wm-primary);
}

.wm-map-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.wm-map-link {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(228, 16, 29, 0.92), rgba(28, 33, 46, 0.95));
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

.wm-map-link:hover {
    color: #fff;
    text-decoration: none;
}

.wm-map-link i {
    font-size: 2rem;
}

.wm-map-frame iframe {
    display: block;
    min-height: 210px;
}

.wm-footer-bar {
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.wm-footer-bar strong {
    color: #fff;
}

.wm-footer-bar .wm-powered-line {
    text-align: end;
}

@keyframes wmPulse {
    0%, 100% {
        opacity: 0.65;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.12);
    }
}

@media (max-width: 991.98px) {
    .wm-header .navbar-collapse {
        margin-top: 0.9rem;
        padding: 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.06);
    }

    .wm-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 14px;
    }

    [dir="rtl"] .wm-nav .nav-link {
        justify-content: flex-end;
    }

    .wm-auth {
        width: 100%;
        margin-top: 0.75rem;
        align-items: stretch !important;
    }

    .wm-auth .btn,
    .wm-auth form {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .wm-brand img {
        height: 42px;
    }

    .wm-footer-inner {
        padding-top: 3rem;
    }

    .wm-footer-bar,
    .wm-footer-bar .wm-powered-line {
        text-align: center;
    }

    .wm-footer-bar .wm-powered-line {
        margin-top: 0.35rem;
    }
}
