/*
Theme Name: Marafi Al-Nama Theme
Author: Marafi Tech
Version: 3.0 (Alinma Inspired)
*/

:root {
    --navy: #0E1F45; /* أزرق عميق (مستوحى من الإنماء) */
    --gold: #C9A25E; /* ذهبي مرافئ */
    --text: #444444;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --font-ar: 'Noto Kufi Arabic', sans-serif;
    --border-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-ar);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--navy); transition: 0.3s; }
a:hover { color: var(--gold); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= الهيدر (Header) ================= */
.site-header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* ظل خفيف مثل الإنماء */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0; /* مساحة أكبر */
}

.site-logo img { max-height: 70px; width: auto; }

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--navy);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px;
    bottom: -8px; right: 0;
    background: var(--gold);
    transition: 0.3s;
    border-radius: 2px;
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-weight: 700;
    color: var(--navy);
    border: 2px solid var(--navy);
    padding: 6px 14px;
    border-radius: 20px; /* حواف دائرية مثل البنوك */
    font-size: 14px;
    transition: 0.3s;
}
.lang-switch:hover { background: var(--navy); color: var(--white); }

.header-btn {
    background: var(--gold);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(201, 162, 94, 0.3);
}

.header-btn:hover { background: #b08d4f; transform: translateY(-2px); }

/* ================= الهيرو (Hero) ================= */
.hero-section {
    background: linear-gradient(rgba(14,31,69,0.9), rgba(14,31,69,0.9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    color: var(--white);
    padding: 160px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-section p {
    font-size: 22px;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 16px 45px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(201, 162, 94, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 45px;
    border: 2px solid var(--white);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary:hover { background: #fff; color: var(--navy); transform: translateY(-4px); }
.btn-secondary:hover { background: var(--white); color: var(--navy); transform: translateY(-4px); }

/* ================= الأقسام العامة ================= */
.section-padding { padding: 100px 0; }
.section-title { font-size: 40px; color: var(--navy); margin-bottom: 20px; text-align: center; font-weight: 800; }
.section-subtitle { text-align: center; color: #666; font-size: 18px; margin-bottom: 60px; }

/* ================= البطاقات (Services) ================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.service-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 4px;
    background: var(--gold);
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }

.service-card h3 { color: var(--navy); font-size: 24px; margin-bottom: 15px; font-weight: 700; }

/* ================= الفوتر ================= */
.site-footer { background: var(--navy); color: var(--white); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-col h4 { color: var(--gold); margin-bottom: 25px; font-size: 20px; font-weight: 700; }
.footer-col a, .footer-col p { color: #b0b8c8; display: block; margin-bottom: 12px; font-size: 15px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); color: #8892a5; font-size: 14px; }

/* ================= الجوال ================= */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero-section h1 { font-size: 36px; }
    .hero-section p { font-size: 18px; }
    .hero-buttons { flex-direction: column; }
}