/* ==========================================================================
   STRALEN AERO - MASTER MULTI-LANGUAGE FLEXBOX PRODUCTION STYLESHEET
   Aesthetic: Compact Industrial Luxury / Vision 2030 Precision
   Layout Strategy: Pure Flexbox Architecture (Full All-Screen Responsiveness)
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & SYSTEM CONTROLS --- */
:root {
    --emerald: #10b981;
    --emerald-light: #ecfdf5;
    --emerald-glow: rgba(16, 185, 129, 0.12);
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --white: #ffffff;

    /* Scalable Typography Hierarchy (English/LTR Base) */
    --fs-badge: 12px;
    --fs-h1: clamp(2.2rem, 5.5vw, 4rem);     
    --fs-h2: clamp(1.75rem, 3.8vw, 2.35rem); 
    --fs-body: 1.1rem;
    --fs-card-label: 14px;
    --fs-btn: 13px;

    --premium-curve: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.5s var(--premium-curve);
    
    --dir-offset: 1; 
    --grad-dir: to right;
}

/* --- 2. MULTI-LANGUAGE DIRECTION LOGIC --- */
[dir="ltr"] {
    --dir-offset: 1;
    --grad-dir: to right;
}

[dir="rtl"] {
    --dir-offset: -1;
    --grad-dir: to left;
    text-align: right;
    word-spacing: 1px;
    letter-spacing: 0px !important;

    /* Integrated Global Typography Upscaling For Arabic Legibility */
    --fs-badge: 13px;
    --fs-h1: clamp(2.5rem, 6vw, 4.5rem);
    --fs-h2: clamp(2rem, 4.2vw, 2.65rem);
    --fs-body: 1.2rem;
    --fs-card-label: 15px;
    --fs-btn: 14px;

    /* CRITICAL ARABIC HERO FIX: Removes rigid height restrictions. */
    .stralen-hero-section {
        min-height: auto !important;
        padding-top: clamp(130px, 12vw, 160px) !important;
        padding-bottom: clamp(60px, 6vw, 90px) !important;
    }
}

/* --- 3. SYSTEM CORE RESET --- */
* { 
    box-sizing: border-box; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--white);
    color: var(--slate-900);
    margin: 0;
    line-height: 1.3;
    overflow-x: hidden;
}

.section-container {
    width: 85%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

.py-24 {
    padding-top: 2.5rem !important; 
    padding-bottom: 2.5rem !important;
}

/* --- 4. HERO DESIGN PATTERNS --- */
.stralen-hero-section {
    position: relative;
    min-height: 70vh; 
    display: flex;
    align-items: center;
    background-color: var(--slate-950);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../images/about-img/about%20us-page.avif');
    background-size: cover;
    background-position: center;
    filter: brightness(0.35) contrast(1.05);
    transition: transform 12s var(--premium-curve);
    will-change: transform;
}

.stralen-hero-section:hover .hero-bg-layer {
    transform: scale(1.08);
}

.hero-overlay-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(var(--grad-dir), rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    color: var(--emerald);
    font-size: var(--fs-badge);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem; 
}

[dir="rtl"] .hero-badge {
    letter-spacing: 0.5px;
}

.main-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0;
}

[dir="rtl"] .main-title {
    line-height: 1.15;
}

.main-title .accent-text {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--emerald);
}

.description-wrapper {
    margin-top: 0.75rem; 
    margin-bottom: 1.25rem; 
    max-width: 600px;
    background: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

[dir="ltr"] .description-wrapper {
    border-left: 3px solid var(--emerald);
    padding-left: 15px;
}

[dir="rtl"] .description-wrapper {
    border-right: 3px solid var(--emerald);
    padding-right: 15px;
    border-left: none;
    padding-left: 0;
}

.hero-description {
    color: #94a3b8;
    font-size: var(--fs-body);
    margin: 0;
    line-height: 1.35;
}

/* --- 5. PREMIUM BUTTON STRATEGY --- */
.btn-stralen-slide {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px; 
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--fs-btn);
    letter-spacing: 1.5px;
    text-decoration: none;
    overflow: hidden;
    z-index: 5;
    transition: var(--transition);
}

.btn-stralen-slide::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: -1;
    transition: top 0.4s var(--premium-curve);
}

.btn-stralen-slide:hover::before { 
    top: 0; 
}

.btn-stralen-slide:hover { 
    color: var(--slate-950); 
    transform: translateY(-2px);
}

