/* ========================================================= Root variables & typography ========================================================= */
:root {
    /* الألوان الأساسية */
    --color-primary: #1a2a4d;
    /* الأزرق الداكن */
    --color-primary-dark: #061838;
    /* غامق جدًا */
    --color-primary-medium: #2c3e70;
    /* درجة وسطية */
    --color-primary-light: #3e5392;
    /* فاتح */
    --color-primary-lighter: #5067b5;
    /* فاتح جدًا */
    --color-secondary: #eec540;
    /* أصفر ذهبي */
    --color-light: #eff0f2;
    --color-muted: #6b7280;
    --color-dark: #020617;
    /* ألوان محايدة فاتحة */
    --color-neutral-lightest: #f5f5f7;
    --color-neutral-lighter: #dde1e8;
    /* ألوان ثانوية إضافية */
    --color-accent-light: #7fb3e6;
    /* الخطوط */
    --font-heading: "Inter", sans-serif;
--font-body: "Inter", sans-serif;
--font-arabic: "Tajawal", sans-serif;
--font-deco: "Birthstone", cursive;

    /* خصائص عامة */
    --radius-lg: 1.25rem;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
}

/* Base */
body {
    font-family: var(--font-body);
    color: var(--color-primary);
    background-color: #ffffff;
    max-width: 100%;
    overflow-x: hidden;
}

/* Arabic override */
html[lang="ar"] body {
    font-family: var(--font-arabic);
}


/* Headings */
/* English headings */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6,
html[lang="en"] .hero-title,
html[lang="en"] .section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Arabic headings */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .hero-title,
html[lang="ar"] .section-heading {
    font-family: var(--font-arabic);
    font-weight: 700;
    letter-spacing: 0.02em;
}


/* Content wrapper – push below navbar if fixed */
.content-wrapper {
    padding-top: 90px;
}

/* Utility classes (if not already in your CSS) */
.text-gold {
    color: var(--color-secondary) !important;
}

.object-cover {
    object-fit: cover;
}

/* Tailwind-like gradient utility used in markup */
.bg-gradient-to-b.from-transparent.to-black {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
}

/* Full inset (used with overlay div) */
.inset-0 {
    inset: 0;
}

/* ========================================================= Hero section ========================================================= */
/* ========================================================= Hero section - Fullscreen background with overlay ========================================================= */
/* ========================================================= Hero Section – Enhanced ========================================================= */
.hero-modern {
    width: 100% !important;
    height: calc(100vh - 90px) !important;
    min-height: calc(100vh - 90px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: url("/public/style_files/images/hero_img.webp") center/cover no-repeat;
    position: relative;
    overflow: hidden;
}


/* Overlay */
.hero-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 24, 56, 0.6);
    z-index: 0;
}

/* Gradient effect */
.hero-modern::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    z-index: 0;
}

/* Container content */
.hero-modern .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Title */
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s forwards;
    animation-delay: 0.3s;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto 2rem auto;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s forwards;
    animation-delay: 0.6s;
}

/* Hero buttons */
.hero-buttons .btn {
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Primary button */
.hero-buttons .btn-primary {
    background-color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    color: var(--color-primary);
}

.hero-buttons .btn-primary:hover {
    background-color: #f0d25b;
    border-color: #f0d25b;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(238, 197, 64, 0.32);
}

/* Secondary button */
.hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(15, 23, 42, 0.4);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-shapes .shape {
    position: absolute;
    opacity: 0.35;
    border: 1px solid rgba(238, 197, 64, 0.6);
    backdrop-filter: blur(5px);
    animation: floatShapes 6s ease-in-out infinite alternate;
}

.hero-shapes .circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    top: 10%;
    left: 5%;
}

.hero-shapes .square {
    width: 220px;
    height: 220px;
    border-radius: 35px;
    bottom: -40px;
    right: -30px;
}

