/* ==========================================================================
   Ebhar Desert Maintenance & General Contracting
   Design system + site styles. Written with CSS logical properties throughout
   so the Arabic (RTL) build mirrors correctly rather than being patched.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* brand */
  --navy: #032A64;
  --navy-deep: #021D45;
  --navy-light: #0B3F8C;
  --gold: #D4A64A;
  --gold-deep: #B98C33;   /* icons, rules, borders — graphics need 3:1, not 4.5:1 */
  --gold-text: #866324;   /* gold TEXT on light backgrounds: 5.5:1 on white, 5.0:1 on sand */
  --whatsapp: #12833E;      /* darkened from #25D366 so white label text clears 4.5:1 */
  --whatsapp-dark: #0E6B32;
  --gold-soft: #F0E2C4;

  /* neutrals */
  --white: #FFFFFF;
  --sand: #F6F4EF;
  --paper: #FBFAF8;
  --ink: #101826;
  --muted: #5A6478;
  --line: #E3E6EC;
  --line-dark: rgba(255, 255, 255, .16);

  /* type */
  --font-head: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* space scale (4px base) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* layout */
  --wrap: 1240px;
  --narrow: 760px;
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(3, 42, 100, .06), 0 4px 14px rgba(3, 42, 100, .06);
  --shadow-md: 0 2px 6px rgba(3, 42, 100, .08), 0 18px 40px rgba(3, 42, 100, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

.lang-ar {
  --font-head: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-text); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 var(--s4);
  color: var(--navy);
  /* Keeps short trailing words off a line of their own. */
  text-wrap: balance;
}
p, li, blockquote { text-wrap: pretty; }
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-inline-start: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s7) 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold); color: var(--navy-deep); }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--navy-deep); padding: var(--s3) var(--s5); font-weight: 600;
}
.skip:focus { inset-inline-start: 0; }

/* --------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
.wrap--narrow { max-width: var(--narrow); }
.sec { padding-block: clamp(var(--s7), 7vw, var(--s9)); }
.sec--alt { background: var(--sand); }
.sec--tall { padding-block: clamp(var(--s8), 12vw, 160px); }
.sec--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.sec--navy h1, .sec--navy h2, .sec--navy h3 { color: var(--white); }
.sec__more { margin-top: var(--s7); text-align: center; }

.grid { display: grid; gap: clamp(var(--s5), 4vw, var(--s8)); }
.grid--split { grid-template-columns: 1fr; }
.grid--sidebar { grid-template-columns: 1fr; }
.grid--contact { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .grid--split { grid-template-columns: 1fr 1.1fr; }
  .grid--middle { align-items: center; }
  .grid--sidebar { grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr); align-items: start; }
  .grid--contact { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); align-items: start; }
}

/* ----------------------------------------------------------- typography -- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 var(--s3); display: flex; align-items: center; gap: var(--s2);
}
.lang-ar .eyebrow { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); flex: none; }
.sec-head--center .eyebrow { justify-content: center; }
.eyebrow--light { color: var(--gold); }
/* On dark grounds the light gold is the accessible choice (6.2:1 on navy);
   the darker --gold-text is only for light backgrounds. */
.sec--navy .eyebrow, .cta-band .eyebrow, .hero .eyebrow,
.phero .eyebrow, .shero .eyebrow, .footer .eyebrow { color: var(--gold); }

.sec-head { margin-bottom: clamp(var(--s5), 4vw, var(--s7)); max-width: 62ch; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__title { margin-bottom: var(--s3); }
.sec-head__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.sec--navy .sec-head__sub { color: rgba(255, 255, 255, .74); }

.lede { font-size: 1.13rem; line-height: 1.75; color: var(--ink); }
.sec--navy .lede { color: rgba(255, 255, 255, .86); }
.muted { color: var(--muted); font-size: .95rem; display: flex; align-items: flex-start; gap: var(--s2); }
.muted .icon { flex: none; margin-top: .28em; color: var(--gold-deep); }

.prose p { color: var(--muted); }
.prose--lg p { font-size: 1.06rem; color: var(--ink); }
.prose--article { max-width: var(--narrow); }
.prose--article h2 { margin-top: var(--s7); font-size: 1.45rem; }
.prose--article p { color: var(--ink); }
.prose--article > h2:first-child { margin-top: 0; }

.h-rule {
  font-size: 1.35rem; margin-top: var(--s8); margin-bottom: var(--s5);
  padding-bottom: var(--s3); border-bottom: 1px solid var(--line); position: relative;
}
.h-rule::after {
  content: ''; position: absolute; bottom: -1px; inset-inline-start: 0;
  width: 48px; height: 2px; background: var(--gold);
}
.col-main > .h-rule:first-of-type { margin-top: var(--s7); }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; letter-spacing: .01em;
  padding: 14px var(--s5); border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), transform .18s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-deep); color: var(--navy-deep); }
/* WhatsApp brand green, darkened from the official #25D366 so white text
   clears AA. One source of truth — the header button uses it too. */
.btn--whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); color: #fff; border-color: var(--whatsapp-dark); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--link {
  padding: 0; color: var(--navy); border-bottom: 2px solid var(--gold);
  border-radius: 0; padding-bottom: 2px;
}
.btn--link:hover { color: var(--gold-text); transform: none; }
.btn--sm { padding: 10px var(--s4); font-size: .85rem; }
.btn--lg { padding: 17px var(--s6); font-size: 1rem; }
.btn--block, .btn--block.btn { display: flex; width: 100%; }

