/* ============================================
   GPR SURVEY — DESIGN TOKENS
   ============================================ */
:root {
  /* Color */
  --navy-900: #0A1F35;
  --navy-800: #0E2A47;
  --navy-700: #163b61;
  --navy-100: #E8EDF3;
  --orange-600: #E8622C;
  --orange-700: #C94E1E;
  --grey-600: #5B6B7A;
  --grey-300: #C7CED6;
  --off-white: #F7F8FA;
  --white: #FFFFFF;
  --line: #DEE3E9;

  /* Type */
  --font-display: 'Archivo', 'Cairo', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-w: 1240px;
  --radius: 3px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--off-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: 'Cairo', var(--font-body); }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Cairo', var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

p { color: var(--grey-600); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-600);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
[dir="rtl"] .eyebrow { font-family: var(--font-body); letter-spacing: 0; }

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--orange-600);
}

/* ============================================
   SKIP LINK / ACCESSIBILITY
   ============================================ */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--orange-600);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 999;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--orange-600);
  outline-offset: 2px;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--navy-900);
  color: var(--grey-300);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}
[dir="rtl"] .topbar { font-family: var(--font-body); }
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar a:hover { color: var(--orange-600); }
.lang-switch { display: flex; gap: 0.4rem; align-items: center; }
.lang-switch a {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
}
.lang-switch a.active { background: var(--orange-600); border-color: var(--orange-600); color: white; }

/* ============================================
   HEADER / NAV
   ============================================ */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
[dir="rtl"] .logo { font-family: 'Cairo'; }
.logo .blip {
  width: 10px; height: 10px;
  background: var(--orange-600);
  border-radius: 50%;
  position: relative;
}
.logo .blip::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--orange-600);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

nav.main-nav { display: flex; gap: 1.9rem; align-items: center; }
nav.main-nav > ul { display: flex; gap: 1.9rem; align-items: center; }
nav.main-nav > ul > li { position: relative; }
nav.main-nav a.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-800);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
nav.main-nav a.nav-link:hover { color: var(--orange-600); }

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(10,31,53,0.12);
  min-width: 280px;
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.15s ease;
}
[dir="rtl"] .has-dropdown .dropdown { left: auto; right: 0; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  color: var(--navy-800);
  border-radius: var(--radius);
}
.dropdown a:hover { background: var(--off-white); color: var(--orange-600); }
.dropdown .group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  padding: 0.5rem 0.75rem 0.2rem;
}

.btn-cta {
  background: var(--orange-600);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  white-space: nowrap;
  transition: 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-cta:hover { background: var(--orange-700); }
.btn-outline {
  border: 1.5px solid var(--navy-800);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline:hover { border-color: var(--orange-600); color: var(--orange-600); }
.btn-outline.light { border-color: rgba(255,255,255,0.5); color: white; }
.btn-outline.light:hover { border-color: var(--orange-600); color: var(--orange-600); }

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}
.mobile-toggle span { width: 24px; height: 2px; background: var(--navy-900); display: block; }

/* ============================================
   HERO — radar sweep signature
   ============================================ */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 75% 30%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-900) 100%);
  color: white;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}
.radar-sweep {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 60vw);
  height: min(620px, 60vw);
  pointer-events: none;
}
[dir="rtl"] .radar-sweep { right: auto; left: -6%; }
.radar-sweep svg { width: 100%; height: 100%; }
.radar-ring { fill: none; stroke: rgba(232,98,44,0.18); stroke-width: 1; }
.radar-sweep-arm {
  transform-origin: 300px 300px;
  animation: sweep-rotate 4.5s linear infinite;
}
@keyframes sweep-rotate { to { transform: rotate(360deg); } }
.radar-blip { fill: var(--orange-600); }
.radar-blip.b1 { animation: blip-fade 4.5s ease-in-out infinite; }
.radar-blip.b2 { animation: blip-fade 4.5s ease-in-out infinite 1.5s; }
.radar-blip.b3 { animation: blip-fade 4.5s ease-in-out infinite 3s; }
@keyframes blip-fade { 0%,100% { opacity: 0; } 8%,18% { opacity: 1; } 30% { opacity: 0; } }

.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { color: white; margin-bottom: 1.3rem; }
.hero .lead { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 560px; margin-bottom: 2.1rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.6rem; }

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.6rem;
}
.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--orange-600);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
}

/* breadcrumb-style strip on inner pages */
.page-hero {
  background: var(--navy-900);
  color: white;
  padding: 2.6rem 0 2.2rem;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
[dir="rtl"] .breadcrumb { font-family: var(--font-body); }
.breadcrumb a:hover { color: var(--orange-600); }
.page-hero h1 { color: white; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.6rem; }
.page-hero .lead { color: rgba(255,255,255,0.75); max-width: 640px; }

/* ============================================
   SECTIONS — generic
   ============================================ */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 680px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy-900); color: white; }
