/* ============================================================
   MUJJ — Brand overrides (header, hero slider, footer)
   White + blue identity via CSS variables from settings.
   ============================================================ */

/* ── HEADER ── */
header#site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

header#site-header.scrolled {
    padding: 8px 0;
    background: color-mix(in srgb, var(--main) 96%, #000);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
}

.header-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.logo-link .the-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.nav_bar li a::after {
    background: var(--accent);
}

/* Keep active/hover text white on dark header — accent alone can match --main and vanish */
.nav_bar li a:hover,
.nav_bar li a.active {
    color: #fff;
}

.lang-btn {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: #fff;
    min-width: 56px;
    gap: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.dropdown-menu {
    background: var(--main);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.dropdown-menu::after {
    border-color: var(--accent) transparent transparent var(--accent);
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

.dropdown-menu .dropdown-item:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.close-open-nav > div span {
    background: #fff;
}

/* ── HERO SLIDER ── */
.hero-slide {
    background-color: var(--main);
}

.hero-overlay {
    background: linear-gradient(
        105deg,
        color-mix(in srgb, var(--main) 92%, #000) 0%,
        color-mix(in srgb, var(--main) 72%, transparent) 48%,
        color-mix(in srgb, var(--hover) 55%, transparent) 100%
    );
}

.hero-glow,
.field-lines-bg {
    display: none !important;
}

.hero-badge {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    color: #fff;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.hero-badge i {
    font-size: 12px;
}

.hero-title span,
.app-badge i,
.stat-badge i {
    color: var(--accent);
}

.stat-badge i {
    margin-inline-end: 6px;
}

.btn-gold {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.btn-gold:hover {
    filter: brightness(1.08);
}

.owl-index .owl-dot.active {
    background: var(--accent);
}

/* Hide empty/broken hero image frame if image fails */
.hero-image-frame img[src=""],
.hero-image-frame img:not([src]) {
    display: none;
}

/* ── FOOTER ── */
footer {
    background: linear-gradient(180deg, var(--hover) 0%, var(--main) 100%);
    border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Pack brand + quick links to the right in Arabic; contact stays on the far side */
html[dir="rtl"] footer .footer-grid {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

html[dir="rtl"] footer .footer-col--brand {
    flex: 0 1 340px !important;
    max-width: 360px !important;
    width: auto !important;
    text-align: start;
    padding-inline-end: 0;
}

html[dir="rtl"] footer .footer-col--brand .footer-brand-link,
html[dir="rtl"] footer .footer-col--brand .footer-logo {
    display: inline-block;
    margin-inline-end: 0;
}

html[dir="rtl"] footer .footer-col--brand .social-m {
    justify-content: flex-start;
}

html[dir="rtl"] footer .footer-col--brand .footer-about {
    margin-inline-end: 0;
    max-width: 100%;
}

html[dir="rtl"] footer .footer-col--links {
    flex: 0 0 auto !important;
    max-width: 200px !important;
    width: auto !important;
    padding-inline-start: 28px;
    padding-inline-end: 8px;
    text-align: start;
}

html[dir="rtl"] footer .footer-col--contact {
    flex: 0 1 260px !important;
    max-width: 280px !important;
    width: auto !important;
    margin-inline-start: auto;
    text-align: start;
}

html[dir="ltr"] footer .footer-grid {
    justify-content: space-between;
}

html[dir="ltr"] footer .footer-col--contact {
    margin-inline-start: 0;
    text-align: left;
}

@media (max-width: 991.98px) {
    html[dir="rtl"] footer .footer-col--brand,
    html[dir="rtl"] footer .footer-col--links,
    html[dir="rtl"] footer .footer-col--contact {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-inline-start: 0;
        padding-inline: 15px;
    }
}

.footer-brand-name {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-brand-link {
    text-decoration: none;
}

.footer-logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

footer::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
    top: -60px;
    right: -60px;
    left: auto;
    bottom: auto;
    width: 280px;
    height: 280px;
}

.footer-about {
    border-right-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

html[dir="ltr"] .footer-about {
    border-right: 0;
    border-left: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.footer-about__text + .footer-about__text,
.footer-about__badge {
    border-top-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.footer-about__badge span {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent) 0%, color-mix(in srgb, var(--accent) 6%, transparent) 100%);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 12%, transparent);
}

.footer-about__badge i,
.Tfooter,
.link-footer li i,
.under_footer a {
    color: #fff;
}

.Tfooter::after {
    background: #fff;
}

.social-m li a {
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.social-m li a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.link-footer li a:hover {
    color: #fff;
}

.under_footer {
    background: rgba(0, 0, 0, 0.25);
    border-top-color: color-mix(in srgb, var(--accent) 15%, transparent);
    text-align: start;
}

.under_footer .col-md-8,
.under_footer .col,
.under_footer-copy {
    color: rgba(255, 255, 255, 0.7);
    text-align: start;
}

.under_footer-link {
    text-align: end;
}

.under_footer a {
    color: #fff;
    opacity: 0.9;
}

.under_footer a:hover {
    opacity: 1;
    color: #fff;
}

/* ── MOBILE BOTTOM NAV ── */
.mobile-footer-nav {
    background: color-mix(in srgb, var(--main) 98%, #000);
    border-top-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.mobile-footer-nav .footer-nav-item::before {
    background: var(--accent);
}

.mobile-footer-nav .footer-nav-item:hover,
.mobile-footer-nav .footer-nav-item.active {
    color: #fff;
}

/* ── SCROLL TOP / LOADER ── */
.scroll-top-btn {
    background: linear-gradient(135deg, var(--accent), var(--hover));
    color: #fff;
}

.scroll-top-btn:hover {
    color: #fff;
}

.loader {
    background: var(--main);
}

.loader-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.loader-bar {
    background: linear-gradient(90deg, var(--accent), var(--hover));
}

.body-content.inner-page {
    background: var(--off-white, #f5f6fa);
    color: var(--main);
}

.inner-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--main);
    margin-bottom: 1.5rem;
}

.inner-page-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(8, 45, 114, 0.06);
}

/* Stats bar — white numbers/icons on dark navy (accent alone can vanish) */
.stats-bar .stat-icon,
.stats-bar .stat-number {
    color: #fff;
}

.section-label-green,
.section-label-gold-dark {
    color: var(--accent) !important;
    border-color: color-mix(in srgb, var(--accent) 35%, transparent) !important;
    background: color-mix(in srgb, var(--accent) 10%, transparent) !important;
}

/* Labels on dark sections need light text */
.services-section .section-label-gold-dark,
.faq-section .section-label-gold-dark,
.partners-section .section-label-gold-dark,
.partners-section .section-label-green {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.section-divider,
.section-divider-right {
    background: var(--accent) !important;
}

.service-icon-wrap,
.about-feature-icon,
.contact-card-icon,
.contact-submit-btn,
.how-step-num {
    background: color-mix(in srgb, var(--accent) 12%, transparent) !important;
    color: var(--accent) !important;
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Services are on dark navy — force light text/icons for contrast */
.services-section .service-icon-wrap {
    color: #fff !important;
}

.services-section .service-icon-default,
.services-section .service-card-link {
    color: #fff !important;
}

.services-section .service-card-text,
.services-section .service-card p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.contact-submit-btn {
    background: var(--accent) !important;
    color: #fff !important;
}

.faq-tab-btn.active,
.faq-question-num {
    color: #fff !important;
}

.faq-section .faq-tab-btn {
    color: rgba(255, 255, 255, 0.85) !important;
}

.faq-section .faq-tab-btn.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}

.faq-section .faq-item.open .faq-question,
.faq-section .faq-question:hover {
    color: #fff !important;
}

.faq-section .faq-answer p,
.faq-section .the_title p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.faq-section .faq-chevron i {
    color: #fff !important;
}

/* ============================================================
   Professional polish — contrast, focus, motion, polish
   ============================================================ */

::selection {
    background: color-mix(in srgb, var(--accent) 35%, transparent);
    color: #fff;
}

a:focus-visible,
button:focus-visible,
.lang-btn:focus-visible,
.faq-tab-btn:focus-visible,
.service-card-link:focus-visible,
.contact-submit-btn:focus-visible,
.form-floating-group input:focus-visible,
.form-floating-group textarea:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.form-floating-group input:focus-visible,
.form-floating-group textarea:focus-visible {
    outline-color: var(--hover);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hover) 25%, transparent) !important;
}

/* Hero: quieter particles, cleaner frame */
.hero-particles {
    opacity: 0.35;
}

.hero-image-frame img {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-image-ring {
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-image-ring::before {
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.btn-gold {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

.btn-gold:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Stats bar */
.stats-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-bar .stat-label {
    color: rgba(255, 255, 255, 0.78);
}

/* Services */
.services-section .service-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.services-section .service-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.services-section .service-icon-wrap {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* How it works — solid step markers that stay readable */
.how-step-num {
    background: var(--main) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(8, 45, 114, 0.22);
}

.how-steps-wrapper::before {
    background: repeating-linear-gradient(
        90deg,
        color-mix(in srgb, var(--main) 55%, transparent) 0,
        color-mix(in srgb, var(--main) 55%, transparent) 8px,
        transparent 8px,
        transparent 16px
    );
}

.how-step-img {
    border-color: color-mix(in srgb, var(--main) 40%, #fff);
    background: #fff;
}

.how-step:hover .how-step-img {
    box-shadow: 0 14px 32px rgba(8, 45, 114, 0.16), 0 0 0 4px color-mix(in srgb, var(--main) 12%, transparent);
}

/* Partners — logos on soft plates */
.partners-section .the_title p {
    color: rgba(255, 255, 255, 0.72) !important;
}

.ticker-item {
    padding: 0 18px;
}

.ticker-item img {
    height: 48px;
    max-width: 140px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    filter: none;
    opacity: 0.92;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.ticker-item:hover img {
    filter: none;
    opacity: 1;
    transform: translateY(-2px);
}

/* Contact — clearer icon contrast on light section */
.contact-card-icon {
    background: var(--main) !important;
    color: #fff !important;
}

.contact-submit-btn:hover {
    filter: brightness(1.06);
}

.contact-form-card {
    box-shadow: 0 16px 48px rgba(8, 45, 114, 0.08);
}

.about-feature-icon {
    background: color-mix(in srgb, var(--main) 10%, #fff) !important;
    color: var(--main) !important;
}

/* About collage polish */
.about-img-main,
.about-img-secondary {
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.about-images:hover .about-img-main {
    transform: rotate(2deg) translateY(-4px);
}

.about-images:hover .about-img-secondary {
    transform: translateY(-58%) rotate(-4deg);
}

/* Footer social hover stays readable */
.social-m li a {
    color: #fff;
}

.social-m li a:hover {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-image-ring,
    .hero-particles,
    .ticker-track {
        animation: none !important;
    }
}
