/* ============================================================
   SAHM MISR GROUP — styles.css
   ============================================================ */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
  --bg-primary:        #F5F2F1;
  --bg-secondary:      #FFFFFF;
  --bg-surface:        #FFFFFF;
  --bg-surface-hover:  #FAF8F7;
  --border-subtle:     #E3DFDE;
  --accent:            #DD2A1B;
  --accent-light:      #E05550;
  --accent-glow:       rgba(221, 42, 27, 0.12);
  --accent-glow-lg:    rgba(221, 42, 27, 0.18);
  --text-primary:      #141414;
  --text-secondary:    #4F4B49;
  --text-muted:        #636463;
  --radius-sm:         6px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --transition:        0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding:   6rem 1.5rem;
  --max-width:         1200px;
  --navbar-height:     72px;
  --shadow-card:       0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-gold:       0 0 24px rgba(221, 42, 27, 0.15);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
}

/* ── 3. Utility ───────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section--alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  line-height: 1.75;
}

/* ── 4. Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 0.8rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(221, 42, 27, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.8rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── 5. Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  background: #FFFFFF;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: #E5E5E5;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left center;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background var(--transition), color var(--transition);
  min-width: 42px;
}

.lang-btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}

.menu-btn span:first-child  { width: 100%; }
.menu-btn span:nth-child(2) { width: 75%; }
.menu-btn span:last-child   { width: 100%; }

.menu-btn.open span:first-child  { transform: translateY(7px) rotate(45deg); width: 100%; }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:last-child   { transform: translateY(-7px) rotate(-45deg); width: 100%; }

/* Mobile nav */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #2A2A2A;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 999;
}

.mobile-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.mobile-menu a {
  color: #A8A8A8;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid #2A2A2A;
  transition: color var(--transition);
}

.mobile-menu a:last-of-type {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ── 6. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #141414 0%, #1A1A1A 50%, #0D0D0D 100%);
  overflow: hidden;
  padding-top: var(--navbar-height);
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  padding: 2rem 1.5rem;
}

/* ── 6a. Hero Slider ──────────────────────────────────────── */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-slide {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Background images per slide */
/* Slide 0 loads eagerly; slides 1-3 are lazy-loaded via JS when first activated */
.hero-slide[data-slide="0"] { background-image: url('../images/hero-first-slide.webp'); }

/* Dark legibility overlay — darker in center where text sits, slightly lighter
   at the edges so the photography stays visible. Heavier at top + bottom to
   protect navbar zone and CTAs / dots / scroll cue.                         */
.hero-slide[data-slide="0"]::before,
.hero-slide[data-slide="1"]::before,
.hero-slide[data-slide="2"]::before,
.hero-slide[data-slide="3"]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at center,
      rgba(10, 10, 10, 0.72) 0%,
      rgba(10, 10, 10, 0.55) 55%,
      rgba(10, 10, 10, 0.45) 100%),
    linear-gradient(180deg,
      rgba(15, 15, 15, 0.55) 0%,
      rgba(15, 15, 15, 0)    22%,
      rgba(15, 15, 15, 0)    68%,
      rgba(15, 15, 15, 0.75) 100%);
}

/* Keep slide content above the overlay */
.hero-slide .hero-content {
  position: relative;
  z-index: 1;
}

/* Slow Ken Burns drift on whichever image slide is active.                  */
@keyframes heroKenBurns {
  from { background-size: 108% 108%; background-position: 50% 50%; }
  to   { background-size: 118% 118%; background-position: 53% 47%; }
}

.hero-slide[data-slide="0"].is-active,
.hero-slide[data-slide="1"].is-active,
.hero-slide[data-slide="2"].is-active,
.hero-slide[data-slide="3"].is-active {
  animation: heroKenBurns 10s ease-out both;
}

/* Per-slide staggered entrance (transitions, not animations,
   so they replay every time .is-active is toggled on).        */
.hero-slide .founded-badge,
.hero-slide .hero-brand-name,
.hero-slide .hero-title,
.hero-slide .hero-tagline,
.hero-slide .hero-sub-tagline,
.hero-slide .hero-ctas {
  animation: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.is-active .founded-badge    { transition-delay: 0.08s; opacity: 1; transform: none; }
.hero-slide.is-active .hero-brand-name  { transition-delay: 0.14s; opacity: 1; transform: none; }
.hero-slide.is-active .hero-title       { transition-delay: 0.22s; opacity: 1; transform: none; }
.hero-slide.is-active .hero-tagline     { transition-delay: 0.32s; opacity: 1; transform: none; }
.hero-slide.is-active .hero-sub-tagline { transition-delay: 0.40s; opacity: 1; transform: none; }
.hero-slide.is-active .hero-ctas        { transition-delay: 0.48s; opacity: 1; transform: none; }

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #FFFFFF;
  transition: background var(--transition),
              border-color var(--transition),
              color var(--transition),
              transform var(--transition);
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
}

