/* ============================================
   RKN ALWALEEF - Professional Stylesheet 2026
   Company: Click Solutions
   ============================================ */

:root {
    --gold: #C9A96E;
    --gold-light: #D4B87A;
    --gold-dark: #A88B4A;
    --gold-pale: rgba(201, 169, 110, 0.1);
    --beige: #F5F0E8;
    --beige-light: #FAF7F2;
    --beige-dark: #E8E0D4;
    --brown: #8B7355;
    --brown-light: #A89070;
    --brown-dark: #6B5535;
    --warm-white: #FDFCFA;
    --charcoal: #2C2C2C;
    --soft-black: #1A1A1A;
    --gray: #8A8A8A;
    --gray-light: #C5C5C5;
    --gray-dark: #5A5A5A;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 20px rgba(201,169,110,0.3);
    --shadow-gold-lg: 0 8px 40px rgba(201,169,110,0.4);
    --font-primary: 'Cairo', 'Tajawal', sans-serif;
    --font-secondary: 'Poppins', 'Cairo', sans-serif;
    --font-arabic: 'Tajawal', 'Cairo', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-primary);
    color: var(--charcoal);
    background: var(--warm-white);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-arabic);
    font-weight: 700;
    line-height: 1.3;
    color: var(--charcoal);
}
p { font-family: var(--font-primary); font-size: 1rem; line-height: 1.8; color: var(--gray-dark); }

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--soft-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.preloader-logo { width: 120px; height: 120px; }
.preloader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: preloaderPulse 2s ease-in-out infinite;
    border-radius: var(--radius-md);
}
.preloader-line {
    width: 200px; height: 3px;
    background: rgba(201, 169, 110, 0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.preloader-progress {
    width: 0%; height: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    border-radius: var(--radius-full);
    animation: progressBar 1.8s ease forwards;
}
.preloader-text {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 0.5s ease 0.3s both;
}
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes progressBar { 0% { width: 0%; } 50% { width: 70%; } 100% { width: 100%; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Floating Buttons ===== */
.floating-whatsapp, .floating-call {
    position: fixed;
    left: 20px;
    width: 56px; height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIn 0.5s ease 2s both;
}
.floating-whatsapp { bottom: 90px; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: white; }
.floating-call { bottom: 25px; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%); color: var(--soft-black); }
.floating-whatsapp:hover, .floating-call:hover { transform: scale(1.1) translateY(-3px); box-shadow: var(--shadow-xl); }
.floating-whatsapp svg, .floating-call svg { width: 24px; height: 24px; }
.floating-tooltip {
    position: absolute;
    left: 70px;
    background: var(--soft-black);
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-family: var(--font-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.floating-whatsapp:hover .floating-tooltip, .floating-call:hover .floating-tooltip { opacity: 1; visibility: visible; transform: translateX(0); }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(0.8); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 900;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}
.header.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}
.header.scrolled .logo-ar, .header.scrolled .nav-link { color: var(--charcoal); }
.header.scrolled .logo-en { color: var(--gray); }
.header.scrolled .hamburger-line { background: var(--charcoal); }

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-icon { width: 48px; height: 48px; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ar { font-size: 1.1rem; font-weight: 800; color: white; font-family: var(--font-arabic); transition: all 0.3s ease; }
.logo-en { font-size: 0.7rem; font-weight: 500; letter-spacing: 1px; color: rgba(255,255,255,0.7); font-family: var(--font-secondary); transition: all 0.3s ease; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 0.5rem; }
.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(201, 169, 110, 0.1); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--gold);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 910; }
.hamburger-line { display: block; width: 24px; height: 2px; background: white; border-radius: var(--radius-full); transition: all 0.3s ease; }
.mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 901;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed; top: 0; right: -100%;
    width: 320px; max-width: 85vw; height: 100%;
    background: var(--warm-white);
    z-index: 902;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--beige-dark);
}
.mobile-menu-header .logo-ar { color: var(--charcoal); }
.mobile-menu-header .logo-en { color: var(--gray); }
.mobile-menu-close {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    background: var(--beige);
    color: var(--charcoal);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.mobile-menu-close:hover { background: var(--gold); color: white; }
.mobile-menu-close svg { width: 20px; height: 20px; }
.mobile-nav { padding: 1rem 0; flex: 1; }
.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem; font-weight: 600;
    font-family: var(--font-primary);
    color: var(--charcoal);
    border-bottom: 1px solid var(--beige-dark);
    transition: all 0.3s ease;
}
.mobile-nav-link:hover { color: var(--gold); padding-right: 3rem; background: var(--beige-light); }
.mobile-menu-actions {
    padding: 1.5rem 2rem;
    display: flex; flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--beige-dark);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-primary);
    font-size: 0.9rem; font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; border: none;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    color: var(--soft-black);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold-lg); }
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201, 169, 110, 0.1); }
.btn-ghost {
    background: transparent;
    color: var(--brown);
    border: 1px solid var(--beige-dark);
}
.btn-ghost:hover { background: var(--beige); color: var(--gold-dark); border-color: var(--gold); }
.btn-white {
    background: white;
    color: var(--charcoal);
    box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-direction: column;
}
.hero-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1920&h=1080&fit=crop&q=80') center/cover no-repeat;
    transform: scale(1.1);
    animation: heroZoom 20s ease infinite alternate;
}
.hero-bg-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(44,44,44,0.80) 50%, rgba(26,26,26,0.92) 100%);
}
.hero-particles {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden; pointer-events: none;
}
.hero-particles::before, .hero-particles::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,0.15) 0%, transparent 70%);
    animation: particleFloat 8s ease-in-out infinite;
}
.hero-particles::before { top: 10%; right: 10%; animation-delay: 0s; }
.hero-particles::after { bottom: 20%; left: 5%; width: 200px; height: 200px; animation-delay: 4s; }

