/* =========================================
   ABOUT US PAGE - PREMIUM DESIGN
   Mobile First - Fixed Overlap Issue
========================================= */

:root {
    --about-primary:       #C49A6C;
    --about-primary-dark:  #9E744F;
    --about-primary-light: #F9F3EB;
    --about-secondary:     #0F172A;
    --about-text:          #334155;
    --about-bg:            #F8FAFC;
}

/* =========================================
   HERO SECTION
   الفيكس الأساسي: إزالة أي transform أو will-change
   اللي كانوا بيعملوا stacking context غلط
========================================= */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, var(--about-secondary) 0%, #1e293b 50%, #334155 100%);
    padding: 110px 0 90px;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(196, 154, 108, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(196, 154, 108, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(196, 154, 108, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(196, 154, 108, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(196, 154, 108, 0.3), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(196, 154, 108, 0.3), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(196, 154, 108, 0.2), transparent);
    background-size: 300% 300%;
    animation: particles 25s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

@keyframes particles {
    0%,  100% { background-position: 0% 0%,   100% 100%, 50% 50%,  0% 100%, 30% 70%, 80% 20%; }
    33%        { background-position: 50% 50%,  50% 50%,  0% 100%, 100% 0%,  70% 30%, 20% 80%; }
    66%        { background-position: 100% 100%, 0% 0%,  100% 0%,  50% 50%, 90% 10%, 10% 90%; }
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
}

.hero-badge i { color: var(--about-primary); font-size: 18px; }

.hero-title {
    font-size: 40px;
    font-weight: 900;
    color: white;
    margin-bottom: 22px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--about-primary) 0%, #d4af7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    margin: 0 auto 50px;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 28px 35px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 38px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--about-primary) 0%, #e0b87a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
}

/* =========================================
   STORY SECTION
   z-index: 1 عشان يكون فوق الـ hero
========================================= */
.story-section {
    position: relative;
    z-index: 1;
    padding: 90px 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.story-image-wrapper {
    position: relative;
    padding-bottom: 40px;
}

.image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.14);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    min-height: 300px;
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    min-height: 300px;
    object-fit: cover;
}

.image-frame:hover .story-image { transform: scale(1.04); }

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    color: white;
    padding: 11px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 25px rgba(196, 154, 108, 0.45);
}

.floating-card {
    position: absolute;
    bottom: 0;
    left: 0;
    background: white;
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.13);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
    border: 1px solid rgba(196, 154, 108, 0.15);
}

.floating-card i      { font-size: 30px; color: var(--about-primary); }
.floating-card strong { display: block; font-size: 22px; font-weight: 900; color: var(--about-secondary); }
.floating-card span   { display: block; font-size: 12px; color: var(--about-text); }

.story-content { padding-right: 10px; }

.section-label {
    display: inline-block;
    background: var(--about-primary-light);
    color: var(--about-primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--about-secondary);
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.section-text {
    font-size: 16px;
    color: var(--about-text);
    line-height: 1.85;
    margin-bottom: 16px;
}

.story-highlights {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 26px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    font-weight: 600;
    color: var(--about-text);
}

.highlight-item i { color: var(--about-primary); font-size: 17px; }

/* =========================================
   VISION & MISSION
========================================= */
.vision-mission-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: linear-gradient(160deg, var(--about-bg) 0%, #ffffff 100%);
}

.vm-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    border: 1.5px solid rgba(196, 154, 108, 0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.11);
}

.vm-icon-wrapper {
    position: relative;
    margin-bottom: 26px;
    width: 80px;
    height: 80px;
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 22px rgba(196, 154, 108, 0.38);
}

.vm-icon-bg {
    position: absolute;
    top: -8px; right: -8px;
    width: 80px; height: 80px;
    background: var(--about-primary-light);
    border-radius: 20px;
    z-index: 1;
}

.vm-title       { font-size: 26px; font-weight: 800; color: var(--about-secondary); margin-bottom: 16px; }
.vm-description { font-size: 15px; color: var(--about-text); line-height: 1.8; margin-bottom: 24px; }
.vm-features    { display: flex; flex-direction: column; gap: 10px; }

.vm-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    background: var(--about-bg);
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    color: var(--about-text);
}

.vm-feature i { color: var(--about-primary); font-size: 15px; }

/* =========================================
   VALUES SECTION
========================================= */
.values-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: white;
}

.section-subtitle {
    font-size: 16px;
    color: var(--about-text);
    max-width: 580px;
    margin: 10px auto 0;
    line-height: 1.7;
}

.value-card {
    background: var(--about-bg);
    border-radius: 20px;
    padding: 34px 28px;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.value-card:hover {
    background: white;
    border-color: var(--about-primary);
    transform: translateY(-7px);
    box-shadow: 0 14px 38px rgba(196, 154, 108, 0.12);
}

.value-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 18px rgba(196, 154, 108, 0.3);
}

.value-card:hover .value-icon { transform: scale(1.1) rotate(5deg); }

