/* =========================================================
   ASAS ALPHA ENGINEERING CONSULTANTS — INTERIM PUBLIC SITE
   Base: GenSpark output, corrected per review pack 2026-08-16
   - Typeface: RB only (300 / 400 / 700), self-hosted
   - No external font, no external stylesheet, no tracker
   - Logical CSS properties only (inline-start / inline-end)
   - WCAG 2.1 AA contrast values from 01-audit-report appendix A
   ========================================================= */

/* ---------- RB TYPEFACE (self-hosted, identity folder) ---------- */
@font-face {
  font-family: 'RB';
  src: url('../fonts/rb-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RB';
  src: url('../fonts/rb-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RB';
  src: url('../fonts/rb-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- VARIABLES ---------- */
:root {
  /* Brand colours — unchanged from the audited source */
  --color-cream: #FDFBF7;
  --color-cream-deep: #F5F0E6;
  --color-charcoal: #1F1F1F;
  --color-charcoal-soft: #2A2A2A;
  --color-gold: #E5A93C;
  --color-gold-deep: #C8902A;
  --color-gold-soft: #F5D08A;

  /* Accessibility-corrected values (audit appendix A) */
  --color-gold-text: #8F6413;   /* gold used AS TEXT on light backgrounds */
  --color-gray: #6E6960;        /* secondary text  */
  --color-line: rgba(31, 31, 31, 0.08);
  --color-line-strong: #94886F; /* interactive borders (>= 3:1) */
  --focus-ring: #1F1F1F;

  /* Surfaces */
  --bg-primary: var(--color-cream);
  --bg-secondary: var(--color-cream-deep);
  --bg-dark: var(--color-charcoal);
  --text-primary: var(--color-charcoal);
  --text-secondary: var(--color-gray);
  --text-inverse: var(--color-cream);
  --border-color: var(--color-line);
  --border-strong: var(--color-line-strong);

  /* Typography — RB is the only family */
  --font-base: 'RB', 'Segoe UI', system-ui, sans-serif;

  /* Sizing */
  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 18px;

  /* Effects */
  --shadow-sm: 0 2px 12px rgba(31, 31, 31, 0.04);
  --shadow-md: 0 12px 40px rgba(31, 31, 31, 0.08);
  --shadow-lg: 0 30px 80px rgba(31, 31, 31, 0.12);
  --transition: 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] {
  --bg-primary: #121110;
  --bg-secondary: #1A1917;
  --bg-dark: #0A0908;
  --text-primary: #F5F0E6;
  --text-secondary: #A8A39A;
  --text-inverse: #1F1F1F;
  --border-color: rgba(245, 240, 230, 0.08);
  --border-strong: #8C867C;
  --focus-ring: #F5F0E6;
  --color-gold-text: #E5A93C;   /* passes 9.05 on the dark surface */
  --color-cream: #1A1917;
  --color-cream-deep: #121110;
  --color-charcoal: #F5F0E6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--color-gold); color: #1F1F1F; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0;      /* never track Arabic — it breaks the joins */
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

@media (min-width: 768px) { body { font-size: 16px; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- FOCUS VISIBILITY (WCAG 2.4.7) ---------- */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}
.hero :focus-visible,
.journey :focus-visible,
.footer :focus-visible,
.contact-info :focus-visible {
  outline-color: var(--color-gold);
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus {
  inset-inline-start: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-primary);
}

/* Latin-only strings may keep tracking; Arabic never does. */
.latin {
  letter-spacing: 0.1em;
  font-feature-settings: normal;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-gold-text);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  letter-spacing: 0;
}

.section-title .accent {
  color: var(--color-gold-text);
  font-weight: 700;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.75;
}

/* ---------- LAYOUT UTILITIES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(5rem, 10vw, 8rem);
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 720px;
}
.section-header.centered {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section-header.centered .section-subtitle { margin-inline: auto; }
.section-header.centered .eyebrow::before { display: none; }

/* Architectural ruler decoration (brand element) */
.ruler-decor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
}
.ruler-decor.start { inset-inline-start: 1.5rem; }
.ruler-decor.end { inset-inline-end: 1.5rem; }
.ruler-decor span { display: block; height: 1px; background: var(--color-gold); }
.ruler-decor span:nth-child(5n) { width: 14px; }
.ruler-decor span:not(:nth-child(5n)) { width: 7px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.875rem 2rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-charcoal);
  color: var(--color-cream);
}
.btn-primary:hover {
  background: var(--color-gold-deep);
  color: #1F1F1F;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-gold {
  background: var(--color-gold);
  color: #1F1F1F;
}
.btn-gold:hover {
  background: var(--color-gold-deep);
  color: #1F1F1F;
  transform: translateY(-2px);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}
[dir="ltr"] .btn .arrow { transform: rotate(180deg); }
.btn:hover .arrow { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .arrow { transform: rotate(180deg) translateX(-4px); }

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  padding-block: 1.25rem;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .navbar.scrolled { background: rgba(18, 17, 16, 0.94); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--text-primary);
}

.nav-brand .logo-mark {
  width: 30px;
  height: 46px;
  flex-shrink: 0;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.nav-brand .brand-ar {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-brand .brand-en {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-gold-text);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 400;
  position: relative;
  padding-block: 0.75rem;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--color-gold-text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.icon-btn:hover {
  background: var(--color-gold);
  color: #1F1F1F;
  border-color: var(--color-gold);
}
.icon-btn svg { width: 18px; height: 18px; }

.lang-toggle {
  min-width: 48px;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: all var(--transition-fast);
}
.lang-toggle:hover {
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-color: var(--color-charcoal);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Alpha floor is 0.62: at that value the brightest pixel of hero.jpg still
     leaves gold #E5A93C at 4.70:1 and cream at 9.48:1 — both above AA. */
  background: linear-gradient(135deg, rgba(31,31,31,0.9) 0%, rgba(31,31,31,0.75) 50%, rgba(31,31,31,0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-cream);
  max-width: 900px;
}
.hero-content .eyebrow { color: var(--color-gold); }
.hero-content .eyebrow::before { background: var(--color-gold); }

.hero-title {
  font-size: clamp(2rem, 6.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #FDFBF7;
  letter-spacing: 0;
}
.hero-title .gold { color: var(--color-gold); font-weight: 700; }

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(253, 251, 247, 0.92);
  max-width: 60ch;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

/* Google rating badge — values injected from one place in main.js */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(229, 169, 60, 0.6);
  border-radius: 100px;
  background: rgba(31, 31, 31, 0.55);
  color: #FDFBF7;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.rating-badge:hover {
  background: var(--color-gold);
  color: #1F1F1F;
  border-color: var(--color-gold);
}
.rating-badge .star { color: var(--color-gold); }
.rating-badge:hover .star { color: #1F1F1F; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.hero-actions .btn-outline {
  color: #FDFBF7;
  border-color: rgba(253, 251, 247, 0.5);
}
.hero-actions .btn-outline:hover {
  background: #FDFBF7;
  color: #1F1F1F;
}

/* Trust bar — licence / unified number / office / scope */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(253, 251, 247, 0.2);
}
.trust-item .label {
  font-size: 0.75rem;
  color: rgba(253, 251, 247, 0.7);
  margin-bottom: 0.375rem;
  line-height: 1.5;
}
.trust-item .value {
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: rgba(253, 251, 247, 0.6);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
[dir="rtl"] .hero-scroll { transform: translateX(50%); }
.hero-scroll .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.3); transform-origin: top; }
}

.hero-ruler {
  position: absolute;
  inset-inline-start: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.6;
  pointer-events: none;
}
.hero-ruler span { display: block; height: 1px; background: var(--color-gold); }
.hero-ruler span:nth-child(5n+1) { width: 24px; }
.hero-ruler span:not(:nth-child(5n+1)) { width: 12px; }

/* ---------- ABOUT ---------- */
.about { background: var(--bg-primary); position: relative; overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.about-image:hover img { transform: scale(1.05); }

.about-content .section-title { margin-bottom: 2rem; }

.about-text {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 60ch;
}
.about-text:last-of-type { margin-bottom: 2rem; }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}
.about-value h3 {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold-text);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}
.about-value p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.7;
}

.about-license {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-inline-start: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  line-height: 1.7;
}
.about-license strong { color: var(--text-primary); }

/* ---------- SERVICES ---------- */
.services { background: var(--bg-secondary); position: relative; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-primary);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border-color);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.service-num {
  font-size: 3.25rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1.5;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}
