/* =============================== */
/* COLORS */
/* =============================== */
:root {
    --navy: #1E2A4C;      /* Main navy blue */
    --gold: #D4AF79;      /* Accent gold */
}

/* =============================== */
/* GENERAL STYLING */
/* =============================== */
html {
    scroll-behavior: smooth; /* Optional: for smooth scrolling */
    scroll-padding-top: 60px; /* Adjust this value based on your navbar height */
}

body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Change Bootstrap colors to match our brand */
.text-primary,
.bi.text-primary {
    color: var(--navy) !important;
}

.fs-1.text-primary,
.display-4.text-primary {
    color: var(--gold) !important;
}
/* =============================== */
/* TYPOGRAPHY */
/* =============================== */

/* Arabic text uses Droid Arabic Kufi font */
.lang-ar {
    font-family: 'Droid Arabic Kufi', sans-serif !important;
    font-weight: 500;
    line-height: 1.6;
}

/* Make Arabic navigation bigger */
.navbar .nav-link .lang-ar {
    font-size: 1.25em !important;
    font-weight: normal !important; /* Removed bold style */
}

/* Arabic long text (descriptions, paragraphs) uses Droid Arabic Kufi */
.lang-ar.long-text {
    font-family: 'Sakkal Majalla', 'Cairo', sans-serif !important;
    font-size: 1.2em;
    line-height: 1.8;
    font-weight: 400;
}

/* =============================== */
/* NAVIGATION */
/* =============================== */
.navbar .nav-link {
    font-weight: normal; /* Removed bold style */
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--gold) !important;
}

/* Language switcher toggle */
#lang-switcher-toggle {
    border: none;
    background-color: transparent;
    color: #6c757d; /* Default text color */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem; /* Space between icon and text */
}

#lang-switcher-toggle:hover {
    color: var(--gold); /* Gold on hover */
    text-decoration: underline;
}

#lang-switcher-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* =============================== */
/* BUTTONS */
/* =============================== */
.btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #c5a06a;
    border-color: #c5a06a;
    color: white;
    transform: translateY(-2px);
}

/* =============================== */
/* HERO SECTION */
/* =============================== */
.hero-section {
    background: var(--navy); /* Fallback color */
    background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay; /* Blend with the background color */
    color: white; /* Change text color to white for better contrast */
    min-height: 50vh;
    border-bottom: 1px solid #e9ecef;
    position: relative; /* Needed for pseudo-element positioning */
    z-index: 1; /* Ensure content is above overlay */
}

.hero-section h1 {
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
}

/* =============================== */
/* CARDS & COMPONENTS */
/* =============================== */

/* Feature cards */
.client-profile-card {
    padding: 2rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.client-profile-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Testimonial cards */
.testimonial-card {
    border-left: 4px solid var(--gold);
    height: 100%;
}

/* Blog cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .btn-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.blog-card .btn-link:hover {
    color: var(--navy);
}

/* =============================== */
/* PRICING SECTION */
/* =============================== */
#pricing .card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

#pricing .card:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

#pricing .popular-plan {
    border: 2px solid var(--gold);
    transform: scale(1.05);
}

#pricing .card-price {
    font-size: 3rem;
    color: var(--navy);
    margin: 0;
}

#pricing .card-price .period {
    font-size: 0.8rem;
    color: #6c757d;
}

/* =============================== */
/* CLIENT AREA TABS */
/* =============================== */
#clientAreaTabs .nav-link {
    font-weight: 600;
    color: #6c757d !important;
    border-color: transparent;
    transition: all 0.3s ease;
}

#clientAreaTabs .nav-link:hover {
    color: var(--gold) !important;
    border-color: var(--gold);
}

#clientAreaTabs .nav-link.active {
    color: var(--gold) !important;
    border-color: var(--gold) var(--gold) white;
    border-bottom-width: 3px;
}

/* =============================== */
/* CONTACT & MAP */
/* =============================== */
.map-placeholder {
    height: 100%;
    min-height: 300px;
    background-color: var(--navy);
    border-radius: 0.375rem;
    color: white;
    font-size: 1.5rem;
}

/* =============================== */
/* FOOTER */
/* =============================== */
.footer-dark {
    background-color: var(--navy);
    color: white;
}

.footer-dark h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-dark a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dark a:hover {
    color: var(--gold);
}

.footer-dark .social-icon {
    font-size: 1.5rem;
    color: white;
    transition: color 0.3s ease;
}

.footer-dark .social-icon:hover {
    color: var(--gold);
}

.footer-dark .social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-dark hr {
    border-color: rgba(255,255,255,0.2);
}

/* Force all footer text to be white */
.footer-dark,
.footer-dark *,
.footer-dark p,
.footer-dark .small,
.footer-dark .text-muted {
    color: rgba(255,255,255,0.8) !important;
}


@media (min-width: 992px) {
    .navbar .nav-link .lang-ar {
        font-size: 1.3em !important;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar .nav-link .lang-ar {
        font-size: 1.25em !important;
    }
}
@media (max-width: 767.98px) {
    .navbar .nav-link .lang-ar {
        font-size: 1.2em !important;
    }
    
    .navbar-collapse .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .hero-section {
        min-height: 40vh; /* Reduced height for mobile */
    }
}

/* =============================== */
/* RTL Adjustments */
/* =============================== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .text-start {
    text-align: right !important;
}

body.rtl .text-end {
    text-align: left !important;
}

body.rtl .ms-auto {
    margin-left: unset !important;
    margin-right: auto !important;
}

body.rtl .me-auto {
    margin-right: unset !important;
    margin-left: auto !important;
}

body.rtl .fa-ul {
    padding-left: 0; /* Bootstrap default */
    padding-right: 1.5em; /* For RTL list items */
}

body.rtl .fa-ul .fa-li {
    left: unset;
    right: -1.5em;
}

body.rtl .input-group > :not(:first-child):not(.dropdown-menu):not(.dropdown-toggle) {
    border-top-left-radius: var(--bs-border-radius) !important;
    border-bottom-left-radius: var(--bs-border-radius) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

body.rtl .input-group > :not(.input-group-text):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}

body.rtl .input-group > .form-control,
body.rtl .input-group > .form-select {
    border-right: var(--bs-border-width) solid var(--bs-border-color);
    border-left: 0;
}

body.rtl .input-group > .form-control:focus,
body.rtl .input-group > .form-select:focus {
    border-left: 0;
}

body.rtl .card.testimonial-card {
    border-left: none;
    border-right: 4px solid var(--gold);
}

/* Specific adjustments for Bootstrap components */
body.rtl .navbar-nav {
    padding-right: 0;
    padding-left: unset;
}

body.rtl .navbar-collapse {
    text-align: left; /* For collapsed menu items */
}

@media (max-width: 767.98px) {
    body.rtl .navbar-collapse .navbar-nav .nav-link {
        text-align: center; /* Keep centered for mobile */
    }
}

.hero-section h1 {
    font-size: 2.5rem; /* Smaller than default display-3 */
}

.hero-section .lead {
    font-size: 1.1rem; /* Slightly smaller than default lead */
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 42, 76, 0.7); /* Navy with 70% opacity */
    z-index: -1; /* Place behind content */
}