/* --------------------------------------------------------------- topbar -- */
.topbar {
  background: var(--navy-deep); color: rgba(255, 255, 255, .78);
  font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 40px; flex-wrap: wrap; }
.topbar__badge {
  display: flex; align-items: center; gap: var(--s2); margin: 0;
  color: var(--gold); font-weight: 600; letter-spacing: .04em;
}
.topbar__badge .icon { flex: none; }
.topbar__contact { display: flex; align-items: center; gap: var(--s5); }
.topbar__contact a { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact a:hover { color: var(--gold); }

.topbar__lang {
  border-inline-start: 1px solid rgba(255, 255, 255, .18); padding-inline-start: var(--s5);
  font-weight: 600;
}
@media (max-width: 860px) {
  .topbar__badge { font-size: .72rem; }
  .topbar__contact a:not(.topbar__lang) { display: none; }
  .topbar__lang { border: 0; padding-inline-start: 0; }
}

/* --------------------------------------------------------------- header -- */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s var(--ease);
}
.header.is-stuck { box-shadow: var(--shadow-sm); }
/* Positioning context for the mega panel, so it aligns to the content wrap
   rather than to the full-bleed header. */
.header__inner { display: flex; align-items: center; gap: var(--s5); min-height: 76px; position: relative; }

.brand { display: flex; align-items: center; gap: var(--s3); flex: none; }
.brand__mark { flex: none; border-radius: var(--radius); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .08em; color: var(--navy);
}
.lang-ar .brand__name { letter-spacing: 0; font-size: 1.15rem; }
.brand__sub { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.lang-ar .brand__sub { font-size: .74rem; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 28px 10px;
  font-size: .875rem; font-weight: 500; color: var(--ink); position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; inset-inline: 10px; bottom: 22px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: inline-start;
  transition: transform .2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__caret { transition: transform .2s var(--ease); }
.nav__item--has-mega:hover .nav__caret { transform: rotate(90deg); }
[dir="rtl"] .nav__caret { transform: scaleX(-1); }
[dir="rtl"] .nav__item--has-mega:hover .nav__caret { transform: scaleX(-1) rotate(-90deg); }

/* Anchored to the header wrap, not centred on the trigger. Centring pushed the
   980px panel to -4px on a 1200px screen, where overflow-x: hidden clipped it. */
.nav__item--has-mega { position: static; }
.mega {
  position: absolute; top: 100%; inset-inline-end: var(--s5); inset-inline-start: auto;
  transform: translateY(8px);
  width: min(980px, calc(100% - var(--s5) * 2)); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav__item--has-mega:hover .mega,
.nav__item--has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
/* Escape collapses the panel even while focus stays on the trigger. */
.nav__item--has-mega.is-dismissed .mega { opacity: 0; visibility: hidden; }
.mega__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); padding: var(--s6); }
.mega__title {
  font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-text); margin: 0 0 var(--s4);
  padding-bottom: var(--s2); border-bottom: 1px solid var(--line);
}
.lang-ar .mega__title { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* 13 services in one column ran too tall to scan; split into two. */
.mega__list--split { display: block; columns: 2; column-gap: var(--s5); }
.mega__list--split li { break-inside: avoid; }
.mega__list a {
  display: flex; align-items: center; gap: var(--s3); padding: 7px var(--s2);
  font-size: .88rem; color: var(--ink); border-radius: var(--radius);
}
.mega__list .icon { color: var(--gold-deep); flex: none; }
.mega__list a:hover { background: var(--sand); color: var(--navy); }
.mega__list a.is-active {
  background: var(--sand); color: var(--navy); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--gold);
}
[dir="rtl"] .mega__list a.is-active { box-shadow: inset -2px 0 0 var(--gold); }
.mega__col--promo { background: var(--sand); padding: var(--s5); margin: calc(var(--s5) * -1) 0; }
.mega__promo-text { font-size: .87rem; color: var(--muted); }
.mega__link { display: inline-flex; align-items: center; gap: 6px; font-size: .83rem; font-weight: 600; margin-top: var(--s4); }
[dir="rtl"] .mega__link .icon, [dir="rtl"] .scard__more .icon, [dir="rtl"] .footer__more .icon { transform: scaleX(-1); }

.header__actions { display: flex; align-items: center; gap: var(--s3); flex: none; }
/* WhatsApp green, matching the floating button. Same darkened shade so white
   label text clears 4.5:1 — the stock #25D366 does not. */
.header__wa.btn--gold {
  background: var(--whatsapp); color: #fff; border-color: var(--whatsapp);
}
.header__wa.btn--gold:hover { background: var(--whatsapp-dark); color: #fff; }
.header__wa .icon { flex: none; }

.burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px; cursor: pointer; color: var(--navy);
}
/* Brand + 5 nav items + CTA need ~865px between the wrap padding, so the bar
   fits from about 928px up. The burger takes over below 960, which leaves ~30px
   of slack — set from measurement, not guessed, because an over-stuffed header
   previously overflowed the page horizontally. */
@media (max-width: 959px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__inner { min-height: 66px; }
}
@media (max-width: 560px) {
  .header__actions .btn { display: none; }
  .brand__sub { display: none; }
}

/* --------------------------------------------------------------- drawer -- */
.drawer { position: fixed; inset: 0; z-index: 150; background: rgba(2, 29, 69, .55); }
.drawer[hidden] { display: none; }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(400px, 90vw);
  background: var(--white); display: flex; flex-direction: column; overflow-y: auto;
  animation: slideIn .25s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
