/* ==========================================================================
   Durrat Al Khaleej (DaK) — static site stylesheet
   Design language: "tank course" — the stacked steel plate rings of a
   storage tank shell, staggered weld seams, and equipment nameplates.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette derived from the company logo: #0081B0 and #29BED9 */
  --ink:        #071620;
  --steel:      #0F2836;
  --steel-2:    #17394B;
  --steel-3:    #2E5468;
  --mist:       #E6EDF0;
  --mist-2:     #F3F7F8;
  --paper:      #FFFFFF;
  --amber:      #0081B0;   /* brand — accent on light */
  --amber-dk:   #00658A;   /* brand, darker — hover / small text */
  --brand-lt:   #29BED9;   /* brand, bright — accent on dark */
  --teal:       #0081B0;

  --line:       rgba(7, 22, 32, .14);
  --line-soft:  rgba(7, 22, 32, .08);
  --line-dark:  rgba(255, 255, 255, .12);

  --txt:        #10222D;
  --txt-soft:   #536B78;
  --txt-invert: #EAF2F5;

  --display: "IBM Plex Sans Condensed", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --body:    "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "Courier New", monospace;

  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

html[dir="rtl"] {
  --display: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --body:    "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono:    "IBM Plex Sans Arabic", ui-monospace, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--txt);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; background: var(--mist); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-lt); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--mist { background: var(--mist-2); }
.section--dark { background: var(--ink); color: var(--txt-invert); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--txt-soft); }
.section--dark .lead { color: rgba(238, 242, 243, .72); }

/* eyebrow: mono tag, reads like a drawing reference */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-dk);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.section--dark .eyebrow, .hero .eyebrow, .pagehead .eyebrow { color: var(--brand-lt); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.h-sec {
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: -.02em;
  max-width: 20ch;
}
html[dir="rtl"] .h-sec { letter-spacing: 0; line-height: 1.35; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--ink);
  border-radius: var(--radius);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn { color: #fff; }
.btn:hover { background: var(--amber-dk); border-color: var(--amber-dk); color: #fff; }
.btn--ghost { background: transparent; color: var(--txt); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.section--dark .btn--ghost, .hero .btn--ghost { color: var(--txt-invert); border-color: rgba(255,255,255,.28); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
html[dir="rtl"] .btn { letter-spacing: 0; font-size: 14px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: rgba(238,242,243,.62);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
html[dir="rtl"] .topbar { font-size: 13px; letter-spacing: 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a:hover { color: var(--brand-lt); }
.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 42px; width: auto; background: none; }
.brand-fallback { font-family: var(--display); font-size: 20px; letter-spacing: -.01em; line-height: 1.15; }
.brand-fallback span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--amber-dk); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: var(--radius);
  color: var(--txt);
  position: relative;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .22s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.lang {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.lang:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span { position: absolute; inset-inline: 12px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero: the tank shell ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--txt-invert);
  overflow: hidden;
  isolation: isolate;
}
.hero-shell { position: absolute; inset: 0; z-index: -1; opacity: .95; }
.hero-shell svg { width: 100%; height: 100%; display: block; }
.hero::after {
  /* level line: the fill mark on a tank */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(41,190,217,.12), rgba(41,190,217,0));
  border-top: 1px solid rgba(41,190,217,.38);
  z-index: -1;
  animation: fill 1.5s var(--ease) both;
}
@keyframes fill { from { height: 0; opacity: 0; } to { height: 34%; opacity: 1; } }

.hero-inner { padding-block: clamp(64px, 11vw, 130px) clamp(0px, 1vw, 8px); max-width: 46rem; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 74px);
  letter-spacing: -.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}
html[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--brand-lt); }
.hero p { font-size: clamp(16px, 1.8vw, 19px); color: rgba(238,242,243,.74); max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Nameplate — an equipment data plate, bolted at the corners */
.plate {
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(41,190,217,.55);
}
.plate::before { top: 8px; inset-inline-start: 8px; box-shadow: 0 0 0 0 transparent; }
.plate::after { bottom: 8px; inset-inline-end: 8px; }
.plate li { padding: 22px clamp(14px, 2vw, 26px); border-inline-start: 1px solid rgba(255,255,255,.10); }
.plate li:first-child { border-inline-start: 0; }
.plate .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(238,242,243,.5);
  display: block;
  margin-bottom: 8px;
}
html[dir="rtl"] .plate .k { letter-spacing: 0; font-size: 12px; }
.plate .v { font-family: var(--display); font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.01em; }
.plate .v small { font-size: .62em; font-weight: 500; color: rgba(238,242,243,.6); }

/* ---------- EPC sequence ---------- */
.epc { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(34px, 5vw, 52px); }
@media (min-width: 820px) { .epc { grid-template-columns: repeat(3, 1fr); } }
.epc-item { background: var(--paper); padding: clamp(26px, 3.4vw, 40px); position: relative; transition: background .25s var(--ease); }
.epc-item:hover { background: var(--mist-2); }
.epc-mark {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  display: block;
  margin-bottom: 6px;
}
.epc-step { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-soft); display: block; margin-bottom: 20px; }
html[dir="rtl"] .epc-step { letter-spacing: 0; font-size: 12px; }
.epc-item h3 { font-size: 22px; margin-bottom: 10px; }
.epc-item p { color: var(--txt-soft); font-size: 15px; margin-bottom: 18px; }
.epc-thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 22px; border: 1px solid var(--line-soft); }
.arrow-link { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--amber); padding-bottom: 3px; display: inline-block; }
.arrow-link:hover { color: var(--amber-dk); }
html[dir="rtl"] .arrow-link { letter-spacing: 0; font-size: 14px; }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split--flip > :first-child { order: 2; } }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line-soft); }
.split-media::after {
  content: "";
  position: absolute;
  inset-inline-start: -10px;
  bottom: -10px;
  width: 82px; height: 82px;
  border-inline-start: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  pointer-events: none;
}
.section--dark .split-media img { border-color: rgba(255,255,255,.14); }