/* Floating shapes animation */
@keyframes floatShapes {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(15deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Hero fade-up animation */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 180px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* RTL support */
html[dir="rtl"] .hero-modern .container {
    text-align: right;
}

html[dir="rtl"] .hero-buttons {
    justify-content: center;
    gap: 1rem;
}

/* ========================================================= Section scaffolding ========================================================= */
.section-heading {
    font-size: clamp(1.6rem, 1.5vw + 1rem, 2.1rem);
    font-weight: 700;
}

.section-text {
    max-width: 720px;
    margin-inline: auto;
    color: var(--color-muted);
}

/* ========================================================= /* ========================================================= Who We Are Section — Same Style as "Why Saudi" ========================================================= */
.who-we-are {
    width: 100vw;
    height: calc(100vh - 90px);
    /* نفس ارتفاع Why Saudi */
    min-height: calc(100vh - 90px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-light);
}

.who-we-are .container {
    height: 100%;
}

.who-we-are .row {
    height: 100%;
}

/* Image container */
.who-we-are .position-relative {
    width: 100%;
    height: 100%;
}

.who-we-are img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.6s ease;
}

.who-we-are img:hover {
    transform: scale(1.05);
}

/* Overlay gradient */
.who-we-are .who-we-are-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
    border-radius: inherit;
    opacity: 0.55;
    transition: opacity 0.4s ease;
}

.who-we-are .position-relative:hover .who-we-are-overlay {
    opacity: 0.35;
}

/* Text styling */
.who-we-are .section-heading {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.3rem;
    color: var(--color-primary);
}

.who-we-are .who-text {
    font-size: 1.15rem;
    color: var(--color-muted);
    line-height: 1.8;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 991.98px) {
    .who-we-are {
        height: auto;
        padding: 4rem 1rem;
    }

    .who-we-are .position-relative {
        height: 350px;
    }

    .who-we-are .section-heading {
        font-size: 2rem;
    }
}

/* RTL Support */
html[dir="rtl"] .who-we-are .row.align-items-center {
    direction: rtl;
}

html[dir="rtl"] .who-we-are .section-heading,
html[dir="rtl"] .who-we-are .who-text {
    text-align: right;
}

/* ========================================================= Why Saudi Arabia Section - Fullscreen below navbar ========================================================= */
.why-saudi {
    width: 100vw;
    height: calc(100vh - 90px);
    /* خصم ارتفاع النافبار */
    min-height: calc(100vh - 90px);
    padding: 0;
    display: flex;
    align-items: center;
    /* لمحاذاة المحتوى عمودياً */
    justify-content: center;
    overflow: hidden;
}

.why-saudi .position-relative {
    width: 100%;
    height: 100%;
}

.why-saudi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* يحافظ على تناسب الصورة */
    border-radius: var(--radius-lg);
    /* يبقي نفس شكل الزوايا */
    box-shadow: var(--shadow-soft);
    /* يبقي الظل كما هو */
}

/* === Override global .why-saudi img ONLY for logo === */
.why-saudi img.strategic-logo-clean {
    box-shadow: none !important;     /* 🔥 إزالة الظل */
    object-fit: contain !important;  /* لوجو ≠ صورة */
    height: auto !important;
    width: auto;
    max-width: 100%;
    border-radius: 0;                /* لا زوايا */
}

/* Overlay gradient */
.why-saudi .position-absolute {
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

/* ========================================================= What We Do Simple Section ========================================================= */
.what-we-do-simple {
    position: relative;
    width: 100%;
    background-color: var(--color-primary);
    padding: 6rem 0;
    overflow: hidden;
}

.what-we-do-simple .section-heading {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--color-secondary);
    position: relative;
    z-index: 2;
}

.what-we-do-simple .card-simple {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    cursor: default;
}

.what-we-do-simple .card-simple:hover {
    background: rgba(238, 197, 64, 0.1);
    transform: translateY(-10px) scale(1.03);
}

.what-we-do-simple .card-simple h3 {
    color: var(--color-light);
    margin-bottom: 0.5rem;
}

.what-we-do-simple .card-simple p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .what-we-do-simple {
        padding: 4rem 1rem;
    }

    .what-we-do-simple .section-heading {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
}

/* RTL Support */
html[dir="rtl"] .what-we-do-simple .text-center {
    text-align: center;
}

html[dir="rtl"] .what-we-do-simple .card-simple h3,
html[dir="rtl"] .what-we-do-simple .card-simple p {
    text-align: right;
}

/* Responsive fix: relax heights on tablets/phones */
/* ========================================================= Why Saudi Arabia Section ========================================================= */
.why-saudi {
    position: relative;
    padding: 6rem 0;
    background-color: var(--color-light);
}