[dir="rtl"] .drawer__panel { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.lang-ar .drawer__title { letter-spacing: 0; text-transform: none; }
.drawer__close { background: none; border: 0; cursor: pointer; padding: var(--s2); color: var(--navy); }
.drawer__list { list-style: none; margin: 0; padding: var(--s4) var(--s5); }
.drawer__list > li > a {
  display: block; padding: var(--s3) 0; font-family: var(--font-head); font-weight: 600;
  font-size: 1rem; border-bottom: 1px solid var(--line);
}
.drawer__group > details > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) 0; border-bottom: 1px solid var(--line); cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy);
  list-style: none;
}
.drawer__group > details > summary::-webkit-details-marker { display: none; }
.drawer__caret { color: var(--gold-deep); transform: rotate(90deg); transition: transform .2s var(--ease); }
[dir="rtl"] .drawer__caret { transform: scaleX(-1) rotate(-90deg); }
.drawer__group > details[open] > summary > .drawer__caret { transform: rotate(-90deg); }
[dir="rtl"] .drawer__group > details[open] > summary > .drawer__caret { transform: scaleX(-1) rotate(90deg); }
.drawer__sub { list-style: none; margin: var(--s2) 0 var(--s4); padding: 0; }
.drawer__sub a { display: block; padding: 7px 0; font-size: .88rem; color: var(--muted); }
.drawer__sub a:hover { color: var(--navy); }
.drawer__sub a.is-active { color: var(--navy); font-weight: 600; }
.drawer__all { color: var(--gold-text) !important; font-weight: 600; }
.drawer__list > li > a[aria-current="page"] { color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); padding-inline-start: var(--s3); }
[dir="rtl"] .drawer__list > li > a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--gold); }
.drawer__foot { margin-top: auto; padding: var(--s5); display: grid; gap: var(--s3); background: var(--sand); }
.drawer__lang { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); font-weight: 600; font-size: .88rem; }

/* ----------------------------------------------------------------- hero -- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
/* Photographic hero. The image sits underneath a navy scrim heavy enough to keep
   white headline text well clear of AA contrast over any part of the picture. */
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 12%, rgba(11, 63, 140, .85), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero--photo .hero__bg {
  background:
    linear-gradient(100deg, rgba(2, 29, 69, .94) 0%, rgba(2, 29, 69, .86) 42%, rgba(3, 42, 100, .62) 100%),
    radial-gradient(90% 120% at 88% 8%, rgba(11, 63, 140, .5), transparent 62%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(212, 166, 74, .10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 166, 74, .07) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
}
.hero__inner {
  position: relative; padding-block: clamp(var(--s8), 11vw, 140px) clamp(var(--s8), 10vw, 120px);
  max-width: 900px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s5);
  padding: 8px var(--s4); border: 1px solid rgba(212, 166, 74, .45);
  background: rgba(212, 166, 74, .10); color: var(--gold);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius);
}
.lang-ar .hero__badge { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.hero__badge .icon { flex: none; }
.hero__title { color: var(--white); margin-bottom: var(--s5); max-width: 18ch; }
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .82); max-width: 62ch; margin-bottom: var(--s6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s5); }
.hero__note { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .6); margin: 0; }
.hero__strip {
  position: absolute; inset-inline: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 40%, transparent 40%, transparent 100%);
}

/* page hero (interior) */
.phero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.phero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 120% at 100% 0%, rgba(11, 63, 140, .8), transparent 62%);
}
.phero__inner { position: relative; z-index: 1; padding-block: clamp(var(--s7), 7vw, var(--s9)); max-width: 860px; }
.phero__title { color: var(--white); margin-bottom: var(--s4); }
.phero__sub { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-width: 60ch; margin: 0; }
.phero--article .phero__inner { max-width: var(--narrow); }

/* service hero */
.shero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.shero__media { position: absolute; inset: 0; }
.shero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
/* Scrim is directional: heavy behind the text column, clearing toward the far
   side so the service photo actually reads. Angle flips for RTL. */
