/* ========================================
   CSS VARIABLES & ROOT CONFIGURATION
======================================== */

:root {
    /* Brand Colors */
    --primary-navy: #0e2a4b;
    --secondary-navy: #1a3668;
    --navy-dark: #102b4a;
    --navy-light: #1f3f66;
    
    /* Accent Colors */
    --brand-accent: #f4b24b;
    --accent-hover: #eca22b;
    
    /* Neutral Colors */
    --cream: #fff3ea;
    --white: #ffffff;
    --text-dark: #123559;
    --text-muted: #6b7a90;
    --text-light: #6a7a8f;
    --black: #1b1b1b;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Borders & Shadows */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 18px;
    --border-radius-xxl: 22px;
    
    --shadow-sm: 0 4px 10px rgba(14, 42, 75, 0.07);
    --shadow-md: 0 6px 16px rgba(14, 42, 75, 0.12);
    --shadow-lg: 0 10px 24px rgba(244, 178, 75, 0.25);
    --shadow-xl: 0 18px 36px rgba(0, 0, 0, 0.22);
    --shadow-hero: 0 20px 34px rgba(14, 42, 75, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   BASE STYLES & TYPOGRAPHY
======================================== */

body {
    background-color: var(--cream);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Fluid Typography */
h1, .hero-title {
    font-size: clamp(1.4rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

h2, .why-title {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
}

h3, .lead-title {
    font-size: clamp(1.25rem, 1.05rem + 1vw, 1.9rem);
    font-weight: 900;
    margin-bottom: var(--spacing-xs);
}

.hero-lead {
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem);
    opacity: 0.95;
    line-height: 1.7;
}

.lead-sub {
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    opacity: 0.92;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: url("/image/header-bg.jpg") center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(255, 255, 255, 0.08) 0%, transparent 70%),
        radial-gradient(900px 500px at 10% 120%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .brand-badge {
    width: 120px;
    height: auto;
    margin-top: 110px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
    z-index: 1;
}

.hero-wave path {
    fill: var(--cream);
}

.hero-wave svg {
    transform: scaleY(-1);
    width: 100%;
    height: auto;
}

.hero-wave.top-wave {
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    line-height: 0;
    z-index: 3;
}

.hero-wave.top-wave .elementor-shape-fill {
    fill: var(--cream);
}

/* Person/Image Styles */
.person-wrap {
    position: relative;
    height: 100%;
}

.person,
.why-person {
    max-width: 560px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.person {
    transform: translateY(10px);
}

.why-person {
    max-width: 540px;
}

/* ========================================
   BUTTONS & INTERACTIVE ELEMENTS
======================================== */

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--brand-accent)!important;
    color: var(--black)!important;
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 0.9rem 1.25rem;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.pen-ico {
    font-size: 1.1rem;
}

/* Pill Buttons */
.pill-wrap {
    gap: 0.75rem;
    margin: var(--spacing-lg) 0;
}

.pill {
    background: var(--accent-hover);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    width: calc(25% - 10px);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-medium);
    margin: 1.75rem 0;
}

.pill:hover {
    transform: scale(1.05);
    filter: brightness(0.95);
    color: var(--white);
}

/* Call Card */
.eligibility-call-card {
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--border-radius-lg);
    padding: 1.1rem 2.75rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.eligibility-call-card:hover {
    background-color: var(--secondary-navy);
    color: var(--white);
}

.eligibility-call-card .bi {
    font-size: 1.1rem;
}

.eligibility-call-card .bi:hover {
    color: var(--accent-hover);
}

.eligibility-call-card a {
    color: var(--primary-navy);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.eligibility-call-card:hover a {
    color: var(--white);
}

/* ========================================
   FEATURES SECTION
======================================== */

.features {
    margin-top: -90px;
    position: relative;
    z-index: 5;
}

.features-box {
    background: var(--white);
    border-radius: var(--border-radius-xxl);
    box-shadow: var(--shadow-hero);
    overflow: hidden;
    margin-top: -16%;
}

.feature-icon-outer {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 3px solid rgba(21, 55, 94, 0.95);
    background: var(--white);
    color: #15375e;
    box-shadow: var(--shadow-sm);
}

.feature-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1rem;
    max-width: 30ch;
    margin-inline: auto;
    margin-bottom: 0;
}

/* Feature Item Separators */
@media (min-width: 992px) {
    .feature-item {
        position: relative;
        padding-block: 40px;
    }

    .feature-item + .feature-item::before {
        content: "";
        position: absolute;
        top: 18%;
        bottom: 18%;
        inset-inline-start: 0;
        width: 1px;
        background: linear-gradient(
            to bottom,
            rgb(29, 93, 169),
            rgb(21, 75, 139) 60%,
            rgb(8, 52, 105)
        );
    }
}

/* ========================================
   WHY CHOOSE US SECTION
======================================== */

.why-section {
    position: relative;
    color: var(--white);
    padding: 4.5rem 0 4rem;
    overflow: hidden;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: url(/image/header-bg.jpg) center/cover;
    z-index: 1;
}

.why-section .container {
    position: relative;
    z-index: 2;
}

.why-title {
    margin-top: var(--spacing-sm);
}

.why-list {
    list-style: none;
    margin: 0 0 var(--spacing-lg) 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
}

.why-item .star {
    color: var(--brand-accent);
    font-size: 1.15em;
    line-height: 1;
    margin-top: 0.15rem;
}

/* ========================================
   FORM STYLES
======================================== */

.lead-head {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.lead-card {
    background: var(--white);
    color: var(--text-dark);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 1.25rem;
    max-width: 720px;
}

.lead-card-head {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: 0.75rem;
}

.lead-card-title {
    font-size: 1.625rem;
    font-weight: 600;
    margin: 1.25rem 0 1.875rem 0;
}

.lead-form {
    display: grid;
    gap: 0.6rem;
}

.lead-input {
    width: 100%;
    background: #f8fbff;
    color: var(--navy-dark);
    border: 1px solid rgba(16, 43, 74, 0.18);
    outline: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 0.9rem;
    text-align: right;
    direction: rtl;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.lead-input::placeholder {
    color: var(--text-light);
    font-weight: 600;
}

.lead-input:focus {
    border-color: #2e5b90;
    box-shadow: 0 0 0 0.15rem rgba(46, 91, 144, 0.15);
}

.lead-btn {
    background: var(--navy-light);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.9rem 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lead-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 0.75rem 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.site-footer .footer-left,
.site-footer .footer-right {
    margin: 0;
}

.site-footer .footer-left {
    text-align: left;
}

.site-footer .footer-right {
    text-align: right;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet Styles */
@media (min-width: 768px) {
    .first-btn {
        margin-bottom: 100px;
    }

    .why-wrapper {
        max-width: calc(100% - 480px);
    }
}

/* Large Mobile & Tablet */
@media (max-width: 991.98px) {
    .features {
        margin-top: -50px;
    }

    .feature-title {
        font-size: 1.15rem;
    }

    .feature-icon-outer {
        width: 58px;
        height: 58px;
    }

    .why-section {
        padding: 3.25rem 0 3rem;
    }

    .why-person {
        max-width: 520px;
        margin-inline: auto;
        display: block;
    }

    .why-title,
    .lead-head {
        text-align: center;
    }

    .why-list {
        margin-inline: auto;
        max-width: 36ch;
    }

    .cta-btn {
        display: flex;
        justify-content: center;
        margin-inline: auto;
        margin-top: var(--spacing-sm);
    }

    .lead-card {
        padding: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 575.98px) {
    .pill {
        min-width: unset;
        width: 100%;
        font-size: 0.95rem;
        padding: 0.75rem 0.9rem;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .pill-wrap {
        gap: var(--spacing-sm);
    }

    .hero-wave.top-wave {
        height: 90px;
    }

    .lead-card {
        border-radius: 14px;
    }

    .lead-input {
        padding: 0.75rem 0.85rem;
    }

    .site-footer .d-flex {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }

    .site-footer .footer-left,
    .site-footer .footer-right {
        text-align: center;
        width: 100%;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.spacer-32 {
    height: 32px;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
======================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.cta-btn:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    background: var(--brand-accent)!important;
    color: var(--black)!important;
}

@media (max-width: 768px) {
    .hero-wave {
        
    }
}