/* ============================================
   AFAQ ALNOKHBAH - Main Stylesheet
   ============================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Light.ttf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../fonts/Alexandria-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
}
@font-face {
  font-family: 'GE Dinar';
  src: url('../fonts/GE_Dinar_One_Medium.otf') format('opentype');
  font-weight: 500;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --navy: #0d2151;
  --navy-dark: #081540;
  --navy-light: #1a3070;
  --gold: #f5a623;
  --gold-dark: #d4891a;
  --gold-light: #f7bb55;
  --white: #ffffff;
  --off-white: #f8f9ff;
  --light-gray: #e8eaf2;
  --text-muted: #8892b0;
  --overlay: rgba(8, 21, 64, 0.82);
  --overlay-light: rgba(8, 21, 64, 0.65);

  --font-en: 'Montserrat', sans-serif;
  --font-ar: 'Alexandria', 'GE Dinar', sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(8,21,64,0.12);
  --shadow-md: 0 8px 32px rgba(8,21,64,0.18);
  --shadow-lg: 0 20px 60px rgba(8,21,64,0.28);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-en);
  font-weight: 400;
  color: var(--white);
  background: var(--navy-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

body.lang-ar .en { display: none !important; }
body.lang-en .ar { display: none !important; }
body.lang-ar .ar { display: block; }
body.lang-en .en { display: block; }

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 21, 64, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(245,166,35,0.3));
  transition: var(--transition);
}

.navbar.scrolled .nav-logo img { height: 44px; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .company-name-ar {
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.nav-logo-text .company-name-en {
  font-size: 11px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(245,166,35,0.12);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 60%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 4px;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.15);
}

.lang-btn {
  padding: 5px 14px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 2px 8px rgba(245,166,35,0.4);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}

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

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/cover.jpg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,21,64,0.92) 0%,
    rgba(13,33,81,0.78) 50%,
    rgba(8,21,64,0.88) 100%
  );
}

.hero-gold-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45%;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 120px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 20px rgba(245,166,35,0.5));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 strong {
  display: block;
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(36px, 6vw, 72px);
}

.hero .hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-ar h1 {
  font-family: var(--font-ar);
  font-size: clamp(28px, 4.5vw, 58px);
}

.hero-ar h1 strong {
  font-family: var(--font-ar);
  font-size: clamp(34px, 5.5vw, 66px);
}

.hero-ar .hero-subtitle { font-family: var(--font-ar); }

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(245,166,35,0.4);
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(245,166,35,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-3px);
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

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

.hero-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--gold);
  padding: 28px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 24px;
  color: var(--navy-dark);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(8,21,64,0.2);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.5px;
}

.stat-label.ar { font-family: var(--font-ar); }

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 100px 0;
}

.section-dark { background: var(--navy-dark); }
.section-navy { background: var(--navy); }
.section-light { background: var(--off-white); color: var(--navy-dark); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title.ar { font-family: var(--font-ar); }

.section-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

.section-subtitle.ar { font-family: var(--font-ar); }

.section-light .section-subtitle { color: rgba(13,33,81,0.65); }

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  margin: 24px auto 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 480px;
  box-shadow: var(--shadow-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 24px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-image-badge .badge-number {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.about-image-badge .badge-text {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.about-content .section-header { text-align: left; margin-bottom: 32px; }

.about-text {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 32px;
  font-weight: 300;
}

.about-text.ar { font-family: var(--font-ar); }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.feature-item:hover {
  background: rgba(245,166,35,0.08);
  border-color: rgba(245,166,35,0.2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(245,166,35,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.feature-text.ar { font-family: var(--font-ar); }

/* Vision Mission */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 60px;
}

.vm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.vm-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-4px);
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.vm-icon {
  width: 56px;
  height: 56px;
  background: rgba(245,166,35,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(245,166,35,0.2);
}

.vm-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.vm-title.ar { font-family: var(--font-ar); }

.vm-text {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.85;
  font-weight: 300;
}

.vm-text.ar { font-family: var(--font-ar); }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  group: true;
  transition: var(--transition);
  height: 400px;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-bg { transform: scale(1.08); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,21,64,0.97) 0%,
    rgba(8,21,64,0.6) 50%,
    rgba(8,21,64,0.2) 100%
  );
  transition: var(--transition);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(8,21,64,0.99) 0%,
    rgba(8,21,64,0.75) 60%,
    rgba(8,21,64,0.35) 100%
  );
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px;
}