.shero { --shero-scrim: 90deg; }
[dir='rtl'] .shero { --shero-scrim: 270deg; }
.shero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--navy-deep) 4%, rgba(2, 29, 69, .30) 45%, rgba(2, 29, 69, .22) 100%),
    linear-gradient(var(--shero-scrim),
      var(--navy-deep) 0%,
      rgba(2, 29, 69, .92) 42%,
      rgba(2, 29, 69, .70) 68%,
      rgba(2, 29, 69, .30) 100%);
}
@media (max-width: 900px) {
  /* No room for the photo to clear beside the text - even the scrim out. */
  .shero__media::after {
    background: linear-gradient(to top, var(--navy-deep) 5%, rgba(2, 29, 69, .72) 50%, rgba(2, 29, 69, .58) 100%);
  }
}
.shero__inner { position: relative; z-index: 1; padding-block: clamp(var(--s7), 7vw, var(--s9)); max-width: 820px; }
.shero__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px;
  border: 1px solid rgba(212, 166, 74, .5); background: rgba(212, 166, 74, .12);
  color: var(--gold); margin-bottom: var(--s5); border-radius: var(--radius);
}
.shero__title { color: var(--white); margin-bottom: var(--s3); }
.shero__sub { font-size: 1.1rem; color: rgba(255, 255, 255, .82); margin-bottom: var(--s6); max-width: 56ch; }
.shero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------------------------------------------------------- breadcrumbs -- */
.crumbs { background: var(--sand); border-bottom: 1px solid var(--line); font-size: .82rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: var(--s3) 0; }
.crumbs li + li::before { content: '/'; color: var(--muted); margin-inline-end: var(--s2); }
[dir="rtl"] .crumbs li + li::before { content: '\\'; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs span { color: var(--navy); font-weight: 500; }

/* ------------------------------------------------------------ stats bar -- */
/* Floats over the bottom of the hero, so the page opens on hard facts. */
.statsband { position: relative; z-index: 3; margin-top: clamp(-32px, -3vw, -48px); }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(212, 166, 74, .22);
  border: 1px solid rgba(212, 166, 74, .3);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(2, 29, 69, .32);
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat {
  /* Deeper than the hero gradient behind it, so the card keeps its own edge. */
  background: var(--navy-deep); padding: var(--s5) var(--s4);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: background .2s var(--ease);
}
.stat:hover { background: #041F4C; }
.stat__v {
  font-family: var(--font-head); font-weight: 700; line-height: 1; color: var(--white);
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  /* Even column widths and a technical feel for the figures. */
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.lang-ar .stat__v { font-size: clamp(1.45rem, 2.3vw, 1.85rem); letter-spacing: 0; }
.stat__stars { color: var(--gold); font-size: .82rem; letter-spacing: .1em; margin-top: 4px; }
.stat__rule { display: block; width: 22px; height: 2px; background: var(--gold); margin: var(--s3) 0 var(--s2); opacity: .85; }
.stat__k {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .74); line-height: 1.5; max-width: 16ch;
}
.lang-ar .stat__k { letter-spacing: 0; text-transform: none; font-size: .82rem; max-width: 18ch; }

/* -------------------------------------------------------- service cards -- */
.scards { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 620px) { .scards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .scards { grid-template-columns: repeat(4, 1fr); } }

.scard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.scard:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.scard__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.scard:hover .scard__media img { transform: scale(1.05); }
.scard__badge {
  position: absolute; inset-block-start: var(--s3); inset-inline-start: var(--s3);
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy-deep); border-radius: var(--radius); z-index: 2;
}
.scard__label {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2; margin: 0;
  padding: var(--s6) var(--s4) var(--s4);
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--white);
  background: linear-gradient(to top, rgba(2, 29, 69, .94) 25%, transparent 100%);
  line-height: 1.3; text-wrap: balance;
}
.scard__media:hover .scard__label { color: var(--gold); }
.scard__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.scard__desc { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.scard__more {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head);
  font-size: .84rem; font-weight: 600; color: var(--gold-text);
}
.scard__more .icon { transition: transform .2s var(--ease); }
.scard:hover .scard__more .icon { transform: translateX(4px); }
[dir="rtl"] .scard:hover .scard__more .icon { transform: scaleX(-1) translateX(4px); }

/* ------------------------------------------------------------ why cards -- */
.wgrid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 680px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .wgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .wgrid--4 { grid-template-columns: repeat(4, 1fr); } }
.wcard {
  padding: var(--s5); background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius);
}
.sec--alt .wcard { background: var(--white); }
.wcard__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  background: var(--navy); color: var(--gold); margin-bottom: var(--s4); border-radius: var(--radius);
}
.wcard__num {
  display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--gold-deep); margin-bottom: var(--s3); line-height: 1;
}
.wcard__title { font-size: 1.08rem; margin-bottom: var(--s2); }
.wcard__desc { color: var(--muted); font-size: .92rem; margin: 0; }

/* ------------------------------------------------------- why choose us -- */
.sec--why { background:
  linear-gradient(var(--paper), var(--paper)),
  repeating-linear-gradient(90deg, transparent 0 63px, rgba(3, 42, 100, .035) 63px 64px); }

/* Pill variant of the eyebrow, used where the section leads with a centred
   heading block rather than a left-aligned one. */
.eyebrow--pill {
  display: inline-flex; align-self: center; gap: var(--s2);
  padding: 7px var(--s4); border: 1px solid var(--line);
  background: var(--white); border-radius: 100px; margin-bottom: var(--s4);
}
.eyebrow--pill::before {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.sec-head--center .eyebrow--pill { margin-inline: auto; }
.accent { color: var(--gold-deep); }

.whysplit { display: grid; gap: clamp(var(--s5), 3.5vw, var(--s7)); align-items: stretch; }
@media (min-width: 980px) {
  .whysplit { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
}

.whyfig {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--navy); min-height: 320px;
}
.whyfig img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
@media (min-width: 980px) { .whyfig img { aspect-ratio: auto; position: absolute; inset: 0; } }
.whyfig__badge {
  position: absolute; inset-inline: var(--s4); bottom: var(--s4); z-index: 2;
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-radius: var(--radius);
  background: rgba(2, 29, 69, .86); border: 1px solid rgba(212, 166, 74, .38);
  backdrop-filter: blur(6px);
}
.whyfig__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy-deep);
}
.whyfig__text { display: flex; flex-direction: column; min-width: 0; }
.whyfig__t { font-family: var(--font-head); font-weight: 600; font-size: .97rem; color: var(--white); line-height: 1.3; }
.whyfig__s { font-size: .78rem; color: rgba(255, 255, 255, .78); line-height: 1.4; }

.whycards { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-content: start; }
@media (min-width: 620px) { .whycards { grid-template-columns: repeat(2, 1fr); } }
.whycards .wcard { border-top-width: 1px; border-inline-start: 3px solid var(--gold); }
.whycards .wcard__icon {
  width: 40px; height: 40px; background: var(--sand); color: var(--gold-text);
  margin-bottom: var(--s3);
}

