/**
 * Makhzonak Marketing Website Styles
 * نظام مخزونك لإدارة مستلزمات الصيدليات
 */

/* ====== CSS Variables ====== */
:root {
    /* Primary Brand - Teal */
    --mk-primary: #0f766e;
    --mk-primary-light: #14b8a6;
    --mk-primary-dark: #0d655c;
    --mk-primary-bg: #ccfbf1;
    
    /* Neutrals */
    --mk-white: #ffffff;
    --mk-gray-50: #f9fafb;
    --mk-gray-100: #f3f4f6;
    --mk-gray-200: #e5e7eb;
    --mk-gray-300: #d1d5db;
    --mk-gray-400: #9ca3af;
    --mk-gray-500: #6b7280;
    --mk-gray-600: #4b5563;
    --mk-gray-700: #374151;
    --mk-gray-800: #1f2937;
    --mk-gray-900: #111827;
    
    /* Status Colors */
    --mk-success: #10b981;
    --mk-warning: #f59e0b;
    --mk-danger: #ef4444;
    --mk-info: #3b82f6;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Typography */
    --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}

/* ====== Reset ====== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--mk-gray-700);
    background: var(--mk-white);
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ====== Utilities ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.text-primary {
    color: var(--mk-primary);
}

.text-light {
    color: var(--mk-gray-500);
}

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--mk-gray-800);
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    background: var(--mk-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--mk-primary);
    color: var(--mk-primary);
}

.btn-outline:hover {
    background: var(--mk-primary);
    color: var(--mk-white);
}

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

.btn-white:hover {
    background: var(--mk-gray-100);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ====== Forms ====== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--mk-gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 1rem;
    border: 2px solid var(--mk-gray-200);
    border-radius: var(--radius);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--mk-primary);
}

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

/* ====== Header ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mk-gray-100);
    transition: all var(--transition-base);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mk-primary);
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--mk-gray-600);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--mk-primary);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* ====== Section ====== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--mk-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: var(--mk-primary-bg);
    color: var(--mk-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ====== Hero ====== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--mk-primary-bg) 0%, var(--mk-white) 50%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--mk-primary);
}

.hero-content > p {
    font-size: 1.25rem;
    color: var(--mk-gray-600);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mk-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--mk-gray-500);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-float-card {
    position: absolute;
    background: var(--mk-white);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-float-card.top {
    top: 20px;
    right: -40px;
}

.hero-float-card.bottom {
    bottom: 40px;
    left: -40px;
}

.float-icon {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-float-card {
        display: none;
    }
}

/* ====== Features Grid ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--mk-white);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--mk-gray-500);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== Stats Section ====== */
.stats-section {
    background: var(--mk-primary);
    color: var(--mk-white);
}

.stats-section .section-header h2,
.stats-section .section-header p {
    color: var(--mk-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stats-card {
    text-align: center;
    padding: 32px;
}

.stats-card .number {
    font-size: 3rem;
    font-weight: 800;
}

.stats-card .label {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====== Testimonials ====== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--mk-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--mk-gray-500);
}

.testimonial-stars {
    color: #fbbf24;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== CTA Section ====== */
.cta-section {
    background: linear-gradient(135deg, var(--mk-primary) 0%, var(--mk-primary-dark) 100%);
    color: var(--mk-white);
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: var(--mk-white);
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

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

/* ====== Pricing ====== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: var(--mk-white);
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--mk-primary);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mk-primary);
    color: var(--mk-white);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    margin-bottom: 8px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mk-primary);
    margin: 24px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--mk-gray-500);
}

.pricing-features {
    text-align: right;
    margin: 32px 0;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--mk-success);
    font-weight: 700;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
}

/* ====== Footer ====== */
.footer {
    background: var(--mk-gray-900);
    color: var(--mk-gray-300);
    padding: 80px 0 40px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    margin-bottom: 24px;
    line-height: 1.8;
}

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

.footer-social a {
    font-size: 1.25rem;
}

.footer-column h4 {
    color: var(--mk-white);
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--mk-primary-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--mk-gray-700);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}