/* spec table — reads like a project data sheet */
.spec { border-top: 1px solid var(--line); margin: 26px 0 30px; }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.spec dt, .spec .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-soft); }
html[dir="rtl"] .spec .k { letter-spacing: 0; font-size: 13px; }
.spec .v { font-weight: 600; text-align: end; }
.section--dark .spec { border-color: var(--line-dark); }
.section--dark .spec div { border-color: rgba(255,255,255,.09); }
.section--dark .spec .k { color: rgba(238,242,243,.55); }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose h3 { font-size: 22px; margin: 38px 0 12px; }
.prose ul.marks { margin: 18px 0 26px; }
.prose ul.marks li { position: relative; padding-inline-start: 30px; margin-bottom: 14px; color: var(--txt-soft); }
.prose ul.marks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: .62em;
  width: 14px; height: 2px;
  background: var(--amber);
}
.prose ul.marks li b { color: var(--txt); font-weight: 600; }

/* ---------- Page header ---------- */
.pagehead { background: var(--ink); color: var(--txt-invert); position: relative; overflow: hidden; }
.pagehead .hero-shell { opacity: .6; }
.pagehead .wrap { padding-block: clamp(48px, 7vw, 84px); position: relative; }
.pagehead h1 { font-size: clamp(32px, 5.2vw, 54px); letter-spacing: -.025em; }
html[dir="rtl"] .pagehead h1 { letter-spacing: 0; line-height: 1.3; }
.crumbs { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(238,242,243,.5); margin-top: 14px; }
html[dir="rtl"] .crumbs { letter-spacing: 0; font-size: 13px; }
.crumbs a:hover { color: var(--brand-lt); }

