/*
Theme Name: Aqari Real Estate
*/

/* تأكد من تحميل خط Dashicons */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
    --primary-color: #C17A4A;
    --primary-light: #d89567;
    --primary-dark: #a05f35;
    --primary-darker: #8b4e28;
    --secondary-color: #1E3A5F;
    --secondary-light: #2d5080;
    --secondary-dark: #152a45;
    --secondary-darker: #0d1a2b;
    --gradient-primary: linear-gradient(135deg, #C17A4A 0%, #a05f35 100%);
    --gradient-secondary: linear-gradient(135deg, #1E3A5F 0%, #152a45 100%);
    --gradient-overlay: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --text-dark: #1a1a1a;
    --bg-color: #f5f7fa;
    --bg-light: #fafbfc;
    --bg-dark: #e8edf3;
    --white: #fff;
    --border-color: #eee;
    --success-color: #25D366;
    --container-width: 1200px;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(193, 122, 74, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: var(--secondary-color);
}

/* Navigation */
.main-navigation {
    flex: 1;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 0;
    display: block;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-darker);
}

.btn i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-menu a {
        padding: 15px 0;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .header-cta .btn span {
        display: none;
    }

    .header-cta .btn {
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        max-height: 40px;
    }

    .header-inner {
        gap: 15px;
    }
}