.service-card:hover .service-num { opacity: 1; }

.service-card h3 {
  font-size: 1.3125rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.service-card .deliverable {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
.service-card .deliverable strong { color: var(--color-gold-text); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-gold-text);
  transition: gap var(--transition-fast);
}
.service-card:hover .service-link { gap: 1rem; }

/* ---------- WHY US ---------- */
.why-us { background: var(--bg-primary); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg-secondary);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
  border: 1px solid var(--border-color);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-gold); }

.why-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-gold-text);
  transition: all 0.6s ease;
}
.why-icon svg { width: 28px; height: 28px; }

.why-card h3 { font-size: 1.125rem; margin-bottom: 0.625rem; line-height: 1.55; }
.why-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.75; }

/* ---------- PROJECTS ---------- */
.projects { background: var(--bg-secondary); }

.projects-filter {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  background: var(--bg-primary);
}
.filter-btn:hover, .filter-btn[aria-pressed="true"] {
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-color: var(--color-charcoal);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-primary);
  transition: all var(--transition);
}
.project-card:nth-child(1) { grid-column: span 7; aspect-ratio: 16/11; }
.project-card:nth-child(2) { grid-column: span 5; aspect-ratio: 4/3; }
.project-card:nth-child(3) { grid-column: span 4; aspect-ratio: 3/4; }
.project-card:nth-child(4) { grid-column: span 4; aspect-ratio: 3/4; }
.project-card:nth-child(5) { grid-column: span 4; aspect-ratio: 3/4; }
.project-card:nth-child(6) { grid-column: span 12; aspect-ratio: 21/9; }

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.project-card:hover .project-image { transform: scale(1.06); }

