/* ================================================================
   ARCOBUILD — Master Stylesheet (Final Clean V8 + Inline Consolidations)
   ================================================================ */

/* 1. Design Tokens (الألوان الافتراضية - الوضع الداكن) */
:root{
  --bg: #202A28; 
  --bg-alt: #1a2220; 
  --surface: #2a3630; 
  --text: #F4F0E7; 
  --text-muted: #c1c7be;
  --text-dim: #8a938d; /* تمت الإضافة لضمان ظهور النصوص الخافتة */
  --accent: #84978A; 
  --accent-hover: #9eb0a2; 
  --btn-primary-bg: #84978A; 
  --btn-primary-text: #14201b;
  --border: rgba(244,240,231,.12); 
  --border-strong: rgba(244,240,231,.28);
  --whatsapp: #25D366;
  
  --font-ar: 'Readex Pro', system-ui, sans-serif;
  --font-en: 'Jost', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --container: min(1280px, 92vw);
  --header-h: 80px;
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-pill: 999px;
}

/* 2. Light Theme (الوضع الفاتح) */
[data-theme="light"] {
  --bg: #F4F0E7; 
  --bg-alt: #ebe6d8; 
  --surface: #ffffff; 
  --text: #202A28; 
  --text-muted: #4d5a55;
  --text-dim: #6b756e; 
  --accent: #354A40; 
  --accent-hover: #26382f; 
  --btn-primary-bg: #354A40; 
  --btn-primary-text: #F4F0E7;
  --border: rgba(32,42,40,.14); 
  --border-strong: rgba(32,42,40,.3);
}

/* 3. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-ar); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.container { width: var(--container); margin-inline: auto; }
.section { padding-block: clamp(60px, 8vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.eyebrow-line { display: inline-flex; align-items: center; gap: .65rem; font-size: .85rem; color: var(--accent); margin-block-end: .9rem; }
.eyebrow-line::before { content: ""; display: block; width: 36px; height: 1px; background: var(--accent); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.3; }
.section__title .accent { color: var(--accent); }
.section__lede { margin-block-start: 1rem; font-size: 1.05rem; color: var(--text-muted); }

/* 4. Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.75rem; border-radius: var(--radius-pill); font-size: .95rem; font-weight: 500; transition: all .2s; border: 1px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px !important; height: 18px !important; max-width: 18px !important; flex: none; }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(132,151,138,.1); border-color: var(--accent); }

/* 5. Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background-color .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled::before { opacity: 1; border-bottom-color: var(--border); }
[data-theme="light"] .site-header::before { background: var(--bg); }

.header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; width: var(--container); margin-inline: auto; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 1rem; direction: ltr; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-en); font-size: 1.15rem; letter-spacing: .22em; font-weight: 300; }
.brand__sub { font-family: var(--font-en); font-size: .55rem; letter-spacing: .16em; color: var(--text-muted); }
.brand__mark { font-family: var(--font-serif); font-style: italic; font-size: 2rem; color: var(--accent); border-left: 1px solid var(--border-strong); padding-left: .8rem; line-height: 1; }

.nav { justify-self: center; }
.nav__list { display: flex; gap: 1.5rem; }
.nav__link { font-size: .92rem; font-weight: 300; position: relative; padding-block: .5rem; }
.nav__link::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); font-weight: 500; }

.tools { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text); border-radius: var(--radius-sm); }
.icon-sun { display: none; } [data-theme="light"] .icon-sun { display: block; } [data-theme="light"] .icon-moon { display: none; }
.lang-toggle { display: flex; align-items: center; font-family: var(--font-en); font-size: .8rem; padding: .4rem .8rem; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); transition: .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero { position: relative; min-height: 100vh; background: #202A28 !important; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; z-index: 1; clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32,42,40,1) 0%, rgba(32,42,40,0.5) 40%, transparent 100%); }
.hero__inner { position: relative; z-index: 2; width: var(--container); margin-inline: auto; display: flex; justify-content: flex-end; }
.hero__content { width: 45%; max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; text-align: right; background: transparent !important; padding: 0 !important; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-size: 1rem; color: #9eb0a2; margin-bottom: 1.2rem; }
.hero .eyebrow::before { content: ""; width: 40px; height: 1px; background: #9eb0a2; }
.hero__title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1.25; color: #F4F0E7; margin-bottom: 1.5rem; }
.hero__title .t2 { color: #9eb0a2; display: block; }
.hero__text { font-size: 1.05rem; line-height: 1.9; color: #c1c7be; margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero__badge { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem; padding: .6rem 1.2rem; border: 1px solid rgba(244,240,231,.2); border-radius: 999px; font-size: .85rem; color: #c1c7be; background: rgba(132,151,138,.1); }
.hero__badge strong { color: #F4F0E7; }
.hero__badge svg { color: #9eb0a2; }

/* English Homepage LTR Fixes */
html[dir="ltr"] .hero__inner { justify-content: flex-start !important; }
html[dir="ltr"] .hero__content { text-align: left !important; align-items: flex-start !important; }
html[dir="ltr"] .hero__actions .btn svg { transform: rotate(180deg) !important; }

