/* Global Styles */
@font-face {
    font-family: 'Alexandria';
    src: url('Alexandria.ttf') format('truetype');
    font-weight: 100 900; /* Support full weight range */
    font-display: swap;
}

:root {
    --primary-color: #565fa3;
    --secondary-color: #ffd700;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Alexandria', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Screen Reader Text - Visually Hidden */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* Top Header */
.top-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 13px;
}

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

.top-contact a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.top-contact a:hover {
    color: var(--primary-color);
}

.top-social {
    display: flex;
    gap: 10px;
}

.top-social a {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eee;
    color: #666;
    transition: all 0.3s;
    font-size: 12px;
}

.top-social a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Main Header */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo Area */
.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link img {
    height: 50px;
    width: auto;
}

.site-title-wrap {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.site-description {
    font-size: 0.8rem;
    margin: 0;
    color: #666;
}

/* Navigation */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end; /* Align menu to right (or left in RTL visual) */
}

.menu-items {
    display: flex;
    gap: 25px;
    align-items: center;
}

.menu-items li a {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
}

.menu-items li a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.close-menu {
    display: none;
}

/* CTA Button in Header (if needed via menu class) */
.menu-items li.header-cta a {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s;
}

.menu-items li.header-cta a:hover {
    background: #444c82;
    transform: translateY(-2px);
}

/* Responsive Header */
@media (max-width: 991px) {
    /* Reorder Elements for Mobile */
    .header-content-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .site-branding {
        order: 1; /* Logo on Right */
        margin-left: 0; /* Remove auto margin */
    }

    .menu-trigger {
        display: block;
        order: 2; /* Trigger on Left */
    }

    .nav-bar {
        order: 3;
        width: 100%;
    }

    /* Hide Top Header Contact Info & CTA Button on Mobile */
    .top-contact,
    .header-actions, /* This targets the Call Us button outside menu */
    .menu-items li.header-cta {
        display: none !important;
    }
    
    /* Ensure Top Header is visible for Social but hide specific contact parts if needed, or hide all as requested */
    /* User circled email in top header and call us button. */
    /* Let's hide top-header fully or just the contact part? User screenshot shows social icons visible. */
    /* User input: "Hide email and Call Us button" */
    
    .top-contact {
        display: none !important;
    }
    
    .top-header {
        display: block; /* Show top header for social icons */
    }
    
    .top-social {
        width: 100%;
        justify-content: center; /* Center social icons if they are alone */
    }

    /* Fix Call Us button visibility */
    .header-actions {
        display: none !important;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%; /* Off-canvas Right */
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding: 60px 20px;
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .main-navigation.active {
        right: 0;
    }

    .menu-items {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .menu-items li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .menu-items li a {
        display: block;
        padding: 15px 0;
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        cursor: pointer;
    }
}