/* Caption is always readable — not hover-only (touch devices have no hover) */
.project-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(31,31,31,0.95) 0%, rgba(31,31,31,0.75) 55%, transparent 100%);
  padding: 1.5rem;
  color: #FDFBF7;
}
.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-gold);
  color: #1F1F1F;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.project-caption h3 {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  color: #FDFBF7;
  line-height: 1.5;
  margin: 0;
}

/* ---------- JOURNEY ---------- */
.journey {
  background: var(--bg-dark);
  color: var(--color-cream);
  position: relative;
  overflow: hidden;
}
.journey .section-title { color: #FDFBF7; }
.journey .section-subtitle { color: rgba(253, 251, 247, 0.8); }
.journey .eyebrow { color: var(--color-gold); }
.journey .eyebrow::before { background: var(--color-gold); }

.journey-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}
.journey-track::before {
  content: '';
  position: absolute;
  top: 30px;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-gold), transparent);
  z-index: 0;
}

.journey-step { position: relative; text-align: center; z-index: 1; }

.journey-step .num {
  width: 60px;
  height: 60px;
  background: var(--bg-dark);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}
.journey-step:hover .num {
  background: var(--color-gold);
  color: #1F1F1F;
  transform: scale(1.08);
}
.journey-step h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; color: #FDFBF7; line-height: 1.55; }
.journey-step p { font-size: 0.875rem; color: rgba(253, 251, 247, 0.75); line-height: 1.7; }

/* ---------- CONTACT / FORM ---------- */
.contact { background: var(--bg-primary); position: relative; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .contact-info { background: var(--bg-secondary); border: 1px solid var(--border-color); }

.contact-info h3 { font-size: 1.5rem; color: #FDFBF7; margin-bottom: 1rem; line-height: 1.5; }
[data-theme="dark"] .contact-info h3 { color: var(--text-primary); }
.contact-info > p { color: rgba(253, 251, 247, 0.85); margin-bottom: 2.25rem; }
[data-theme="dark"] .contact-info > p { color: var(--text-secondary); }

.info-list { position: relative; list-style: none; }

.info-item {
  display: flex;
  gap: 1rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid rgba(253, 251, 247, 0.15);
  align-items: flex-start;
}
.info-item:last-child { border-bottom: none; }

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(229, 169, 60, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }

.info-item .label {
  font-size: 0.8125rem;
  color: rgba(253, 251, 247, 0.75);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}
[data-theme="dark"] .info-item .label { color: var(--text-secondary); }
.info-item .value {
  font-size: 1rem;
  color: #FDFBF7;
  font-weight: 400;
  line-height: 1.6;
}
[data-theme="dark"] .info-item .value { color: var(--text-primary); }
.info-item .value a { text-decoration: underline; text-underline-offset: 3px; }
.info-item .value a:hover { color: var(--color-gold); }

.info-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
  position: relative;
}
.info-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(253, 251, 247, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 251, 247, 0.9);
  transition: all var(--transition-fast);
}
[data-theme="dark"] .info-socials a { border-color: var(--border-strong); color: var(--text-primary); }
.info-socials a:hover {
  background: var(--color-gold);
  color: #1F1F1F;
  border-color: var(--color-gold);
}

