/* ============================================================
   ALRAYA GROUP — MAIN STYLESHEET
   Colors: #C1272D (red), #E8735A (coral), #1B3A5C (navy)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CUSTOM PROPERTIES ── */
:root {
  --red:          #C1272D;
  --coral:        #E8735A;
  --navy:         #1B3A5C;
  --navy-light:   #2a5185;
  --dark-section: #0B1829;
  --cream:        #FAF8F5;
  --white:        #FFFFFF;
  --grey-50:      #F8F8F8;
  --grey-100:     #F0F0F0;
  --grey-300:     #D0D0D0;
  --grey-600:     #666666;
  --grey-800:     #222222;

  --font-ar-heading: 'Tajawal', sans-serif;
  --font-ar-body:    'IBM Plex Sans Arabic', sans-serif;
  --font-en-heading: 'DM Serif Display', serif;
  --font-en-body:    'Inter', sans-serif;

  --transition:      0.3s ease;
  --transition-slow: 0.75s ease-out;
  --radius:     16px;
  --shadow:     0 2px 20px rgba(27,58,92,0.07);
  --shadow-lg:  0 12px 48px rgba(27,58,92,0.13);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 96px; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ── BODY / LANGUAGE MODES ── */
body {
  background: var(--white);
  color: var(--grey-800);
  line-height: 1.7;
}

/* Arabic (RTL) — default */
body.lang-ar {
  font-family: var(--font-ar-body);
  direction: rtl;
  text-align: right;
}
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 {
  font-family: var(--font-ar-heading);
  font-weight: 700;
}

/* English (LTR) */
body.lang-en {
  font-family: var(--font-en-body);
  direction: ltr;
  text-align: left;
}
body.lang-en h1,
body.lang-en h2,
body.lang-en h3,
body.lang-en h4 {
  font-family: var(--font-en-heading);
  font-weight: 400;
}

/* hide/show language content — revert preserves block vs inline */
.ar { display: none !important; }
.en { display: none !important; }
body.lang-ar .ar { display: revert !important; }
body.lang-ar .en { display: none !important; }
body.lang-en .en { display: revert !important; }
body.lang-en .ar { display: none !important; }

/* ── LAYOUT HELPERS ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0 80px; }
.section-alt  { background: var(--cream); }
.section-dark { background: var(--dark-section); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
body.lang-ar .section-tag { letter-spacing: 0.06em; }

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
body.lang-ar .section-title { letter-spacing: 0; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 600px;
  margin-bottom: 56px;
}
body.lang-ar .section-subtitle { max-width: 700px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--coral));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(193,39,45,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(193,39,45,0.52);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
}

/* ── WAVE DIVIDER ── */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; width: 100%; }

/* ╔══════════════════════════════════════╗
   ║  NAV / HEADER                        ║
   ╚══════════════════════════════════════╝ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(27,58,92,0.10);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img,
.nav-logo-img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  /* white glow for legibility on dark hero */
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35)) drop-shadow(0 2px 8px rgba(0,0,0,0.40));
  transition: filter var(--transition), height var(--transition);
}
/* scrolled: white navbar */
#navbar.scrolled .nav-inner { height: 80px; }
#navbar.scrolled .nav-logo-img {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12));
  height: 48px;
}

/* Footer logo — white-tinted on dark navy background */
.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}
#navbar.scrolled .nav-links a { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-en-body);
}
#navbar.scrolled .lang-toggle {
  border-color: var(--navy);
  color: var(--navy);
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.15);
}
#navbar.scrolled .lang-toggle:hover {
  background: var(--grey-100);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
#navbar.scrolled .hamburger span { background: var(--navy); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0.9;
}
.mobile-nav a:hover { opacity: 1; color: var(--coral); }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--white);
  font-size: 1.5rem;
}
body.lang-ar .mobile-nav-close { right: auto; left: 24px; }
.mobile-nav .lang-toggle {
  border-color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* ╔══════════════════════════════════════╗
   ║  HERO                                ║
   ╚══════════════════════════════════════╝ */
#hero {
  height: 100vh;
  min-height: 680px;
  background:
    linear-gradient(160deg, rgba(7,12,24,0.93) 0%, rgba(11,20,40,0.86) 50%, rgba(18,9,28,0.91) 100%),
    url('../services/hero.webp') center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 96px;
}