/* ---------------------------------------------------------------- ticks -- */
.ticks { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s3); }
.ticks--two { grid-template-columns: 1fr; }
@media (min-width: 760px) { .ticks--two { grid-template-columns: repeat(2, 1fr); column-gap: var(--s6); } }
.ticks li { display: flex; align-items: flex-start; gap: var(--s3); font-size: .96rem; }
.ticks .icon { flex: none; margin-top: .3em; color: var(--gold-deep); }
.ticks--light li { color: rgba(255, 255, 255, .86); }
.ticks--light .icon { color: var(--gold); }

/* ---------------------------------------------------------------- steps -- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s5); } }
.steps__item { position: relative; padding-top: var(--s5); border-top: 2px solid var(--line); }
.steps__item::before {
  content: ''; position: absolute; top: -2px; inset-inline-start: 0; width: 38px; height: 2px; background: var(--gold);
}
.steps__num {
  display: block; font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; color: var(--gold-text); margin-bottom: var(--s2);
}
.steps__title { font-size: 1.05rem; margin-bottom: var(--s2); }
.steps__desc { color: var(--muted); font-size: .92rem; margin: 0; }
.steps--compact { grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 760px) { .steps--compact { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
.sec--navy .steps__item { border-top-color: rgba(255, 255, 255, .2); }
.sec--navy .steps__desc { color: rgba(255, 255, 255, .74); }

/* ---------------------------------------------------------------- tiers -- */
.tiers { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: start; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s6) var(--s5); display: flex; flex-direction: column;
}
.tier--featured { border-color: var(--navy); box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .tier--featured { transform: translateY(-12px); padding-block: calc(var(--s6) + 12px); } }
.tier__badge {
  position: absolute; top: 0; inset-inline-end: var(--s5); transform: translateY(-50%);
  background: var(--gold); color: var(--navy-deep); font-family: var(--font-head);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px var(--s3); border-radius: var(--radius);
}
.lang-ar .tier__badge { letter-spacing: 0; text-transform: none; font-size: .78rem; }
.tier__name { font-size: 1.5rem; margin-bottom: var(--s2); }
.tier__for { color: var(--muted); font-size: .92rem; min-height: 3em; }
.tier__price {
  font-family: var(--font-head); font-size: .84rem; font-weight: 600; color: var(--gold-text);
  padding-block: var(--s3); margin-bottom: var(--s4);
  border-block: 1px solid var(--line);
}
.tier__features { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s2); flex: 1; }
.tier__features li { display: flex; gap: var(--s3); font-size: .9rem; align-items: flex-start; }
.tier__features .icon { flex: none; margin-top: .32em; color: var(--gold-deep); }

/* ------------------------------------------------------- coverage cards -- */
.cover-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 680px) { .cover-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cover-grid { grid-template-columns: repeat(4, 1fr); } }
.cover { border: 1px solid var(--line-dark); padding: var(--s5); border-radius: var(--radius); }
.cover__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: rgba(212, 166, 74, .14); color: var(--gold); margin-bottom: var(--s4); border-radius: var(--radius);
}
.cover__title { font-size: 1.05rem; margin-bottom: var(--s3); }
.cover__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: rgba(255, 255, 255, .74); }
.cover__list li { padding-inline-start: var(--s4); position: relative; }
.cover__list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 1px; background: var(--gold);
}