/* Multi-step form */
.form-card {
  background: var(--bg-secondary);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-steps { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.form-step-indicator {
  flex: 1;
  height: 4px;
  background: var(--border-strong);
  border-radius: 100px;
  opacity: 0.35;
  transition: all 0.4s ease;
}
.form-step-indicator.active { background: var(--color-gold); opacity: 1; }
.form-step-indicator.completed { background: var(--color-gold-text); opacity: 1; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step h3 { font-size: 1.375rem; margin-bottom: 0.5rem; line-height: 1.5; }
.form-step .step-num {
  font-size: 0.8125rem;
  color: var(--color-gold-text);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1.5;
}
.form-step > p { color: var(--text-secondary); margin-bottom: 1.75rem; font-size: 0.9375rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.form-group .optional {
  font-weight: 400;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 0.875rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-color: var(--color-gold-text);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
[data-theme="dark"] .form-group input[aria-invalid="true"],
[data-theme="dark"] .form-group textarea[aria-invalid="true"] { border-color: #F2B8B5; }

.field-error {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #B3261E;
  line-height: 1.6;
}
[data-theme="dark"] .field-error { color: #F2B8B5; }
.field-error.show { display: block; }

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.service-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.service-option { position: relative; cursor: pointer; }
.service-option input {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0;
}
.service-option-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: all var(--transition-fast);
}
.service-option input:checked + .service-option-label {
  border-color: var(--color-gold-text);
  background: rgba(229, 169, 60, 0.12);
  color: var(--color-gold-text);
  font-weight: 700;
}
.service-option input:focus-visible + .service-option-label {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* PDPL consent block */
.consent-block {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.consent-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-gold-deep);
}
.consent-row label {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.consent-row label a {
  color: var(--color-gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.privacy-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.form-actions .btn { flex: 1; }

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.75;
  display: none;
}
.form-status.show { display: block; }
.form-status.error {
  background: rgba(179, 38, 30, 0.1);
  border: 1px solid #B3261E;
  color: var(--text-primary);
}
.form-status .fallback-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.form-status .fallback-links a {
  font-weight: 700;
  color: var(--color-gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.form-success { text-align: center; padding-block: 2rem; display: none; }
.form-success.active { display: block; }
.form-success .check {
  width: 80px;
  height: 80px;
  background: rgba(229, 169, 60, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-gold-text);
}
.form-success h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.form-success p { color: var(--text-secondary); }

/* ---------- LOCATION ---------- */
.location { background: var(--bg-secondary); }
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.location-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.location-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.location-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.location-card .btn { width: 100%; }
.location-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.location-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding: 5rem 0 2rem;
  position: relative;
}
[data-theme="dark"] .footer { background: var(--bg-dark); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-brand,
.footer-brand .nav-brand .brand-ar { color: #FDFBF7; }
.footer-brand .nav-brand .brand-en { color: var(--color-gold); }

.footer-about {
  margin-top: 1.5rem;
  color: rgba(253, 251, 247, 0.8);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 44ch;
}
.footer-legal-name {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(253, 251, 247, 0.7);
  line-height: 1.7;
}

.footer h2 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #FDFBF7;
  position: relative;
  padding-bottom: 0.75rem;
  line-height: 1.5;
}
.footer h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 30px;
  height: 2px;
  background: var(--color-gold);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(253, 251, 247, 0.8);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  line-height: 1.6;
}
.footer-links a:hover { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; }

.footer-contact { list-style: none; }
.footer-contact li {
  color: rgba(253, 251, 247, 0.8);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.footer-contact a:hover { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; }

.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.footer-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(253, 251, 247, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253, 251, 247, 0.9);
  transition: all var(--transition-fast);
}
.footer-socials a:hover { background: var(--color-gold); color: #1F1F1F; border-color: var(--color-gold); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 251, 247, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(253, 251, 247, 0.75);
  font-size: 0.875rem;
  line-height: 1.7;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--color-gold); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  width: 100%;
  max-width: 400px;
  height: 100dvh;
  background: var(--bg-primary);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
.mobile-menu.active,
[dir="rtl"] .mobile-menu.active { transform: translateX(0); }

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 700;
  padding-block: 0.875rem;
  display: block;
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
  line-height: 1.5;
}
.mobile-menu a:hover { color: var(--color-gold-text); }

/* ---------- STICKY MOBILE CONTACT BAR ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 998;
  background: var(--color-charcoal);
  border-top: 1px solid rgba(253, 251, 247, 0.15);
  padding-bottom: env(safe-area-inset-bottom);
}
[data-theme="dark"] .mobile-bar { background: var(--bg-dark); }
.mobile-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.mobile-bar a {
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #FDFBF7;
  font-size: 0.75rem;
  line-height: 1.5;
  border-inline-end: 1px solid rgba(253, 251, 247, 0.15);
}
.mobile-bar a:last-child { border-inline-end: none; background: var(--color-gold); color: #1F1F1F; font-weight: 700; }
.mobile-bar svg { width: 20px; height: 20px; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- LOADER ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: #1F1F1F;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { width: 48px; color: var(--color-gold); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.loader-text {
  color: rgba(253, 251, 247, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------- LEGAL / PRIVACY PAGE ---------- */
.legal-page { padding-top: 9rem; padding-bottom: 5rem; background: var(--bg-primary); }
.legal-wrap { max-width: 74ch; margin-inline: auto; }
.legal-wrap h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; line-height: 1.5; }
.legal-updated { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 2.5rem; }
.legal-wrap h2 {
  font-size: 1.25rem;
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  line-height: 1.5;
}
.legal-wrap h3 { font-size: 1.0625rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-wrap p { margin-bottom: 1rem; line-height: 1.85; }
.legal-wrap ul { margin: 0 0 1.25rem; padding-inline-start: 1.5rem; }
.legal-wrap li { margin-bottom: 0.5rem; line-height: 1.85; }
.legal-wrap a {
  color: var(--color-gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.legal-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 30rem;
}
.legal-wrap th, .legal-wrap td {
  border: 1px solid var(--border-strong);
  padding: 0.75rem 1rem;
  text-align: start;
  line-height: 1.7;
  vertical-align: top;
}
.legal-wrap th { background: var(--bg-secondary); font-weight: 700; }
.legal-callout {
  background: var(--bg-secondary);
  border-inline-start: 3px solid var(--color-gold);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 3rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .location-grid { grid-template-columns: 1fr; gap: 2rem; }

  .projects-grid { grid-template-columns: repeat(6, 1fr); }
  .project-card:nth-child(n) { grid-column: span 3; aspect-ratio: 3/4; }
  .project-card:nth-child(1) { grid-column: span 6; aspect-ratio: 16/10; }
  .project-card:nth-child(6) { grid-column: span 6; aspect-ratio: 16/9; }

  .contact-grid { grid-template-columns: 1fr; }
  .journey-track { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .journey-track::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
  .hero { padding-top: 6.5rem; padding-bottom: 6rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-scroll { display: none; }

  .about-values { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(n) { grid-column: span 1; aspect-ratio: 4/3; }

  .journey-track { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .service-options { grid-template-columns: 1fr; }
  .form-card { padding: 2rem 1.5rem; }
  .contact-info { padding: 2.5rem 1.75rem; }
  .location-card { padding: 2rem 1.5rem; }
  .ruler-decor, .hero-ruler { display: none; }

  .mobile-bar { display: block; }
  body { padding-bottom: 56px; }
  .footer { padding-bottom: 4rem; }
}

@media (max-width: 480px) {
  .nav-brand .brand-text { display: none; }
  .form-actions { flex-direction: column; }
}

/* ---------- REDUCED MOTION (WCAG 2.3.3) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .loader { display: none; }
}

/* ---------- PRINT ---------- */
@media print {
  .navbar, .mobile-menu, .mobile-bar, .loader, .hero-ruler, .ruler-decor { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- BILINGUAL STATIC BLOCKS (legal page) ---------- */
:root[lang="ar"] .lang-en,
html[lang="ar"] .lang-en { display: none; }
:root[lang="en"] .lang-ar,
html[lang="en"] .lang-ar { display: none; }

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding-block: 0.875rem;
}
.legal-nav .nav-wrap { gap: 1rem; }
.legal-page { padding-top: 3rem; }