.why-saudi .section-heading {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.why-saudi p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-muted);
}

/* Image container */
.why-saudi .position-relative {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.why-saudi img {
    border-radius: 1rem;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.why-saudi img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Overlay gradient */
.why-saudi .position-absolute {
    pointer-events: none;
    border-radius: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 100%);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .why-saudi {
        padding: 4rem 1rem;
    }

    .why-saudi .section-heading {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }
}

/* RTL Support */
html[dir="rtl"] .why-saudi .col-md-6:first-child {
    order: 2;
    /* الصورة تظهر على اليمين */
}

html[dir="rtl"] .why-saudi .col-md-6:last-child {
    order: 1;
    /* النص يظهر على اليسار */
    text-align: right;
}

/* ========================================================= /* ========================================================= Why International Brands Section ========================================================= */
.why-brands {
    position: relative;
    padding: 6rem 0;
    background-color: var(--color-primary);
}

.why-brands .section-heading {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--color-secondary);
}

/* Feature Cards */
.why-brands .feature {
    background-color: rgba(15, 23, 42, 0.8);
    border-radius: var(--radius-lg, 1rem);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.42);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    /* مسافة بين الأيقونة والنص */
    height: 100%;
}

.why-brands .feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.6);
    border-color: rgba(238, 197, 64, 0.75);
}

/* Feature Icon */
.feature-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;          /* كان 50 */
    height: 46px;         /* كان 50 */
    border-radius: 50%;
    background-color: rgba(238, 197, 64, 0.14);
    color: var(--color-secondary);
    font-size: 1.05rem;   /* كان 1.25rem */
}
/* Feature title size control */
.why-brands .feature-title {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.45;
    color: #f9fafb;
}

@media (max-width: 767.98px) {
    .why-brands .feature-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}



/* Feature text */
.feature-body h3 {
    color: #f9fafb;
    font-weight: 600;
    margin: 0;
}

.feature-body p {
    color: rgba(226, 232, 240, 0.9) !important;
}

/* مسافة طولية بين الصفوف فقط */
.why-brands .row>.col-md-6 {
    margin-bottom: 2rem;
}

/* Responsive & RTL */
@media (max-width: 991.98px) {
    .why-brands {
        padding: 4rem 1rem;
    }
}

html[dir="rtl"] .why-brands .feature {
    flex-direction: row-reverse !important;
    text-align: right;
}

html[dir="rtl"] .why-brands .feature-icon-wrapper {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

/* ========================================================= Featured brands logos ========================================================= */
.featured-brands {
    background: radial-gradient(circle at top, rgba(6, 24, 56, 0.04), transparent 55%), #ffffff;
}

/* Grid layout – fully responsive */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 120px));
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Cards that hold logos */
.brand-item {
    background-color: #f9fafb;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.brand-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    border-color: rgba(238, 197, 64, 0.7);
    background-color: #ffffff;
}

/* Logo styling */
.brand-img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
    max-height: 40px;
}

.brand-item:hover .brand-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.04);
}

/* ========================================================= Responsive breakpoints ========================================================= */
/* ≥ 576px: 3 per row */
@media (min-width: 576px) {
    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 140px));
    }
}

/* ≥ 768px: 4 per row */
@media (min-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(4, minmax(0, 150px));
    }
}

/* ≥ 1200px: 6 per row */
@media (min-width: 1200px) {
    .brand-grid {
        grid-template-columns: repeat(6, minmax(0, 150px));
    }

    .brand-img {
        max-height: 48px;
    }
}

/* Very small phones – give some breathing space */
@media (max-width: 400px) {
    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 110px));
        gap: 1.25rem;
    }

    .brand-item {
        padding-inline: 1.2rem;
    }
}

/* ========================================================= Responsive behavior ========================================================= */
/* Large screens (desktops) */
@media (min-width: 1200px) {
    .hero-modern {
        min-height: 82vh;
    }

    .hero-buttons .btn {
        font-size: 1rem;
        padding-inline: 1.9rem;
    }

    .who-we-are .position-relative,
    .why-saudi .position-relative {
        min-height: 320px;
    }
}

