/* =============================================
   لحاف التجارية — Premium Components v2
   ============================================= */

/* --- Header --- */
.header { position: fixed; top: 0; right: 0; left: 0; z-index: 1000; height: var(--header-height); display: flex; align-items: center; transition: all 0.5s cubic-bezier(.4,0,.2,1); background: transparent; }
.header.scrolled { background: rgba(250,248,245,0.97); backdrop-filter: blur(20px); box-shadow: 0 1px 30px rgba(0,0,0,0.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
.header__logo img { height: 60px; width: auto; transition: 0.4s; filter: brightness(0) invert(1); }
.header.scrolled .header__logo img { filter: none; height: 48px; }
.header__nav { display: flex; align-items: center; gap: var(--space-md); }
.header__nav a { font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; color: var(--pure-white); padding: 6px 0; position: relative; transition: 0.3s; }
.header.scrolled .header__nav a { color: var(--dark-text); }
.header__nav a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--accent-gold); transition: width 0.4s cubic-bezier(.4,0,.2,1); }
.header__nav a:hover::after, .header__nav a.active::after { width: 100%; }
.header__nav a:hover { color: var(--accent-gold); }
.header__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 5px; }
.header__toggle span { width: 24px; height: 2px; background: var(--pure-white); transition: 0.3s; border-radius: 2px; }
.header.scrolled .header__toggle span { background: var(--dark-text); }
.header__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__toggle.active span:nth-child(2) { opacity: 0; }
.header__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- NEW HERO: Full-Screen Cinematic Slideshow --- */
.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero__slides { position: absolute; inset: 0; z-index: 1; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero__slide.active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; animation: kenBurns 20s ease-in-out infinite alternate; }
.hero__slide:nth-child(2) img { animation-delay: -7s; animation-direction: alternate-reverse; }
.hero__slide:nth-child(3) img { animation-delay: -14s; }
@keyframes kenBurns { 0% { transform: scale(1); } 50% { transform: scale(1.08) translate(-1%, 1%); } 100% { transform: scale(1.12) translate(1%, -1%); } }
.hero__overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(26,42,46,0.35) 0%, rgba(26,42,46,0.55) 50%, rgba(26,42,46,0.85) 100%); }
.hero__content { position: relative; z-index: 3; text-align: center; max-width: 820px; padding: 120px var(--space-md) 160px; }
.hero__logo { width: 90px; height: auto; margin: 0 auto var(--space-md); filter: brightness(0) invert(1); opacity: 0; animation: fadeSlideUp 0.8s ease 0.2s forwards; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 600; color: var(--accent-gold); text-transform: uppercase; margin-bottom: var(--space-sm); opacity: 0; animation: fadeSlideUp 0.8s ease 0.4s forwards; }
.hero__badge::before, .hero__badge::after { content: ''; width: 30px; height: 1px; background: var(--accent-gold); }
.hero__title { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--pure-white); line-height: 1.25; margin-bottom: var(--space-sm); opacity: 0; animation: fadeSlideUp 0.8s ease 0.6s forwards; }
.hero__title span { color: var(--accent-gold); }
.hero__desc { font-size: 1.1rem; line-height: 2; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto var(--space-md); opacity: 0; animation: fadeSlideUp 0.8s ease 0.8s forwards; }
.hero__actions { display: flex; gap: 16px; align-items: center; justify-content: center; opacity: 0; animation: fadeSlideUp 0.8s ease 1s forwards; }
.hero__bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; background: rgba(255,255,255,0.07); backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.1); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--container-max); margin: 0 auto; }
.hero__stat { padding: 28px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,0.08); }
.hero__stat:last-child { border-left: none; }
.hero__stat-number { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--accent-gold); line-height: 1.2; }
.hero__stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 4px; }
.hero__scroll { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; animation: fadeSlideUp 0.8s ease 1.2s forwards; }
.hero__scroll span { width: 1px; height: 40px; background: linear-gradient(transparent, var(--accent-gold)); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; height: 30px; } 50% { opacity: 1; height: 40px; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; padding: 14px 32px; border-radius: 50px; border: none; cursor: pointer; transition: all 0.4s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden; }
.btn--primary { background: var(--primary-teal); color: var(--pure-white); }
.btn--primary:hover { background: var(--primary-teal-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,82,73,0.25); }
.btn--gold { background: var(--accent-gold); color: var(--pure-white); }
.btn--gold:hover { background: var(--accent-gold-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,169,110,0.3); }
.btn--outline { background: transparent; border: 2px solid var(--primary-teal); color: var(--primary-teal); }
.btn--outline:hover { background: var(--primary-teal); color: var(--pure-white); transform: translateY(-2px); }
.btn--outline-white { background: transparent; border: 2px solid var(--pure-white); color: var(--pure-white); }
.btn--outline-white:hover { background: var(--pure-white); color: var(--dark-text); }
.btn--ghost { background: transparent; color: var(--primary-teal); padding: 14px 8px; }
.btn--ghost:hover { color: var(--accent-gold); gap: 14px; }
.btn--ghost i { transition: transform 0.3s; }
.btn--ghost:hover i { transform: translateX(-4px); }

