/* ============================================================
   ZAI — Zimam Al Imran — stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --bg: #0E0E0F;
  --bg-alt: #131315;
  --bg-input: #161618;
  --bg-card: #1A1A1C;
  --bg-nav-hover: #161618;
  --bg-row-hover: #191A1C;

  --border: #232326;
  --border-alt: #2C2C30;
  --border-strong: #3A3A3E;

  --text: #E8E5E0;
  --text-dim: #B5AFA7;
  --text-dimmer: #A8A39C;
  --text-mute: #8E8A84;
  --text-mute-2: #716E69;
  --text-mute-3: #5E5B57;

  --accent: #B3200D;
  --accent-dark: #8E2118;
  --accent-link: #C8503F;

  --footer-bg: #8E2118;
  --footer-text: #FFF;
  --footer-text-dim: #E5C9C4;

  --font-ar: 'Tajawal', system-ui, sans-serif;
  --font-en: 'Archivo', sans-serif;
}

/* ---------- Reset ---------- */
html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; }
a { color: var(--accent-link); text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar), sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introVeil { 0%, 84% { opacity: 1; } 100% { opacity: 0; } }
@keyframes introWord { 0% { opacity: 0; transform: translateY(20px); } 11% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-78vw); } }
@keyframes introRule { 0% { transform: scaleX(0); } 14% { transform: scaleX(1); } 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes heroDrift { 0% { transform: translateY(5%); opacity: 0; } 18% { opacity: 1; } 74% { opacity: 1; } 100% { transform: translateY(-5%); opacity: 0; } }
@keyframes introMark { 0% { opacity: 0; transform: translateY(34px) scale(1.03); } 16% { opacity: .22; transform: none; } 80% { opacity: .22; transform: none; } 100% { opacity: 0; transform: translateX(86vw) scale(1.06); } }

/* ---------- Utilities ---------- */
.container { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-family: var(--font-en); font-size: 11px; letter-spacing: .26em; color: var(--accent-dark); margin-bottom: 22px; text-align: right; }
.hidden { display: none !important; }
.page { display: none; }
.page.is-active { display: block; }

/* ============================================================
   Intro overlay
   ============================================================ */
.intro-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: 24px;
  overflow: hidden;
  cursor: pointer;
  animation: introVeil 5s cubic-bezier(.6,0,.2,1) both;
}
.intro-overlay.is-replaying { animation-name: introVeil; }