@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.2); } }
@keyframes particleFloat { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; } 50% { transform: translateY(-30px) scale(1.1); opacity: 0.8; } }

.hero-content {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 3rem 2rem;
    color: white;
    margin-top: auto;
    margin-bottom: auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-light);
    animation: fadeInUp 0.6s ease 0.2s both;
}
.badge-icon { font-size: 1.1rem; }

/* Hero Title */
.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    font-family: var(--font-arabic);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.title-line { display: block; }
.title-line.highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.6s both;
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}
.scroll-indicator:hover { color: var(--gold); }
.scroll-text { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-primary); }
.scroll-mouse {
    width: 24px; height: 40px;
    border: 2px solid currentColor;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-wheel { width: 4px; height: 8px; background: currentColor; border-radius: 2px; animation: scrollWheel 1.5s ease infinite; }
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ===== Sections General ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-subtitle {
    display: inline-block;
    font-size: 0.85rem; font-weight: 700;
    font-family: var(--font-primary);
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    position: relative;
    padding: 0 50px;
}
.section-subtitle::before, .section-subtitle::after {
    content: ''; position: absolute;
    top: 50%; width: 30px; height: 1px;
    background: var(--gold);
}
.section-subtitle::before { right: 0; }
.section-subtitle::after { left: 0; }
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    font-family: var(--font-arabic);
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 1rem;
}
.title-accent {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-description { font-size: 1.1rem; color: var(--gray); font-family: var(--font-primary); line-height: 1.8; }

/* ===== Services ===== */
.services { background: var(--beige-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--beige-dark);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-light);
}
.service-image { position: relative; height: 200px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease; }
.service-card:hover .service-image img { transform: scale(1.1); }
.service-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
}
.service-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--soft-black);
    box-shadow: var(--shadow-gold);
}
.service-icon svg { width: 24px; height: 24px; }
.service-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-title { font-size: 1.15rem; font-weight: 800; font-family: var(--font-arabic); color: var(--charcoal); margin-bottom: 0.5rem; }
.service-description { font-size: 0.85rem; color: var(--gray); font-family: var(--font-primary); line-height: 1.7; margin-bottom: 1rem; }
.service-features { margin-bottom: 1.5rem; }
.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-dark);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}
.service-features li svg { color: var(--gold); flex-shrink: 0; }
.service-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

/* ===== Process ===== */
.process { background: var(--beige-light); }
.process-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.process-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--beige-dark);
    position: relative;
    transition: all 0.4s ease;
}
.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-light);
}
.process-number {
    position: absolute;
    top: -15px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    color: var(--soft-black);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    font-family: var(--font-arabic);
    box-shadow: var(--shadow-gold);
}
.process-icon {
    width: 64px; height: 64px;
    background: var(--beige-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    color: var(--gold);
    transition: all 0.3s ease;
}
.process-card:hover .process-icon {
    background: var(--gold);
    color: white;
    transform: scale(1.1);
}
.process-title {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-arabic);
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}
.process-desc {
    font-size: 0.85rem;
    color: var(--gray);
    font-family: var(--font-primary);
    line-height: 1.7;
}
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    padding: 0 0.5rem;
    align-self: center;
}
.process-arrow svg { width: 28px; height: 28px; }