/* ---------- Service blocks ---------- */
.svc { border-top: 1px solid var(--line); padding-top: clamp(34px, 5vw, 52px); margin-top: clamp(34px, 5vw, 52px); }
.svc:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.svc-grid { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .svc-grid { grid-template-columns: 380px 1fr; align-items: start; } }
.svc-letter {
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 104px);
  font-weight: 700;
  line-height: .85;
  color: var(--amber);
  margin-bottom: 10px;
}
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line-soft); }
.svc h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: none;
  color: var(--txt-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s var(--ease);
}
html[dir="rtl"] .filters button { letter-spacing: 0; font-size: 13px; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid-gal { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gal-item { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line-soft); background: var(--mist); cursor: zoom-in; }
.gal-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption {
  position: absolute;
  inset-inline: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(12,19,23,.85), transparent);
}
html[dir="rtl"] .gal-item figcaption { letter-spacing: 0; font-size: 13px; }
.gal-item[hidden] { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,13,16,.94);
  display: grid; place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 84vh; object-fit: contain; background: none; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 46px; height: 46px;
  font-size: 20px;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
}
.lightbox-close { top: 22px; inset-inline-end: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 18px; }
.lb-next { inset-inline-end: 18px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--brand-lt); border-color: var(--brand-lt); color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 52px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 380px; } }
.card {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px);
  background: var(--paper);
}
.card h3 { font-size: 20px; margin-bottom: 16px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.info-row:last-child { border-bottom: 0; }
.info-row svg { width: 18px; height: 18px; fill: var(--amber-dk); flex: none; margin-top: 4px; }
.info-row .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--txt-soft); display: block; }
html[dir="rtl"] .info-row .k { letter-spacing: 0; font-size: 12px; }
.info-row .v { font-size: 15.5px; font-weight: 500; }
.info-row a:hover { color: var(--amber-dk); }

.field { margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-soft); display: block; margin-bottom: 7px; }
html[dir="rtl"] .field label { letter-spacing: 0; font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--txt);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); outline: none; }
.form-note { font-size: 13px; color: var(--txt-soft); margin-top: 14px; }
.map { border: 1px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: rgba(238,242,243,.66); padding-block: clamp(48px, 6vw, 72px) 0; font-size: 14.5px; }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-lt); margin-bottom: 18px; font-weight: 500; }
html[dir="rtl"] .foot h4 { letter-spacing: 0; font-size: 13px; }
.foot a:hover { color: #fff; }
.foot li { margin-bottom: 9px; }
.foot-brand img { height: 52px; width: auto; background: none; margin-bottom: 18px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center;
  border-radius: var(--radius);
  transition: all .2s var(--ease);
}
.foot-social a:hover { background: var(--brand-lt); border-color: var(--brand-lt); }
.foot-social a:hover svg { fill: var(--ink); }
.foot-social svg { width: 16px; height: 16px; fill: rgba(238,242,243,.75); }
.foot-base {
  margin-top: clamp(38px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(238,242,243,.42);
}
html[dir="rtl"] .foot-base { letter-spacing: 0; font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: absolute;
    top: 100%; inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 18px;
    box-shadow: 0 20px 40px rgba(12,19,23,.10);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { inset-inline: 0; bottom: -1px; }
  .topbar-contact { gap: 14px; }
  .plate { grid-template-columns: repeat(2, 1fr); }
  .plate li:nth-child(3) { border-inline-start: 0; }
  .plate li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.10); }
}
@media (max-width: 560px) {
  .topbar-social { display: none; }
  .split-media::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  .masthead, .topbar, .foot-social, .burger, .lightbox { display: none !important; }
  body { color: #000; }
}

/* ---------- Skip link (no inline handlers — CSP safe) ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: 8px;
  z-index: 999;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Wordmark fallback when the logo file is not present ---------- */
.brand-mark, .foot-mark {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -.015em;
}
.brand-mark { font-size: 21px; color: var(--ink); }
.foot-mark { font-size: 22px; color: #fff; margin-bottom: 18px; }
.brand-mark b, .foot-mark b { display: block; font-weight: 700; }
.brand-mark i, .foot-mark i {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber-dk);
  margin-top: 3px;
}
.foot-mark i { color: var(--brand-lt); }
html[dir="rtl"] .brand-mark i, html[dir="rtl"] .foot-mark i { letter-spacing: 0; font-size: 11px; }

/* ==========================================================================
   Photography: hero slider and page-header banners (original site assets)
   ========================================================================== */
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-photo span {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 58%;
  opacity: 0;
  animation: crossfade 18s infinite;
}
.hero-photo span:nth-child(1) { animation-delay: 0s; }
.hero-photo span:nth-child(2) { animation-delay: 9s; }
@keyframes crossfade {
  0%   { opacity: 0; transform: scale(1.05); }
  6%   { opacity: 1; }
  46%  { opacity: 1; }
  52%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1.12); }
}
.hero-photo::after {
  /* keeps the headline legible over any frame */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(7,22,32,.95) 0%, rgba(7,22,32,.84) 46%, rgba(7,22,32,.58) 100%),
    linear-gradient(to top, rgba(7,22,32,.96) 0%, rgba(7,22,32,.25) 45%);
}
html[dir="rtl"] .hero-photo::after {
  background:
    linear-gradient(to left, rgba(7,22,32,.95) 0%, rgba(7,22,32,.84) 46%, rgba(7,22,32,.58) 100%),
    linear-gradient(to top, rgba(7,22,32,.96) 0%, rgba(7,22,32,.25) 45%);
}
@media (max-width: 760px) {
  .hero-photo::after { background: linear-gradient(to top, rgba(7,22,32,.97) 12%, rgba(7,22,32,.74) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo span { animation: none; opacity: 1; }
  .hero-photo span:nth-child(2) { display: none; }
}

.pagehead { background-color: var(--ink); background-size: cover; background-position: center; }
.pagehead::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(7,22,32,.93), rgba(7,22,32,.78));
}
html[dir="rtl"] .pagehead::before {
  background: linear-gradient(to left, rgba(7,22,32,.93), rgba(7,22,32,.78));
}
/* several of the original banners are very light — they need a heavier veil */
.pagehead--bright::before {
  background: linear-gradient(to right, rgba(7,22,32,.95), rgba(7,22,32,.88));
}
html[dir="rtl"] .pagehead--bright::before {
  background: linear-gradient(to left, rgba(7,22,32,.95), rgba(7,22,32,.88));
}
.pagehead .wrap { z-index: 2; }
.pagehead .hero-shell { z-index: 1; opacity: .5; }