/* Medium screens (tablets) */
@media (max-width: 991.98px) {
    .content-wrapper {
        padding-top: 80px;
    }

    .hero-modern {
        text-align: center;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .hero-buttons {
        gap: 0.75rem !important;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 210px;
        justify-content: center;
    }

    .who-we-are .col-md-6:first-child,
    .why-saudi .col-md-6:first-child {
        margin-bottom: 2rem;
    }
}

/* Small screens (phones) */
@media (max-width: 767.98px) {
    .content-wrapper {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-shapes .circle {
        width: 110px;
        height: 110px;
        top: 6%;
        left: -20px;
    }

    .hero-shapes .square {
        width: 150px;
        height: 150px;
        bottom: -40px;
        right: -40px;
    }

    .card-simple,
    .feature {
        /* text-align: left; */
    }

    .brand-img {
        max-height: 42px;
    }
}

/* Extra-small screens */
@media (max-width: 575.98px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    .who-we-are .container,
    .what-we-do-simple .container,
    .why-saudi .container,
    .why-brands .container,
    .featured-brands .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .feature {
        padding: 1rem !important;
    }

    .featured-brands {
        padding-top: 35px;
    }
}

/* ========================================================= /* ========================================================= /* ========================================================= Header / Navbar with Root Colors ========================================================= */
.navbar-custom {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1040;
    background: radial-gradient(circle at top left, rgba(238, 197, 64, 0.12),
            /* استخدم --color-secondary مع شفاف */
            transparent 55%), var(--color-primary);
    /* خلفية رئيسية */
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.55);
    font-family: var(--font-body);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    height: 90px;
    /* ارتفاع الهيدر */
}

/* Container spacing & alignment */
.navbar-custom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* لجعل الروابط المطلقة داخلها */
    gap: 1.5rem;
    height: 100%;
}

/* Logo styling */
.navbar-custom img {
    height: 50px;
    /* حجم الشعار ليناسب الهيدر */
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

@media (min-width: 1200px) {
    .navbar-custom img {
        height: 60px;
    }
}

/* Desktop navigation links - centered */
.navbar-links-desktop {
    display: flex;
    align-items: center;
    gap: 3rem;
    /* position: absolute; */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.navbar-links-desktop li {
    position: relative;
}

.navbar-links-desktop .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0;
    color: var(--color-light);
    /* استخدام متغير الروت */
    text-decoration: none;
    transition: color 0.16s ease;
    font-weight: 500;
}

/* Animated underline for links - full width under text */
.navbar-links-desktop .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-secondary), #fbbf24);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.navbar-links-desktop .nav-link:hover,
.navbar-links-desktop .nav-link.active,
.navbar-links-desktop .nav-link[aria-current="page"] {
    color: var(--color-light);
}

.navbar-links-desktop .nav-link:hover::after,
.navbar-links-desktop .nav-link.active::after,
.navbar-links-desktop .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Hamburger toggle button for mobile */
.navbar-toggle {
    display: none;
    height: 100%;
    align-items: center;
}

.navbar-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    color: var(--color-secondary);
    /* استخدام اللون الثانوي */
    padding: 0.25rem;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.navbar-toggle button:hover {
    background-color: rgba(238, 197, 64, 0.25);
    /* لون hover شبه شفاف من الثانوي */
    transform: translateY(-1px);
}

/* Mobile menu base state */
.navbar-menu-mobile {
    display: none;
    background: var(--color-primary);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(238, 197, 64, 0.4);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.22s ease, padding-top 0.18s ease, padding-bottom 0.18s ease;
}

/* Show mobile menu when toggled */
.navbar-menu-mobile.show-menu {
    display: block;
    max-height: 420px;
    padding: 15px;
}

/* Mobile links */
.navbar-menu-mobile ul {
    padding-inline: 1.25rem;
    list-style: none;
}

.navbar-menu-mobile li+li {
    border-top: 1px solid rgba(15, 23, 42, 0.8);
}

.navbar-menu-mobile .nav-link {
    display: block;
    padding: 0.7rem 0;
    color: var(--color-light);
    font-size: 0.97rem;
    text-decoration: none;
    font-family: var(--font-body);
    transition: color 0.16s ease, padding-left 0.16s ease, padding-right 0.16s ease, background-color 0.16s ease;
    padding: 10px;
}

