/* Final stability layer loaded after the legacy theme styles. */
:root {
    --mr-green: #073d32;
    --mr-green-2: #0e5a46;
    --mr-gold: #d1aa58;
    --mr-gold-2: #a87525;
    --mr-cream: #f8f6ef;
    --mr-ink: #1e2a32;
    --mr-muted: #64747b;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    overflow-x: hidden;
    background: var(--mr-cream);
    color: var(--mr-ink);
    font-family: "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

body *,
body *::before,
body *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(100% - 32px, 1200px);
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 0;
}

.navbar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    min-height: 78px !important;
    padding: 10px 18px !important;
    display: block !important;
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid rgba(7,61,50,.09) !important;
    box-shadow: 0 12px 34px rgba(15,23,42,.08) !important;
    z-index: 9999 !important;
}

.nav-container {
    width: min(100%, 1280px) !important;
    min-height: 58px !important;
    margin-inline: auto !important;
    display: grid !important;
    grid-template-columns: minmax(72px, 230px) minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    position: relative !important;
}

.logo {
    min-width: 0 !important;
    max-width: 230px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--mr-green) !important;
}

.logo:hover {
    transform: none !important;
    box-shadow: none !important;
}

.logo-emblem,
.footer-logo-emblem {
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    display: inline-grid !important;
    place-items: center !important;
}

.logo-emblem img,
.footer-logo-emblem img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: none !important;
}

.logo-text {
    min-width: 0 !important;
    max-width: 165px !important;
    display: block !important;
    color: var(--mr-green) !important;
    font-size: .88rem !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    white-space: normal !important;
    letter-spacing: 0 !important;
}

.logo-text span {
    display: block !important;
    margin-top: 2px !important;
    color: var(--mr-gold-2) !important;
    font-size: .64rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.nav-links {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 6px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    overflow: hidden !important;
    list-style: none !important;
    background: var(--mr-cream) !important;
    border: 1px solid rgba(7,61,50,.10) !important;
    border-radius: 999px !important;
}

.navbar .nav-links > li {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    list-style: none !important;
}

.nav-link {
    min-height: 36px !important;
    padding: 8px 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    color: #263740 !important;
    font-size: .82rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
}

.nav-link::after {
    display: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--mr-green-2), var(--mr-green)) !important;
}

.nav-cta {
    min-height: 46px !important;
    padding: 10px 17px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--mr-gold), var(--mr-gold-2)) !important;
    color: #fff !important;
    font-size: .88rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.hamburger {
    display: none !important;
}

.hero {
    min-height: 100vh !important;
    padding: 136px 24px 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(160deg, var(--mr-green) 0%, var(--mr-green-2) 52%, #1e2a32 100%) !important;
}

.hero-overlay,
.hero-particles {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
}

.hero-overlay {
    background-position: center !important;
    background-size: cover !important;
    opacity: .16 !important;
    mix-blend-mode: luminosity !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    width: min(100%, 900px) !important;
    margin-inline: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    color: #fff !important;
}

.hero-badge {
    margin: 0 auto 22px !important;
    padding: 9px 19px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 999px !important;
    background: rgba(209,170,88,.18) !important;
    border: 1px solid rgba(209,170,88,.42) !important;
    color: #f1d48b !important;
    font-weight: 800 !important;
}

.hero h1 {
    max-width: 900px !important;
    margin: 0 auto 20px !important;
    color: #fff !important;
    font-size: 46px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
}

.gradient-text {
    background: linear-gradient(135deg, #f1d48b, #fff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.hero-desc {
    max-width: 760px !important;
    margin: 0 auto 30px !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 1.08rem !important;
    line-height: 2 !important;
    text-align: center !important;
}

.hero-actions,
.cta-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
}

.btn,
.project-showcase-link,
.service-card-cta {
    text-decoration: none !important;
}

.hero-actions .btn {
    min-height: 50px !important;
    padding: 12px 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.hero-stats {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 28px !important;
}

.stat-number {
    display: block !important;
    color: #f1d48b !important;
    font-size: 2.1rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
}

.stat-label {
    color: rgba(255,255,255,.74) !important;
    font-weight: 700 !important;
}

.services,
.areas-section,
.why-us-redesigned,
.blog-preview-section,
.projects-showcase-section {
    overflow: hidden !important;
}

.section-header {
    text-align: center !important;
    margin-bottom: 44px !important;
}

.section-title {
    margin: 0 0 12px !important;
    color: var(--mr-green) !important;
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif !important;
    font-size: clamp(1.9rem, 4vw, 3rem) !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

.section-subtitle {
    max-width: 760px !important;
    margin: 0 auto !important;
    color: var(--mr-muted) !important;
    font-size: 1.04rem !important;
    line-height: 1.9 !important;
}

.reveal-card {
    opacity: 1 !important;
    transform: none !important;
}

.services-grid,
.service-image-grid,
.service-photo-grid,
.articles-grid,
.project-archive-grid,
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px !important;
    align-items: stretch !important;
}

.service-card,
.photo-service-card,
.article-card,
.gallery-item,
.project-showcase-card,
.testimonial-card,
.review-card,
.professional-feature-card {
    min-width: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(7,61,50,.10) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 42px rgba(15,23,42,.08) !important;
}

.service-img-wrapper,
.service-visual,
.project-showcase-media,
.gallery-item,
.article-card > img,
.article-image-link img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 230px !important;
    overflow: hidden !important;
    background: #e7efea !important;
}

.service-img,
.project-showcase-media img,
.gallery-item img,
.article-card > img,
.article-image-link img,
.single-cover img,
.project-hero img,
.service-detail-hero img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

.project-showcase-section {
    padding: 96px 0 104px !important;
    background: linear-gradient(180deg, #fff 0%, var(--mr-cream) 100%) !important;
}

.projects-showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
}

.project-showcase-card {
    display: flex !important;
    flex-direction: column !important;
}

.project-showcase-media {
    height: 255px !important;
    min-height: 255px !important;
}

.project-showcase-shade,
.service-photo-shade {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(7,61,50,0) 45%, rgba(7,61,50,.68) 100%) !important;
    pointer-events: none !important;
}