/* 7. ABOUT SUMMARY */
.about-summary { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-summary__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.about-summary__media img { width: 100%; height: 100%; object-fit: cover; }
.about-summary__body .section__title { text-align: start; }
.about-list { display: grid; gap: 1rem; margin-block: 2rem; }
.about-list li { display: flex; align-items: flex-start; gap: 1rem; font-size: 1.05rem; }
.about-list svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 4px; }
.about-summary__cta { margin-top: 1rem; }

/* 8. CORE SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.service-card__media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(32,42,40,.9) 100%); }
.service-card__num { position: absolute; top: 1rem; inset-inline-start: 1rem; font-family: var(--font-serif); font-size: 2.5rem; font-style: italic; color: var(--accent); z-index: 2; line-height: 1; }
.service-card__body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.service-card__title { font-size: 1.2rem; font-weight: 500; margin-bottom: .75rem; }
.service-card__desc { font-size: .95rem; color: var(--text-muted); line-height: 1.8; flex: 1; margin-bottom: 1.5rem; }
.service-card__link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--accent); font-weight: 500; }

/* 9. JEDDAH LOCAL SECTION */
.jeddah-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.jeddah-block__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.jeddah-block__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.jeddah-block__media:hover img { transform: scale(1.05); }
.jeddah-block__tag { position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; background: var(--accent); color: var(--btn-primary-text); padding: .4rem 1.2rem; border-radius: var(--radius-pill); font-weight: 500; font-size: .85rem; z-index: 2; }
.jeddah-features { display: grid; gap: 1.2rem; margin-block: 2rem; }
.jeddah-features li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.jeddah-features svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 4px; }
.jeddah-block__cta { margin-top: 1rem; }