/* Hover effect for mobile links with RTL support */
html[dir="rtl"] .navbar-menu-mobile .nav-link:hover {
    padding-right: 0.35rem;
    background-color: rgba(238, 197, 64, 0.15);
}

html[dir="ltr"] .navbar-menu-mobile .nav-link:hover {
    padding-left: 0.35rem;
    background-color: rgba(238, 197, 64, 0.15);
}

/* Responsive: show hamburger on small screens */
@media (max-width: 991px) {
    .navbar-links-desktop {
        display: none;
    }

    .navbar-toggle {
        display: inline-flex;
    }
}

/* ========================================================= Responsive behavior ========================================================= */
/* ≥ 1300px: desktop menu visible, mobile hidden */
@media (min-width: 1300px) {
    .navbar-links-desktop {
        display: flex;
    }

    /* ✅ تعديل هنا: إخفاء أيقونة المنيو على الديسكتوب */
    .navbar-toggle {
        display: none;
    }

    .navbar-menu-mobile {
        display: none !important;
    }
}

/* < 1300px: show toggle, hide desktop links */
@media (max-width: 1299.98px) {
    .navbar-links-desktop {
        display: none;
    }

    .navbar-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }

    .navbar-custom .container {
        padding-block: 0.75rem !important;
    }

    .lang-switch-desktop {
        display: none !important;
        /* اخفِ زر اللغة الخاص بالديسكتوب فقط */
    }
}

/* Smaller screens adjustments */
@media (max-width: 767.98px) {
    .navbar-custom img {
        height: 52px;
    }

    .navbar-menu-mobile ul {
        padding-inline: 1rem;
    }

    .navbar-menu-mobile .nav-link {
        font-size: 0.95rem;
    }
}

/* ========================================================= Footer ========================================================= */
/* ========================================================= Footer Section with Root Colors ========================================================= */
.footer {
    background: radial-gradient(circle at top left, rgba(238, 197, 64, 0.12),
            /* استخدم --color-secondary بشفافية */
            transparent 55%), var(--color-dark);
    /* الخلفية الأساسية */
    color: rgba(248, 250, 252, 0.9);
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    margin-top: 0rem !important;
    font-family: var(--font-body);
    border-top: 1px solid rgba(148, 163, 184, 0.5);
}

/* Main grid wrapper */
.footer>.container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: flex-start;
}

/* Generic footer sections */
.footer-section {
    font-size: 0.95rem;
}

/* Logo */
.footer-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

/* Tagline text */
.footer-text {
    margin: 0 0 0.4rem;
    color: var(--color-light);
    line-height: 1.7;
    font-family: var(--font-body);
}

.footer-tagline {
    max-width: 280px;
}

/* Titles */
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    color: var(--color-light);
}

/* Contact icons */
.footer-icon {
    margin-inline-end: 0.4rem;
    color: var(--color-secondary);
}

/* Quick links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li+li {
    margin-top: 0.3rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-light);
    font-size: 0.94rem;
    transition: color 0.16s ease, transform 0.16s ease, padding-inline 0.16s ease;
}

/* CTA box */
.footer-cta {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(238, 197, 64, 0.25);
}

.footer-cta-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: rgba(248, 250, 252, 0.85);
}

/* CTA Button */
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.6rem;
    border-radius: 999px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.footer-cta-btn:hover {
    background-color: #f0d25b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 197, 64, 0.35);
}

/* Prevent CTA text color change on hover */
.footer-cta-btn,
.footer-cta-btn:hover,
.footer-cta-btn:focus,
.footer-cta-btn:active {
    color: var(--color-primary) !important;
    text-decoration: none;
}



/* RTL-aware hover “slide” */
html[dir="ltr"] .footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(2px);
    padding-left: 2px;
}

html[dir="rtl"] .footer-links a:hover {
    color: var(--color-secondary);
    transform: translateX(-2px);
    padding-right: 2px;
}

/* Social */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    margin-inline: 0.25rem;
    color: var(--color-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.social-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Bottom strip */
.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.45) !important;
    margin-top: 2.5rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.9);
}

.section-spacer {
    height: 80px; /* يمكنك تغيير القيمة حسب ما تحب */
}

@media (max-width: 768px) {
    .section-spacer {
        height: 50px;
    }
}

