/* Critical CSS for Arwa Group Website */
/* Above-the-fold styles only */

/* CSS Variables */
:root {
    --primary-blue: #1a365d;
    --secondary-blue: #2a4365;
    --light-gray: #f5f7fa;
    --accent-orange: #ed8936;
    --dark-gray: #4a5568;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
    --gradient-orange: linear-gradient(135deg, #ed8936 0%, #f6ad55 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

/* Body */
body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 80px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - Critical Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.6rem;
    color: #1a365d;
    text-decoration: none;
    transition: var(--transition);
}

.logo-accent {
    color: #ed8936;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a365d, #2d476d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: #1a365d;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #ed8936;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ed8936;
}

.cta-btn {
    background: linear-gradient(135deg, #ed8936, #f6ad55);
    color: #fff;
    padding: 0.75rem 1.2rem;
    border-radius: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    box-shadow: 0 6px 18px -4px rgba(237, 137, 54, 0.4);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px -6px rgba(237, 137, 54, 0.55);
}

/* Hero Section - Critical Styles */
.hero-section {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.9)), 
                url('../images/hero-bg.jpg') 
                no-repeat center center/cover;
    color: var(--white);
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive - Critical */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

