/* =============================================
   مشارق النور - ملف الأنماط الرئيسي
   تصميم احترافي RTL لشركة تجارة ومقاولات
   ============================================= */

/* --- المتغيرات --- */
:root {
    --navy: #0f2035;
    --navy2: #162d45;
    --navy-light: #1a3a55;
    --ink: #14232d;
    --muted: #6b7c85;
    --muted-light: #8e9da5;
    --gold: #d4992e;
    --gold-light: #e8b44d;
    --gold-dark: #b8831f;
    --orange: #e07a2f;
    --bg: #f4f6f8;
    --bg-alt: #eef1f4;
    --white: #ffffff;
    --line: #dfe6ea;
    --line-light: #eaeff2;
    --success: #1d8a4e;
    --success-bg: #e8f7ef;
    --danger: #c0392b;
    --danger-bg: #fdecea;
    --shadow-sm: 0 2px 8px rgba(16,38,56,0.06);
    --shadow-md: 0 8px 30px rgba(16,38,56,0.08);
    --shadow-lg: 0 16px 50px rgba(16,38,56,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: 0.3s ease;
    --font: 'Cairo', 'Tahoma', 'Arial', sans-serif;
}

/* --- إعادة تعيين --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.8;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, select, textarea, button {
    font-family: var(--font);
    font-size: inherit;
    border: none;
    outline: none;
}

/* --- الحاوية --- */
.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* --- شريط علوي --- */
.topbar {
    background: #0a1825;
    color: #c5d3dc;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: #c5d3dc; }
.topbar a:hover { color: var(--gold); }
.topbar-links { display: flex; gap: 18px; align-items: center; }

/* --- الرأس --- */
.header {
    background: var(--navy);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* --- الشعار --- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 17px;
    white-space: nowrap;
}
.brand-icon {
    width: 46px;
    height: 46px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 22px;
    font-weight: 800;
    background: rgba(212,153,46,0.08);
    flex-shrink: 0;
}
.brand-text small {
    display: block;
    color: #97adb8;
    font-weight: 400;
    font-size: 11px;
    margin-top: 1px;
}

/* --- التنقل --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    color: #d5e2e8;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    background: rgba(212,153,46,0.08);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* --- الأزرار --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    white-space: nowrap;
}
.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,153,46,0.3);
}
.btn-navy {
    background: var(--navy);
    color: var(--white);
}
.btn-navy:hover {
    background: var(--navy2);
    transform: translateY(-1px);
}
.btn-outline {
    border: 1.5px solid var(--line);
    color: var(--ink);
    background: var(--white);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn-outline-white {
    border: 1.5px solid rgba(255,255,255,0.35);
    color: var(--white);
    background: transparent;
}
.btn-outline-white:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,153,46,0.08);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}
.btn-block {
    width: 100%;
}

/* --- قائمة الموبايل --- */
.mobile-toggle {
    display: none;
    background: none;
    color: var(--white);
    font-size: 26px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--navy);
    z-index: 200;
    padding: 24px;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.35s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-overlay.show {
    opacity: 1;
}
.mobile-menu .close-btn {
    background: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 16px;
    left: 16px;
}
.mobile-menu .mobile-brand {
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 30px;
    display: block;
}
.mobile-menu nav a {
    display: block;
    color: #d5e2e8;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
}
.mobile-menu nav a:hover,
.mobile-menu nav a.active {
    color: var(--gold);
    background: rgba(212,153,46,0.1);
}
.mobile-menu .mobile-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- البطل (Hero) --- */
.hero {
    color: var(--white);
    background: linear-gradient(135deg, rgba(15,32,53,0.92), rgba(22,45,69,0.88)),
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
}
.hero-content {
    max-width: 720px;
    padding: 100px 0 120px;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,153,46,0.15);
    border: 1px solid rgba(212,153,46,0.3);
    color: var(--gold-light);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-badge::before {
    content: '★';
    font-size: 11px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.25;
    margin: 0 0 20px;
    font-weight: 800;
}
.hero h1 span { color: var(--gold); }
.hero p {
    font-size: 18px;
    color: #c5d6e0;
    max-width: 620px;
    line-height: 1.9;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat strong {
    display: block;
    font-size: 30px;
    color: var(--gold);
    font-weight: 800;
}
.hero-stat span {
    font-size: 13px;
    color: #97adb8;
}

/* --- الأقسام --- */
.section {
    padding: 90px 0;
}
.section-alt {
    background: var(--white);
}
.section-dark {
    background: var(--navy);
    color: var(--white);
}
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}
.section-header.right { text-align: right; max-width: none; margin: 0 0 50px; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.section-header h2 {
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.3;
    margin: 0 0 14px;
    font-weight: 800;
}
.section-header p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}
.section-dark .section-header p { color: #97adb8; }

/* --- الشبكة --- */
.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- البطاقات --- */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-light);
    transition: all var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212,153,46,0.2);
}
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 26px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(212,153,46,0.1), rgba(212,153,46,0.05));
    color: var(--gold);
}
.card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 700;
}
.card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.8;
}

