/* ═══════════════════════════════════════════════
   سفاري — تصميم احترافي لشيبافارما
   ═══════════════════════════════════════════════ */

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

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --primary-lighter: #ccfbf1;
    --secondary: #64748b;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
}

/* الثيم الداكن */
.theme-dark {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: #334155;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ═══ الترويسة ═══ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.theme-dark .site-header {
    background: rgba(15,23,42,0.95);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo a {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a::before {
    content: '🏥';
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.theme-dark .nav-link:hover {
    background: rgba(20,184,166,0.15);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-lighter);
    font-weight: 700;
}

.theme-dark .nav-link.active {
    background: rgba(20,184,166,0.15);
}

/* ═══ القسم البطل (Hero) ═══ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

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

.btn-hero {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-dark);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

/* ═══ البطاقات الإحصائية ═══ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
    background: var(--bg-alt);
}

.stat-card {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* ═══ المحتوى الرئيسي ═══ */
.site-main {
    min-height: calc(100vh - 400px);
    padding: 60px 0;
}

.page-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.page-content {
    font-size: 18px;
    line-height: 2;
}

.page-content h2 {
    margin: 32px 0 16px;
    font-size: 28px;
    color: var(--primary-dark);
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    margin: 16px 0 16px 32px;
}

.page-content li {
    margin-bottom: 8px;
}

/* ═══ شبكة المنتجات ═══ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--primary-lighter) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.product-price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.product-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

/* ═══ قسم المميزات ═══ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--primary-lighter);
    transform: translateY(-4px);
}

.theme-dark .feature-card:hover {
    background: rgba(20,184,166,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 16px;
}

/* ═══ نموذج التواصل ═══ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,148,136,0.3);
}

/* ═══ معلومات التواصل ═══ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* ═══ التذييل ═══ */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-right: 4px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ═══ قسم عام ═══ */
.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

/* ═══ الاستجابة ═══ */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 12px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 28px; }
}