/* Decorative circles */
#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,39,45,0.18) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,115,90,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 120px;
}
body.lang-ar .hero-inner { direction: rtl; }

.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,115,90,0.15);
  border: 1px solid rgba(232,115,90,0.3);
  color: var(--coral);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
body.lang-ar .hero-title { letter-spacing: 0; }
.hero-title .highlight {
  background: linear-gradient(135deg, var(--red), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.8;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-4px);
}
.stat-number {
  font-family: var(--font-en-heading);
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-number .unit {
  font-size: 1.4rem;
  color: var(--coral);
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
body.lang-ar .stat-label { font-family: var(--font-ar-body); }

.hero-iso {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
}
.iso-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--red), var(--coral));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.iso-text { color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.iso-text strong { color: white; display: block; margin-bottom: 2px; font-size: 0.95rem; }

/* ── HERO SCROLL INDICATOR ── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-en-body);
  z-index: 10;
  opacity: 0;
  animation: scrollIndicatorFade 0.8s ease-out 2.2s forwards;
  pointer-events: none;
}
.hero-scroll-indicator svg {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ── HERO WAVE ── */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ╔══════════════════════════════════════╗
   ║  WHY ALRAYA                          ║
   ╚══════════════════════════════════════╝ */
#why {
  padding: 80px 0;
  background: var(--cream);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1.5px solid var(--grey-100);
  background: var(--white);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.why-card:hover {
  border-color: rgba(193,39,45,0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.why-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(193,39,45,0.08), rgba(232,115,90,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon svg { width: 26px; height: 26px; }
.why-text h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}
body.lang-ar .why-text h3 { font-family: var(--font-ar-heading); }
.why-text p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.65;
}

/* ╔══════════════════════════════════════╗
   ║  ABOUT                               ║
   ╚══════════════════════════════════════╝ */
#about {
  background: var(--dark-section);
  color: white;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
#about::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,39,45,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-main .section-tag { color: var(--coral); }
.about-main .section-title { color: white; margin-bottom: 24px; }
.about-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 40px;
}
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.pillar-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-content h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
body.lang-ar .pillar-content h4 { font-family: var(--font-ar-heading); }
.pillar-content p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.6;
}

.about-values .section-tag { color: var(--coral); }
.values-title {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 28px;
}
body.lang-ar .values-title { font-family: var(--font-ar-heading); }
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.value-item {
  padding: 24px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.value-item:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(232,115,90,0.3);
}
.value-icon { margin-bottom: 12px; display: flex; }
.value-icon svg { width: 30px; height: 30px; }
.value-item h4 {
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}
body.lang-ar .value-item h4 { font-family: var(--font-ar-heading); }
.value-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ╔══════════════════════════════════════╗
   ║  SERVICES                            ║
   ╚══════════════════════════════════════╝ */
#services {
  background: var(--grey-50);
  padding: 96px 0;
}
.services-intro {
  margin-bottom: 56px;
}
.services-intro-text {
  color: var(--grey-600);
  font-size: 0.95rem;
  max-width: 680px;
  line-height: 1.75;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  border: 1.5px solid var(--grey-100);
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover {
  border-color: rgba(193,39,45,0.25);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* ── Image cards ── */
.service-card--img {
  padding-top: 0;
  overflow: hidden;
}
.svc-img {
  height: 188px;
  overflow: hidden;
  /* extend to card left/right edges, cancel left/right padding */
  margin: 0 -24px 20px;
  flex-shrink: 0;
}
.svc-img picture,
.svc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.service-card--img:hover .svc-img img {
  transform: scale(1.05);
}
@media (max-width: 480px) {
  .svc-img { height: 160px; }
}
.service-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(193,39,45,0.08), rgba(232,115,90,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon-wrap svg {
  width: 32px; height: 32px;
}
.service-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.4;
  font-weight: 700;
}
body.lang-ar .service-card h3 { font-family: var(--font-ar-heading); }
.service-card p {
  font-size: 0.82rem;
  color: var(--grey-600);
  line-height: 1.65;
  flex: 1;
}
.service-num {
  font-family: var(--font-en-heading);
  font-size: 2rem;
  color: rgba(193,39,45,0.10);
  font-weight: 400;
  line-height: 1;
  margin-top: auto;
}

/* ╔══════════════════════════════════════╗
   ║  CLIENTS / PROJECTS                  ║
   ╚══════════════════════════════════════╝ */
#clients { padding: 96px 0; background: var(--dark-section); }

/* Dark-section text & card overrides */
#clients .section-tag  { color: var(--coral); }
#clients .section-title { color: var(--white); }
#clients .clients-intro { color: rgba(255,255,255,0.62); }
#clients .client-badge {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
}
#clients .client-badge:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 8px 36px rgba(0,0,0,0.30);
}
#clients .client-info h4 { color: var(--white); }
#clients .client-info span { color: rgba(255,255,255,0.45); }
#clients .gov-tag  { background: rgba(232,115,90,0.16); color: var(--coral); }
#clients .priv-tag { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.65); }