/* ------------------------------------------------------ comparison table -- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.ctable { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .93rem; }
.ctable th, .ctable td { padding: var(--s4); text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th {
  font-family: var(--font-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: var(--sand); font-weight: 600;
}
.lang-ar .ctable thead th { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.ctable tbody th { font-weight: 600; color: var(--navy); width: 24%; }
.ctable td { color: var(--muted); }
.ctable .is-featured { background: rgba(3, 42, 100, .04); color: var(--ink); font-weight: 500; }
.ctable thead .is-featured { background: var(--navy); color: var(--white); }
.ctable td.is-featured .icon { display: inline-block; vertical-align: -3px; color: var(--gold-deep); margin-inline-end: 4px; }

/* ----------------------------------------------------------------- FAQs -- */
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__caret { flex: none; margin-top: .3em; color: var(--gold-deep); transform: rotate(90deg); transition: transform .2s var(--ease); }
[dir="rtl"] .faq__caret { transform: scaleX(-1) rotate(-90deg); }
.faq[open] .faq__caret { transform: rotate(-90deg); }
[dir="rtl"] .faq[open] .faq__caret { transform: scaleX(-1) rotate(90deg); }
.faq__a { padding-bottom: var(--s5); max-width: 72ch; }
.faq__a p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- forms -- */
.form { display: grid; gap: var(--s4); }
.form__row { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: 12px var(--s3);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  color: var(--ink); width: 100%; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(3, 42, 100, .1); outline: none;
}
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--s3); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.field--check label { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field--check .field__err { grid-column: 1 / -1; }
.req { color: var(--gold-text); }
.field__hint { font-size: .78rem; color: var(--muted); margin: 0; }
.field__err { font-size: .78rem; color: #B3261E; margin: 0; display: none; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid select { border-color: #B3261E; }
.form__ok {
  display: flex; align-items: center; gap: var(--s2); margin: 0;
  padding: var(--s4); background: rgba(3, 42, 100, .05);
  border-inline-start: 3px solid var(--gold); font-size: .92rem; color: var(--navy);
}
.form__ok.is-hidden { display: none; }
.form__ok .icon { flex: none; color: var(--gold-deep); }
.form__problem { display: grid; gap: var(--s3); }
.form__problem.is-hidden { display: none; }
.form__problem-text {
  margin: 0; padding: var(--s4); font-size: .9rem; color: var(--ink);
  background: rgba(212, 166, 74, .12); border-inline-start: 3px solid var(--gold-deep);
}
/* Honeypot: reachable to bots parsing the DOM, invisible and unfocusable to people. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__fallback { font-size: .82rem; color: var(--muted); margin: 0; }
.form--compact .form__row { grid-template-columns: 1fr; }

/* ------------------------------------------------------------ side rail -- */
.col-side { display: grid; gap: var(--s5); position: sticky; top: 96px; }
@media (max-width: 899px) { .col-side { position: static; } }
.side-card { background: var(--sand); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: var(--s5); border-radius: var(--radius); }
.side-card__title { font-size: 1.15rem; margin-bottom: var(--s2); }
.side-card__body { font-size: .9rem; color: var(--muted); margin-bottom: var(--s4); }
.side-card .field input, .side-card .field select, .side-card .field textarea { background: var(--white); }
.side-box { border: 1px solid var(--line); padding: var(--s4); border-radius: var(--radius); }
.side-box--solid { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .82); }
.side-box__title {
  display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s2);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy);
}
.side-box--solid .side-box__title { color: var(--white); }
.side-box__title .icon { color: var(--gold-deep); flex: none; }
.side-box--solid .side-box__title .icon { color: var(--gold); }
.side-box__text { font-size: .88rem; color: var(--muted); margin: 0; }
.side-steps { margin: 0; padding-inline-start: 1.2em; font-size: .88rem; color: var(--muted); display: grid; gap: 6px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.contact-list a { display: flex; align-items: center; gap: var(--s3); color: var(--white); }
.contact-list a:hover { color: var(--gold); }
.contact-list .icon { color: var(--gold); flex: none; }
.contact-list span { display: flex; flex-direction: column; line-height: 1.35; }
.contact-list strong {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.lang-ar .contact-list strong { letter-spacing: 0; text-transform: none; font-size: .8rem; }

/* -------------------------------------------------------------- gallery -- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); }
.gallery__item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__item img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery__note {
  display: flex; align-items: flex-start; gap: var(--s2); font-size: .8rem; color: var(--muted);
  margin-top: var(--s3);
}
.gallery__note .icon { flex: none; margin-top: .25em; color: var(--gold-deep); }

.feature-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.feature-img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* -------------------------------------------------------- empty states  -- */
.empty {
  text-align: center; max-width: 60ch; margin-inline: auto; padding: var(--s8) var(--s5);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white);
}
.empty__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
  border: 1px solid var(--line); color: var(--gold-deep); margin-bottom: var(--s4); border-radius: 50%;
}
.empty__title { font-size: 1.35rem; }
.empty__body { color: var(--muted); margin-bottom: var(--s5); }

