/* ============================================
   وطن ستوديو - layout.css
   ============================================ */

/* ============ الهيدر ============ */
.header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

/* ============ الشعار ============ */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    background: var(--gradient-primary);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    box-shadow: var(--shadow-primary);
}

.logo-text h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--dark);
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--gray-light);
    font-weight: 600;
}

/* ============ القائمة ============ */
.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li > a {
    display: block;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    background: #e0f0fa;
    color: var(--primary);
}

/* ============ إجراءات الهيدر ============ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ============ الفوتر ============ */
.footer {
    background: var(--dark);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 30px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-about .logo-text h2 {
    color: var(--white);
}

.footer-about .logo-text span {
    color: var(--gray-lighter);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-contact ul li i {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* ============ زر العودة ============ */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============ صفحة الهيرو ============ */
.page-hero {
    background: var(--gradient-dark);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-hero p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.page-hero .gradient-text {
    background: linear-gradient(135deg, #4a9ed4, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #4a9ed4;
}

/* ============ Hero الرئيسية ============ */
.hero {
    background: var(--gradient-hero);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero .gradient-text {
    background: linear-gradient(135deg, #4a9ed4, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item h3 {
    color: var(--white);
    font-size: 2rem;
    margin: 0;
}

.stat-item span {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ============ قسم CTA ============ */
.cta-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

/* ============ الشبكات ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.team-grid-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.team-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.news-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.seo-services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.seo-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ============ التجاوب ============ */
@media (max-width: 1200px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        z-index: 100;
    }
    
    .main-nav.open {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .services-grid,
    .why-us-grid,
    .values-grid,
    .team-full-grid,
    .seo-packages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid,
    .news-grid-full,
    .seo-services {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .why-us-grid,
    .values-grid,
    .team-grid-preview,
    .team-full-grid,
    .seo-packages {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
}