.clients-intro {
  font-size: 1rem;
  color: var(--grey-600);
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.75;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.client-badge {
  background: var(--grey-50);
  border: 1.5px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.client-badge:hover {
  border-color: rgba(27,58,92,0.2);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.client-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}
.client-info h4 {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
}
body.lang-ar .client-info h4 { font-family: var(--font-ar-heading); }
.client-info span {
  font-size: 0.77rem;
  color: var(--grey-600);
  display: flex;
  align-items: center;
  gap: 4px;
}
.gov-tag {
  background: rgba(27,58,92,0.08);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.priv-tag {
  background: rgba(232,115,90,0.12);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ╔══════════════════════════════════════╗
   ║  CERTIFICATIONS                      ║
   ╚══════════════════════════════════════╝ */
#certifications {
  background: var(--cream);
  padding: 96px 0;
  position: relative;
}
.certs-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.iso-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.iso-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--grey-100);
  transition: var(--transition);
}
.iso-card:hover {
  border-color: rgba(193,39,45,0.2);
  transform: translateX(-4px);
  box-shadow: var(--shadow-lg);
}
body.lang-en .iso-card:hover { transform: translateX(4px); }
.iso-badge {
  min-width: 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--red), var(--coral));
  color: white;
  border-radius: 10px;
  padding: 12px 8px;
}
.iso-badge .std { font-size: 0.72rem; font-weight: 600; opacity: 0.85; font-family: var(--font-en-body); }
.iso-badge .num { font-size: 1.1rem; font-weight: 800; font-family: var(--font-en-body); line-height: 1.2; }
.iso-badge .year { font-size: 0.68rem; opacity: 0.75; font-family: var(--font-en-body); }
.iso-info h4 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 700;
}
body.lang-ar .iso-info h4 { font-family: var(--font-ar-heading); }
.iso-info p {
  color: var(--grey-600);
  font-size: 0.82rem;
}

.registrations h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 24px;
}
body.lang-ar .registrations h3 { font-family: var(--font-ar-heading); }
.reg-scope {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--grey-100);
  margin-bottom: 20px;
}
.reg-scope h4 {
  color: var(--grey-600);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
body.lang-ar .reg-scope h4 { letter-spacing: 0.04em; }
.reg-scope p { color: var(--navy); font-size: 0.9rem; line-height: 1.65; }
.reg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--grey-100);
  font-size: 0.88rem;
  color: var(--navy);
}
.reg-item::before {
  content: '✓';
  color: var(--coral);
  font-weight: 700;
  flex-shrink: 0;
}

/* ╔══════════════════════════════════════╗
   ║  CONTACT                             ║
   ╚══════════════════════════════════════╝ */
#contact {
  background: var(--white);
  padding: 96px 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info .section-title { margin-bottom: 12px; }
.contact-info .section-subtitle { margin-bottom: 36px; }
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-item-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(193,39,45,0.08), rgba(232,115,90,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 22px; height: 22px; }
.client-icon svg       { width: 22px; height: 22px; }
.iso-icon svg          { width: 22px; height: 22px; }
#scroll-top svg        { width: 20px; height: 20px; }
.contact-item-text h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}
body.lang-ar .contact-item-text h4 { letter-spacing: 0.03em; }
.contact-item-text a,
.contact-item-text p {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
}
.contact-item-text a:hover { color: var(--red); }