/* -------------------------------------------------------------- reviews -- */
.sec--reviews { background: var(--paper); }
.rsummary { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s4); }
.rsummary__score { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--navy); line-height: 1; }
.rsummary__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rsummary__basis { font-size: .8rem; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; font-size: .95rem; color: var(--line); letter-spacing: .04em; }
.stars .is-on { color: #E8A33D; }

.rcards { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 680px) { .rcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rcards { grid-template-columns: repeat(3, 1fr); } }
.rcard {
  position: relative; margin: 0; padding: var(--s5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.rcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rcard__quote-mark { position: absolute; top: var(--s4); inset-inline-end: var(--s4); color: var(--line); }
.rcard__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.rcard__avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.rcard__who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rcard__name { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.rcard__meta { font-size: .76rem; color: var(--muted); }
.rcard__text { margin: 0; font-size: .93rem; line-height: 1.65; color: var(--ink); }
.rcard__text::before { content: '\201C'; }
.rcard__text::after { content: '\201D'; }

.gbtn__g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--white);
  color: #4285F4; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}

/* --------------------------------------------- testimonial / project cards -- */
.tcards { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 760px) { .tcards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.tcard {
  position: relative; margin: 0; padding: var(--s6) var(--s5) var(--s5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.tcard__mark { position: absolute; top: var(--s4); inset-inline-end: var(--s4); color: var(--gold-soft); }
.tcard__stars { color: var(--gold-text); letter-spacing: .18em; margin: 0 0 var(--s3); font-size: .95rem; }
.tcard__quote { margin: 0 0 var(--s4); font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.tcard__by { display: flex; flex-direction: column; padding-top: var(--s3); border-top: 1px solid var(--line); }
.tcard__name { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.tcard__meta { font-size: .84rem; color: var(--muted); }

.pcards { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 700px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
.pcards--demo { grid-template-columns: minmax(0, 380px); }
.pcard {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s var(--ease);
}
.pcard:hover { box-shadow: var(--shadow-md); }
.pcard__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.pcard__body { padding: var(--s5); }
.pcard__meta {
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text);
  font-weight: 600; margin-bottom: var(--s2);
}
.lang-ar .pcard__meta { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.pcard__title { font-size: 1.12rem; margin-bottom: var(--s2); }
.pcard__sum { font-size: .92rem; color: var(--muted); margin-bottom: var(--s3); }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pcard__tags li { font-size: .74rem; padding: 3px var(--s2); background: var(--sand); color: var(--muted); border-radius: var(--radius); }
.sample-tag {
  position: absolute; top: var(--s3); inset-inline-start: var(--s3); z-index: 3;
  background: #B3261E; color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  padding: 3px var(--s2); border-radius: var(--radius);
}

.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px var(--s4);
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
  font-size: .86rem; cursor: pointer; transition: all .18s var(--ease);
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* -------------------------------------------------------- article cards -- */
.acards { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
@media (min-width: 700px) { .acards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.acard-post { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.acard-post:hover { box-shadow: var(--shadow-md); }
.acard-post__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.acard-post__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.acard-post__meta { font-size: .78rem; color: var(--gold-text); font-weight: 600; margin: 0; }
.acard-post__title { font-size: 1.15rem; margin: 0; }
.acard-post__excerpt { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }

/* ------------------------------------------------------------- approval -- */
.approval { display: grid; gap: var(--s6); align-items: center; margin-bottom: var(--s7); }
@media (min-width: 860px) { .approval { grid-template-columns: 260px 1fr; gap: var(--s8); } }
.approval__badge { text-align: center; }
.approval__seal {
  display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 140px;
  border: 2px solid var(--gold); color: var(--gold); border-radius: 50%;
  background: rgba(212, 166, 74, .08); position: relative;
}
.approval__seal::after {
  content: ''; position: absolute; inset: 8px; border: 1px solid rgba(212, 166, 74, .4); border-radius: 50%;
}
.approval__seal-text {
  margin: var(--s4) 0 0; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}
.lang-ar .approval__seal-text { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.approval__text h2 { margin-bottom: var(--s4); }
.approval__grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-dark); }
@media (min-width: 680px) { .approval__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .approval__grid { grid-template-columns: repeat(4, 1fr); } }
.acard { background: var(--navy); padding: var(--s5); }
.acard h3 { font-size: 1rem; margin-bottom: var(--s2); color: var(--white); }
.acard p { font-size: .88rem; color: rgba(255, 255, 255, .74); margin: 0; }
.acard__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: rgba(212, 166, 74, .16); color: var(--gold); margin-bottom: var(--s3); border-radius: var(--radius);
}
.approval__note {
  display: flex; align-items: flex-start; gap: var(--s2); margin: var(--s5) 0 0;
  font-size: .85rem; color: rgba(255, 255, 255, .62);
}
.approval__note .icon { flex: none; margin-top: .25em; color: var(--gold); }

/* ------------------------------------------------------------- CTA band -- */
.cta-band { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 140% at 15% 0%, rgba(11, 63, 140, .75), transparent 60%);
}
.cta-band__inner {
  position: relative; display: grid; gap: var(--s5); align-items: center;
  padding-block: clamp(var(--s7), 6vw, var(--s8));
}
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr auto; gap: var(--s8); } }
.cta-band h2 { color: var(--white); margin-bottom: var(--s3); }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* --------------------------------------------------------------- footer -- */
/* Emergency line. Sits as a full-width band across the top of the footer, so it
   is the last thing on every page and reachable in one tap on a phone. */
.fsos { background: var(--navy-light); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fsos__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap; padding-block: var(--s3);
}
.fsos__line { display: inline-flex; align-items: center; gap: var(--s2); color: inherit; }
.fsos__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #F05252; flex: none;
  animation: sosPulse 2.4s ease-out infinite;
}
@keyframes sosPulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 82, 82, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(240, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 82, 82, 0); }
}
@media (prefers-reduced-motion: reduce) { .fsos__dot { animation: none; } }
.fsos__label { color: rgba(255, 255, 255, .82); font-size: .88rem; }
.fsos__num {
  color: var(--white); font-family: var(--font-head); font-weight: 700;
  font-size: 1.06rem; letter-spacing: .01em;
}
.fsos__line:hover .fsos__num { color: var(--gold); }
.fsos__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; color: var(--gold);
}
.fsos__cta:hover { color: var(--white); }
[dir="rtl"] .fsos__cta .icon { transform: scaleX(-1); }
@media (max-width: 560px) {
  .fsos__inner { justify-content: center; gap: var(--s3); }
  .fsos__label { display: none; }
}

/* No top padding on the footer itself — the emergency band must sit flush
   against the section above it. The body padding moves onto the wrap. */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .72); padding-block: 0 var(--s5); font-size: .9rem; }
.footer > .wrap { padding-top: var(--s8); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s7); } }
.brand--footer .brand__name { color: var(--white); }
.brand--footer .brand__sub { color: rgba(255, 255, 255, .55); }
.footer__badge {
  display: inline-flex; align-items: center; gap: var(--s2); margin: var(--s5) 0 var(--s4);
  padding: 8px var(--s3); border: 1px solid rgba(212, 166, 74, .45); background: rgba(212, 166, 74, .1);
  color: var(--gold); font-size: .78rem; font-weight: 600; border-radius: var(--radius);
}
.footer__badge .icon { flex: none; }
.footer__note { font-size: .84rem; color: rgba(255, 255, 255, .55); margin: 0; max-width: 42ch; }
.footer__title {
  font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s4);
}
.lang-ar .footer__title { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer__list a, .footer__list span { color: rgba(255, 255, 255, .72); display: flex; align-items: flex-start; gap: var(--s2); }
.footer__list a:hover { color: var(--gold); }
.footer__list .icon { flex: none; margin-top: .2em; color: var(--gold); }
.footer__list--contact { gap: var(--s3); }
.footer__more { color: var(--gold); font-weight: 600; }
.footer__bar {
  margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: .82rem; color: rgba(255, 255, 255, .5);
}
.footer__bar p { margin: 0; }
.footer__licence { color: rgba(255, 255, 255, .42); font-size: .78rem; }
.footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s4); }
.footer__legal a { color: rgba(255, 255, 255, .5); }
.footer__legal a:hover { color: var(--gold); }

