@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primary: #bd8b0a;
    --primary-dark: #9a7208;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Base Styles & RTL Support */
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--black);
    margin: 0; padding: 0;
    overflow-x: hidden;
}
html[dir="rtl"] body { font-family: 'Tajawal', sans-serif; }

h1, h2, h3, h4 { font-weight: 700; margin-bottom: 15px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Top Bar */
.top-bar {
    background: var(--black); color: var(--white);
    padding: 10px 5%; font-size: 0.9rem;
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar i { color: var(--primary); margin: 0 5px; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
}
.logo img { height: 60px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 600; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Mobile Menu Elements */
.mobile-menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--black); }
.close-menu { display: none; text-align: right; font-size: 1.8rem; cursor: pointer; margin-bottom: 30px; color: var(--black); }
.close-menu:hover { color: var(--primary); }

/* Buttons */
.btn {
    padding: 12px 25px; border-radius: 5px; font-weight: 600; cursor: pointer;
    transition: var(--transition); display: inline-block; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--black); color: var(--white); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.lang-btn { background: var(--light-gray); border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: 600; }

/* Sections */
.section { padding: 80px 5%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 40px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 10px auto 0; }
.bg-light { background: var(--light-gray); }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Global Cards */
.card {
    background: var(--white); padding: 30px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center;
    transition: var(--transition); border-bottom: 4px solid transparent;
}
.card:hover { transform: translateY(-10px); border-bottom-color: var(--primary); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/hero_image.png');
    background-size: cover; background-position: center; color: var(--white); text-align: center; padding: 120px 5%;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.hero h1 { font-size: 3rem; color: var(--primary); }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* --- HOME PAGE ALT BLOCKS --- */
.alt-blocks-container { margin-top: -50px; position: relative; z-index: 10; padding-bottom: 40px; }
.alt-block { display: flex; align-items: center; gap: 40px; margin-bottom: 30px; padding: 40px; background: var(--white); border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: var(--transition); }
.alt-block:nth-child(even) { flex-direction: row-reverse; text-align: end; }
html[dir="rtl"] .alt-block:nth-child(even) { text-align: start; }
.alt-block:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.alt-icon { flex: 0 0 120px; height: 120px; display: flex; align-items: center; justify-content: center; background: var(--light-gray); border-radius: 50%; font-size: 3.5rem; color: var(--primary); transition: var(--transition); border: 2px dashed var(--black); }
.alt-block:hover .alt-icon { background: var(--primary); color: var(--white); border-style: solid; transform: rotate(10deg); }
.alt-content { flex: 1; }
.alt-content h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.highlight-europe { background: linear-gradient(135deg, #fff 0%, #fef9e7 100%); border-inline-start: 5px solid var(--black); }
.alt-block:nth-child(even).highlight-europe { border-inline-start: none; border-inline-end: 5px solid var(--black); }
.highlight-europe .alt-icon { color: var(--black); border-color: var(--primary); }




/* --- SERVICE PAGE DEDICATED STYLES --- */
.srv-intro { padding: 0; margin-top: -30px; position: relative; z-index: 10; }
.srv-intro-inner { background: linear-gradient(135deg, var(--primary), var(--black)); color: #fff; border-radius: 16px; padding: 30px 40px; display: flex; align-items: center; gap: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font-size: 1.15rem; font-weight: 500; line-height: 1.6; }
.srv-intro-icon { font-size: 2.5rem; color: var(--white); flex-shrink: 0; opacity: 0.8; }
.srv-categories-section { padding: 80px 5%; }
.srv-categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 10px; }
.srv-cat-card { background: #fff; border-radius: 16px; padding: 35px 28px; text-align: center; box-shadow: 0 8px 25px rgba(0,0,0,0.07); transition: var(--transition); border-bottom: 4px solid transparent; position: relative; overflow: hidden; }
.srv-cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--black)); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: left; }
html[dir="rtl"] .srv-cat-card::before { transform-origin: right; }
.srv-cat-card:hover::before { transform: scaleX(1); }
.srv-cat-card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(0,0,0,0.13); border-bottom-color: var(--black); }
.srv-cat-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--light-gray); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; color: var(--primary); transition: var(--transition); }
.srv-cat-card:hover .srv-cat-icon { background: linear-gradient(135deg, var(--primary), var(--black)); color: #fff; transform: rotate(10deg) scale(1.1); }
.srv-cat-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 10px; font-weight: 700; }
.srv-cat-card p { font-size: 0.9rem; color: #666; line-height: 1.6; }

.srv-industries-section { background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%); padding: 80px 5%; }
.srv-industries-section .section-title, .srv-industries-section .section-title h2 { color: #fff; }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.industry-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-align: center; font-weight: 600; font-size: 0.92rem; transition: var(--transition); backdrop-filter: blur(5px); }
.industry-badge i { font-size: 1.8rem; color: var(--primary); transition: transform 0.3s ease; }
.industry-badge:hover { background: rgba(189, 139, 10, 0.18); border-color: var(--primary); transform: translateY(-5px); }
.industry-badge:hover i { transform: scale(1.2); }

.srv-countries-section { padding: 80px 5%; }
.world-map-container { position: relative; margin-top: 10px; }
.world-map-bg { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; opacity: 0.05; }
.countries-regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; position: relative; z-index: 2; }
.region-group { background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 8px 25px rgba(0,0,0,0.07); transition: var(--transition); }
.region-group:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.region-header { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--black); display: flex; align-items: center; gap: 10px; }
.region-header i { color: var(--black); font-size: 1.2rem; }
.country-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ctag { background: var(--light-gray); color: var(--black); font-size: 0.85rem; font-weight: 500; padding: 6px 14px; border-radius: 30px; border: 1px solid #e0e0e0; transition: var(--transition); white-space: nowrap; }
.ctag:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: scale(1.05); }