.section-navy h2, .section-navy h3 { color: white; }
.section-navy p { color: rgba(255,255,255,0.7); }
.section-navy .eyebrow { color: var(--orange-600); }

/* ============================================
   WHY US — feature grid
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card {
  background: white;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.feature-card .icon-box {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--navy-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-800);
}
.feature-card h3 { font-size: 1.02rem; }
.feature-card p { font-size: 0.9rem; margin: 0; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: 0.2s ease;
  position: relative;
}
.service-card:hover { border-color: var(--orange-600); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10,31,53,0.08); }
.service-card .num-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-600);
}
.service-card h3 { font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; margin: 0; }
.service-card .card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-600);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================
   INDUSTRIES — tag cloud / chips
   ============================================ */
.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.industry-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 220px;
}
.industry-chip:hover { border-color: var(--orange-600); }

/* ============================================
   TECHNOLOGY LIST
   ============================================ */
.tech-list { display: flex; flex-direction: column; }
.tech-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.tech-row .tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--orange-600);
}
.tech-row h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.tech-row p { font-size: 0.92rem; margin: 0; }
@media (max-width: 800px) {
  .tech-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ============================================
   PROCESS — connected steps
   ============================================ */
.process-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}
.process-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
}
.process-step .dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--orange-600);
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 0.85rem;
}
.process-step h4 { font-size: 0.88rem; margin-bottom: 0.3rem; }
.process-step p { font-size: 0.78rem; margin: 0; }
@media (max-width: 980px) {
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .process-track::before { display: none; }
}

/* ============================================
   AREAS COVERED — map-like grid
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.area-cell {
  background: var(--navy-900);
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}
.area-cell.full { background: var(--orange-600); grid-column: span 2; }
@media (max-width: 900px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } .area-cell.full { grid-column: span 3; } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } .area-cell.full { grid-column: span 2; } }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.testimonial-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.testimonial-card .stars { color: var(--orange-600); margin-bottom: 0.9rem; font-size: 0.9rem; }
.testimonial-card p.quote { color: var(--navy-800); font-size: 0.95rem; margin-bottom: 1.3rem; }
.testimonial-card .who { font-size: 0.85rem; font-weight: 700; color: var(--navy-900); }
.testimonial-card .org { font-size: 0.8rem; color: var(--grey-600); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--navy-900);
  color: white;
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: white; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-900);
}
[dir="rtl"] .faq-q { text-align: right; }
.faq-q .plus { font-family: var(--font-mono); color: var(--orange-600); font-size: 1.3rem; flex-shrink: 0; transition: 0.2s; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding: 0 0 1.3rem; font-size: 0.94rem; color: var(--grey-600); }
.faq-item.open .faq-a { max-height: 600px; }

/* ============================================
   FOOTER
   ============================================ */
footer.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.65);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-grid h4 { color: white; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.1rem; font-family: var(--font-mono); }
[dir="rtl"] .footer-grid h4 { font-family: 'Cairo'; letter-spacing: 0; }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-grid a { font-size: 0.88rem; }
.footer-grid a:hover { color: var(--orange-600); }
.footer-about p { font-size: 0.88rem; max-width: 320px; margin-bottom: 1.2rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.social-row { display: flex; gap: 0.8rem; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--orange-600); color: var(--orange-600); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================
   STICKY MOBILE CALL BAR
   ============================================ */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--orange-600);
  color: white;
  z-index: 200;
  padding: 0.85rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE NAV (MOBILE)
   ============================================ */