/* ========================================================= Responsive ========================================================= */
/* < 1024px: single centered column footer */
@media (max-width: 1023.98px) {
    .footer>.container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
        text-align: center;
        justify-items: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-logo-img {
        margin-inline: auto;
    }

    .footer-tagline {
        max-width: 100%;
    }

    /* Center quick links */
    .footer-links {
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    /* Center social icons */
    .footer-section .flex {
        justify-content: center !important;
    }

    .footer-bottom {
        text-align: center;
        padding-inline: 1rem;
    }

    .card-simple {
        min-height: 305px;
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .footer>.container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

/* Phones */
@media (max-width: 575.98px) {
    .footer {
        padding-top: 2.75rem;
        padding-bottom: 2rem;
    }

    .footer>.container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1.75rem;
        text-align: left;
    }

    /* .footer-section { text-align: left; } */
    .footer-bottom {
        font-size: 0.78rem;
        padding-inline: 1rem;
    }

    /* Center social on mobile as in markup “justify-center” */
    .footer-section .flex {
        justify-content: flex-start !important;
    }
}

@media (max-width: 768px) {
    .why-saudi {
        height: auto;
    }

    .what-we-do-cards {
        gap: 12px;
    }

    .card-simple {
        min-height: 110px !important;
    }
}

/* ============================ Responsive Fix — Who We Are + Why Saudi ============================ */
/* موبايل: الصورة فوق والنص تحت دائماً */
@media (max-width: 767.98px) {

    /* Who We Are */
    .who-we-are .col-md-6:first-child {
        order: 2 !important;
        /* النص ينزل لتحت */
    }

    .who-we-are .col-md-6:last-child {
        order: 1 !important;
        /* الصورة تطلع فوق */
    }

    /* Why Saudi */
    .why-saudi .col-md-6:first-child {
        order: 1 !important;
        /* الصورة فوق */
    }

    .why-saudi .col-md-6:last-child {
        order: 2 !important;
        /* النص تحت */
    }

    /* ضبط الحجوم */
    .who-we-are img,
    .why-saudi img {
        height: 260px !important;
        object-fit: cover;
    }

    .who-we-are,
    .why-saudi {
        height: auto !important;
        padding: 3rem 0 !important;
    }
}

@media (max-width: 1299.98px) {
    .lang-switch-desktop {
        display: none !important;
    }
}

/* ========================================================= /* RTL FIX WITHOUT BREAKING FLEX */
html[dir="rtl"] .navbar-custom .container {
    direction: rtl;
}

@media (max-width: 1299.98px) {
    html[dir="rtl"] .navbar-custom .container {
        gap: 0.5rem;
    }

    html[dir="rtl"] .navbar-custom .navbar-logo {
        order: 1;
        margin-left: auto;
    }

    html[dir="rtl"] .navbar-links-desktop {
        order: 2;
    }

    html[dir="rtl"] .navbar-custom .navbar-toggle {
        order: 3;
        margin-left: 0;
        margin-right: 0;
    }
}

/* FIX for navbar width difference on all screens */
.navbar-custom .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0 auto;
    overflow: visible !important;
}
/* =========================================
/* =========================================================
   WHAT WE DO – CLEAN & SAFE LAYER
   Purpose:
   - Equal card heights
   - No visual change
   - Fully responsive
   ========================================================= */

/* Container row — keep Bootstrap behavior */
.what-we-do-simple .what-we-do-cards {
    display: flex;
    flex-wrap: wrap;
}

/* Columns must stretch equally */
.what-we-do-simple .what-we-do-cards > .col-md-4 {
    display: flex;
}

/* Card base — equal height logic only */
.what-we-do-simple .card-simple {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 220px; /* desktop equal height */
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: border-color 0.18s ease,
                box-shadow 0.18s ease,
                transform 0.18s ease;
}
.what-we-do-simple .card-simple h3 {
    color: var(--color-secondary);
}

/* Hover — border only (root color) */
.what-we-do-simple .card-simple:hover {
    border-color: var(--color-secondary);
}

/* Tablet */
@media (max-width: 991.98px) {
    .what-we-do-simple .card-simple {
        min-height: 200px;
    }
}

/* Mobile — natural height */
@media (max-width: 575.98px) {
    .what-we-do-simple .card-simple {
        min-height: auto;
    }
}