/* 10. PORTFOLIO GRID */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.portfolio-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; display: block; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,28,26,.9), transparent); opacity: .8; transition: opacity .3s; }
.portfolio-item:hover::after { opacity: 1; }
.portfolio-item__meta { position: absolute; inset-inline: 1.5rem; bottom: 1.5rem; z-index: 2; color: #F4F0E7; }
.portfolio-item__meta .tag { display: inline-block; background: var(--accent); color: #14201b; font-size: .75rem; padding: .2rem .6rem; border-radius: var(--radius-sm); margin-bottom: .5rem; font-weight: 600; }
.portfolio-item__meta .name { font-size: 1.1rem; font-weight: 500; display: block; }
.portfolio-cta { margin-top: 3rem; text-align: center; }

/* 11. METHODOLOGY TIMELINE (Original) */
.timeline { position: relative; max-width: 900px; margin-inline: auto; padding-block-start: 1rem; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 24px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent) 0%, var(--border-strong) 100%); }
.tl-step { position: relative; padding-inline-start: 5rem; padding-block-end: 2.5rem; }
.tl-step:last-child { padding-block-end: 0; }
.tl-step__num { position: absolute; inset-inline-start: 0; top: -4px; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-serif); font-size: 1.4rem; font-style: italic; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; z-index: 2; }
.tl-step:hover .tl-step__num { background: var(--accent); color: var(--btn-primary-text); }
.tl-step__title { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.tl-step__desc { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

/* Homepage Timeline (Modern Fix) */
.timeline-modern { display: flex; flex-direction: column; gap: 2rem; max-width: 850px; margin: 0 auto; position: relative; }
.timeline-modern::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 36px; width: 2px; background: var(--accent); opacity: 0.3; }
.tl-item { display: flex; gap: 2rem; align-items: flex-start; position: relative; }
.tl-icon { width: 72px; height: 72px; flex: none; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; color: var(--accent); z-index: 2; box-shadow: 0 4px 15px rgba(0,0,0,0.15); transition: all 0.3s ease; }
.tl-item:hover .tl-icon { background: var(--accent); color: var(--btn-primary-text); transform: scale(1.1); }
.tl-content { background: var(--surface); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.tl-content h3 { margin-bottom: 0.75rem; color: var(--text); font-size: 1.25rem; }
.tl-content p { color: var(--text-muted); margin: 0; line-height: 1.8; }

/* 12. QUALITY & WHY US */
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.quality-cards { display: grid; gap: 1.25rem; }
.q-card { display: flex; gap: 1.25rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.q-card__icon { width: 48px; height: 48px; flex: none; background: rgba(132,151,138,.1); color: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.q-card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.q-card__desc { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }

.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.why-card { padding: 2rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.why-card__num { font-family: var(--font-serif); font-size: 2rem; font-style: italic; color: var(--accent); margin-bottom: 1rem; line-height: 1; }
.why-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: .6rem; line-height: 1.4; }
.why-card__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* 13. QUOTE & FORM */
.quote-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quote-steps { display: grid; gap: 1.25rem; }
.qstep { display: flex; gap: 1.25rem; align-items: flex-start; }
.qstep__num { width: 40px; height: 40px; flex: none; background: rgba(132,151,138,.1); color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; }
.qstep__title { font-size: 1.1rem; font-weight: 600; margin-bottom: .3rem; }
.qstep__desc { font-size: .95rem; color: var(--text-muted); line-height: 1.7; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.form-card h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.form-card > p { font-size: .95rem; color: var(--text-muted); margin-bottom: 2rem; }
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 500; }
.field label .req { color: #c95d54; }
.field input, .field select, .field textarea { width: 100%; padding: .9rem 1rem; background: var(--bg-alt); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; transition: border-color .2s; }
[data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea { background: #f4f0e7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 100px; }
.form-status { font-size: .9rem; margin-top: 1rem; font-weight: 500; color: var(--accent); }

/* Contact Page Premium Form */
.contact-section { padding-block: clamp(4rem, 8vw, 8rem); background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card { display: flex; align-items: flex-start; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 2rem; transition: transform 0.3s ease, border-color 0.3s ease; }
.info-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.info-icon { width: 50px; height: 50px; flex: none; background: rgba(132, 151, 138, 0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.info-content h4 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.5rem; }
.info-content p, .info-content a { color: var(--text-muted); font-size: 1rem; line-height: 1.6; display: block; transition: color 0.3s; }
.info-content a:hover { color: var(--accent); }
.map-container { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 250px; margin-top: 1.5rem; }
.map-container iframe { width: 100%; height: 100%; border: 0; filter: grayscale(100%) invert(90%) contrast(80%); }
[data-theme="light"] .map-container iframe { filter: grayscale(100%) contrast(90%); }
.premium-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); box-shadow: 0 20px 50px rgba(0,0,0,0.15); position: relative; overflow: hidden; }
.premium-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.premium-form h3 { font-size: 1.8rem; color: var(--text); margin-bottom: 0.5rem; }
.premium-form > p { color: var(--text-muted); margin-bottom: 2.5rem; }
.field-icon { position: absolute; inset-inline-start: 1rem; bottom: 1.1rem; color: var(--text-dim); pointer-events: none; }
.field input, .field select, .field textarea { padding-inline-start: 2.8rem; }
.field textarea { padding-inline-start: 1rem; }
.file-upload-zone { border: 2px dashed var(--border-strong); border-radius: var(--radius-md); padding: 2rem; text-align: center; cursor: pointer; transition: all 0.3s; background: rgba(132, 151, 138, 0.05); margin-bottom: 1.5rem; }
.file-upload-zone:hover { border-color: var(--accent); background: rgba(132, 151, 138, 0.1); }
.file-upload-zone svg { color: var(--accent); margin-bottom: 0.5rem; margin-inline: auto; }
.file-upload-zone p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.file-upload-zone input[type="file"] { display: none; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.8rem; margin-block: 1.5rem; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 0.2rem; cursor: pointer; }
.checkbox-group label { font-size: 0.85rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.btn-glow { box-shadow: 0 0 20px rgba(132, 151, 138, 0.4); transition: all 0.3s; }
.btn-glow:hover { box-shadow: 0 0 30px rgba(132, 151, 138, 0.6); transform: translateY(-2px); }

/* 14. FAQS */
.faq-list { max-width: 900px; margin-inline: auto; display: grid; gap: 1rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { list-style: none; padding: 1.5rem; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 1.1rem; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .3s; }
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-item__body { padding: 0 1.5rem 1.5rem; font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

/* 15. FINAL CTA */
.final-cta { background: #354A40; color: #F4F0E7; padding-block: clamp(4rem, 8vw, 6rem); text-align: center; }
[data-theme="light"] .final-cta { background: #202A28; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.final-cta p { font-size: 1.1rem; opacity: .9; margin-bottom: 2.5rem; }
.final-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* 16. FOOTER */
.site-footer { background: var(--bg-alt); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-brand .brand { margin-bottom: 1.5rem; }
.footer-brand p { font-size: .95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1.5rem; }
.footer-badge { display: inline-flex; align-items: center; padding: .5rem 1rem; background: rgba(132,151,138,.1); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; }
.footer-badge strong { color: var(--accent); margin-inline-start: 5px; }
.footer-col h3 { font-family: var(--font-en); font-size: 1rem; margin-bottom: 1.5rem; }
.footer-col ul { display: grid; gap: .8rem; }
.footer-col a { font-size: .95rem; color: var(--text-muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: var(--text-muted); }
.footer-contact svg { color: var(--accent); flex: none; margin-top: 2px; }
.footer-bottom { padding-block: 1.5rem; font-size: .85rem; color: var(--text-dim); text-align: center; }

/* 17. Developer Credit */
.footer-credit { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--border); font-size: .9rem; text-align: center; }
.footer-credit__text strong { color: var(--text); position: relative; }
.footer-credit__text strong::after { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--accent); }
.footer-credit__heart { color: var(--accent); margin-inline: .3rem; }
.footer-credit__links { display: flex; gap: .75rem; }
.footer-credit__link { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); color: var(--text-muted); transition: all .3s; }
.footer-credit__link--wa { color: var(--whatsapp); border-color: rgba(37,211,102,.4); }
.footer-credit__link--wa:hover { background: var(--whatsapp); color: #fff; }
.footer-credit__link--call { color: var(--accent); border-color: rgba(132,151,138,.4); }
.footer-credit__link--call:hover { background: var(--accent); color: #14201b; }

/* 18. FLOATING BUTTONS */
.floating { 
  position: fixed; 
  z-index: 99; 
  right: 24px; 
  bottom: 24px; 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
  opacity: 1; /* جعلناها 1 لتظهر دائماً */
  pointer-events: auto; /* السماح بالنقر */
}
.floating.is-visible { opacity: 1; pointer-events: auto; }
.floating__btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,.3); transition: transform .3s; }
.floating__btn:hover { transform: scale(1.1) translateY(-3px); }
.floating__btn--wa { background: var(--whatsapp); color: #fff; }
.floating__btn--call { background: #34C759; color: #ffffff;border: none; box-shadow: 0 4px 15px rgba(52, 199, 89, 0.4);}
/* ============================================================
   19. RESPONSIVE (FINAL FIX FOR MOBILE)
   ============================================================ */
.skip-link { position: absolute !important; top: -9999px !important; left: -9999px !important; }
.skip-link:focus { top: 16px !important; left: 16px !important; }

@media (max-width: 1100px) {
  .site-header { background: transparent !important; transition: background-color .3s, box-shadow .3s !important; }
  .site-header::before { display: none !important; }
  .site-header.is-scrolled { background: var(--bg) !important; box-shadow: 0 4px 20px rgba(0,0,0,.1) !important; }
  .header__inner { display: flex !important; justify-content: space-between !important; align-items: center !important; padding-inline: 1rem !important; width: 100% !important; position: relative !important; }
  .tools .icon-btn { display: flex !important; width: 38px; height: 38px; color: var(--text) !important; }
  .tools .lang-toggle { display: flex !important; padding: 0.4rem 0.7rem; font-size: 0.8rem; color: var(--text) !important; border-color: var(--border-strong) !important; }
  .burger { display: flex !important; margin: 0 !important; position: relative !important; z-index: 1001; }
  .burger span { background-color: var(--text) !important; }
  .menu-open .burger span { background-color: var(--text) !important; }

  .nav { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; background: var(--bg) !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease !important; z-index: 1000 !important; }
  .site-header.menu-open .nav { opacity: 1 !important; visibility: visible !important; }
  .nav__list { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; align-items: center !important; padding: 0 !important; }
  .nav__link { color: var(--text) !important; font-size: 1.3rem !important; font-weight: 500 !important; }
  .brand { position: relative; z-index: 1002 !important; display: flex !important; }
  .hero { padding-top: 0 !important; flex-direction: column !important; min-height: 100vh !important; }
  .hero__media { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 75vh !important; order: -1 !important; clip-path: none !important; z-index: 0 !important; }
  .hero__media::after { background: linear-gradient(180deg, rgba(32,42,40,0.1) 0%, rgba(32,42,40,0.7) 50%, #202A28 100%) !important; }
  .hero__inner { position: relative !important; z-index: 2 !important; padding-top: 60vh !important; padding-inline: 5vw !important; padding-bottom: 4rem !important; display: block !important; }
  .hero__content { width: 100% !important; max-width: 100% !important; text-align: center !important; align-items: center !important; }
  
  .about-summary, .jeddah-block, .quality-grid, .quote-wrap, .contact-grid { grid-template-columns: 1fr !important; }
  .jeddah-block__media { order: -1; }
  .services-grid, .portfolio-grid, .why-grid, .footer-grid, .footer-top { grid-template-columns: 1fr !important; }
  .form-row--2, .form-row { grid-template-columns: 1fr !important; }
  .timeline::before { inset-inline-start: 18px; }
  .tl-step { padding-inline-start: 3.5rem; }
  .tl-step__num { width: 38px; height: 38px; font-size: 1.1rem; }
  .timeline-modern::before { inset-inline-start: 24px; }
  .tl-icon { width: 48px; height: 48px; font-size: 1.1rem; }
  .tl-item { gap: 1rem; }
  .tl-content { padding: 1.5rem; }
  .floating { right: 16px; bottom: 16px; }
  .floating__btn { width: 52px; height: 52px; }
  
  .footer-top { text-align: center; gap: 3rem; }
  .footer-brand-col { display: flex; flex-direction: column; align-items: center; }
  .footer-links-col a, .footer-contact-col a { justify-content: center; }
}

/* ============================================================
   20. HEADER COLORS (Smart Fix for Light/Dark Modes)
   ============================================================ */
.site-header .brand__name, .site-header .nav__link, .site-header .icon-btn, .site-header .lang-toggle { color: #F4F0E7; }
.site-header .brand__sub { color: #c1c7be; }
.site-header .burger span { background-color: #F4F0E7; }
.site-header .lang-toggle { border-color: rgba(244,240,231,.3); }
.site-header .brand__mark { border-color: rgba(244,240,231,.3); }

[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .brand__name,
[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .nav__link,
[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .icon-btn,
[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle { color: var(--text) !important; }
[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .brand__sub { color: var(--text-muted) !important; }
[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .burger span { background-color: var(--text) !important; }
[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle { border-color: var(--border-strong) !important; }
[data-theme="light"] .site-header:not(.is-scrolled):not(.menu-open) .brand__mark { border-color: var(--border-strong) !important; }

.site-header.is-scrolled .brand__name, .site-header.is-scrolled .nav__link, .site-header.is-scrolled .icon-btn, .site-header.is-scrolled .lang-toggle, .site-header.menu-open .brand__name, .site-header.menu-open .nav__link, .site-header.menu-open .icon-btn, .site-header.menu-open .lang-toggle { color: var(--text) !important; }
.site-header.is-scrolled .brand__sub, .site-header.menu-open .brand__sub { color: var(--text-muted) !important; }
.site-header.is-scrolled .burger span, .site-header.menu-open .burger span { background-color: var(--text) !important; }
.site-header.is-scrolled .lang-toggle, .site-header.menu-open .lang-toggle { border-color: var(--border-strong) !important; }
.site-header.is-scrolled .brand__mark, .site-header.menu-open .brand__mark { border-color: var(--border-strong) !important; }

/* ============================================================
   21. INNER PAGES STYLES
   ============================================================ */
.page-hero { position: relative; padding-top: calc(var(--header-h) + 7rem); padding-bottom: 7rem; text-align: center; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; border-bottom: none; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(32,42,40,0.7), rgba(32,42,40,0.95)); z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow-line { justify-content: center; }
.page-hero .section__title { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .eyebrow-line, .page-hero .section__title, .page-hero .section__lede { color: #F4F0E7 !important; }
.page-hero .eyebrow-line::before { background: #84978A !important; }

/* About Page Green Shadow Fix */
.page-hero.about-hero::before { background: linear-gradient(to bottom, rgba(32, 42, 40, 0.6), rgba(42, 54, 48, 0.95)) !important; }
[data-theme="light"] .page-hero.about-hero::before { background: linear-gradient(to bottom, rgba(244, 240, 231, 0.7), rgba(132, 151, 138, 0.9)) !important; }
[data-theme="light"] .page-hero.about-hero .eyebrow-line, [data-theme="light"] .page-hero.about-hero .section__title, [data-theme="light"] .page-hero.about-hero .section__lede { color: var(--text) !important; }
[data-theme="light"] .page-hero.about-hero .eyebrow-line::before { background-color: var(--text) !important; }
.about-summary__media { border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.2); aspect-ratio: 4/3; }
.about-summary__media img { object-fit: cover; width: 100%; height: 100%; }

.content-block { max-width: 850px; margin-inline: auto; }
.content-block h2 { font-size: 1.8rem; font-weight: 500; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text); }
.content-block h3 { font-size: 1.3rem; font-weight: 500; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--accent); }
.content-block p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 1.25rem; }
.content-block ul { list-style: disc; padding-inline-start: 1.5rem; margin-bottom: 1.5rem; }
.content-block li { font-size: 1.05rem; color: var(--text-muted); line-height: 1.9; margin-bottom: 0.5rem; }
.vmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.vmv-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 1.5rem; text-align: center; transition: transform 0.3s ease, border-color 0.3s ease; }
.vmv-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.vmv-card__icon { width: 60px; height: 60px; margin: 0 auto 1.5rem; background: rgba(132,151,138,0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.vmv-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.vmv-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }

/* Contact Page Background Overlays */
.page-hero:not(.about-hero)::before { background: linear-gradient(to bottom, rgba(32, 42, 40, 0.3), rgba(32, 42, 40, 0.85)) !important; }
[data-theme="light"] .page-hero:not(.about-hero)::before { background: linear-gradient(to bottom, rgba(244, 240, 231, 0.4), rgba(235, 230, 216, 0.85)) !important; }
[data-theme="light"] .page-hero:not(.about-hero) .eyebrow-line, [data-theme="light"] .page-hero:not(.about-hero) .section__title, [data-theme="light"] .page-hero:not(.about-hero) .section__lede { color: var(--text) !important; }
[data-theme="light"] .page-hero:not(.about-hero) .eyebrow-line::before { background-color: var(--text) !important; }

/* Services Page Zig-Zag */
.services-premium { padding-block: clamp(4rem, 8vw, 8rem); background: var(--bg); }
.service-block { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; margin-bottom: clamp(5rem, 10vw, 10rem); position: relative; }
.service-block:last-child { margin-bottom: 0; }
.service-block:nth-child(even) .service-block__visual { order: -1; }
.service-block__visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.service-block__visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-block:hover .service-block__visual img { transform: scale(1.05); }
.service-block__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32,42,40,0.4) 0%, transparent 100%); }
.service-badge { position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; background: var(--accent); color: var(--btn-primary-text); padding: 0.5rem 1.2rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9rem; z-index: 2; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.service-block__content { display: flex; flex-direction: column; }
.service-block__content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--text); margin-bottom: 1.2rem; line-height: 1.3; }
.service-block__content h2 span { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-size: 1.2em; margin-inline-end: 0.5rem; }
.service-block__content p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.9; margin-bottom: 2rem; }
.service-features { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 2rem; margin-bottom: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.service-features h4 { color: var(--text); font-size: 1.2rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.service-features h4 svg { color: var(--accent); }
.service-features ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.service-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.service-features li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.service-requirements { background: rgba(132, 151, 138, 0.08); border-inline-start: 4px solid var(--accent); padding: 1.5rem; border-radius: var(--radius-sm); }
.service-requirements h4 { color: var(--accent); font-size: 1.05rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.service-requirements p { color: var(--text); font-size: 0.95rem; margin-bottom: 0; line-height: 1.7; }

/* Projects Page Masonry */
.masonry-section { padding-block: clamp(3rem, 6vw, 6rem); }
.masonry-grid { column-count: 3; column-gap: 1.5rem; }
.masonry-item { display: block; break-inside: avoid; margin-bottom: 1.5rem; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--surface); box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.masonry-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.masonry-item img { width: 100%; height: auto; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.masonry-item:hover img { transform: scale(1.08); }
.masonry-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,26,24,0.95) 0%, rgba(20,26,24,0.4) 50%, transparent 100%); opacity: 0; transition: opacity 0.3s ease; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; z-index: 2; }
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay span.tag { display: inline-block; background: var(--accent); color: var(--btn-primary-text); font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; font-weight: 600; align-self: flex-start; transform: translateY(10px); transition: transform 0.3s ease; }
.masonry-overlay h4 { color: #fff; font-size: 1.1rem; font-weight: 500; margin: 0; transform: translateY(10px); transition: transform 0.3s ease 0.1s; }
.masonry-item:hover .masonry-overlay span.tag, .masonry-item:hover .masonry-overlay h4 { transform: translateY(0); }

/* Jeddah Contracting Page */
.hero-mega { position: relative; min-height: 100vh; display: flex; align-items: center; background-image: url('../images/jeddah-contracting-bg.webp') !important; background-size: cover !important; background-position: center !important; background-attachment: fixed; }
.hero-mega::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(32,42,40,0.95) 0%, rgba(32,42,40,0.7) 50%, rgba(32,42,40,0.3) 100%); z-index: 1; }
.hero-mega .container { position: relative; z-index: 2; text-align: center; padding-top: var(--header-h); }
.hero-mega h1 { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-mega h1 span { color: var(--accent); }
.hero-mega p { font-size: 1.3rem; color: #e0e0e0; max-width: 800px; margin: 0 auto 3rem; line-height: 1.8; }
.stats-mega { background: var(--surface); padding-block: 4rem; border-bottom: 1px solid var(--border); }
.stats-grid-mega { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-item h3 { font-family: var(--font-serif); font-size: 4rem; font-style: italic; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.stat-item p { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.neighborhoods-section { padding-block: 5rem; }
.neighborhood-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 3rem; }
.neighborhood-tags span { background: var(--bg-alt); border: 1px solid var(--border); padding: 0.8rem 1.5rem; border-radius: var(--radius-pill); font-size: 1.1rem; color: var(--text); transition: var(--transition); cursor: default; }
.neighborhood-tags span:hover { background: var(--accent); color: var(--btn-primary-text); border-color: var(--accent); transform: translateY(-3px); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; position: relative; }
.testimonial-card::before { content: "”"; position: absolute; top: 1rem; inset-inline-end: 2rem; font-size: 6rem; color: var(--accent); opacity: 0.1; font-family: var(--font-serif); line-height: 1; }
.testimonial-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 50px; height: 50px; background: var(--accent); color: var(--btn-primary-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.author-info h4 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.2rem; }
.author-info span { color: var(--accent); font-size: 0.9rem; }
.showcase-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-block: 6rem; }
.showcase-block:nth-child(even) .showcase-img { order: -1; }
.showcase-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); aspect-ratio: 4/3; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.showcase-block:hover .showcase-img img { transform: scale(1.05); }
.showcase-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.5rem; color: var(--text); }
.showcase-content h2 span { color: var(--accent); }
.showcase-content p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.9; margin-bottom: 2rem; }
.showcase-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.showcase-list li { display: flex; align-items: center; gap: 1rem; color: var(--text); font-weight: 500; margin-bottom: 1rem; }
.showcase-list svg { color: var(--accent); flex: none; }

/* 22. FOOTER FIXES (Light Mode) */
.site-footer { background: #141A18 !important; padding-top: 5rem; border-top: 1px solid rgba(255,255,255,0.05); }
[data-theme="light"] .site-footer { background: #EBE6D8 !important; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
[data-theme="light"] .footer-top { border-bottom-color: rgba(0,0,0,0.1); }
.footer-brand-col .brand__mark { color: var(--text-muted) !important; border-left-color: rgba(255,255,255,0.2) !important; }
.footer-badge { display: inline-flex; align-items: center; padding: 0.6rem 1rem; background: transparent; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-muted); }
[data-theme="light"] .footer-badge { border-color: rgba(0,0,0,0.15); }
.footer-badge strong { color: var(--text); margin-inline-start: 5px; }
.footer-links-col h4, .footer-contact-col h4 { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 1.5rem; }
.footer-links-col ul, .footer-contact-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-links-col a, .footer-contact-col a { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-size: 0.95rem; transition: color 0.3s; }
.footer-links-col a:hover, .footer-contact-col a:hover { color: var(--accent); }
.footer-copyright { text-align: center; padding-block: 1.5rem; font-size: 0.9rem; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,0.05); }
[data-theme="light"] .footer-copyright { border-bottom-color: rgba(0,0,0,0.1); }
.footer-developer { display: flex; justify-content: center; align-items: center; gap: 1rem; padding-block: 2rem; flex-wrap: wrap; }
.dev-icons { display: flex; gap: 0.5rem; }
.dev-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.dev-icon:hover { transform: translateY(-3px); }
.dev-icon--call { border: 1px solid var(--text-muted); color: var(--text-muted); }
.dev-icon--wa { background: #25D366; color: #fff; }
.dev-text { font-size: 0.9rem; color: var(--text-muted); }
.dev-text strong { color: var(--text); font-weight: 500; }
[data-theme="light"] .footer-col h3, [data-theme="light"] .footer-col a, [data-theme="light"] .footer-bottom span { color: var(--text) !important; }

/* 23. FINAL RESPONSIVE FIXES */
@media (max-width: 992px) {
  .showcase-block { grid-template-columns: 1fr; gap: 2rem; margin-block: 4rem; }
  .showcase-block:nth-child(even) .showcase-img { order: 0; }
  .masonry-grid { column-count: 2; }
  .service-block { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
  .service-block:nth-child(even) .service-block__visual { order: 0; }
  .service-features ul { grid-template-columns: 1fr; }
  .vmv-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .footer-brand-col { display: flex; flex-direction: column; align-items: center; }
  .footer-links-col a, .footer-contact-col a { justify-content: center; }
}

@media (max-width: 600px) {
  .masonry-grid { column-count: 1; }
  .footer-bottom > div { flex-direction: column; text-align: center; gap: 1.5rem; }
}
/* =========================================================
   إصلاح إجباري: جعل نصوص الهيدر بيضاء فوق صورة الهيرو الداكنة
   (سواء كنت في الوضع الفاتح أو الداكن قبل التمرير)
   ========================================================= */
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .brand__name,
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .nav__link,
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .icon-btn,
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle {
  color: #F4F0E7 !important;
}
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .brand__sub { 
  color: #c1c7be !important; 
}
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .burger span { 
  background-color: #F4F0E7 !important; 
}
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle { 
  border-color: rgba(244,240,231,.3) !important; 
}
body:has(.hero) .site-header:not(.is-scrolled):not(.menu-open) .brand__mark { 
  border-color: rgba(244,240,231,.3) !important; 
}
/* =========================================================
   Text Animations (Fade-In-Up for Hero Section)
   ========================================================= */

@keyframes fadeUpText {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تطبيق الحركة على نصوص الهيرو بالتتابع */
.hero .eyebrow {
  animation: fadeUpText 1s ease-out 0.1s both;
}

.hero__title {
  animation: fadeUpText 1s ease-out 0.3s both;
}

.hero__text {
  animation: fadeUpText 1s ease-out 0.5s both;
}

.hero__actions {
  animation: fadeUpText 1s ease-out 0.7s both;
}

.hero__badge {
  animation: fadeUpText 1s ease-out 0.9s both;
}