@media (max-width: 1080px) {
  nav.main-nav { display: none; }
  .nav-actions .btn-outline { display: none; }
  .mobile-toggle { display: flex; }
  .sticky-call { display: block; }
  body { padding-bottom: 56px; }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-nav-close { background: none; border: none; color: white; font-size: 1.8rem; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-nav a { color: white; font-weight: 600; font-size: 1.05rem; padding: 0.8rem 0; display: block; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav .sub-link { padding-left: 1.2rem; font-weight: 400; font-size: 0.92rem; color: rgba(255,255,255,0.7); }
[dir="rtl"] .mobile-nav .sub-link { padding-left: 0; padding-right: 1.2rem; }
.mobile-nav .group-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--orange-600); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 1.2rem; }

/* ============================================
   GENERIC PAGE CONTENT (service/blog pages)
   ============================================ */
.content-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.article-body h2 { margin-top: 2.4rem; margin-bottom: 1rem; font-size: 1.5rem; }
.article-body h3 { margin-top: 1.8rem; margin-bottom: 0.8rem; }
.article-body p { margin-bottom: 1.1rem; font-size: 1rem; }
.article-body ul { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.article-body ul li { padding-left: 1.3rem; position: relative; color: var(--grey-600); }
.article-body ul li::before { content: '→'; position: absolute; left: 0; color: var(--orange-600); }
[dir="rtl"] .article-body ul li { padding-left: 0; padding-right: 1.3rem; }
[dir="rtl"] .article-body ul li::before { left: auto; right: 0; }

.sidebar-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h4 { font-size: 0.95rem; margin-bottom: 1rem; }
.sidebar-box ul { display: flex; flex-direction: column; gap: 0.6rem; }
.sidebar-box ul a { font-size: 0.9rem; color: var(--navy-800); font-weight: 600; }
.sidebar-box ul a:hover { color: var(--orange-600); }
.sidebar-box.dark { background: var(--navy-900); color: white; }
.sidebar-box.dark h4 { color: white; }
.sidebar-box.dark p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--orange-600);
  outline: none;
}
.contact-info-card {
  background: var(--navy-900);
  color: white;
  border-radius: var(--radius);
  padding: 2.2rem;
}
.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .ico { color: var(--orange-600); flex-shrink: 0; margin-top: 0.1rem; }
.contact-info-row h4 { color: white; font-size: 0.92rem; margin-bottom: 0.2rem; }
.contact-info-row p { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin: 0; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-hero-meta {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.project-hero-meta .meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.project-hero-meta .meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-600);
}
[dir="rtl"] .project-hero-meta .meta-label { font-family: 'Cairo'; letter-spacing: 0; }
.project-hero-meta .meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}

.stat-block-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2.8rem;
}
.stat-block {
  background: white;
  padding: 1.6rem;
  text-align: center;
}
.stat-block .num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-block .lbl {
  font-size: 0.8rem;
  color: var(--grey-600);
}
@media (max-width: 900px) { .stat-block-grid { grid-template-columns: repeat(2, 1fr); } }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 2.4rem;
}
.project-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.project-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.project-gallery figcaption {
  font-size: 0.8rem;
  color: var(--grey-600);
  padding: 0.7rem 0.9rem;
  background: white;
  font-family: var(--font-mono);
}
[dir="rtl"] .project-gallery figcaption { font-family: 'Cairo'; }
.project-gallery .full-span { grid-column: 1 / -1; }
.project-gallery .full-span img { height: 380px; }
@media (max-width: 700px) {
  .project-gallery { grid-template-columns: 1fr; }
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.8rem 0 2.4rem;
}
.method-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  padding-bottom: 1.8rem;
  position: relative;
}
.method-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
[dir="rtl"] .method-step:not(:last-child)::before { left: auto; right: 27px; }
.method-step .step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--orange-600);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.method-step h4 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.method-step p { font-size: 0.92rem; margin: 0; }

.findings-callout {
  background: var(--navy-900);
  color: white;
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin: 1.8rem 0;
  position: relative;
  overflow: hidden;
}
.findings-callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange-600);
}
.findings-callout h4 { color: var(--orange-600); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); margin-bottom: 0.8rem; }
[dir="rtl"] .findings-callout h4 { font-family: 'Cairo'; letter-spacing: 0; }
.findings-callout p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.96rem; }
.findings-callout p + p { margin-top: 0.8rem; }

.deliverable-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 2rem;
}
.deliverable-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}
.deliverable-chip .ico { color: var(--orange-600); }

/* ============================================
   DEPTH LAYER STRATIGRAPHY VISUAL
   ============================================ */
.depth-profile {
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: 2rem 2.2rem 1.6rem;
  margin: 1.8rem 0 2.4rem;
  color: white;
}
.depth-profile-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-600);
  margin-bottom: 1.4rem;
}
[dir="rtl"] .depth-profile-title { font-family: 'Cairo'; letter-spacing: 0; }
.depth-layer {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.depth-layer:last-child { border-bottom: none; }
.depth-layer .depth-mark {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange-600);
  text-align: right;
  padding-top: 0.5rem;
}
[dir="rtl"] .depth-layer .depth-mark { text-align: left; }
.depth-layer .bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.5rem;
}
.depth-layer .bar-track {
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}
.depth-layer .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-700), var(--orange-600));
  border-radius: 5px;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--navy-100);
  color: var(--navy-800);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}
[dir="rtl"] .tag-pill { font-family: 'Cairo'; }

.scan-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-600), transparent);
  background-size: 200% 100%;
  animation: scan-move 3s linear infinite;
  opacity: 0.5;
}
@keyframes scan-move { to { background-position: -200% 0; } }

/* ============================================
   CLIENT LOGOS
   ============================================ */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.client-logo-cell {
  background: white;
  padding: 1.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
}
.client-logo-cell img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: 0.82;
  transition: 0.2s ease;
}
.client-logo-cell:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 900px) { .client-logos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .client-logos-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo-cell { height: 90px; padding: 1.2rem; }
  .client-logo-cell img { max-height: 42px; }
}