.hero-arrow--prev { inset-inline-start: 1.5rem; }
.hero-arrow--next { inset-inline-end:   1.5rem; }

html[dir="rtl"] .hero-arrow svg { transform: scaleX(-1); }

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.55rem;
}

.hero-dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  transition: background var(--transition), width var(--transition);
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.5); }

.hero-dot.is-active {
  background: var(--accent);
  width: 48px;
}

@media (max-width: 720px) {
  .hero-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide .founded-badge,
  .hero-slide .hero-title,
  .hero-slide .hero-tagline,
  .hero-slide .hero-ctas {
    transition: opacity 0.2s linear;
    transform: none !important;
  }

  .hero-slide[data-slide="0"].is-active,
  .hero-slide[data-slide="1"].is-active,
  .hero-slide[data-slide="2"].is-active,
  .hero-slide[data-slide="3"].is-active {
    animation: none;
    background-size: cover;
  }
}

.founded-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(221, 42, 27, 0.22);
  border: 1px solid rgba(221, 42, 27, 0.65);
  border-radius: 100px;
  padding: 0.45rem 1.2rem;
  font-size: 0.78rem;
  color: #FFFFFF;
  margin-bottom: 1.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 4px 20px rgba(221, 42, 27, 0.18);
  animation: fadeInUp 0.9s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.founded-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(221, 42, 27, 0.85);
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #D0D0D0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-wrap: balance;
  animation: fadeInUp 0.9s 0.05s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-brand-name {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 auto 0.6rem;
}