.service-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.service-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-title.ar { font-family: var(--font-ar); }

.service-title-sub {
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0.9;
}

.service-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
  font-weight: 300;
}

.service-desc.ar { font-family: var(--font-ar); }

.service-card:hover .service-desc {
  max-height: 200px;
  opacity: 1;
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 30px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(10px);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateY(0);
}

.service-arrow:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ============================================
   SERVICE DETAIL PAGE STYLES
   ============================================ */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy-dark) 10%, rgba(8,21,64,0.6) 60%, rgba(8,21,64,0.3) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  width: 100%;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.page-hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 700px;
}

.page-hero h1.ar { font-family: var(--font-ar); }

/* Service Content */
.service-intro {
  background: var(--navy);
  padding: 80px 0;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}

.feature-row:hover {
  border-color: rgba(245,166,35,0.25);
  background: rgba(245,166,35,0.05);
}

.feature-row-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-row-text {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.feature-row-text.ar { font-family: var(--font-ar); }

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

/* ============================================
   CLIENTS & PARTNERS
   ============================================ */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.logo-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid transparent;
  min-height: 100px;
}

.logo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.logo-card img {
  max-height: 60px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.3s ease;
}

.logo-card:hover img { filter: grayscale(0); }

/* Partners - government logos */
.partners-section .logo-card {
  background: rgba(255,255,255,0.97);
}

/* ============================================
   CERTIFICATES SECTION
   ============================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cert-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

.cert-card:hover {
  background: rgba(245,166,35,0.06);
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cert-icon {
  width: 52px;
  height: 52px;
  background: rgba(245,166,35,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(245,166,35,0.25);
}

.cert-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.cert-title.ar { font-family: var(--font-ar); }

.cert-issuer {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

.cert-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

.cert-desc.ar { font-family: var(--font-ar); }

.cert-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

.cert-date span { color: var(--gold-light); font-weight: 500; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.05);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy-dark);
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-item-value {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  direction: ltr;
}

/* Contact Form */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--white);
}

.form-title.ar { font-family: var(--font-ar); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.form-group label.ar { font-family: var(--font-ar); }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(245,166,35,0.06);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.5px;
}

.form-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 28px;
  font-weight: 300;
}

.footer-desc.ar { font-family: var(--font-ar); }

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4.ar { font-family: var(--font-ar); letter-spacing: 0; }

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a.ar { font-family: var(--font-ar); }

.footer-links a:hover { color: var(--gold); padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-copyright.ar { font-family: var(--font-ar); }

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.breadcrumb-inner a { color: var(--gold); }
.breadcrumb-inner .sep { opacity: 0.4; }
.breadcrumb-inner span { color: rgba(255,255,255,0.8); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   UTILITIES
   ============================================ */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-none { display: none; }
.mt-60 { margin-top: 60px; }
.mb-60 { margin-bottom: 60px; }

/* Gold divider */
.gold-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

/* Page transition */
.page-transition {
  animation: pageIn 0.5s ease forwards;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .navbar { padding: 0 24px; }
  .container { padding: 0 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { padding: 20px; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .vision-mission-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .section { padding: 70px 0; }
  .contact-form { padding: 32px 24px; }
  .about-image-badge { right: 0; bottom: -20px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .service-intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .logos-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}

/* RTL overrides */
body.lang-ar .footer-col h4::after { left: auto; right: 0; }
body.lang-ar .footer-links a:hover { padding-left: 0; padding-right: 6px; }
body.lang-ar .nav-links a::after { left: auto; right: 50%; transform: translateX(50%); }
body.lang-ar .about-image-badge { right: auto; left: -24px; }
body.lang-ar .contact-item-value { direction: ltr; text-align: left; }