.value-title { font-size: 19px; font-weight: 700; color: var(--about-secondary); margin-bottom: 11px; }
.value-text  { font-size: 14px; color: var(--about-text); line-height: 1.7; }

/* =========================================
   TEAM SECTION
========================================= */
.team-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: var(--about-bg);
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.team-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 72px;
    color: rgba(196, 154, 108, 0.3);
    position: absolute;
    z-index: 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.team-image img.img-error { opacity: 0; }

.team-card:hover .team-image img { transform: scale(1.08); }

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(15, 23, 42, 0.88));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.team-card:hover .team-overlay { opacity: 1; }

.team-social { display: flex; gap: 11px; }

.team-social a {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--about-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social a:hover {
    background: var(--about-primary);
    color: white;
    transform: translateY(-3px);
}

.team-info { padding: 18px 20px; text-align: center; }
.team-name { font-size: 17px; font-weight: 700; color: var(--about-secondary); margin-bottom: 5px; }
.team-role { font-size: 13px; color: var(--about-text); margin: 0; }

/* =========================================
   CTA SECTION
========================================= */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: white;
}

.cta-card {
    background: linear-gradient(135deg, var(--about-secondary) 0%, #1e293b 100%);
    border-radius: 28px;
    padding: 70px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.cta-decoration {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(196, 154, 108, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 154, 108, 0.1)  0%, transparent 40%);
    pointer-events: none;
}

.cta-content { position: relative; z-index: 2; }

.cta-title {
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 38px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.btn-cta-primary,
.btn-cta-secondary {
    padding: 15px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.35s ease;
    text-decoration: none;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--about-primary) 0%, var(--about-primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(196, 154, 108, 0.42);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(196, 154, 108, 0.55);
    color: white;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: white;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    color: white;
}

/* =========================================
   TABLET (992px-)
========================================= */
@media (max-width: 991px) {
    .story-content { padding-right: 0; margin-top: 50px; }
    .floating-card { position: static; margin-top: 16px; display: inline-flex; }
}

/* =========================================
   DESKTOP (768px+)
========================================= */
@media (min-width: 768px) {
    .hero-title  { font-size: 50px; }
    .stat-number { font-size: 42px; }
}

@media (min-width: 1200px) {
    .hero-title { font-size: 62px; }
    .about-hero { padding: 130px 0 100px; }
}

/* =========================================
   MOBILE (767px-) — نسخة مبسطة وخفيفة
========================================= */
@media (max-width: 767px) {

    /* ── Hero: مضغوط ── */
    .about-hero      { padding: 60px 0 45px; }
    .hero-badge      { font-size: 12px; padding: 8px 16px; margin-bottom: 18px; }
    .hero-title      { font-size: 28px; margin-bottom: 14px; letter-spacing: -0.5px; }
    .hero-subtitle   { font-size: 14px; margin-bottom: 0; line-height: 1.65; }
    .hero-stats      { display: none; }  /* الأرقام بتاخد مساحة — هنخفيها */

    /* ── Story: مخفي كامل على الموبايل ── */
    .story-section { display: none; }

    /* ── Vision & Mission: compact ── */
    .vision-mission-section { padding: 44px 0; }

    .vm-card        { padding: 24px 20px; border-radius: 18px; }
    .vm-icon-wrapper{ margin-bottom: 18px; width: 60px; height: 60px; }
    .vm-icon        { width: 60px; height: 60px; font-size: 22px; border-radius: 16px; }
    .vm-icon-bg     { width: 60px; height: 60px; top: -6px; right: -6px; border-radius: 16px; }
    .vm-title       { font-size: 20px; margin-bottom: 12px; }
    .vm-description { font-size: 13px; line-height: 1.75; margin-bottom: 18px; }
    .vm-feature     { padding: 9px 12px; font-size: 13px; gap: 9px; border-radius: 10px; }

    /* ── القيم: ٣ بس على الموبايل ── */
    .values-section { display: block; padding: 40px 0; }
    .values-section .section-subtitle { display: none; }
    /* نخفي الـ cards من الرابعة للسادسة */
    .values-section .row.g-4 > div:nth-child(n+4) { display: none; }
    .value-card  { padding: 22px 18px; border-radius: 16px; }
    .value-icon  { width: 54px; height: 54px; font-size: 22px; border-radius: 14px; margin-bottom: 14px; }
    .value-title { font-size: 16px; margin-bottom: 8px; }
    .value-text  { font-size: 13px; }

    /* ── الفريق: مخفي ── */
    .team-section { display: none; }

    /* ── CTA: مبسط ── */
    .cta-section    { padding: 40px 0; }
    .cta-card       { padding: 36px 20px; border-radius: 20px; }
    .cta-title      { font-size: 22px; margin-bottom: 12px; letter-spacing: 0; }
    .cta-text       { font-size: 14px; margin-bottom: 24px; line-height: 1.65; }

    .cta-buttons           { flex-direction: column; gap: 12px; }
    .btn-cta-primary,
    .btn-cta-secondary     { width: 100%; justify-content: center; padding: 13px 24px; font-size: 15px; }
}