/* ---------- Service icons on the EPC cards ---------- */
.epc-icon {
  width: 62px; height: 62px;
  margin-bottom: 20px;
  background: none;
}
.epc-item { display: flex; flex-direction: column; }
.epc-item .arrow-link { margin-top: auto; align-self: flex-start; }

/* ---------- Arabic brand lockup in the header ---------- */
.brand { text-decoration: none; }
.brand-ar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-ar .rule {
  width: 1px;
  height: 34px;
  background: var(--line);
  flex: none;
}
.brand-ar .name {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--txt);
  white-space: nowrap;
}
.brand-ar .name i {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--amber-dk);
  letter-spacing: 0;
}
.foot-ar-name {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 12px 0 0;
}
@media (max-width: 1130px) {
  html[dir="rtl"] .brand-ar .rule, html[dir="rtl"] .brand-ar .name { display: none; }
}

/* Arabic reads better with a touch more line height and no letter-spacing */
html[dir="rtl"] .nav a { font-size: 15.5px; letter-spacing: 0; }
html[dir="rtl"] .nav { gap: 0; }
html[dir="rtl"] .nav a { padding: 9px 11px; }
html[dir="rtl"] .lang { font-family: var(--body); letter-spacing: .04em; }
html[dir="rtl"] .brand img { height: 44px; }


/* ---------- Small screens: keep the header on one line ---------- */
@media (max-width: 720px) {
  .brand img { height: 34px; }
  html[dir="rtl"] .brand img { height: 34px; }
  .masthead .wrap { min-height: 64px; gap: 10px; }
  .lang { padding: 7px 11px; font-size: 11px; }
  .burger { width: 40px; height: 40px; }
  .burger span { inset-inline: 10px; }
}
@media (max-width: 400px) {
  .brand img { height: 28px; }
  html[dir="rtl"] .brand img { height: 28px; }
  .lang { padding: 6px 9px; }
}