/* -------------------------------------------------------- WhatsApp FAB  -- */
/* Collapsed to a circle by default so it never sits on top of body copy, and
   expands to the full label on hover or keyboard focus. */
.wa-fab {
  position: fixed; inset-block-end: var(--s5); inset-inline-end: var(--s5); z-index: 90;
  display: inline-flex; align-items: center; padding: 15px;
  background: var(--whatsapp); color: #fff;
  border-radius: 50px; box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  transition: transform .2s var(--ease), background .2s var(--ease), padding .28s var(--ease);
}
.wa-fab:hover, .wa-fab:focus-visible { background: var(--whatsapp-dark); color: #fff; transform: translateY(-2px); }
.wa-fab:hover, .wa-fab:focus-visible { padding-inline-end: var(--s5); }
.wa-fab .icon { flex: none; }
.wa-fab__text {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .28s var(--ease), opacity .18s var(--ease), margin .28s var(--ease);
}
.wa-fab:hover .wa-fab__text, .wa-fab:focus-visible .wa-fab__text {
  max-width: 200px; opacity: 1; margin-inline-start: var(--s2);
}
@media (max-width: 620px) { .wa-fab { inset-block-end: var(--s4); inset-inline-end: var(--s4); } }

/* --------------------------------------------------------- cookie bar   -- */
.cookie {
  position: fixed; inset-inline: var(--s4); inset-block-end: var(--s4); z-index: 120;
  max-width: 560px; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); padding: var(--s5); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: var(--s4);
}
.cookie[hidden] { display: none; }
@media (min-width: 700px) { .cookie { inset-inline-start: var(--s5); inset-inline-end: auto; } }
.cookie__text { font-size: .86rem; color: var(--muted); margin: 0; }
.cookie__text a { text-decoration: underline; }
.cookie__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------------------------------------------------------- style guide -- */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.sw { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sw__chip { height: 76px; display: block; border-bottom: 1px solid var(--line); }
.sw__name { font-weight: 600; font-size: .85rem; padding: var(--s3) var(--s3) 0; }
.sw__hex, .sw__var { font-size: .76rem; color: var(--muted); padding-inline: var(--s3); font-family: ui-monospace, Menlo, Consolas, monospace; }
.sw__var { padding-bottom: var(--s3); }
.type-spec { display: grid; gap: var(--s4); }
.type-row { display: grid; gap: var(--s2); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .type-row { grid-template-columns: 180px 1fr; align-items: baseline; gap: var(--s5); } }
.type-label { font-size: .76rem; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.type-sample { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin: 0; }
.demo-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.demo-row--dark { background: var(--navy); padding: var(--s5); margin-top: var(--s4); border-radius: var(--radius); }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--s3); }
.icon-cell {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s4) var(--s2);
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
  font-size: .7rem; color: var(--muted); text-align: center; word-break: break-all;
}
.icon-cell .icon { color: var(--navy); }

/* ------------------------------------------------------------------ 404 -- */
.notfound { display: grid; gap: var(--s7); text-align: center; }
@media (min-width: 860px) {
  .notfound { grid-template-columns: 1fr 1fr; gap: var(--s8); text-align: start; }
  .notfound__col + .notfound__col { border-inline-start: 1px solid var(--line); padding-inline-start: var(--s8); }
}
.notfound .demo-row { justify-content: center; }
@media (min-width: 860px) { .notfound .demo-row { justify-content: flex-start; } }
.notfound__col[dir="rtl"] .demo-row { flex-direction: row-reverse; }
@media (max-width: 859px) { .notfound__col[dir="rtl"] .demo-row { flex-direction: row; justify-content: center; } }

/* ----------------------------------------------------------------- map  -- */
.map { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s5); background: var(--white); }
.map iframe { display: block; filter: grayscale(.35) contrast(1.05); border: 0; width: 100%; }
.map__gate {
  min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s3); text-align: center; padding: var(--s6) var(--s5);
  background:
    linear-gradient(rgba(3, 42, 100, .03), rgba(3, 42, 100, .03)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(3, 42, 100, .04) 14px 15px);
}
.map__gate-icon { color: var(--gold-deep); }
.map__gate-text { font-size: .88rem; color: var(--muted); margin: 0; max-width: 44ch; }

/* ------------------------------------------------------------ scroll reveal -- */
/* The `reveal` class is added by JS only to elements that start off-screen, so
   nothing is ever hidden without JS and there is no flash on above-the-fold
   content. `is-in` plays it back. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--fade { transform: none; }
.reveal--left { transform: translateX(-22px); }
[dir="rtl"] .reveal--left { transform: translateX(22px); }
.reveal.is-in.reveal--left { transform: none; }
/* Animation finished — drop the compositor hint. */
.reveal.is-done { will-change: auto; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ------------------------------------------------------------- a11y/motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- print -- */
@media print {
  .topbar, .header, .drawer, .wa-fab, .cookie, .cta-band, .filters { display: none !important; }
  body { color: #000; }
  .hero, .phero, .shero, .sec--navy, .footer { background: #fff !important; color: #000 !important; }
  .hero__title, .phero__title, .shero__title, .sec--navy h2 { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}

/* Pool services run UAE-wide, unlike the Abu Dhabi maintenance lines. */
.shero__scope {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-block-start: .85rem; padding: .3rem .75rem;
  border: 1px solid rgba(212, 166, 74, .45); border-radius: 999px;
  background: rgba(212, 166, 74, .12);
  color: var(--gold); font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.shero__scope svg { flex: none; }