/* --- Project Cards v2 --- */
.project-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--pure-white); box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: all 0.5s cubic-bezier(.4,0,.2,1); }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
.project-card__image { position: relative; height: 340px; overflow: hidden; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.4,0,.2,1); }
.project-card:hover .project-card__image img { transform: scale(1.08); }
.project-card__overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 24px 24px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: var(--pure-white); }
.project-card__tag { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 5px 14px; border-radius: 20px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); margin-bottom: 10px; letter-spacing: 0.5px; }
.project-card__title { font-family: var(--font-heading); font-size: 1.4rem; color: var(--pure-white); margin-bottom: 6px; }
.project-card__location { font-size: 0.82rem; opacity: 0.75; display: flex; align-items: center; gap: 6px; }
.project-card__body { padding: 24px; }
.project-card__desc { font-size: 0.9rem; color: var(--body-text); line-height: 1.9; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-card__link { font-size: 0.88rem; font-weight: 600; color: var(--primary-teal); display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.project-card__link:hover { gap: 14px; color: var(--accent-gold); }

/* --- Stats --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); text-align: center; }
.stat-item { padding: var(--space-md); }
.stat-item__number { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--accent-gold); line-height: 1.2; }
.stat-item__label { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-top: 6px; }

/* --- Feature Cards --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.feature-card { text-align: center; padding: 40px 28px; border-radius: 20px; background: var(--pure-white); border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s cubic-bezier(.4,0,.2,1); }
.feature-card:hover { border-color: var(--accent-gold); box-shadow: 0 15px 50px rgba(0,0,0,0.08); transform: translateY(-6px); }
.feature-card__icon { width: 68px; height: 68px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: linear-gradient(135deg, var(--light-sand), rgba(201,169,110,0.1)); color: var(--primary-teal); font-size: 1.4rem; transition: 0.4s; }
.feature-card:hover .feature-card__icon { background: var(--primary-teal); color: var(--pure-white); transform: scale(1.05); }
.feature-card__title { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card__desc { font-size: 0.86rem; color: var(--warm-gray); line-height: 1.9; }

/* --- Gallery / Lightbox --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.4,0,.2,1); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay { position: absolute; inset: 0; background: rgba(26,42,46,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.4s; }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay i { color: var(--pure-white); font-size: 1.5rem; }
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.4s; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox__close { position: absolute; top: 20px; left: 20px; color: white; font-size: 2rem; cursor: pointer; z-index: 10; background: none; border: none; }
.lightbox__img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 12px; }

/* --- Contact Form --- */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark-text); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 20px; border: 2px solid var(--light-gray); border-radius: 14px; font-family: var(--font-body); font-size: 0.95rem; color: var(--dark-text); background: var(--pure-white); transition: 0.3s; direction: rtl; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-teal); box-shadow: 0 0 0 4px rgba(59,82,73,0.08); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-alert { padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 16px; display: none; }
.form-alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-alert--error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* --- Footer --- */
.footer { background: var(--footer-dark); color: rgba(255,255,255,0.8); padding: var(--space-xl) 0 var(--space-md); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer__logo img { height: 55px; filter: brightness(0) invert(1); margin-bottom: var(--space-sm); }
.footer__about { font-size: 0.86rem; line-height: 2; color: rgba(255,255,255,0.5); max-width: 380px; }
.footer__title { font-family: var(--font-heading); font-size: 1.05rem; color: var(--pure-white); margin-bottom: 16px; position: relative; padding-bottom: 12px; }
.footer__title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 28px; height: 2px; background: var(--accent-gold); }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 0.86rem; color: rgba(255,255,255,0.5); transition: 0.3s; display: flex; align-items: center; gap: 6px; }
.footer__links a:hover { color: var(--accent-gold); padding-right: 6px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-md); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* --- Page Hero (Inner) --- */
.page-hero { position: relative; height: 50vh; min-height: 350px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--dark-text); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero__content { position: relative; z-index: 2; text-align: center; color: var(--pure-white); }
.page-hero__title { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--pure-white); margin-bottom: 10px; }
.page-hero__breadcrumb { font-size: 0.88rem; opacity: 0.6; display: flex; align-items: center; justify-content: center; gap: 8px; }
.page-hero__breadcrumb a:hover { color: var(--accent-gold); }