/* ==========================================================================
   --- 6. COMPANY OVERVIEW ENGINE (PURE FLEXBOX ARCHITECTURE) ---
   ========================================================================== */
#overview .grid {
    display: flex !important;
    gap: 2.5rem !important; 
    align-items: center;
    width: 100%;
    transition: var(--transition);
}

#overview .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem !important; 
}

#overview .mt-10 {
    margin-top: 1rem !important; 
}

#overview .space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.5rem !important; 
}

[dir="ltr"] #overview .grid { flex-direction: row-reverse !important; }
[dir="rtl"] #overview .grid { flex-direction: row-reverse !important; }

#overview .relative.flex {
    flex: 0 0 40% !important; 
    max-width: 40%;
}

#overview .overview-content {
    flex: 0 0 60% !important;
    max-width: 60%;
}

.overview-tag {
    color: var(--slate-600);
    font-size: var(--fs-badge); 
    font-weight: 600;
    display: block;
    margin-bottom: 0.1rem;
    text-transform: capitalize;
}

.overview-title {
    font-size: var(--fs-h2); 
    font-weight: 800;
    color: var(--slate-950);
    line-height: 1.05;
    margin-top: 0;
    margin-bottom: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

[dir="rtl"] .overview-title {
    line-height: 1.15;
    letter-spacing: 0;
}

.text-emerald-600 { color: var(--emerald) !important; }

#overview .text-slate-500 p {
    font-size: var(--fs-body) !important; 
    line-height: 1.35 !important;
}

[dir="rtl"] #overview .text-slate-500 p {
    line-height: 1.45;
    font-weight: 400;
}

.mission-card {
    background-color: transparent !important;
    padding: 0.65rem 1rem !important; 
    position: relative;
    z-index: 1;
    cursor: pointer;
}

[dir="ltr"] .mission-card {
    border-left: 3px solid rgba(16, 185, 129, 0.15);
    border-right: none !important;
    border-radius: 0 6px 6px 0;
}

[dir="rtl"] .mission-card {
    border-right: 3px solid rgba(16, 185, 129, 0.15);
    border-left: none !important;
    border-radius: 6px 0 0 8px;
}

.mission-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--slate-100) 0%, rgba(241, 245, 249, 0.2) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s var(--premium-curve);
}

[dir="rtl"] .mission-card::before {
    background: linear-gradient(270deg, var(--slate-100) 0%, rgba(241, 245, 249, 0.2) 100%);
}

.mission-card:hover { transform: translateX(calc(6px * var(--dir-offset))) !important; }
.mission-card:hover::before { opacity: 1; }

[dir="ltr"] .mission-card:hover {
    border-left: 4px solid var(--emerald) !important;
    padding-left: calc(1rem - 1px) !important;
}

[dir="rtl"] .mission-card:hover {
    border-right: 4px solid var(--emerald) !important;
    padding-right: calc(1rem - 1px) !important;
}

.mission-card h4 {
    font-size: calc(var(--fs-badge) - 1px) !important; 
    line-height: 1.1 !important;
    margin-bottom: 0.1rem !important;
    transition: color 0.3s ease;
}

.mission-card:hover h4 { color: var(--emerald) !important; }
.mission-card p { font-size: calc(var(--fs-body) - 2px) !important; line-height: 1.3 !important; }

.group {
    border: 1px solid var(--slate-100) !important;
    padding: 0.4rem !important; 
    background-color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.03) !important;
    transition: var(--transition);
}

.group:hover {
    border-color: rgba(16, 185, 129, 0.2) !important;
    box-shadow: 0 20px 40px -10px rgba(2, 6, 23, 0.08) !important;
}

.group .overflow-hidden img {
    height: 380px !important; 
    transition: transform 10s var(--premium-curve) !important;
    will-change: transform;
}

.group:hover .overflow-hidden img { transform: scale(1.05); }

.exp-badge {
    position: absolute !important;
    background-color: var(--slate-950) !important;
    padding: 0.75rem 1.5rem !important; 
    box-shadow: 0 15px 30px rgba(2, 6, 23, 0.35) !important;
    animation: floatingKinetic 4.5s ease-in-out infinite alternate;
    border-radius: 0;
    border: none;
    z-index: 10;
}

[dir="ltr"] .exp-badge { left: -15px !important; right: auto !important; bottom: -15px !important; }
[dir="rtl"] .exp-badge { left: -15px !important; right: auto !important; bottom: -15px !important; }

