/* ==========================================================================
   Alkawther / AKHPI — Industrial Engineering & Contracting
   Global Stylesheet
   ========================================================================== */

/* -- Design Tokens ---------------------------------------------------------*/
:root {
  --navy: #0B1F33;
  --navy-2: #0E2740;
  --navy-3: #14375A;
  --blue: #145DA0;
  --blue-2: #1A6FBA;
  --steel: #5F6B73;
  --steel-2: #8A95A0;
  --light: #F4F6F8;
  --light-2: #E7ECF1;
  --white: #FFFFFF;
  --accent: #D9902F;
  --accent-2: #C57E20;
  --accent-soft: rgba(217, 144, 47, 0.12);

  --text: #0B1F33;
  --text-muted: #5F6B73;
  --text-soft: #8A95A0;
  --line: #DFE5EC;
  --line-2: #C9D2DC;

  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(11, 31, 51, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(11, 31, 51, 0.35);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --font-en: "Inter", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --container: 1240px;
  --container-narrow: 980px;

  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* -- Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.75; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* -- Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.015em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5 {
  letter-spacing: 0;
  line-height: 1.35;
  font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  font-size: 0.85rem;
  text-transform: none;
  font-weight: 700;
}

/* -- Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }
section.dark { background: var(--navy); color: var(--white); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--white); }
section.dark p { color: rgba(255,255,255,0.78); }
section.light { background: var(--light); }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 14px 0 14px; }
.section-head p { font-size: 1.05rem; }

/* -- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}

.btn svg { width: 16px; height: 16px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 12px 28px -10px rgba(217,144,47,0.55); }

.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--navy); }

.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-3); }

.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--light); }

.btn-lg { padding: 17px 30px; font-size: 1rem; }

/* -- Top bar --------------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  gap: 16px;
}
.topbar-info { display: flex; align-items: center; gap: 26px; }
.topbar-info a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.78); transition: color var(--transition); }
.topbar-info a:hover { color: var(--white); }
.topbar-info svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); padding: 6px 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; transition: var(--transition); }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch svg { width: 14px; height: 14px; }
@media (max-width: 768px) {
  .topbar-info { gap: 14px; }
  .topbar-info a:not(.lang-switch) span { display: none; }
}

/* -- Header / Nav --------------------------------------------------------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 80;
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); }
.logo-mark {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(217,144,47,0.18) 100%);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.05rem; color: var(--navy); }
.logo-text span { font-size: 0.72rem; color: var(--steel); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
html[dir="rtl"] .logo-text span { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--navy); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: -22px;
  height: 3px;
  background: var(--accent);
}
html[dir="rtl"] .nav a { font-size: 1rem; }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy); }

@media (max-width: 1080px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 1080px) {
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open a.active::after { display: none; }
}

/* -- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 110px 0 140px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(11,31,51,0.95) 0%, rgba(11,31,51,0.78) 45%, rgba(11,31,51,0.55) 100%),
    url("https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  z-index: -1;
}
html[dir="rtl"] .hero::before {
  background-image:
    linear-gradient(245deg, rgba(11,31,51,0.95) 0%, rgba(11,31,51,0.78) 45%, rgba(11,31,51,0.55) 100%),
    url("https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&w=2000&q=80");
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--white));
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.hero-text { max-width: 720px; }
.hero-text .eyebrow { background: rgba(217,144,47,0.18); border-color: rgba(217,144,47,0.55); color: #F0B663; margin-bottom: 28px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.12rem; max-width: 620px; margin-bottom: 36px; }
html[dir="rtl"] .hero p { font-size: 1.18rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item strong { font-size: 1.6rem; color: var(--accent); font-weight: 700; }
.hero-meta-item span { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

.hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 32px;
  position: relative;
}
.hero-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.14); display: flex; align-items: center; gap: 10px; }
.hero-card h3 svg { color: var(--accent); width: 20px; height: 20px; }
.hero-card ul { display: flex; flex-direction: column; gap: 14px; }
.hero-card li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,0.92); font-size: 0.95rem; line-height: 1.5; }
.hero-card li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 80px 0 100px; }
}

/* -- Core service strip --------------------------------------------------- */
.strip { background: var(--white); margin-top: -80px; position: relative; z-index: 4; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 30px 28px;
  border-inline-end: 1px solid var(--line);
  transition: var(--transition);
}
.strip-item:last-child { border-inline-end: 0; }
.strip-item:hover { background: var(--light); }
.strip-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.strip-icon svg { width: 24px; height: 24px; }
.strip-item h4 { font-size: 1rem; margin-bottom: 6px; line-height: 1.35; }
.strip-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 1024px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-inline-end: 0; }
  .strip-item:nth-child(1), .strip-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-inline-end: 0 !important; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
}