/* ===== Works / Portfolio ===== */
.works { background: var(--warm-white); }
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.work-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--beige-dark);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-light);
}
.work-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}
.work-card:hover .work-image img {
    transform: scale(1.08);
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.cta-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=1920&h=1080&fit=crop&q=80') center/cover no-repeat;
    transform: scale(1.05);
}
.cta-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.92) 0%, rgba(44,44,44,0.85) 100%);
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    font-family: var(--font-arabic);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.cta-description {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-primary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Contact ===== */
.contact { background: var(--beige-light); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--beige-dark);
    transition: all 0.3s ease;
}
.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold-light);
    transform: translateX(-5px);
}
.contact-icon {
    width: 48px; height: 48px;
    background: var(--beige-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.contact-card:hover .contact-icon {
    background: var(--gold);
    color: white;
}
.contact-details { flex: 1; }
.contact-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--charcoal);
    font-family: var(--font-primary);
    margin-bottom: 0.25rem;
}
.contact-value {
    font-size: 1rem;
    color: var(--gray-dark);
    font-family: var(--font-primary);
    margin-bottom: 0.5rem;
}
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}
.contact-link:hover { color: var(--gold-dark); gap: 10px; }
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--beige-dark);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-title {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-arabic);
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    text-align: center;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    font-family: var(--font-primary);
}
.form-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--beige-light);
    border: 1px solid var(--beige-dark);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    transition: all 0.3s ease;
}
.form-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}
.form-input-wrapper svg { color: var(--gray); flex-shrink: 0; }
.form-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.875rem 0;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--charcoal);
    outline: none;
}
.form-input::placeholder { color: var(--gray-light); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }

/* ===== Footer ===== */
.footer { background: var(--soft-black); color: white; }
.footer-top { padding: 5rem 0 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}
.footer-brand { max-width: 320px; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.footer-logo .logo-icon { color: var(--gold); }
.footer-logo .logo-ar { color: white; }
.footer-logo .logo-en { color: var(--gray); }
.footer-about {
    font-size: 0.85rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: all 0.3s ease;
}
.social-link:hover {
    background: var(--gold);
    color: var(--soft-black);
    border-color: var(--gold);
    transform: translateY(-3px);
}
.footer-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-arabic);
    color: white;
    margin-bottom: 1.5rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link {
    font-size: 0.85rem;
    color: var(--gray-light);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-link:hover { color: var(--gold); padding-right: 5px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 1rem; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-light);
    font-family: var(--font-primary);
}
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; }
.footer-contact-item a { color: var(--gray-light); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 0;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.copyright {
    font-size: 0.8rem;
    color: var(--gray);
    font-family: var(--font-primary);
}
.copyright a { color: var(--gold); }
.copyright a:hover { text-decoration: underline; }
.footer-tagline {
    font-size: 0.8rem;
    color: var(--gray);
    font-family: var(--font-primary);
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}
.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--beige-light);
    color: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}