/* --- بطاقة المنتج --- */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-light);
    transition: all var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.product-card .product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-card .product-body {
    padding: 24px;
}
.product-card .product-tag {
    display: inline-block;
    background: rgba(212,153,46,0.1);
    color: var(--gold-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.product-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 700;
}
.product-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* --- فلتر المنتجات --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}
.filter-btn {
    background: var(--white);
    border: 1.5px solid var(--line);
    color: var(--muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

/* --- شريط CTA --- */
.cta-strip {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}
.cta-strip h3 {
    font-size: clamp(22px, 3vw, 30px);
    margin: 0 0 8px;
}
.cta-strip p {
    color: #97adb8;
    margin-bottom: 24px;
}

/* --- صفحة من نحن --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-visual {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    border-radius: var(--radius-lg);
    padding: 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-visual::before {
    content: 'م';
    position: absolute;
    font-size: 200px;
    font-weight: 800;
    color: rgba(212,153,46,0.06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.about-visual .about-info {
    position: relative;
    z-index: 1;
    text-align: center;
}
.about-visual .about-info h3 {
    font-size: 26px;
    margin-bottom: 8px;
}
.about-visual .about-info p {
    color: #97adb8;
    font-size: 14px;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}
.about-feature .icon {
    color: var(--gold);
    font-size: 18px;
}

/* --- صفحة الخدمات --- */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-light);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--gold);
    transition: height var(--transition);
}
.service-card:hover::before {
    height: 100%;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.service-card .service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 30px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
}
.service-card h3 {
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: 700;
}
.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}
.service-card ul {
    margin-top: 16px;
}
.service-card ul li {
    padding: 6px 0;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-card ul li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 700;
    font-size: 13px;
}

/* --- صفحة المشاريع --- */
.project-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-light);
}
.project-card .project-img {
    height: 240px;
    background: var(--bg-alt);
    display: grid;
    place-items: center;
    color: var(--muted-light);
    font-size: 48px;
    position: relative;
}
.project-card .project-img .coming-soon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(212,153,46,0.9);
    color: var(--navy);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.project-card .project-body {
    padding: 24px;
}
.project-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
}
.project-card p {
    color: var(--muted);
    font-size: 14px;
}

/* --- النموذج --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 6px;
    color: var(--ink);
}
.form-group label .required { color: var(--danger); }
.form-control {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14.5px;
    transition: border-color var(--transition);
    background: var(--white);
    color: var(--ink);
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,153,46,0.1);
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7c85' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 36px;
}
.form-note {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 6px;
}
.form-privacy {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.7;
}
.form-privacy a { color: var(--gold-dark); text-decoration: underline; }

.form-panel {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
}
.form-panel h3 {
    font-size: 24px;
    margin: 0 0 12px;
}
.form-panel p {
    color: #97adb8;
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 24px;
}
.form-panel .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #c5d3dc;
}
.form-panel .info-item .icon {
    color: var(--gold);
    font-size: 18px;
}

/* --- اتصل بنا --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-light);
    transition: all var(--transition);
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(212,153,46,0.12), rgba(212,153,46,0.05));
    color: var(--gold);
}
.contact-card h3 {
    font-size: 17px;
    margin: 0 0 10px;
}
.contact-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.map-placeholder {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    height: 300px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 16px;
    border: 2px dashed var(--line);
    margin-top: 40px;
}

/* --- الصفحة الداخلية --- */
.page-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 0 0 12px;
}
.page-hero p {
    color: #97adb8;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: #7a919e;
}
.breadcrumb a { color: #97adb8; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* --- التذييل --- */
.footer {
    background: #0a1825;
    color: #97adb8;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer h3 {
    color: var(--white);
    font-size: 16px;
    margin: 0 0 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}
.footer p {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 4px;
}
.footer a {
    color: #97adb8;
    font-size: 13px;
    display: block;
    padding: 4px 0;
    transition: color var(--transition);
}
.footer a:hover { color: var(--gold); }
.footer-about p a {
    display: inline;
}
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    color: #97adb8;
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #7a919e;
}
.footer-bottom a {
    display: inline;
    padding: 0;
    font-size: 13px;
}

/* --- صفحة القانوني --- */
.legal-page {
    max-width: 850px;
    margin: 0 auto;
}
.legal-page h1 {
    font-size: 28px;
    margin-bottom: 24px;
}
.legal-page h2 {
    font-size: 20px;
    margin: 30px 0 12px;
    color: var(--navy);
}
.legal-page p {
    margin-bottom: 14px;
    line-height: 2;
}
.legal-page a { color: var(--gold-dark); }

/* --- صفحة النجاح --- */
.success-page {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px 20px;
}
.success-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    max-width: 550px;
}
.success-box .check {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: grid;
    place-items: center;
    font-size: 36px;
    margin: 0 auto 20px;
}
.success-box h1 {
    font-size: 26px;
    margin-bottom: 12px;
}
.success-box p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* --- الأيقونات --- */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 20px;
}

/* --- الفاصل --- */
.divider {
    height: 1px;
    background: var(--line);
    margin: 40px 0;
}

/* --- شاشة التحميل --- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--navy);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(212,153,46,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- التأثيرات --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- التجاوب --- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { min-height: 280px; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .nav-links, .nav-actions .btn { display: none; }
    .mobile-toggle { display: block; }
    .mobile-menu { display: block; }
    .hero { min-height: 500px; }
    .hero-content { padding: 60px 0 80px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom > span:first-child,
    .footer-bottom > span:last-child { text-align: center; margin-left: 0; }
    .about-features { grid-template-columns: 1fr; }
    .page-hero { padding: 60px 0 40px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .card { padding: 24px; }
    .form-panel { padding: 28px; }
}

/* --- طباعة --- */
@media print {
    .header, .topbar, .footer, .mobile-menu, .mobile-overlay { display: none; }
    .section { padding: 20px 0; }
    body { background: white; }
}