.intro-word {
  animation: introWord 5s cubic-bezier(.6,0,.2,1) both;
  text-align: center;
}
.intro-logo-row {
  direction: ltr;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin-bottom: clamp(22px, 3vw, 42px);
}
.intro-bars {
  position: relative;
  display: flex; align-items: flex-end; gap: clamp(5px, .7vw, 9px);
  padding-top: clamp(15px, 2vw, 27px);
  padding-right: clamp(17px, 2.3vw, 30px);
}
.intro-bars .bar { width: clamp(15px, 2vw, 28px); background: var(--text); }
.intro-bars .bar-1 { height: clamp(25px, 3.4vw, 46px); }
.intro-bars .bar-2 { height: clamp(38px, 5.1vw, 70px); }
.intro-bars .bar-3 { height: clamp(52px, 7vw, 96px); }
.intro-bars .dot {
  position: absolute; top: 0; right: 0;
  width: clamp(11px, 1.5vw, 21px); height: clamp(11px, 1.5vw, 21px);
  background: var(--accent);
}
.intro-wordmark {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(46px, 7.4vw, 104px);
  letter-spacing: .04em; line-height: .86;
}
.intro-title-ar {
  font-size: clamp(30px, 5.2vw, 72px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.01em; white-space: nowrap;
}
.intro-title-en {
  font-family: var(--font-en); font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: .34em; color: var(--text-mute-2); margin-top: 18px;
}
.intro-rule {
  width: min(340px, 54vw); height: 2px; background: var(--accent);
  transform-origin: right;
  animation: introRule 5s cubic-bezier(.6,0,.2,1) both;
}
.intro-watermark {
  width: min(1440px, 94vw, calc(38vh * 2.515));
  aspect-ratio: 654 / 260; height: auto; object-fit: contain; display: block;
  filter: invert(1) grayscale(1) contrast(1.3);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
  animation: introMark 5s cubic-bezier(.6,0,.2,1) both;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 15, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand-btn { direction: ltr; display: flex; align-items: center; gap: 16px; padding: 0; }
.brand-btn:hover { opacity: .72; }
.brand-mark { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 38px; width: 42px; }
.brand-mark .bar { width: 8px; background: var(--text); }
.brand-mark .bar-1 { height: 14px; }
.brand-mark .bar-2 { height: 22px; }
.brand-mark .bar-3 { height: 30px; }
.brand-mark .dot { position: absolute; top: 0; left: 34px; width: 6px; height: 6px; background: var(--accent); }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-en { font-family: var(--font-en); font-weight: 700; font-size: 23px; letter-spacing: .06em; line-height: 1; text-align: left; }
.brand-ar { font-size: 12px; font-weight: 500; color: var(--text-mute); line-height: 1; }

.main-nav { display: flex; align-items: stretch; gap: 4px; height: 88px; }
.nav-link {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 0 18px;
}
.nav-link:hover { background: var(--bg-nav-hover); }
.nav-link-title { font-size: 16px; font-weight: 500; }
.nav-link-sub { font-family: var(--font-en); font-size: 9px; letter-spacing: .18em; color: var(--text-mute-2); text-align: right; }
.nav-indicator {
  position: absolute; bottom: 0; right: 18px; left: 18px; height: 2px;
  background: var(--accent); transform-origin: right;
  animation: draw .45s ease both;
  display: none;
}
.nav-link.is-active .nav-indicator { display: block; }
.nav-contact-btn {
  position: relative; display: flex; align-items: center;
  margin-right: 14px; padding: 0 26px;
  background: var(--accent-dark); font-size: 16px; font-weight: 500;
}
.nav-contact-btn:hover { background: var(--accent); }

/* ---------- Hamburger Menu ---------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  margin-right: auto;
}
.hamburger-line {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.mobile-menu-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.mobile-menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ============================================================
   Shared section bits
   ============================================================ */
.page-header { border-bottom: 1px solid var(--border); }
.page-header .container { padding: 96px 40px 72px; }
.page-header .eyebrow { animation: fade .6s ease both; }
.page-title {
  margin: 0; font-size: clamp(42px, 6vw, 88px); font-weight: 800; line-height: 1.05;
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.page-lede { margin: 26px 0 0; font-size: 18px; line-height: 1.8; color: var(--text-dimmer); max-width: 56ch; }
.page-lede-en {
  font-family: var(--font-en); margin: 12px 0 0; font-size: 15px; line-height: 1.7;
  color: var(--text-mute-2); max-width: 60ch; text-align: right;
}
.contact-subeyebrow {
  margin-top: 20px; font-family: var(--font-en); font-size: 13px;
  letter-spacing: .24em; color: var(--text-mute); text-align: right;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-title { margin: 0; font-size: clamp(32px, 4vw, 58px); font-weight: 800; line-height: 1.1; }
.section-link {
  font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--border-strong); padding-bottom: 6px;
}
.section-link:hover { border-color: var(--accent); }

/* ============================================================
   Home
   ============================================================ */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media {
  position: absolute; inset: -6% 0;
  animation: heroDrift 9s cubic-bezier(.4,0,.6,1) infinite;
  will-change: transform, opacity;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--bg) 4%, rgba(14,14,15,.86) 38%, rgba(14,14,15,.45) 100%);
}
.hero-content { position: relative; padding: 0 40px 88px; width: 100%; pointer-events: none; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; animation: fade .8s ease both; }
.hero-eyebrow-line { width: 34px; height: 2px; background: var(--accent); }
.hero-eyebrow-text { font-family: var(--font-en); font-size: 11px; letter-spacing: .28em; color: var(--text-dim); text-align: right; }
.hero-title {
  margin: 0; font-size: clamp(40px, 6.4vw, 96px); font-weight: 800; line-height: 1.06; letter-spacing: -.01em;
  max-width: 15ch; text-wrap: balance;
  animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero-sub {
  font-family: var(--font-en); margin: 26px 0 0; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.6;
  color: var(--text-dim); max-width: 52ch; text-align: right;
  animation: rise .8s .12s cubic-bezier(.2,.7,.2,1) both;
}

.stats-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { padding: 38px 0; }
.stat-num { font-family: var(--font-en); font-size: 40px; font-weight: 600; line-height: 1; color: var(--text); text-align: right; }
.stat-label-ar { margin-top: 10px; font-size: 15px; color: var(--text-mute); }
.stat-label-en { font-family: var(--font-en); font-size: 9px; letter-spacing: .2em; color: var(--text-mute-3); margin-top: 3px; text-align: right; }

.about-section { padding: 110px 40px 100px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.about-lead { margin: 0; font-size: clamp(22px, 2.1vw, 31px); font-weight: 500; line-height: 1.62; color: var(--text); text-wrap: pretty; }
.about-lead-en {
  font-family: var(--font-en); margin: 28px 0 0; font-size: 16px; line-height: 1.72;
  color: var(--text-mute); max-width: 64ch; text-align: right;
}
.about-cta {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border: 1px solid var(--border-strong); font-size: 15px; font-weight: 500;
}
.about-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.about-cta-en { font-family: var(--font-en); font-size: 10px; letter-spacing: .2em; color: var(--text-dim); text-align: right; }
.about-side { border-right: 2px solid var(--accent-dark); padding-right: 34px; }
.about-side p { margin: 0; font-size: 17px; line-height: 1.95; color: var(--text-dimmer); text-wrap: pretty; }
.about-side p + p { margin-top: 22px; }

.services-preview { background: var(--bg-alt); border-top: 1px solid var(--border); }
.services-preview .container { padding: 100px 40px; }
.service-list { display: grid; gap: 0; }
.service-row {
  display: grid; grid-template-columns: 78px minmax(0,1fr) minmax(0,1fr);
  gap: 28px; align-items: baseline; text-align: right;
  padding: 30px 12px; border-top: 1px solid var(--border); width: 100%;
}
.service-row:hover { background: var(--bg-row-hover); }
.service-list .service-row:last-child { border-bottom: 1px solid var(--border); }
.service-num { font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--accent-dark); text-align: right; }
.service-name { font-size: 22px; font-weight: 500; }
.service-en { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: var(--text-mute-2); text-align: right; }

.projects-preview { padding: 100px 40px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project-card { text-align: right; padding: 0; display: flex; flex-direction: column; gap: 20px; width: 100%; }
.project-card-media { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--bg-card); overflow: hidden; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card-title { font-size: 21px; font-weight: 700; }
.project-card-sub { font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; color: var(--text-mute-2); margin-top: 7px; text-align: right; }

/* ============================================================
   Company
   ============================================================ */
.company-intro { padding: 80px 40px 96px; }
.company-intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 72px; align-items: start; }
.company-intro-ar { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.company-intro-ar p { margin: 0; font-size: 18px; line-height: 1.95; color: var(--text-dim); text-wrap: pretty; }
.company-intro-ar p + p { margin-top: 24px; }
.company-quote {
  margin: 32px 0 0; font-size: 21px; font-weight: 700; line-height: 1.8; color: var(--text);
  border-right: 2px solid var(--accent-dark); padding-right: 26px; text-wrap: pretty;
}
.company-intro-en {
  font-family: var(--font-en); background: var(--bg-alt); padding: 44px;
  animation: rise .7s .1s cubic-bezier(.2,.7,.2,1) both; text-align: left;
}
.company-intro-en .label { font-size: 10px; letter-spacing: .24em; color: var(--text-mute-2); margin-bottom: 26px; }
.company-intro-en p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-mute); }
.company-intro-en p + p { margin-top: 20px; }
.company-intro-en p.lead { margin-top: 24px; font-size: 16px; font-weight: 600; line-height: 1.7; color: #D6D2CC; }

.vmg-section { background: var(--bg-alt); border-top: 1px solid var(--border); }
.vmg-section .container { padding: 96px 40px; }
.vmg-section .section-title { margin: 0 0 60px; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.08; }
.vmg-row {
  display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 44px;
  padding: 44px 0; align-items: start;
}
.vmg-row.is-first { border-top: 2px solid var(--text); }
.vmg-row.is-mid { border-top: 1px solid var(--border-alt); }
.vmg-row.is-last { border-top: 1px solid var(--border-alt); border-bottom: 2px solid var(--text); }
.vmg-label-en { font-family: var(--font-en); font-size: 19px; font-weight: 700; letter-spacing: .1em; text-align: right; }
.vmg-label-ar { font-size: 16px; color: var(--text-mute); margin-top: 6px; }
.vmg-body p { margin: 0; font-size: clamp(20px, 2vw, 27px); font-weight: 500; line-height: 1.7; text-wrap: pretty; }
.vmg-body p.en {
  font-family: var(--font-en); margin: 18px 0 0; font-size: 15px; font-weight: 400; line-height: 1.75;
  color: var(--text-mute); text-align: right;
}

/* ============================================================
   Services page
   ============================================================ */
.services-list { padding: 0 40px 110px; }
.service-article {
  display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 40px;
  padding: 56px 0; border-bottom: 1px solid var(--border);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.service-article-num { font-family: var(--font-en); font-size: 52px; font-weight: 600; line-height: .9; color: var(--accent-dark); text-align: right; }
.service-article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; align-items: start; }
.service-article-title { margin: 0; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.35; }
.service-article-desc { margin: 18px 0 0; font-size: 17px; line-height: 1.9; color: var(--text-dimmer); text-wrap: pretty; }
.service-article-en {
  font-family: var(--font-en); border-right: 1px solid var(--border-alt); padding-right: 34px; text-align: left;
}
.service-article-en .label { font-size: 11px; letter-spacing: .2em; color: var(--text-mute-2); margin-bottom: 14px; }
.service-article-en p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-mute); }