.employee-portal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  transition: var(--transition);
}
.employee-portal:hover { background: var(--navy-light); transform: translateY(-2px); }
.employee-portal svg { width: 20px; height: 20px; }

/* Contact Form */
.contact-form-wrap {
  background: var(--grey-50);
  border-radius: 20px;
  padding: 40px 36px;
  border: 1.5px solid var(--grey-100);
}
.form-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 28px;
}
body.lang-ar .form-title { font-family: var(--font-ar-heading); }
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--grey-300);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--grey-800);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(193,39,45,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: var(--navy);
  font-weight: 600;
}

/* ╔══════════════════════════════════════╗
   ║  FOOTER                              ║
   ╚══════════════════════════════════════╝ */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo img,
.footer-brand .nav-logo-svg {
  height: 44px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
body.lang-ar .footer-col h4 { font-family: var(--font-ar-heading); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--coral); }

/* ╔══════════════════════════════════════╗
   ║  SCROLL-TO-TOP                       ║
   ╚══════════════════════════════════════╝ */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--coral));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(193,39,45,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 500;
}
body.lang-ar #scroll-top { right: auto; left: 32px; }
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: translateY(-4px); }

/* ╔══════════════════════════════════════╗
   ║  ANIMATIONS & KEYFRAMES              ║
   ╚══════════════════════════════════════╝ */

/* Hero entrance — fires on page load via CSS animation */
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}
.hero-enter {
  opacity: 0;
  animation: heroEnter 0.9s ease-out forwards;
}
.hero-enter-1 { animation-delay: 0.10s; }
.hero-enter-2 { animation-delay: 0.30s; }
.hero-enter-3 { animation-delay: 0.52s; }
.hero-enter-4 { animation-delay: 0.74s; }
.hero-enter-5 { animation-delay: 0.96s; }

/* Scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.45; }
  50%       { transform: translateY(9px); opacity: 0.90; }
}
@keyframes scrollIndicatorFade {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Counter pop */
@keyframes countPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.count-pop { animation: countPop 0.3s ease-out; }

/* Scroll-triggered fade + slide-up */
.fade-in {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1  { transition-delay: 0.10s; }
.fade-in-delay-2  { transition-delay: 0.18s; }
.fade-in-delay-3  { transition-delay: 0.26s; }
.fade-in-delay-4  { transition-delay: 0.34s; }
.fade-in-delay-5  { transition-delay: 0.42s; }
.fade-in-delay-6  { transition-delay: 0.50s; }
.fade-in-delay-7  { transition-delay: 0.58s; }
.fade-in-delay-8  { transition-delay: 0.66s; }
.fade-in-delay-9  { transition-delay: 0.74s; }
.fade-in-delay-10 { transition-delay: 0.82s; }
.fade-in-delay-11 { transition-delay: 0.90s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: opacity 0.25s ease; transform: none !important; }
  .hero-enter { animation-duration: 0.01ms; opacity: 1; }
  .hero-scroll-indicator { animation: none; opacity: 0.45; }
  .hero-scroll-indicator svg { animation: none; }
  .service-card--img:hover .svc-img img { transform: none; }
  .stat-card:hover,
  .why-card:hover,
  .iso-card:hover   { transform: none; }
  .btn-primary:hover { transform: none; }
}

/* ╔══════════════════════════════════════╗
   ║  RESPONSIVE                          ║
   ╚══════════════════════════════════════╝ */

/* ── Tablet landscape (≤1100px) ── */
@media (max-width: 1100px) {
  .services-grid    { grid-template-columns: repeat(3, 1fr); }
  .hero-inner       { gap: 40px; }
  .stat-number      { font-size: 2.4rem; }
}