.srv-partner-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 80px 5%; }
.partner-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.partner-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.25); color: #fff; font-weight: 700; font-size: 0.9rem; padding: 6px 18px; border-radius: 30px; text-transform: uppercase; margin-bottom: 16px; }
.partner-text h2 { font-size: 2.6rem; color: #fff; margin-bottom: 16px; line-height: 1.2; text-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.partner-text > p { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin-bottom: 24px; line-height: 1.7; }
.partner-benefits { list-style: none; padding: 0; margin-bottom: 32px; }
.partner-benefits li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.95); font-size: 0.97rem; margin-bottom: 10px; }
.partner-benefits li i { color: #fff; font-size: 1rem; margin-top: 3px; }
.btn-partner { display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: #fff !important; padding: 15px 36px; border-radius: 50px; font-weight: 700; font-size: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,0.4); transition: var(--transition); }
.btn-partner:hover { background: #333; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.partner-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pstat { background: rgba(255,255,255,0.9); border-radius: 16px; padding: 28px 20px; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.1); transition: var(--transition); }
.pstat:hover { transform: translateY(-5px); }
.pstat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.pstat-lbl { display: block; font-size: 0.85rem; color: #666; font-weight: 600; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; width: 100%; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }

/* Footer */
.footer { background: var(--black); color: var(--white); padding: 60px 5% 20px; }
.footer .grid-3 { margin-bottom: 40px; }
.footer-col h3 { color: var(--primary); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
html[dir="rtl"] .footer-col ul li a:hover { padding-left: 0; padding-right: 5px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 0.9rem; }


/* =========================================
   STICKY WIDGET (RTL Supported)
========================================= */
.sticky-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

html[dir="rtl"] .sticky-widget {
    right: auto;
    left: 0;
}

.sticky-widget a {
    color: var(--white);
    padding: 15px;
    font-size: 24px;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    transition: all 0.3s ease;
}

html[dir="rtl"] .sticky-widget a {
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.sticky-widget a.whatsapp {
    background-color: #25D366;
}

.sticky-widget a.phone {
    background-color: var(--primary);
}

.sticky-widget a:hover {
    width: 75px;
    padding-inline-start: 20px;
}


/* Responsive & Mobile Drawer */
@media (max-width: 900px) {
    .srv-categories-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    /* Sliding Drawer Styles */
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background-color: var(--white); flex-direction: column; align-items: flex-start;
        padding: 20px 30px; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease; z-index: 2000; gap: 20px;
    }
    .nav-links.active { right: 0; }
    .close-menu { display: block; width: 100%; }
    
    /* RTL Arabic Drawer Support */
    html[dir="rtl"] .nav-links { right: auto; left: -100%; box-shadow: 5px 0 15px rgba(0,0,0,0.1); transition: left 0.3s ease; }
    html[dir="rtl"] .nav-links.active { left: 0; }
    html[dir="rtl"] .close-menu { text-align: left; }

    /* Layout Adjustments */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 80px 5%; }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .top-bar { flex-direction: column; text-align: center; gap: 10px; }
    .footer-col { text-align: center; }
    
    /* Home Alt blocks */
    .alt-block, .alt-block:nth-child(even) { flex-direction: column; text-align: center; gap: 20px; padding: 30px 20px; }
    
    /* Service Adjustments */
    .srv-intro-inner { flex-direction: column; text-align: center; padding: 24px 20px; }
    .srv-categories-grid, .countries-regions { grid-template-columns: 1fr; }
    .industries-grid, .partner-stats { grid-template-columns: repeat(2, 1fr); }
    .partner-content { grid-template-columns: 1fr; }
}