/* ============================================================
   Projects page
   ============================================================ */
.projects-list-section { padding: 72px 40px 110px; }
.projects-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 34px; }
.project-card-lg {
  text-align: right; padding: 0; display: flex; flex-direction: column; gap: 22px; width: 100%;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.project-card-lg-media { position: relative; width: 100%; aspect-ratio: 3/2; background: var(--bg-card); overflow: hidden; }
.project-card-lg-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card-lg-title { font-size: 23px; font-weight: 700; }
.project-card-lg-sub { font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; color: var(--text-mute-2); margin-top: 8px; text-align: right; }
.project-card-lg-desc { font-size: 15px; color: var(--text-mute); margin-top: 12px; }
.project-card-lg-link { margin-top: 16px; font-size: 14px; color: var(--accent-link); }

.detail-header { border-bottom: 1px solid var(--border); }
.detail-header .container { padding: 44px 40px 64px; }
.detail-back { font-size: 15px; color: var(--text-dimmer); margin-bottom: 44px; }
.detail-back:hover { color: var(--text); }
.detail-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.detail-title { margin: 0; font-size: clamp(34px, 4.8vw, 68px); font-weight: 800; line-height: 1.08; max-width: 20ch; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.detail-title-en { font-family: var(--font-en); font-size: 12px; letter-spacing: .22em; color: var(--text-mute); padding-bottom: 10px; text-align: right; }

.detail-meta-section { padding: 56px 40px 0; }
.detail-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px;
  background: var(--border); border: 1px solid var(--border);
}
.detail-meta-item { background: var(--bg); padding: 26px 24px; }
.detail-meta-label { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; color: var(--text-mute-2); text-align: right; }
.detail-meta-value { font-size: 17px; font-weight: 500; margin-top: 10px; }
.detail-body { margin: 44px 0 0; font-size: clamp(19px, 1.9vw, 26px); font-weight: 500; line-height: 1.75; max-width: 44ch; text-wrap: pretty; }

.detail-gallery-section { padding: 56px 40px 110px; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.detail-gallery-item { position: relative; aspect-ratio: 4/3; background: var(--bg-card); overflow: hidden; }
.detail-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Contact
   ============================================================ */
.contact-section { padding: 76px 40px 110px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 80px; align-items: start; }

.contact-form { display: grid; gap: 26px; }
.form-field { display: grid; gap: 9px; }
.form-row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; }
.form-label { font-size: 14px; color: var(--text-mute); }
.form-label-en { font-family: var(--font-en); font-size: 10px; letter-spacing: .18em; color: var(--text-mute-3); text-align: right; }
.form-input {
  background: var(--bg-input); border: 1px solid var(--border-alt); color: var(--text);
  padding: 15px 16px; font-size: 16px; font-family: var(--font-ar);
}
.form-input:focus { border-color: var(--accent-dark); outline: none; }
.form-input.en { font-family: var(--font-en); text-align: left; }
textarea.form-input { resize: vertical; }
.form-submit { justify-self: start; background: var(--accent-dark); padding: 18px 40px; font-size: 16px; font-weight: 600; }
.form-submit:hover { background: var(--accent); }

.contact-success { border: 1px solid var(--accent-dark); padding: 44px; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.contact-success-rule { width: 34px; height: 2px; background: var(--accent); margin-bottom: 24px; }
.contact-success-title { font-size: 26px; font-weight: 700; line-height: 1.5; }
.contact-success-sub { font-family: var(--font-en); font-size: 15px; color: var(--text-mute); margin-top: 14px; text-align: right; }
.contact-success-reset { margin-top: 30px; font-size: 15px; border-bottom: 1px solid var(--border-strong); padding-bottom: 5px; }
.contact-success-reset:hover { border-color: var(--accent); }

.contact-info-list { display: grid; gap: 0; border-top: 2px solid var(--text); }
.contact-info-row { padding: 26px 0; border-bottom: 1px solid var(--border-alt); }
.contact-info-list .contact-info-row:last-child { border-bottom: 2px solid var(--text); }
.contact-info-label { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; color: var(--text-mute-2); text-align: right; }
.contact-info-value {
  display: block; font-family: var(--font-en); font-size: 22px; font-weight: 600;
  margin-top: 10px; color: var(--text); text-align: right;
}
.contact-info-value:hover { color: var(--accent-link); }
.contact-info-value.plain { font-size: 20px; font-weight: 500; font-family: var(--font-ar); }

.certs-box { margin-top: 48px; background: var(--bg-alt); padding: 34px; }
.certs-label { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; color: var(--text-mute-2); margin-bottom: 22px; text-align: right; }
.certs-list { display: grid; gap: 16px; }
.certs-row { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.certs-row .k { font-size: 16px; }
.certs-row .v { font-size: 15px; color: var(--text-dimmer); }
.certs-row .v.en { font-family: var(--font-en); text-align: right; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--border); }
.site-footer .container { padding: 76px 40px 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; align-items: flex-start; }
.footer-mark { position: relative; direction: ltr; display: flex; align-items: flex-end; gap: 5px; height: 46px; width: 52px; margin-bottom: 26px; }
.footer-mark .bar { background: #F2F0EC; }
.footer-mark .bar-1 { width: 10px; height: 17px; }
.footer-mark .bar-2 { width: 10px; height: 26px; }
.footer-mark .bar-3 { width: 10px; height: 36px; }
.footer-mark .dot { position: absolute; top: 0; left: 42px; width: 7px; height: 7px; background: #1A1A1C; }
.footer-tagline { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.6; max-width: 22ch; }
.footer-tagline-en { font-family: var(--font-en); font-size: 15px; color: var(--footer-text-dim); margin-top: 14px; max-width: 44ch; text-align: right; }
.footer-col { display: grid; gap: 14px; }
.footer-col-label { font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; color: var(--footer-text-dim); text-align: right; }
.footer-contact-link { font-family: var(--font-en); font-size: 17px; font-weight: 600; color: var(--footer-text); text-align: right; }
.footer-contact-link:hover { color: #1A1A1C; }
.footer-nav-link { text-align: right; font-size: 16px; color: var(--footer-text); }
.footer-nav-link:hover { color: #1A1A1C; }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(242,240,236,.25);
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
}
.footer-bottom-en { font-family: var(--font-en); font-size: 10px; letter-spacing: .2em; color: var(--footer-text-dim); text-align: right; }
.footer-bottom-ar { font-size: 13px; color: var(--footer-text-dim); }

/* ============================================================
   Responsive
   ============================================================ */

/* ---------- Mobile / Tablet (1024px and below) ---------- */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: auto;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    transition: max-height 0.3s ease;
    z-index: 40;
  }
  
  .main-nav.is-open {
    max-height: 400px;
    overflow-y: auto;
  }
  
  .nav-link {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-contact-btn {
    margin-right: 0;
    padding: 16px 20px;
    width: 100%;
    justify-content: flex-start;
    text-align: right;
    border-top: 1px solid var(--accent-dark);
  }
  
  .header-inner {
    position: relative;
    gap: 0;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .container,
  .header-inner,
  .page-header .container,
  .services-preview .container,
  .vmg-section .container,
  .site-footer .container { padding-left: 20px; padding-right: 20px; }

  .header-inner { height: auto; flex-direction: row; align-items: center; gap: 0; padding-top: 14px; }
  .brand-btn { align-self: auto; }
  .main-nav {
    height: auto; gap: 0; margin-top: 0;
    overflow-x: auto; scrollbar-width: none;
    border-top: 1px solid var(--border);
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; padding: 14px 14px; }
  .nav-link-sub { display: none; }
  .nav-indicator { right: 14px; left: 14px; }
  .nav-contact-btn { flex: 0 0 auto; margin-right: 0; padding: 14px 18px; }

  .hero { min-height: 62vh; }
  .hero-content { padding: 0 20px 48px; }
  .hero-eyebrow-text { font-size: 10px; letter-spacing: .2em; }

  .stat { padding: 26px 0; }
  .stats-grid .stat + .stat { border-top: 1px solid var(--border); }

  .about-section { padding: 64px 20px 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-side { border-right: none; border-top: 2px solid var(--accent-dark); padding-right: 0; padding-top: 26px; }

  .services-preview .container { padding-top: 64px; padding-bottom: 64px; }
  .service-row { grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 22px 0; }
  .service-name { font-size: 19px; }
  .service-en { grid-column: 2; }

  .projects-preview { padding: 64px 20px; }
  .projects-grid,
  .projects-page-grid { grid-template-columns: 1fr; gap: 32px; }

  .page-header .container { padding-top: 56px; padding-bottom: 40px; }
  .page-lede { font-size: 16px; }

  .company-intro { padding: 48px 20px 64px; }
  .company-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .company-intro-ar p { font-size: 16px; line-height: 1.85; }
  .company-quote { font-size: 18px; padding-right: 18px; }
  .company-intro-en { padding: 28px; }

  .vmg-section .container { padding-top: 64px; padding-bottom: 64px; }
  .vmg-section .section-title { margin-bottom: 36px; }
  .vmg-row { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; }

  .services-list { padding: 0 20px 72px; }
  .service-article { grid-template-columns: 1fr; gap: 18px; padding: 40px 0; }
  .service-article-num { font-size: 34px; }
  .service-article-grid { grid-template-columns: 1fr; gap: 26px; }
  .service-article-en { border-right: none; border-top: 1px solid var(--border-alt); padding-right: 0; padding-top: 22px; }

  .projects-list-section { padding: 48px 20px 72px; }

  .detail-header .container { padding: 28px 20px 40px; }
  .detail-back { margin-bottom: 28px; }
  .detail-meta-section { padding: 36px 20px 0; }
  .detail-meta-grid { grid-template-columns: 1fr; }
  .detail-meta-item { padding: 20px; }
  .detail-body { margin-top: 32px; }
  .detail-gallery-section { padding: 36px 20px 72px; }
  .detail-gallery { grid-template-columns: 1fr; gap: 16px; }

  .contact-section { padding: 48px 20px 72px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-success { padding: 28px; }
  .contact-info-value { font-size: 19px; }
  .certs-box { padding: 24px; }
  .certs-row { flex-direction: column; gap: 4px; align-items: stretch; }

  .site-footer .container { padding: 56px 20px 32px; }
  .footer-top { gap: 36px; }
  .footer-bottom { margin-top: 40px; }

  .intro-overlay { padding: 20px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .container,
  .header-inner,
  .page-header .container,
  .services-preview .container,
  .vmg-section .container,
  .site-footer .container { padding-left: 28px; padding-right: 28px; }

  .main-nav { gap: 0; }
  .nav-link { padding: 0 12px; }
  .nav-link-sub { display: none; }
  .nav-contact-btn { padding: 0 20px; margin-right: 8px; }

  .hero-content { padding: 0 28px 64px; }

  .about-section { padding: 80px 28px 72px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-side { border-right: none; border-top: 2px solid var(--accent-dark); padding-right: 0; padding-top: 28px; }

  .projects-preview { padding: 80px 28px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-list-section { padding: 56px 28px 88px; }
  .projects-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .service-row { grid-template-columns: 60px minmax(0,1fr) minmax(0,1fr); gap: 20px; }

  .company-intro { padding: 64px 28px 80px; }
  .company-intro-grid { grid-template-columns: 1fr; gap: 48px; }

  .vmg-row { grid-template-columns: 150px minmax(0,1fr); gap: 32px; }

  .services-list { padding: 0 28px 88px; }
  .service-article { grid-template-columns: 80px minmax(0,1fr); gap: 28px; }
  .service-article-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-article-en { border-right: none; border-top: 1px solid var(--border-alt); padding-right: 0; padding-top: 22px; }

  .detail-header .container { padding: 36px 28px 52px; }
  .detail-meta-section { padding: 44px 28px 0; }
  .detail-gallery-section { padding: 44px 28px 88px; }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-section { padding: 60px 28px 88px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }

  .site-footer .container { padding: 64px 28px 36px; }
}

/* ---------- Narrow header fallback (between mobile and tablet) ---------- */
@media (min-width: 481px) and (max-width: 767px) {
  .container,
  .header-inner,
  .page-header .container,
  .services-preview .container,
  .vmg-section .container,
  .site-footer .container { padding-left: 20px; padding-right: 20px; }

  .main-nav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; padding: 0 10px; }
  .nav-link-sub { display: none; }
  .nav-contact-btn { flex: 0 0 auto; padding: 0 16px; margin-right: 6px; }

  .hero-content { padding: 0 20px 56px; }
  .about-section,
  .company-intro { padding-left: 20px; padding-right: 20px; }
  .about-grid,
  .company-intro-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-side { border-right: none; border-top: 2px solid var(--accent-dark); padding-right: 0; padding-top: 26px; }
  .projects-preview,
  .projects-list-section,
  .services-list,
  .contact-section,
  .detail-gallery-section { padding-left: 20px; padding-right: 20px; }
  .projects-grid,
  .projects-page-grid { grid-template-columns: 1fr; }
  .service-article-grid { grid-template-columns: 1fr; gap: 26px; }
  .service-article-en { border-right: none; border-top: 1px solid var(--border-alt); padding-right: 0; padding-top: 22px; }
  .detail-meta-section { padding-left: 20px; padding-right: 20px; }
  .vmg-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1025px) {
  .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .projects-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Large desktop / 4K ---------- */
@media (min-width: 1440px) {
  .container { max-width: 1560px; }
  .hero { min-height: 82vh; }
  .hero-content { padding-bottom: 104px; }
  .stat { padding: 46px 0; }
  .about-section { padding: 130px 40px 116px; }
  .about-grid { gap: 104px; }
  .services-preview .container,
  .vmg-section .container { padding-top: 116px; padding-bottom: 116px; }
  .projects-preview { padding: 116px 40px; }
  .projects-page-grid { gap: 40px; }
  .vmg-row { grid-template-columns: 240px minmax(0,1fr); gap: 56px; }
  .contact-grid { gap: 104px; }
}

/* ---------- No-JS fallback ---------- */
.no-js .page { display: block; }
.no-js .intro-overlay { display: none; }
