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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: Arial, Helvetica, sans-serif;
            color: #1a1a2e;
            background: #fff;
        }

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

        :root {
            --gold: #c98516;
            --dark: #1a1a2e;
            --gray: #2d2d44;
            --border: #e5e5e5;
        }

        /* ================================
           RTL SUPPORT
        ================================ */
        [dir="rtl"] {
            text-align: right;
        }
        [dir="rtl"] .gold-line {
            margin-right: 0;
            margin-left: 0;
        }
        [dir="rtl"] .explore-link .explore-arrow {
            display: inline-block;
            transform: rotate(180deg);
        }
        [dir="rtl"] .explore-link:hover .explore-arrow {
            transform: rotate(180deg) translateX(5px);
        }
        [dir="rtl"] .nav-menu .dropdown-menu {
            left: auto;
            right: 0;
        }
        [dir="rtl"] .nav-menu .dropdown-menu a {
            padding: 8px 18px;
        }
        [dir="rtl"] .service-card {
            border-right: none;
            border-left: 1px solid var(--border);
        }
        [dir="rtl"] .service-card:last-child {
            border-left: none;
        }
        @media (max-width: 850px) {
            [dir="rtl"] .nav-menu {
                transform: translateX(100%);
                left: auto;
                right: 0;
            }
            [dir="rtl"] .nav-menu.active {
                transform: translateX(0);
            }
            [dir="rtl"] .nav-menu .dropdown-menu a {
                padding: 8px 30px 8px 18px;
            }
            [dir="rtl"] .service-card {
                border-left: none;
            }
            [dir="rtl"] .service-card:nth-child(2) {
                border-left: none;
            }
            [dir="rtl"] .service-card:nth-child(4) {
                border-left: none;
            }
        }
        @media (max-width: 500px) {
            [dir="rtl"] .service-card {
                border-left: none;
            }
        }

        /* ================================
           NAVBAR
        ================================ */

        .navbar {
            height: 60px;
            width: 100%;
            background: #fff;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            position: relative;
            z-index: 1000;
        }

        .nav-container {
            width: 100%;
            height: 100%;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* LOGO */
        .logo {
            display: flex;
            align-items: center;
            width: 220px;
            min-width: 170px;
            height: 100%;
            text-decoration: none;
        }
        .corexion-logo {
            display: block;
            width: 220px;
            height: 75px;
            object-fit: contain;
            object-position: left center;
        }

        /* NAV LINKS */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 36px;
            list-style: none;
        }

        .nav-menu>li {
            position: relative;
        }

        .nav-menu a {
            position: relative;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .5px;
            color: #1a1a2e;
            display: inline-block;
            padding-bottom: 4px;
        }

        .nav-menu a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: var(--gold);
            transition: .25s;
        }

        .nav-menu a:hover::after,
        .nav-menu a.active::after {
            width: 100%;
        }

        .nav-menu a.active {
            color: var(--gold);
        }

        .nav-menu a:hover {
            color: var(--gold);
        }

        /* DROPDOWN */
        .dropdown-toggle {
            cursor: pointer;
            user-select: none;
        }

        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            min-width: 180px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
            border-radius: 4px;
            padding: 8px 0;
            z-index: 200;
            margin-top: 6px;
        }

        .dropdown-menu.open {
            display: block;
        }

        .dropdown-menu li {
            list-style: none;
            padding: 0;
            border-bottom: none;
        }

        .dropdown-menu a {
            display: block;
            padding: 8px 18px;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: .3px;
            color: #1a1a2e;
            transition: background .2s, color .2s;
        }

        .dropdown-menu a:hover {
            background: #f5f5f5;
            color: var(--gold);
        }

        .dropdown-menu a::after {
            display: none;
        }

        .dropdown-menu.wide {
            min-width: 200px;
        }

        /* MOBILE BUTTON */
        .menu-button {
            display: none;
            background: none;
            border: 0;
            cursor: pointer;
            width: 34px;
            height: 34px;
            position: relative;
            z-index: 1200;
        }

        .menu-button span {
            display: block;
            width: 24px;
            height: 2px;
            margin: 5px auto;
            background: #1a1a2e;
            transition: transform .28s ease, opacity .2s ease, background .2s ease;
        }

        .menu-button.active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        .menu-button.active span:nth-child(2) {
            opacity: 0;
        }
        .menu-button.active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .nav-overlay {
            display: none;
            position: fixed;
            inset: 0;
            top: 70px;
            background: rgba(0, 0, 0, .35);
            z-index: 900;
            opacity: 0;
            transition: opacity .25s ease;
        }
        .nav-overlay.active {
            display: block;
            opacity: 1;
        }

        /* ================================
           HERO
        ================================ */

        .hero {
            display: grid;
            grid-template-columns: 35% 65%;
            width: 100%;
            min-height: 380px;
        }

        /* LEFT CONTENT */
        .hero-content {
            padding: 35px 30px 35px 35px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: #fff;
        }

        /* BREADCRUMB */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
        }

        .breadcrumb span {
            font-size: 10px;
            letter-spacing: .5px;
            color: #2d2d44;
            font-weight: 500;
        }

        .breadcrumb .first {
            color: var(--gold);
            font-weight: 700;
        }

        .breadcrumb .slash {
            color: #aaa;
        }

        /* TITLE */
        .hero-title {
            font-size: clamp(42px, 4.5vw, 56px);
            line-height: 1.08;
            font-weight: 300;
            letter-spacing: 1.5px;
            color: #1a1a2e;
        }

        .gold-line {
            width: 28px;
            height: 3px;
            background: var(--gold);
            margin-top: 14px;
            margin-bottom: 14px;
        }

        .hero-description {
            color: #2d2d44;
            font-size: 14px;
            line-height: 1.6;
            max-width: 280px;
        }

        /* EXPLORE LINK */
        .explore-link {
            display: inline-flex;
            align-items: center;
            gap: 14px;
            margin-top: 26px;
            color: var(--gold);
            font-size: 12px;
            font-weight: 600;
            width: fit-content;
        }

        .explore-arrow {
            font-size: 22px;
            line-height: 10px;
            transition: .25s;
        }

        .explore-link:hover .explore-arrow {
            transform: translateX(5px);
        }

        /* HERO IMAGE */
        .hero-image {
            width: 100%;
            min-height: 380px;
            overflow: hidden;
            background: #ddd;
        }

        .hero-image img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            object-position: center;
        }

        /* ================================
           SERVICES
        ================================ */

        .services {
            width: 100%;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            background: #fff;
        }

        .service-card {
            min-height: 210px;
            padding: 22px 24px 24px;
            border-right: 1px solid var(--border);
            position: relative;
        }

        .service-card:last-child {
            border-right: none;
        }

        /* ===== ICONS ===== */
        .service-icon {
            width: 48px;
            height: 48px;
            margin-bottom: 12px;
            position: relative;
            color: var(--gold);
        }

        .service-icon::before,
        .service-icon::after {
            content: "";
            position: absolute;
            border: 1.5px solid var(--gold);
        }

        /* ICON 01 — COST PLANNING (Diamond) */
        .icon-planning::before {
            width: 30px;
            height: 30px;
            left: 8px;
            top: 8px;
            transform: rotate(45deg);
        }

        .icon-planning::after {
            content: "✦";
            border: none;
            left: 16px;
            top: 13px;
            font-size: 20px;
            color: var(--gold);
        }

        /* ICON 02 — ESTIMATING (Target/Crosshair) */
        .icon-estimating::before {
            width: 30px;
            height: 30px;
            left: 8px;
            top: 8px;
            border-radius: 50%;
        }

        .icon-estimating::after {
            width: 8px;
            height: 8px;
            left: 19px;
            top: 19px;
            border-radius: 50%;
            background: var(--gold);
            border: none;
        }

        /* ICON 03 — BUDGET CONTROL (Shield) */
        .icon-budget::before {
            width: 30px;
            height: 34px;
            left: 8px;
            top: 6px;
            border-radius: 4px 4px 0 0;
            border-bottom: none;
        }

        .icon-budget::after {
            content: "◈";
            border: none;
            left: 14px;
            top: 9px;
            font-size: 20px;
            color: var(--gold);
        }

        /* ICON 04 — CASH FLOW (Graph/Chart) */
        .icon-cashflow::before {
            width: 32px;
            height: 28px;
            left: 7px;
            top: 9px;
            border-radius: 2px;
        }

        .icon-cashflow::after {
            content: "📈";
            border: none;
            left: 9px;
            top: 10px;
            font-size: 22px;
            color: var(--gold);
        }

        /* ICON 05 — CHANGE VALUATION (Scale/Balance) */
        .icon-change::before {
            width: 32px;
            height: 32px;
            left: 7px;
            top: 7px;
            border-radius: 50%;
        }

        .icon-change::after {
            content: "⚖";
            border: none;
            left: 13px;
            top: 10px;
            font-size: 24px;
            color: var(--gold);
        }

        /* SERVICE CONTENT */
        .service-card h2 {
            font-size: 13px;
            line-height: 1.35;
            font-weight: 600;
            letter-spacing: .5px;
            color: #1a1a2e;
            margin-bottom: 8px;
        }

        .service-line {
            width: 20px;
            height: 2px;
            background: var(--gold);
            margin-top: 9px;
            margin-bottom: 10px;
        }

        .service-card p {
            color: #2d2d44;
            font-size: 11px;
            line-height: 1.6;
            max-width: 200px;
        }

        /* ================================
           FOOTER (زي الأول بالظبط)
        ================================ */

        .footer {
            background: #17181a;
            color: white;
            padding: 85px 85px 85px;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding-bottom: 30px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        .footer-logo-img {
            width: 180px;
            height: auto;
            display: block;
            object-fit: contain;
        }

        .footer-right {
            display: flex;
            align-items: flex-start;
        }

        .footer-links-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px 70px;
        }

        .footer-links-grid a {
            color: #bcbcbc;
            font-size: 14px;
            text-decoration: none;
            transition: color 0.25s ease;
            font-weight: 500;
            white-space: nowrap;
        }

        .footer-links-grid a:hover {
            color: white;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 18px auto 0;
            display: flex;
            justify-content: space-between;
            color: #777777;
            font-size: 12px;
        }

        /* ================================
           TABLET
        ================================ */

        @media (max-width: 1100px) {
            .logo {
                width: 220px;
                min-width: 170px;
            }
            .corexion-logo {
                width: 220px;
                height: 66px;
            }
            .nav-menu {
                gap: 20px;
            }
            .service-card {
                padding: 18px 14px;
            }
        }

        /* ================================
           MOBILE
        ================================ */

        @media (max-width: 850px) {
            .navbar {
                height: 70px;
            }
            .nav-container {
                padding: 0 20px;
            }
            .logo {
                width: 220px;
                min-width: 150px;
            }
            .corexion-logo {
                width: 220px;
                height: 66px;
            }

            /* MOBILE NAV */
            .nav-menu {
                position: fixed;
                top: 70px;
                right: 0;
                left: auto;
                width: min(78%, 340px);
                max-width: 340px;
                height: calc(100vh - 70px);
                background: #fff;
                flex-direction: column;
                align-items: stretch;
                padding: 10px 0 30px;
                gap: 0;
                transform: translateX(100%);
                transition: transform .3s ease;
                overflow-y: auto;
                box-shadow: -6px 0 24px rgba(0,0,0,.12);
                z-index: 950;
            }
            .nav-menu.active {
                transform: translateX(0);
            }

            .nav-menu > li {
                width: 100%;
                padding: 0;
                border-bottom: 1px solid #eee;
                display: block;
            }
            .nav-menu > li > a {
                display: flex;
                align-items: center;
                justify-content: space-between;
                width: 100%;
                padding: 16px 25px;
                font-size: 13px;
                letter-spacing: .8px;
                color: #1a1a2e;
            }
            .nav-menu > li > a::after {
                display: none;
            }
            .nav-menu > li > a.active {
                background: #faf6ee;
            }

            .nav-menu .dropdown-toggle::before {
                content: "";
                width: 8px;
                height: 8px;
                border-right: 1.6px solid #999;
                border-bottom: 1.6px solid #999;
                transform: rotate(45deg);
                transition: transform .25s ease, border-color .25s ease;
                margin-left: 10px;
                flex-shrink: 0;
            }
            .nav-menu .dropdown-toggle.open::before {
                transform: rotate(-135deg);
                border-color: var(--gold);
            }

            .nav-menu .dropdown-menu {
                position: static;
                box-shadow: none;
                padding: 0;
                margin: 0;
                border-radius: 0;
                background: #faf8f4;
                display: none;
                max-height: 0;
                overflow: hidden;
                transition: max-height .3s ease;
            }
            .nav-menu .dropdown-menu.open {
                display: block;
                max-height: 600px;
            }
            .nav-menu .dropdown-menu li {
                padding: 0;
                border-bottom: 1px solid #efece4;
            }
            .nav-menu .dropdown-menu li:last-child {
                border-bottom: none;
            }
            .nav-menu .dropdown-menu a {
                padding: 12px 25px 12px 38px;
                font-size: 11.5px;
                font-weight: 600;
                color: #1a1a2e;
                position: relative;
            }
            .nav-menu .dropdown-menu a::before {
                content: "–";
                position: absolute;
                left: 25px;
                color: var(--gold);
            }
            .nav-menu .dropdown-menu a:hover,
            .nav-menu .dropdown-menu a.active {
                color: var(--gold);
                background: #f3ecdd;
            }

            body.nav-open {
                overflow: hidden;
            }

            .menu-button {
                display: block;
            }

            /* HERO */
            .hero {
                display: flex;
                flex-direction: column;
            }
            .hero-content {
                padding: 30px 24px 35px;
                min-height: 330px;
            }
            .hero-title {
                font-size: clamp(40px, 10vw, 60px);
            }
            .hero-image {
                height: 55vw;
                min-height: 280px;
            }

            /* SERVICES */
            .services {
                grid-template-columns: repeat(2, 1fr);
            }
            .service-card {
                border-bottom: 1px solid var(--border);
                min-height: 200px;
            }
            .service-card:nth-child(2) {
                border-right: none;
            }
            .service-card:nth-child(4) {
                border-right: none;
            }

            /* FOOTER RESPONSIVE */
            .footer {
                padding: 40px 25px 20px;
            }

            .footer-container {
                flex-direction: column;
                align-items: flex-start;
                gap: 24px;
            }

            .footer-links-grid {
                gap: 10px 30px;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }
        }

        @media (max-width: 500px) {
            .logo {
                width: 220px;
                min-width: 150px;
            }
            .corexion-logo {
                width: 220px;
                height: 75px;
            }
            .services {
                grid-template-columns: 1fr;
            }
            .service-card {
                border-right: none;
            }

            .footer-links-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px 20px;
            }

            .footer-links-grid a {
                font-size: 10px;
            }

            .footer-logo-img {
                width: 140px;
            }
        }

        /* override for RTL on mobile */
        [dir="rtl"] .nav-menu .dropdown-menu a::before {
            content: "–";
            left: auto;
            right: 25px;
        }
        [dir="rtl"] .nav-menu .dropdown-menu a {
            padding: 12px 38px 12px 25px;
        }
        @media (max-width: 850px) {
            [dir="rtl"] .nav-menu .dropdown-menu a {
                padding: 12px 38px 12px 25px;
            }
            [dir="rtl"] .service-card:nth-child(2) {
                border-left: none;
            }
            [dir="rtl"] .service-card:nth-child(4) {
                border-left: none;
            }
        }
