/* ------------------------------------------------------------- 
   CSS Variables & Design Tokens
------------------------------------------------------------- */
:root {
    /* Colors */
    --clr-topbar-bg: #801309;
    --clr-topbar-text: #ffffff;

    --clr-header-bg: #f8f9fa;
    --clr-header-text: #333333;
    --clr-header-hover: #801309;

    --clr-footer-bg: #A04018;
    /* Brown from screenshot */
    --clr-footer-darker: #7E3010;

    --clr-primary: #801309;
    --clr-secondary: #C05020;
    --clr-text-main: #333333;
    --clr-text-muted: #666666;

    --clr-bg-body: #f4f5f7;
    --clr-bg-card: #ffffff;

    --clr-border: #e0e0e0;

    /* Typography */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
}

/* ------------------------------------------------------------- 
   Resets & Base Styles
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-body);
    line-height: 1.6;
    font-size: 16px;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--clr-text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------------------------- 
   Typography Helpers
------------------------------------------------------------- */
.text-sm {
    font-size: 0.875rem;
}

/* ------------------------------------------------------------- 
   Buttons
------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-outline-white {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #C1301F;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    width: 100%;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #9C2012;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ------------------------------------------------------------- 
   Layout Components
------------------------------------------------------------- */
/* Top Bar */
.top-bar {
    background-color: var(--clr-topbar-bg);
    color: var(--clr-topbar-text);
    padding: 10px 0;
    font-size: 0.95rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-text {
    flex: 1;
    margin: 0;
    font-weight: 500;
}

/* Main Header */
.main-header {
    background-color: var(--clr-header-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-main);
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: var(--clr-header-hover);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--clr-text-main);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-header-hover);
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-header-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid var(--clr-border);
}

.dropdown-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--clr-text-main);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--clr-header-hover);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ------------------------------------------------------------- 
   Hero Section
------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 300px;
    background-image: url('hero_dubai_skyline.png');
    /* Will be set or fallback */
    background-color: #2c3e50;
    /* Fallback color */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.4));
}

.hero-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 3rem;
    text-align: center;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-weight: 800;
    letter-spacing: -1px;
}

/* ------------------------------------------------------------- 
   Main Content Layout
------------------------------------------------------------- */
.page-content {
    flex: 1;
    margin-top: -40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.main-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .main-grid-layout {
        /* Text on right (1.1fr), form on left (1fr) in RTL */
        grid-template-columns: 1.1fr 1fr;
        align-items: start;
        gap: 60px;
    }
    
    .content-side {
        border-left: 1px solid var(--clr-border);
        padding-left: 60px;
    }
}

.card {
    background: var(--clr-bg-card);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.content-heading {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--clr-text-main);
}

.content-subheading {
    font-size: 1.25rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--clr-text-main);
}

.content-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--clr-text-muted);
}

/* Lists */
.steps-list {
    margin-bottom: 30px;
}

.steps-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

.steps-list li::before {
    content: "•";
    color: var(--clr-primary);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -5px;
}

.steps-ordered {
    list-style-type: none;
    counter-reset: step-counter;
}

.steps-ordered li {
    position: relative;
    padding-right: 40px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.steps-ordered li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    right: 0;
    top: 2px;
    background-color: #fceceb;
    color: var(--clr-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* ------------------------------------------------------------- 
   Forms Configuration (For Contact.html)
------------------------------------------------------------- */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--clr-text-main);
}

.form-label .required {
    color: var(--clr-primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background-color: #fdfdfd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(192, 80, 32, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-layout {
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

/* ------------------------------------------------------------- 
   Footer
------------------------------------------------------------- */
.main-footer {
    background-color: var(--clr-footer-bg);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 20px;
    margin-top: auto;
    position: relative;
}

.footer-divider {
    height: 2px;
    width: 80%;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.2);
}

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

.copyright {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
    font-size: 0.9rem;
    line-height: 2;
}

.footer-links a {
    color: #ffdacc;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.accessibility-icon {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.accessibility-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* ------------------------------------------------------------- 
   Responsive
------------------------------------------------------------- */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        /* Mobile menu needed */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .logo a {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .card {
        padding: 30px 20px;
    }
}