/* ========================================
   SPURGO - FULL PAGE LAYOUT
   Header (logo left) + Hero Banner (fixed image) 
   + H1 Section + Text Section + Footer
   ======================================== */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #1a2c3e;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- TYPOGRAPHY & RTL ---------- */
body, .container, .main-title, .description-text {
    direction: rtl;
    unicode-bidi: embed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ========== HEADER SECTION ========== */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e9ecef;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    float: left;
}

/* Logo area - على اليسار (في layout RTL، اليسار هو البداية المنطقية) */
.logo-area {
    flex-shrink: 0;
}

.header-logo {
    max-width: 220px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.01);
}

/* Optional nav area (reserved) */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Responsive header */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 20px;
    }
    .header-logo {
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-width: 130px;
    }
}

/* ========== HERO BANNER - Fixed background image covering full width ========== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 380px;
    max-height: 600px;
    background-image: url('images/slider.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* تأثير الصورة الثابتة أثناء التمرير */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay خفيف لتحسين قراءة أي نص على البانر (اختياري) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero-tagline {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 60px;
    letter-spacing: 0.5px;
    font-weight: 800;
}

/* ضبط hero للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-banner {
        height: 45vh;
        min-height: 280px;
        background-attachment: scroll; /* على الموبايل أفضل scroll */
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 40vh;
        min-height: 220px;
    }
    .hero-tagline {
        font-size: 1rem;
        padding: 6px 16px;
    }
}

/* ========== H1 TITLE SECTION ========== */
.title-section {
    padding: 70px 0 30px 0;
    background: linear-gradient(to bottom, #ffffff, #f9fbfd);
}

.main-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    text-align: center;
    color: #0f2b3d;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0f2b3d 0%, #1f5e7e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c7da0, #61a5c2);
    margin: 0 auto;
    border-radius: 4px;
}

/* ========== TEXT SECTION (DESCRIPTION) ========== */
.text-section {
    padding: 20px 0 70px 0;
    background-color: #ffffff;
}

.description-text {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 500;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #2c4b66;
    line-height: 1.75;
    background-color: #f8fafc;
    padding: 32px 40px;
    border-radius: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f8;
    transition: all 0.2s ease;
}

.description-text:hover {
    border-color: #cbdde9;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* Responsive text section */
@media (max-width: 768px) {
    .text-section {
        padding: 20px 0 50px;
    }
    .description-text {
        padding: 24px 24px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .title-section {
        padding: 40px 0 20px;
    }
    .description-text {
        padding: 20px 18px;
        font-size: 0.95rem;
    }
}

/* ========== FOOTER SECTION ========== */
.main-footer {
    background-color: #ff7500;
    color: #aac8df;
    text-align: center;
    padding: 28px 24px 26px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #cbdde9;
    direction: ltr;
    font-family: monospace;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .main-footer {
        padding: 20px 16px;
    }
    .copyright {
        font-size: 0.7rem;
    }
}

/* تحسين إضافي: جعل الجسم يأخذ الارتفاع الكامل */
body {
    display: flex;
    flex-direction: column;
}

/* إزالة أي هوامش غير مرغوبة */
img {
    max-width: 100%;
}