.modal-close:hover { background: var(--gold); color: white; }
.modal-service-title {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-arabic);
    color: var(--charcoal);
    margin-bottom: 1rem;
    padding-left: 3rem;
}
.modal-service-desc {
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.modal-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.modal-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-dark);
    font-family: var(--font-primary);
}
.modal-feature svg { color: var(--gold); flex-shrink: 0; }
.modal-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3000;
    transform: translateX(150%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid var(--gold);
    max-width: 400px;
}
.toast.active { transform: translateX(0); }
.toast-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}
.toast-title {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-arabic);
    color: var(--charcoal);
    margin-bottom: 2px;
}
.toast-message {
    font-size: 0.8rem;
    color: var(--gray);
    font-family: var(--font-primary);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .header-container { padding: 0 1.5rem; }
    .main-nav { display: none; }
    .header-actions .btn-outline { display: none; }
    .mobile-menu-toggle { display: flex; }
    .process-grid { flex-direction: column; align-items: center; }
    .process-arrow { transform: rotate(90deg); }
    .process-card { max-width: 100%; width: 100%; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .hero-content { padding: 2rem 1rem; }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { max-width: 100%; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .btn { width: 100%; }
    .modal-content { padding: 1.5rem; }
    .floating-whatsapp, .floating-call { width: 48px; height: 48px; }
    .floating-whatsapp { bottom: 80px; }
    .floating-call { bottom: 20px; }
    .works-grid { grid-template-columns: 1fr; }
    .work-image { height: 240px; }
    .logo-ar { font-size: 1rem; }
    .logo-en { font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .header-container { padding: 0 1rem; }
    .hero-badge { font-size: 0.8rem; padding: 8px 16px; }
    .process-card { padding: 2rem 1.5rem; }
    .contact-form-wrapper { padding: 1.5rem; }
    .work-image { height: 220px; }
    .logo-ar { font-size: 0.9rem; }
    .logo-en { font-size: 0.6rem; }
}

/* ===== Spin Animation for Loading ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }


/* ============================================================
   GALLERY.JS — New Features CSS
   Version 2.0 | Click Solutions
   ============================================================ */

/* ===== زر "عرض المزيد" للقطاعات ===== */
.sector-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid var(--primary, #C9A96E);
    color: var(--primary, #C9A96E);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.sector-more-btn:hover,
.sector-more-btn.active {
    background: var(--primary, #C9A96E);
    color: #fff;
}

.sector-more-btn .sector-more-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sector-more-btn.active .sector-more-icon {
    transform: rotate(180deg);
}

/* ===== لوحة تفاصيل القطاع Inline ===== */
.sector-detail-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
    margin-top: 0;
}

.sector-detail-panel.active {
    max-height: 800px;
    opacity: 1;
    margin-top: 1rem;
}

.sector-panel-inner {
    background: var(--bg-secondary, #f8f6f2);
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
}

.sector-panel-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.sector-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 0.5rem;
}

.sector-panel-desc {
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
    line-height: 1.7;
}

.sector-panel-services-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary, #C9A96E);
    margin-bottom: 0.75rem;
}

.sector-panel-services-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.sector-panel-service-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.5;
}

.sector-panel-service-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary, #C9A96E);
}

.sector-panel-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

/* ===== فلاتر المعرض ===== */
.gallery-filters {
    margin-bottom: 2rem;
}

.filter-level-1,
.filter-level-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.filter-level-2 {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    min-height: 0;
}

.filter-level-2:empty {
    display: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1.5px solid rgba(201, 169, 110, 0.4);
    background: transparent;
    color: var(--text-secondary, #666);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary, #C9A96E);
    color: var(--primary, #C9A96E);
    background: rgba(201, 169, 110, 0.08);
}

.filter-btn.active {
    background: var(--primary, #C9A96E);
    border-color: var(--primary, #C9A96E);
    color: #fff;
    font-weight: 600;
}

.filter-service-btn {
    font-size: 0.8rem;
    padding: 6px 14px;
}

/* ===== شبكة المعرض الديناميكية ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary, #888);
    font-size: 1rem;
}

/* ===== بطاقات المعرض — وسائط فقط ===== */
.work-card .work-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.work-card .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

/* ===== دعم الفيديو ===== */
.work-video-wrapper {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.work-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.work-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(201, 169, 110, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-btn:hover {
    background: var(--primary, #C9A96E);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== Video Lightbox ===== */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-lightbox.active {
    opacity: 1;
}

.video-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.video-lightbox-content {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 900px;
}

.video-lightbox-close {
    position: absolute;
    top: -44px;
    left: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-lightbox-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-lightbox-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== زر "عرض المزيد" للمعرض ===== */
.gallery-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.gallery-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--primary, #C9A96E);
    color: var(--primary, #C9A96E);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-more-btn:hover {
    background: var(--primary, #C9A96E);
    color: #fff;
}

.gallery-more-btn svg {
    transition: transform 0.3s ease;
}

.gallery-more-btn:hover svg {
    transform: translateY(2px);
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sector-panel-services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .work-card .work-image,
    .work-video-wrapper {
        height: 200px;
    }

    .filter-level-1,
    .filter-level-2 {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 7px 14px;
    }

    .sector-panel-services-list {
        grid-template-columns: 1fr;
    }

    .sector-panel-cta {
        flex-direction: column;
    }

    .sector-panel-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .video-lightbox-content {
        width: 95vw;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .work-card .work-image,
    .work-video-wrapper {
        height: 220px;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .sector-more-btn {
        font-size: 0.85rem;
    }
}