.group:hover .exp-badge {
    transform: translateY(-6px);
    background-color: var(--slate-900) !important;
    box-shadow: 0 20px 40px -10px var(--emerald-glow) !important;
}

.exp-badge h2 {
    color: var(--emerald) !important;
    font-size: 2rem !important; 
    font-weight: 900 !important;
    letter-spacing: -1px;
    margin: 0 0 0.02rem 0;
    line-height: 1 !important;
}

[dir="rtl"] .exp-badge h2 { letter-spacing: 0; }

.exp-badge p {
    color: var(--white) !important;
    font-size: calc(var(--fs-badge) - 1px) !important; 
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    opacity: 0.85 !important;
    line-height: 1 !important;
}

[dir="rtl"] .exp-badge p { letter-spacing: 0.5px !important; }

/* ==========================================================================
   --- 7. COMPLIANCE & CERTIFICATIONS SECTION ---
   ========================================================================== */
.compliance-flex-layout {
    display: flex !important;
    gap: 2.5rem; 
    align-items: center;
    width: 100%;
    transition: var(--transition);
}

[dir="ltr"] .compliance-flex-layout { flex-direction: row; }
[dir="rtl"] .compliance-flex-layout { flex-direction: row-reverse; }

.compliance-info-col {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
}

.compliance-cards-col {
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; 
}

[dir="ltr"] .compliance-cards-col { align-items: flex-start; }
[dir="rtl"] .compliance-cards-col { align-items: flex-start; }

.compliance-tag {
    color: var(--emerald);
    font-size: var(--fs-badge);
    font-weight: 700;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.compliance-title {
    color: var(--slate-900);
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1rem;
}

.compliance-quote-panel {
    background-color: transparent;
    position: relative;
    padding: 0.75rem 1.25rem; 
}

[dir="ltr"] .compliance-quote-panel { border-left: 2px solid rgba(16, 185, 129, 0.2); }
[dir="rtl"] .compliance-quote-panel { border-right: 2px solid rgba(16, 185, 129, 0.2); }

.compliance-quote-text {
    color: var(--slate-500);
    font-size: var(--fs-body);
    line-height: 1.35;
    font-style: italic;
    margin: 0;
}

[dir="rtl"] .compliance-quote-text {
    font-style: normal;
    font-weight: 500;
}

/* FOUNDATION CARDS ENGINE */
.foundation-card {
    display: flex;
    align-items: center;
    justify-content: flex-start !important; 
    padding: 0.75rem 1.25rem; 
    background-color: var(--white);
    border-radius: 8px; 
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 2px 8px -1px rgba(15, 23, 42, 0.02);
    width: 100% !important;
    max-width: 430px !important; 
}

.f-card-label-wrapper {
    display: flex;
    align-items: center;
    gap: 2.25rem !important; 
    width: 100%;
}

[dir="ltr"] .f-card-label-wrapper { 
    flex-direction: row !important; 
    text-align: left;
    justify-content: flex-start !important;
}

[dir="rtl"] .f-card-label-wrapper { 
    flex-direction: row-reverse !important; 
    text-align: right;
    justify-content: flex-start !important;
}

.f-icon {
    flex-shrink: 0;
    width: 38px; 
    height: 38px;
    background-color: var(--emerald-light);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.f-label {
    font-weight: 700;
    color: var(--slate-700);
    font-size: var(--fs-card-label);
    line-height: 1.2;
}

.f-arrow-indicator {
    color: var(--slate-400);
    font-size: 0.85rem;
    transition: var(--transition);
    margin-left: auto; 
}

[dir="rtl"] .f-arrow-indicator {
    margin-left: 0;
    margin-right: auto;
}

.foundation-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.4) 0%, transparent 100%);
    opacity: 0;
    z-index: -1;
    border-radius: 8px;
    transition: var(--transition);
}

.foundation-card:hover {
    border-color: var(--emerald) !important; 
    transform: translateX(calc(6px * var(--dir-offset)));
    box-shadow: 0 10px 20px -10px var(--emerald-glow);
}

.foundation-card:hover::after { opacity: 1; }

.foundation-card:hover .f-icon {
    background-color: var(--emerald);
    color: var(--white);
    transform: scale(1.04);
}

.foundation-card:hover .f-arrow-indicator {
    color: var(--emerald);
    transform: translateX(calc(3px * var(--dir-offset)));
}