/* ── Tablet portrait (≤1024px) ── */
@media (max-width: 1024px) {
  .services-grid    { grid-template-columns: repeat(3, 1fr); }
  .about-grid       { grid-template-columns: 1fr; gap: 48px; }
  .values-grid      { grid-template-columns: 1fr 1fr; }
  .clients-grid     { grid-template-columns: repeat(2, 1fr); }
  .certs-layout     { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout   { gap: 40px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand     { grid-column: span 2; }
}

/* ── Tablet / large phone (≤768px) ── */
@media (max-width: 768px) {
  /* layout */
  .container        { padding: 0 20px; }
  .section          { padding: 60px 0 52px; }

  /* navbar */
  .nav-links           { display: none; }
  .nav-actions .btn    { display: none; }
  .hamburger           { display: flex; }
  .nav-inner           { height: 76px; }
  .nav-logo-img        { height: 56px; }
  #navbar.scrolled .nav-inner   { height: 68px; }
  #navbar.scrolled .nav-logo-img{ height: 50px; }

  /* hero */
  #hero             { padding-top: 76px; }
  html              { scroll-padding-top: 76px; }
  .hero-inner       { grid-template-columns: 1fr; padding: 48px 0 80px; gap: 0; }
  .hero-visual      { display: none; }
  .hero-title       { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-subtitle    { font-size: 0.95rem; max-width: 100%; }
  .hero-scroll-indicator { bottom: 72px; }
  .hero-badge       { margin-bottom: 20px; }

  /* sections */
  .section-title    { font-size: clamp(1.7rem, 5vw, 2.4rem); }
  .section-subtitle { margin-bottom: 36px; }
  .why-grid         { grid-template-columns: 1fr; }
  .services-grid    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .clients-grid     { grid-template-columns: 1fr; }
  .values-grid      { grid-template-columns: 1fr; gap: 12px; }
  .certs-layout     { grid-template-columns: 1fr; gap: 36px; }
  .contact-layout   { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand     { grid-column: span 1; }
  .footer-bottom    { flex-direction: column; text-align: center; gap: 8px; }

  /* about */
  .about-pillars    { gap: 14px; }
  .about-desc       { font-size: 0.93rem; }

  /* contact */
  .contact-form-wrap { padding: 28px 22px; }

  /* certifications */
  .iso-card         { flex-direction: row; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .container        { padding: 0 16px; }
  .section          { padding: 52px 0 44px; }

  /* navbar */
  .nav-inner        { height: 68px; }
  .nav-logo-img     { height: 50px; }
  #navbar.scrolled .nav-inner    { height: 62px; }
  #navbar.scrolled .nav-logo-img { height: 44px; }
  #hero             { padding-top: 68px; }
  html              { scroll-padding-top: 68px; }

  /* hero */
  .hero-inner       { padding: 36px 0 72px; }
  .hero-title       { font-size: clamp(1.75rem, 8.5vw, 2.2rem); letter-spacing: -0.01em; }
  .hero-subtitle    { font-size: 0.9rem; line-height: 1.75; }
  .hero-ctas        { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn   { justify-content: center; }
  .hero-badge       { font-size: 0.73rem; }
  .hero-scroll-indicator { bottom: 60px; }
  .hero-scroll-indicator svg { width: 18px; height: 18px; }

  /* grid */
  .services-grid    { grid-template-columns: 1fr; gap: 12px; }
  .why-grid         { gap: 14px; }
  .why-card         { padding: 24px 20px; }

  /* service cards */
  .service-card     { padding: 24px 20px 20px; }
  .service-icon-wrap{ width: 52px; height: 52px; }

  /* clients */
  .clients-grid     { gap: 12px; }
  .client-badge     { padding: 20px 18px; }

  /* certs */
  .iso-badge        { min-width: 68px; }
  .iso-card         { padding: 18px 20px; gap: 14px; }

  /* contact */
  .contact-form-wrap{ padding: 22px 16px; }
  .employee-portal  { font-size: 0.85rem; padding: 13px 16px; }

  /* footer */
  .footer-bottom    { font-size: 0.78rem; }

  /* scroll-to-top */
  #scroll-top                    { bottom: 20px; right: 20px; }
  body.lang-ar #scroll-top       { right: auto; left: 20px; }
}

/* ── Very small phones (≤360px) ── */
@media (max-width: 360px) {
  .container      { padding: 0 14px; }
  .hero-title     { font-size: 1.65rem; }
  .section-title  { font-size: 1.6rem; }
  .btn            { padding: 12px 22px; font-size: 0.88rem; }
  .service-card h3{ font-size: 0.88rem; }
}
