@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    --primary: #c8102e;
    --primary-dark: #9b0d23;
    --primary-light: #ff1a3e;
    --secondary: #1a1a2e;
    --accent: #f0a500;
    --bg: #f7f8fc;
    --white: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(200,16,46,0.10);
    --radius: 14px;
    --font-main: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
}

/* ========== HEADER ========== */
header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-top {
    background: var(--primary);
    padding: 8px 0;
    text-align: center;
    color: white;
    font-size: 14px;
    font-family: var(--font-main);
}

.header-top a { color: var(--accent); font-weight: 700; text-decoration: none; }

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo-text { font-family: var(--font-main); }
.logo-text h1 { font-size: 18px; color: var(--primary); font-weight: 900; line-height: 1.2; }
.logo-text span { font-size: 12px; color: var(--text-light); }

nav { display: flex; gap: 30px; align-items: center; }
nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-main);
    transition: color 0.3s;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

.btn-call {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s !important;
}
.btn-call:hover { background: var(--primary-dark); transform: scale(1.05); }
.btn-call::after { display: none !important; }

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200,16,46,0.15) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: rgba(200,16,46,0.3);
    border: 1px solid var(--primary);
    color: #ff6b8a;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-family: var(--font-main);
    margin-bottom: 20px;
}
.hero h2 {
    font-family: var(--font-main);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero h2 span { color: var(--primary-light); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(200,16,46,0.4);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-number { font-family: var(--font-main); font-size: 36px; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ========== SECTIONS ========== */
.section { padding: 70px 40px; }
.section-alt { background: white; }

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

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h3 {
    font-family: var(--font-main);
    font-size: 34px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
}
.section-header h3 span { color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 16px; }
.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 16px auto;
    border-radius: 2px;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(200,16,46,0.15);
}
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}
.service-card h4 { font-family: var(--font-main); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 14px; }

/* ========== ORDER FORM ========== */
.order-section {
    background: linear-gradient(135deg, var(--secondary), #0f3460);
    color: white;
}
.order-section .section-header h3 { color: white; }
.order-section .section-header p { color: rgba(255,255,255,0.7); }

.order-form {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text);
    font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    direction: rtl;
    transition: border 0.3s;
    background: var(--bg);
    color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}
.form-group textarea { min-height: 100px; resize: vertical; }

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ========== ARTICLES ========== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.article-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(200,16,46,0.15); }

.article-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}
.article-body { padding: 24px; }
.article-cat {
    display: inline-block;
    background: rgba(200,16,46,0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}
.article-body h4 { font-family: var(--font-main); font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.article-body p { color: var(--text-light); font-size: 14px; }
.article-meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; color: var(--text-light); }

/* ========== WHY US ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--bg);
    transition: all 0.3s;
}
.feature-card:hover { background: white; box-shadow: var(--shadow); }
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-card h4 { font-family: var(--font-main); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: 14px; }

/* ========== FOOTER ========== */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 40px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 16px; font-size: 14px; line-height: 1.8; }
.footer-col h5 { font-family: var(--font-main); font-weight: 700; margin-bottom: 20px; color: var(--accent); }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 10px; font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: white; }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
    text-decoration: none;
    z-index: 999;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== SUCCESS MESSAGE ========== */
.alert {
    padding: 16px 24px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-main);
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-main { padding: 15px 20px; }
    nav { display: none; }
    .hero { padding: 50px 20px; }
    .hero h2 { font-size: 30px; }
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 26px; }
    .section { padding: 50px 20px; }
    .order-form { padding: 30px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