/* --- 8. KEYFRAME PHYSICS --- */
@keyframes floatingKinetic {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* --- 9. ICON ENGINEERING SYNCS --- */
.fas, .fab, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

[dir="rtl"] .fa-arrow-right, 
[dir="rtl"] .fa-chevron-right,
[dir="rtl"] .btn-stralen-slide i {
    transform: scaleX(-1);
}

/* ==========================================================================
   --- 10. MEDIA RESPONSIVE BREAKPOINTS (FIXED MISSING OVERVIEW IMAGE) ---
   ========================================================================== */
@media (max-width: 1024px) {
    .section-container { 
        width: 90% !important; 
    }
    
    #overview .grid,
    .compliance-flex-layout {
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    #overview .relative.flex,
    #overview .overview-content,
    .compliance-info-col,
    .compliance-cards-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* -------------------------------------------------------------
       CRITICAL RESPONSIVE IMAGE PROTECTION FIXED ENGINE
       Forces Tailwind stacked columns to correctly render the grid image wrapper 
       and child elements, rather than collapsing into 0px row heights.
       ------------------------------------------------------------- */
    #overview .relative.flex,
    #overview .grid > div.relative {
        display: flex !important;
        height: auto !important;
        min-height: 380px !important; 
        width: 100% !important;
    }

    .foundation-card {
        max-width: 100% !important; 
    }

    [dir="ltr"] #overview .overview-content, 
    [dir="rtl"] #overview .overview-content { order: 1 !important; }
    [dir="ltr"] #overview .relative.flex, 
    [dir="rtl"] #overview .relative.flex { order: 2 !important; justify-content: center !important; }

    .hero-container { text-align: center; }
    
    .description-wrapper {
        margin-left: auto;
        margin-right: auto;
        border-left: none !important;
        border-right: none !important;
        border-top: 3px solid var(--emerald);
        padding: 10px 0 0 0 !important;
    }
    
    .btn-stralen-slide { width: 100%; justify-content: center; }
    
    [dir="ltr"] .mission-card,
    [dir="rtl"] .mission-card,
    [dir="ltr"] .compliance-quote-panel,
    [dir="rtl"] .compliance-quote-panel {
        border-left: none !important;
        border-right: none !important;
        border-top: 2px solid rgba(16, 185, 129, 0.2);
        padding: 0.85rem 0 !important;
        border-radius: 0;
    }
    
    .mission-card:hover { transform: translateY(-2px) !important; background-color: transparent !important; }
    
    [dir="ltr"] .exp-badge,
    [dir="rtl"] .exp-badge { left: auto !important; right: 15px !important; bottom: -12px !important; padding: 0.75rem 1.5rem !important; }
}

/* ==========================================================================
   --- 11. EXTRA SMALL MOBILE SCREEN BREAKPOINTS BREAK DOWN (PHONES) ---
   ========================================================================== */
@media (max-width: 480px) {
    .stralen-hero-section {
        padding-top: 110px !important;
        padding-bottom: 50px !important;
    }

    [dir="rtl"] .stralen-hero-section {
        padding-top: 130px !important;
        padding-bottom: 60px !important;
    }

    .f-card-label-wrapper {
        gap: 1.25rem !important; 
    }

    .foundation-card {
        padding: 0.75rem 1rem !important;
    }

    .f-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
    }

    .group .overflow-hidden img {
        height: 290px !important; 
    }
}
/* ==========================================================================
   GLOBAL FIXED SCROLL TO TOP BUTTON
   ========================================================================== */
#scrollToTopBtn {
    position: fixed;
    bottom: 25px;
    width: 46px;
    height: 46px;
    background-color: #10b981; /* Emerald Brand Color */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 9999; /* Ensures it sits on top of all section layers */
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Smooth Transition Setup */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* English / Left-to-Right layout alignment force */
html[dir="ltr"] #scrollToTopBtn, 
body:not([dir="rtl"]) #scrollToTopBtn {
    right: 25px;
    left: auto;
}

/* Arabic / Right-to-Left layout alignment force */
html[dir="rtl"] #scrollToTopBtn,
body[dir="rtl"] #scrollToTopBtn {
    left: 25px;
    right: auto;
}

/* Active Entrance State */
#scrollToTopBtn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background-color: #0f172a; /* Dark Navy hover state */
    transform: translateY(-3px);
}

#scrollToTopBtn i {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    line-height: 1;
    margin-top: 0 !important;
}

/* Small Smartphone Optimization */
@media (max-width: 480px) {
    #scrollToTopBtn {
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
    html[dir="ltr"] #scrollToTopBtn { right: 20px; }
    html[dir="rtl"] #scrollToTopBtn { left: 20px; }
}