.hero-tagline {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
  max-width: 640px;
  animation: fadeInUp 0.9s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-sub-tagline {
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  color: rgba(255, 255, 255, 0.42);
  margin: 0 auto 2.2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* All slides share the same title scale */
.hero-slide[data-slide="0"] .hero-title,
.hero-slide[data-slide="1"] .hero-title,
.hero-slide[data-slide="2"] .hero-title,
.hero-slide[data-slide="3"] .hero-title {
  font-size: clamp(1.65rem, 3.8vw, 2.8rem);
  line-height: 1.15;
  margin-left: auto;
  margin-right: auto;
  max-width: 820px;
}

/* Slightly wider content frame on service slides to give the long taglines
   room to breathe without forcing tight wraps.                            */
.hero-slide[data-slide="1"] .hero-content,
.hero-slide[data-slide="2"] .hero-content,
.hero-slide[data-slide="3"] .hero-content {
  max-width: 880px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.25s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Keep outline button readable on the dark hero */
.hero .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ── 7. Stats Bar ─────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-divider {
  width: 1px;
  background: var(--border-subtle);
  align-self: stretch;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-feature-settings: "tnum";
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

/* ── 8. Services ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  transition: border-color var(--transition), box-shadow var(--transition),
              transform var(--transition), background var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 36px var(--accent-glow), var(--shadow-card);
  background: var(--bg-surface-hover);
  transform: translateY(-5px);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.4rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Stagger card reveal delays */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.30s; }
.services-grid .service-card:nth-child(7) { transition-delay: 0.35s; }
.services-grid .service-card:nth-child(8) { transition-delay: 0.40s; }

/* ── 9. About ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
  text-align: center;
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin: 0 auto 1rem;
}

.value-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.value-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 10. Why Choose Us ────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.why-icon-wrap {
  width: 52px;
  height: 52px;
  background: rgba(221, 42, 27, 0.1);
  border: 1px solid rgba(221, 42, 27, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.why-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.why-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.why-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 11. Clients ──────────────────────────────────────────── */
/* ── 11. Clients Marquee ──────────────────────────────────── */
.clients-marquee-wrap {
  overflow: hidden;
  position: relative;
  /* Fade edges so the scroll feels endless */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.clients-track {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
}

.clients-track.is-animating {
  animation: clientsMarquee 45s linear infinite;
}

.clients-marquee-wrap:hover .clients-track,
.clients-marquee-wrap:focus-within .clients-track {
  animation-play-state: paused;
}

@keyframes clientsMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
  overflow: hidden;
}

.client-logo-item:hover {
  border-color: rgba(221, 42, 27, 0.45);
  box-shadow: 0 4px 20px rgba(221, 42, 27, 0.08);
  transform: translateY(-3px);
}

.client-logo-item img {
  height: 80px;
  width: 120px;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter var(--transition);
}

.client-logo-item:hover img {
  filter: grayscale(0%);
}

.client-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track.is-animating {
    animation: none;
  }
}

/* ── 12. Certifications ───────────────────────────────────── */
.certs-section {
  text-align: center;
}

.certs-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cert-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  text-align: center;
  min-width: 210px;
  box-shadow: var(--shadow-gold);
  animation: pulseGold 4s ease-in-out infinite;
  transition: transform var(--transition);
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.cert-subtitle {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cert-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── 13. Contact ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-info-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: rgba(221, 42, 27, 0.4);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  background: rgba(221, 42, 27, 0.1);
  border: 1px solid rgba(221, 42, 27, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card-content strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-card-content span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.biz-hours-local {
  margin-top: 0.2rem;
  font-size: 0.82rem !important;
  color: var(--accent-light) !important;
  opacity: 0.85;
}


/* Contact Form */
.contact-form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.contact-form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(221, 42, 27, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  margin-bottom: 1rem;
}

.contact-form .form-single {
  margin-bottom: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: rgba(221, 42, 27, 0.08);
  border: 1px solid rgba(221, 42, 27, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

/* ── 14. Footer ───────────────────────────────────────────── */
.footer {
  background: #141414;
  border-top: 1px solid #2A2A2A;
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: #888888;
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  color: #888888;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-col address {
  font-style: normal;
  color: #888888;
  font-size: 0.875rem;
  line-height: 1.9;
}

.footer-col address a {
  transition: color var(--transition);
}

.footer-col address a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid #2A2A2A;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #636463;
  font-size: 0.8rem;
}

.footer-iso {
  display: flex;
  gap: 0.75rem;
}

.footer .nav-logo img {
    height: 90px;
}

.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(221, 42, 27, 0.08);
  border: 1px solid rgba(221, 42, 27, 0.2);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ── 15. Scroll Reveal ────────────────────────────────────── */
.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* ── 16. RTL Overrides ────────────────────────────────────── */
html[dir="rtl"] body {
  font-family: 'Tajawal', 'Inter', sans-serif;
}

html[dir="rtl"] * {
  letter-spacing: 0 !important;
}

/* Force Western digits on numeric-only elements */
html[dir="rtl"] .stat-number,
html[dir="rtl"] .cert-number,
html[dir="rtl"] .contact-card-content span,
html[dir="rtl"] .footer-bottom p {
  font-family: 'Inter', sans-serif;
  direction: ltr;
  unicode-bidi: embed;
}

/* Navbar */
html[dir="rtl"] .nav-links a::after {
  transform-origin: right center;
}

html[dir="rtl"] .nav-logo {
  flex-direction: row-reverse;
}

/* Hero CTAs */
html[dir="rtl"] .hero-ctas {
  flex-direction: row-reverse;
}

/* Contact card hover direction */
html[dir="rtl"] .contact-card:hover {
  transform: translateX(-4px);
}

/* About grid — direction: rtl causes grid to read right-to-left */
html[dir="rtl"] .about-grid {
  direction: rtl;
}

/* Why cards — icon stays on start side */
html[dir="rtl"] .why-card {
  direction: rtl;
}

/* Footer grid */
html[dir="rtl"] .footer-grid {
  direction: rtl;
}

html[dir="rtl"] .footer-brand p {
  text-align: right;
}

html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

/* Contact form text direction */
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea {
  direction: rtl;
  text-align: right;
}

/* Section header underline — stays centered, no change needed */

/* Mobile menu */
html[dir="rtl"] .mobile-menu {
  direction: rtl;
  text-align: right;
}

/* Clients grid */
/* Marquee scrolls right-to-left in RTL */
html[dir="rtl"] .clients-track.is-animating {
  animation-direction: reverse;
}

/* Section header */
html[dir="rtl"] .section-header {
  direction: rtl;
}

/* About text */
html[dir="rtl"] .about-text {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .about-values {
  direction: rtl;
}

html[dir="rtl"] .value-card {
  direction: rtl;
}

html[dir="rtl"] .why-body {
  text-align: right;
}

html[dir="rtl"] .contact-info {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .contact-card {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-form-wrap {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .stat-label {
  direction: rtl;
  letter-spacing: 0 !important;
  text-transform: none;
}

html[dir="rtl"] .iso-badge {
  flex-direction: row-reverse;
}

/* ── 17. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid {
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1rem;
    --navbar-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .why-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  :root {
    --section-padding: 3.5rem 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    flex-direction: column;
    align-items: center;
  }

  .client-logo-item {
    width: 160px;
    height: 190px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item::after {
    display: none;
  }

  .contact-form-wrap {
    padding: 1.5rem 1.25rem;
  }
}

/* ── 18. Keyframe Animations ──────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 20px rgba(221, 42, 27, 0.15), 0 0 0 0 rgba(221, 42, 27, 0); }
  50%       { box-shadow: 0 0 40px rgba(221, 42, 27, 0.3),  0 0 0 10px rgba(221, 42, 27, 0.04); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

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