/* ===== الإعدادات العامة ===== */
* {
    box-sizing: border-box;
    transition: all 0.4s ease;
}

:root {
    --main: #1f2937;
    --accent: #2563eb;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
    --cta: #f59e0b;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.8;
}

/* ===== الهيدر ===== */
header {
    background: linear-gradient(135deg, var(--main), #020617);
    color: white;
    padding: 40px 15px;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 30px;
}

header p {
    margin-top: 8px;
    font-size: 16px;
    opacity: 0.9;
}

header .cta-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 26px;
    background-color: var(--cta);
    color: white;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
}

header .cta-btn:hover {
    background-color: #d97706;
}

/* ===== القائمة ===== */
nav {
    background-color: #020617;
    text-align: center;
    padding: 12px 0;
}

nav a {
    color: #e5e7eb;
    margin: 0 14px;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 5px;
}

nav a:hover,
nav a.active {
    background-color: var(--accent);
    color: white;
}

/* ===== المحتوى ===== */
.container {
    max-width: 1100px;
    margin: 25px auto;
    padding: 25px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--main);
    border-right: 5px solid var(--accent);
    padding-right: 12px;
}

/* ===== المنتجات ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    transition: 0.4s;
    position: relative;
}

.product:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(37,99,235,0.18);
}

.product .product-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background-color: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
}

.product .product-btn:hover {
    background-color: #1e40af;
}

/* ===== التواصل الاجتماعي ===== */
.social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 15px;
    justify-content: center;
}

.social a {
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
}

.social a:hover {
    background-color: #1e40af;
}

/* ===== الفروع ===== */
.branch {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
    transition: 0.4s;
}

.branch:hover {
    box-shadow: 0 6px 18px rgba(37,99,235,0.15);
}

.branch h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--main);
}

.map {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

/* ===== الفوتر ===== */
footer {
    background-color: #020617;
    color: #cbd5f5;
    text-align: center;
    padding: 22px;
    font-size: 14px;
}

footer a {
    color: #2563eb;
    text-decoration: none;
    margin: 0 6px;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== تحسين للجوال ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 22px;
    }

    header p {
        font-size: 14px;
    }

    nav a {
        margin: 6px;
        font-size: 14px;
    }

    .container {
        margin: 15px;
        padding: 15px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .map {
        height: 220px;
    }

    .social {
        justify-content: center;
    }
}

/* ===== تحسين للشاشات الكبيرة ===== */
@media (min-width: 1024px) {
    header h1 {
        font-size: 34px;
    }

    .products {
        grid-template-columns: repeat(3, 1fr);
    }

    .map {
        height: 350px;
    }
}