.project-showcase-tag,
.service-phone-badge {
    position: absolute !important;
    right: 16px !important;
    bottom: 16px !important;
    z-index: 2 !important;
    max-width: calc(100% - 32px) !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.96) !important;
    color: var(--mr-green) !important;
    font-size: .82rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.project-showcase-body,
.photo-service-card .service-content,
.service-card .service-content,
.article-body {
    padding: 24px 22px 26px !important;
}

.project-showcase-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: right !important;
}

.project-showcase-body h3,
.project-showcase-body h3 a,
.service-title,
.service-title a,
.article-title,
.article-title a {
    color: var(--mr-green) !important;
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

.project-showcase-body h3 {
    margin: 0 0 10px !important;
    font-size: 1.2rem !important;
    line-height: 1.55 !important;
}

.project-showcase-body p,
.service-desc,
.article-excerpt {
    color: var(--mr-muted) !important;
    font-size: .92rem !important;
    line-height: 1.9 !important;
}

.project-showcase-link,
.service-card-cta {
    margin-top: auto !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 17px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--mr-green-2), var(--mr-green)) !important;
    color: #fff !important;
    font-size: .88rem !important;
    font-weight: 900 !important;
}

.areas-grid,
.professional-features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.floating-actions {
    position: fixed !important;
    right: 20px !important;
    bottom: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 9998 !important;
}

.float-btn {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
}

.back-to-top {
    left: 20px !important;
    right: auto !important;
    bottom: 24px !important;
}

@media (max-width: 1220px) {
    .nav-container {
        grid-template-columns: 66px minmax(0, 1fr) auto !important;
        gap: 10px !important;
    }

    .logo {
        max-width: 66px !important;
    }

    .logo-text {
        display: none !important;
    }

    .nav-link {
        padding-inline: 9px !important;
        font-size: .78rem !important;
    }
}

@media (max-width: 980px) {
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .logo {
        max-width: 245px !important;
    }

    .logo-text {
        display: block !important;
    }

    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .hamburger {
        width: 44px !important;
        height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-links.open {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        left: 0 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 14px !important;
        overflow: visible !important;
        border-radius: 20px !important;
        background: #fff !important;
        box-shadow: 0 22px 55px rgba(15,23,42,.16) !important;
    }

    .nav-links.open > li,
    .nav-links.open .nav-link {
        width: 100% !important;
    }

    .services-grid,
    .service-image-grid,
    .service-photo-grid,
    .articles-grid,
    .project-archive-grid,
    .gallery-grid,
    .projects-showcase-grid,
    .areas-grid,
    .professional-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .navbar {
        min-height: 70px !important;
        padding: 8px 12px !important;
    }

    .logo-emblem {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
    }

    .logo-text {
        max-width: 145px !important;
        font-size: .78rem !important;
    }

    .hero {
        min-height: auto !important;
        padding: 112px 16px 58px !important;
    }

    .hero h1 {
        font-size: 32px !important;
    }

    .hero-desc {
        font-size: .96rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        max-width: 320px !important;
        white-space: normal !important;
    }

    .hero-stat-divider {
        display: none !important;
    }

    .services-grid,
    .service-image-grid,
    .service-photo-grid,
    .articles-grid,
    .project-archive-grid,
    .gallery-grid,
    .projects-showcase-grid,
    .areas-grid,
    .professional-features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .project-showcase-section {
        padding: 68px 0 74px !important;
    }

    .project-showcase-media,
    .service-img-wrapper,
    .service-visual {
        height: 230px !important;
        min-height: 230px !important;
    }

    .project-showcase-body,
    .photo-service-card .service-content,
    .service-card .service-content {
        align-items: center !important;
        text-align: center !important;
        padding: 22px 18px 24px !important;
    }

    .floating-actions {
        right: 14px !important;
        bottom: 18px !important;
    }

    .float-btn {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
    }
}