/* -- About preview -------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap .img-primary {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.about-img-wrap .img-accent {
  position: absolute;
  bottom: -40px;
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 8px solid var(--white);
  box-shadow: var(--shadow-md);
}
html:not([dir="rtl"]) .about-img-wrap .img-accent { right: -40px; }
html[dir="rtl"] .about-img-wrap .img-accent { left: -40px; }

.about-badge {
  position: absolute;
  top: 30px;
  background: var(--accent);
  color: var(--white);
  padding: 18px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  line-height: 1.3;
}
.about-badge strong { display: block; font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
html:not([dir="rtl"]) .about-badge { left: 30px; }
html[dir="rtl"] .about-badge { right: 30px; }

.about-text h2 { margin: 16px 0 24px; }
.about-text p { margin-bottom: 18px; font-size: 1.02rem; }
.about-text .signature {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
}
.signature-name strong { color: var(--navy); display: block; font-size: 1.05rem; }
.signature-name span { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-img-wrap .img-primary { height: 420px; }
  .about-img-wrap .img-accent { width: 150px; height: 150px; }
}

/* -- Stats ---------------------------------------------------------------- */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(217,144,47,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(20,93,160,0.18) 0%, transparent 50%);
}
.stats-inner { position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.stat-item {
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: 0; }
html[dir="rtl"] .stat-item { border-right: 0; border-left: 1px solid rgba(255,255,255,0.12); }
html[dir="rtl"] .stat-item:last-child { border-left: 0; }
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  font-family: var(--font-en);
}
.stat-label { color: rgba(255,255,255,0.78); font-size: 0.9rem; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: 0 !important; border-left: 0 !important; }
}

/* -- Services overview ---------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: var(--shadow-lg); }
.svc-img { height: 220px; overflow: hidden; position: relative; background: var(--light); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-img-tag {
  position: absolute;
  top: 14px;
  background: var(--navy);
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}
html:not([dir="rtl"]) .svc-img-tag { left: 14px; }
html[dir="rtl"] .svc-img-tag { right: 14px; letter-spacing: 0; text-transform: none; }

.svc-body { padding: 26px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.svc-body h3 { margin-bottom: 12px; font-size: 1.2rem; }
.svc-body p { font-size: 0.95rem; margin-bottom: 20px; flex: 1; }
.svc-body .svc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.svc-body .svc-more svg { width: 14px; height: 14px; color: var(--accent); transition: var(--transition); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }
html[dir="rtl"] .svc-card:hover .svc-more svg { transform: translateX(-4px); }

@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .svc-grid { grid-template-columns: 1fr; } }

/* -- Capabilities -------------------------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.cap-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  min-height: 360px;
  isolation: isolate;
}
.cap-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
  z-index: -1;
  transition: transform 800ms, opacity var(--transition);
}
.cap-card:hover img { transform: scale(1.05); opacity: 0.6; }
.cap-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,51,0.45) 0%, rgba(11,31,51,0.85) 100%);
  z-index: -1;
}
.cap-body {
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cap-num {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.cap-card h3 { color: var(--white); margin-bottom: 14px; font-size: 1.4rem; }
.cap-card p { color: rgba(255,255,255,0.88); font-size: 0.95rem; max-width: 480px; }
.cap-icon {
  position: absolute;
  top: 30px;
  width: 54px; height: 54px;
  background: rgba(217,144,47,0.15);
  border: 1px solid rgba(217,144,47,0.4);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
html:not([dir="rtl"]) .cap-icon { right: 30px; }
html[dir="rtl"] .cap-icon { left: 30px; }
.cap-icon svg { width: 24px; height: 24px; }

@media (max-width: 840px) { .cap-grid { grid-template-columns: 1fr; } }

/* -- Industries gallery -------------------------------------------------- */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.ind-card {
  position: relative;
  aspect-ratio: 1 / 1.2;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.ind-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.ind-card:hover img { transform: scale(1.08); }
.ind-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,31,51,0.92) 100%);
}
.ind-card h4 {
  position: absolute;
  bottom: 18px;
  inset-inline: 18px;
  color: var(--white);
  font-size: 1rem;
  z-index: 2;
}
@media (max-width: 1100px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }

/* -- Why choose ---------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.why-features { display: grid; gap: 20px; }
.why-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.why-item:hover { border-color: var(--accent); background: var(--white); box-shadow: var(--shadow-md); }
.why-item-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.why-item-icon svg { width: 22px; height: 22px; }
.why-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.why-item p { font-size: 0.92rem; margin: 0; }

.why-img-wrap { position: relative; }
.why-img-wrap img { width: 100%; height: 600px; object-fit: cover; border-radius: 14px; }
.why-tag {
  position: absolute;
  bottom: 30px;
  background: var(--white);
  color: var(--navy);
  padding: 20px 24px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  max-width: 280px;
  line-height: 1.4;
}
.why-tag svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 8px; }
.why-tag p { font-size: 0.9rem; color: var(--text-muted); margin: 0; font-weight: 400; }
html:not([dir="rtl"]) .why-tag { left: 30px; }
html[dir="rtl"] .why-tag { right: 30px; }

@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-img-wrap img { height: 460px; }
}

/* -- Project gallery ----------------------------------------------------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--navy);
  cursor: pointer;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.gal-item:hover img { transform: scale(1.08); }
.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,31,51,0.9) 100%);
  transition: var(--transition);
}
.gal-item:hover::after { background: linear-gradient(180deg, rgba(11,31,51,0.2) 0%, rgba(11,31,51,0.95) 100%); }
.gal-meta {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  inset-inline-end: 18px;
  z-index: 2;
  color: var(--white);
}
.gal-meta span { font-size: 0.72rem; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.gal-meta h4 { color: var(--white); font-size: 1.05rem; }
html[dir="rtl"] .gal-meta span { letter-spacing: 0; text-transform: none; }

.gi-1 { grid-column: span 6; grid-row: span 2; }
.gi-2 { grid-column: span 3; grid-row: span 1; }
.gi-3 { grid-column: span 3; grid-row: span 1; }
.gi-4 { grid-column: span 3; grid-row: span 1; }
.gi-5 { grid-column: span 3; grid-row: span 1; }
.gi-6 { grid-column: span 4; grid-row: span 1; }
.gi-7 { grid-column: span 4; grid-row: span 1; }
.gi-8 { grid-column: span 4; grid-row: span 1; }

@media (max-width: 1024px) {
  .gal-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .gi-1 { grid-column: span 6; grid-row: span 2; }
  .gi-2, .gi-3, .gi-4, .gi-5 { grid-column: span 3; }
  .gi-6, .gi-7, .gi-8 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .gal-grid { grid-template-columns: 1fr; }
  .gi-1, .gi-2, .gi-3, .gi-4, .gi-5, .gi-6, .gi-7, .gi-8 { grid-column: span 1; grid-row: span 1; }
}

/* -- CTA Block ----------------------------------------------------------- */
.cta-block {
  background:
    linear-gradient(115deg, rgba(11,31,51,0.92), rgba(20,93,160,0.85)),
    url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 60px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 520px; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
html[dir="rtl"] .cta-actions { justify-content: flex-start; }
@media (max-width: 900px) {
  .cta-block { grid-template-columns: 1fr; padding: 50px 30px; }
  .cta-actions { justify-content: flex-start; }
}

/* -- Footer -------------------------------------------------------------- */
.footer {
  background: #061525;
  color: rgba(255,255,255,0.78);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { color: var(--white); }
.footer .logo-text strong { color: var(--white); }
.footer .logo-text span { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.7; margin-top: 22px; }
.footer-col h4 { color: var(--white); margin-bottom: 22px; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }
html[dir="rtl"] .footer-col h4 { letter-spacing: 0; text-transform: none; font-size: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.92rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.footer-contact-item a { color: rgba(255,255,255,0.78); }
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* -- Page header (sub pages) -------------------------------------------- */
.page-head {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(11,31,51,0.88), rgba(11,31,51,0.55)),
    url("https://images.unsplash.com/photo-1565008447742-97f6f38c985c?auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.page-head h1 { color: var(--white); margin-bottom: 18px; }
.page-head p { color: rgba(255,255,255,0.85); max-width: 720px; font-size: 1.08rem; }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.crumbs a { color: var(--accent); }
.crumbs span:last-child { color: var(--white); }
.crumbs svg { width: 12px; height: 12px; color: rgba(255,255,255,0.4); }
html[dir="rtl"] .crumbs svg { transform: scaleX(-1); }

/* -- Generic Two-col / Content ------------------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.two-col img { width: 100%; height: 480px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-md); }
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col img { height: 360px; }
}

.content-block { max-width: 760px; }
.content-block h3 { margin-top: 36px; margin-bottom: 14px; }
.content-block p { margin-bottom: 16px; font-size: 1.02rem; }
.content-block ul.tick { display: grid; gap: 12px; margin-top: 20px; }
.content-block ul.tick li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: 1rem; }
.content-block ul.tick li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9902F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
  border-radius: 50%;
  margin-top: 3px;
}

/* -- Values grid -------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 26px;
  transition: var(--transition);
}
.value-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h4 { margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; margin: 0; }
@media (max-width: 1024px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }

/* -- Services list (services page) -------------------------------------- */
.svc-list { display: grid; gap: 24px; }
.svc-list-item {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}
.svc-list-item:hover { box-shadow: var(--shadow-lg); border-color: var(--navy); }
.svc-list-item .svc-img { height: 100%; min-height: 260px; }
.svc-list-body { padding: 32px; }
.svc-list-body .num { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; margin-bottom: 10px; font-family: var(--font-en); }
.svc-list-body h3 { margin-bottom: 14px; }
.svc-list-body p { margin-bottom: 18px; }
.svc-list-features {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.svc-list-features span {
  font-size: 0.82rem;
  padding: 6px 12px;
  background: var(--light);
  color: var(--navy);
  border-radius: 6px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .svc-list-item { grid-template-columns: 1fr; }
  .svc-list-item .svc-img { min-height: 220px; }
}

/* -- Capability detail (large) ------------------------------------------ */
.cap-section { padding: 100px 0; }
.cap-section:nth-child(even) { background: var(--light); }
.cap-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.cap-section:nth-child(odd) .cap-section-img { order: 2; }
html[dir="rtl"] .cap-section:nth-child(odd) .cap-section-img { order: 0; }

.cap-section-img img { width: 100%; height: 520px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-md); }
.cap-section-text .cap-num { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.18em; font-family: var(--font-en); }
.cap-section-text h2 { margin: 14px 0 22px; }
.cap-section-text p { font-size: 1.05rem; margin-bottom: 18px; }
.cap-section-text ul.tick li { color: var(--text); }
@media (max-width: 1024px) {
  .cap-section-inner { grid-template-columns: 1fr; gap: 40px; }
  .cap-section:nth-child(odd) .cap-section-img { order: 0; }
  .cap-section-img img { height: 380px; }
}

/* -- Gallery page (full) ------------------------------------------------ */
.proj-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.proj-filter {
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  transition: var(--transition);
}
.proj-filter:hover { border-color: var(--navy); }
.proj-filter.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.proj-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--navy); }
.proj-img { height: 240px; overflow: hidden; background: var(--light); position: relative; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.proj-card:hover .proj-img img { transform: scale(1.06); }
.proj-cat {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(11,31,51,0.92);
  color: var(--white);
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}
html[dir="rtl"] .proj-cat { letter-spacing: 0; text-transform: none; }
.proj-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.proj-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.proj-body p { font-size: 0.92rem; margin: 0; }

@media (max-width: 1024px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proj-grid { grid-template-columns: 1fr; } }

/* -- Industries page ---------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.industry-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.industry-img { background: var(--light); }
.industry-img img { width: 100%; height: 100%; object-fit: cover; }
.industry-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.industry-body h4 { margin-bottom: 8px; }
.industry-body p { font-size: 0.92rem; margin: 0; }
@media (max-width: 1024px) { .industries-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .industry-card { grid-template-columns: 1fr; } .industry-img { height: 180px; } }

/* -- Contact ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
}
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(217,144,47,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .fields-row { grid-template-columns: 1fr; } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--accent); }
.contact-card-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card h4 { margin-bottom: 6px; font-size: 1rem; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--text-muted); display: block; margin: 0; }
.contact-card a:hover { color: var(--navy); }

.map-box {
  margin-top: 30px;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background:
    linear-gradient(135deg, rgba(11,31,51,0.7), rgba(20,93,160,0.5)),
    url("https://images.unsplash.com/photo-1524813686514-a57563d77965?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.map-box .map-pin {
  background: var(--white);
  color: var(--navy);
  padding: 18px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.map-box .map-pin svg { color: var(--accent); width: 24px; height: 24px; }
.map-box .map-pin strong { display: block; }
.map-box .map-pin span { color: var(--text-muted); font-size: 0.85rem; }

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

/* -- Profile page -------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.profile-row {
  display: contents;
}
.profile-row .label,
.profile-row .value {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.profile-row .label {
  background: var(--light);
  font-weight: 700;
  color: var(--navy);
  border-inline-end: 1px solid var(--line);
}
.profile-row .value { color: var(--text); font-weight: 500; }
.profile-row:last-child .label,
.profile-row:last-child .value { border-bottom: 0; }
@media (max-width: 700px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-row .label { border-inline-end: 0; }
}

/* -- Site credit (designed by) ----------------------------------------- */
.site-credit {
  background: #03101D;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.04em;
}
.site-credit span { opacity: 0.7; margin-inline-end: 8px; }
.site-credit a {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-family: var(--font-en);
  transition: var(--transition);
  padding-inline-start: 4px;
  border-bottom: 1px solid transparent;
}
.site-credit a:hover {
  color: #F0B663;
  border-bottom-color: rgba(217,144,47,0.4);
}
html[dir="rtl"] .site-credit { font-size: 0.85rem; letter-spacing: 0; }
html[dir="rtl"] .site-credit span { margin-inline-end: 6px; }

/* -- Sticky CTA mobile -------------------------------------------------- */
.sticky-call {
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  z-index: 90;
  display: none;
  gap: 10px;
  flex-direction: column;
}
.sticky-call a {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.sticky-call a:hover { transform: scale(1.06); }
.sticky-call a.wa { background: #25D366; }
.sticky-call a svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .sticky-call { display: flex; } }

/* -- Reveal animation -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(0.22,1,0.36,1), transform 700ms cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* -- Helpers ----------------------------------------------------------- */
.text-accent { color: var(--accent); }
.spacer-sm { height: 30px; }
.spacer-md { height: 60px; }
.lead { font-size: 1.12rem; color: var(--text); line-height: 1.7; }
.divider { width: 60px; height: 3px; background: var(--accent); border: 0; margin: 20px 0 28px; }