/* --- Filter Tabs --- */
.filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: var(--space-lg); flex-wrap: wrap; }
.filter-tab { padding: 10px 26px; border: 2px solid var(--light-gray); border-radius: 50px; font-family: var(--font-body); font-size: 0.86rem; font-weight: 500; color: var(--body-text); background: transparent; cursor: pointer; transition: 0.3s; }
.filter-tab:hover, .filter-tab.active { border-color: var(--primary-teal); background: var(--primary-teal); color: var(--pure-white); }

/* --- Projects Grid --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }

/* --- Project Detail --- */
.project-detail__hero { position: relative; height: 70vh; min-height: 450px; display: flex; align-items: flex-end; overflow: hidden; }
.project-detail__hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-detail__hero-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,0.75)); }
.project-detail__hero-content { position: relative; z-index: 2; padding: var(--space-lg) var(--space-md); width: 100%; max-width: var(--container-max); margin: 0 auto; }
.project-detail__hero-content h1 { font-size: clamp(2.5rem, 6vw, 4rem); color: var(--pure-white); margin-bottom: 10px; }
.project-detail__meta { display: flex; gap: var(--space-md); color: rgba(255,255,255,0.8); font-size: 0.9rem; flex-wrap: wrap; }
.project-detail__meta span { display: flex; align-items: center; gap: 6px; }

/* --- Sections Grid --- */
.sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.section-card { background: var(--pure-white); border-radius: 16px; padding: 28px; text-align: center; border: 1px solid rgba(0,0,0,0.04); transition: 0.4s; }
.section-card:hover { border-color: var(--accent-gold); box-shadow: 0 10px 40px rgba(0,0,0,0.06); }
.section-card__icon { font-size: 1.8rem; color: var(--primary-teal); margin-bottom: 12px; }
.section-card__title { font-size: 1.05rem; margin-bottom: 8px; }
.section-card__stat { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent-gold); font-weight: 700; }

/* --- Spinner --- */
.spinner { width: 28px; height: 28px; border: 3px solid var(--light-gray); border-top-color: var(--primary-teal); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Empty State --- */
.empty-state { text-align: center; padding: var(--space-xl); color: var(--warm-gray); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.2; }
