/* =========================================================
   المتحدون العرب بايب — United Arab Pipe
   Pure CSS — no frameworks
   Palette extracted from the company logo:
   navy #0E3A5C · pipe blue #1B8FD1 · green #1F7A4E · gold #E3A93B
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy:        #0E3A5C;
  --navy-dark:   #082A44;
  --navy-deep:   #06202f;
  --blue:        #1B8FD1;
  --blue-dark:   #147AB6;
  --blue-soft:   #E8F4FB;
  --green:       #1F7A4E;
  --green-light: #2E9B63;
  --gold:        #E3A93B;
  --gold-light:  #F2C566;

  --ink:         #12212E;
  --body:        #4A5C6B;
  --muted:       #7C8B98;
  --line:        #E3EAF0;
  --bg:          #FFFFFF;
  --bg-soft:     #F5F8FB;
  --bg-sand:     #FAF7F1;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(14, 58, 92, .06);
  --shadow-sm: 0 6px 18px rgba(14, 58, 92, .08);
  --shadow:    0 14px 40px rgba(14, 58, 92, .12);
  --shadow-lg: 0 26px 70px rgba(14, 58, 92, .18);

  --header-h: 84px;
  --container: 1240px;
  --ease: cubic-bezier(.22, .68, .32, 1);

  --grad-brand: linear-gradient(135deg, var(--navy) 0%, #10527F 55%, var(--blue) 100%);
  --grad-gold:  linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
  min-width: 0;
}

/* Grid/flex items default to min-width:auto, so a child with intrinsic
   content (a wide table, long unbroken text/URL) stops its track from
   ever shrinking below that width — even under a 1-column mobile rule.
   Force every layout item to be shrinkable; .table-wrap's own overflow-x
   still handles genuinely wide tables locally. */
.grid > *, .split > *, .stats__grid > *, .footer__grid > *,
.contact-grid > *, .header__inner > *, .nav__list > *, .footer__bar > * {
  min-width: 0;
}
h1, h2, h3, h4, h5, h6, p, li, td, th, a, span, label {
  overflow-wrap: break-word;
  word-break: break-word;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: "Cairo", "Tajawal", sans-serif;
  color: var(--navy);
  line-height: 1.45;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--blue-dark); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
li { margin-bottom: .45em; }
figure { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Layout helpers ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section   { padding: clamp(64px, 8vw, 110px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--sand { background: var(--bg-sand); }
.section--navy { background: var(--navy); color: #C9DCEA; }
.section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }

/* ---------- 4. Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Cairo", sans-serif; font-weight: 700; font-size: .82rem;
  letter-spacing: .5px; color: var(--blue-dark);
  background: var(--blue-soft); border: 1px solid #CFE6F5;
  padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.section--navy .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #9FD3F2; }

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--body); margin-bottom: 0; }
.section--navy .section-head p { color: #A8C4D8; }

.lead { font-size: 1.12rem; color: var(--ink); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Cairo", sans-serif; font-weight: 700; font-size: .98rem;
  padding: 14px 30px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: var(--shadow); }
.btn--gold { background: var(--grad-gold); color: #3B2A05; box-shadow: 0 10px 26px rgba(227,169,59,.35); }
.btn--gold:hover { color: #3B2A05; box-shadow: 0 16px 36px rgba(227,169,59,.45); }
.btn--wa { background: #25D366; color: #06331A; box-shadow: 0 10px 26px rgba(37,211,102,.3); }
.btn--wa:hover { background: #1FBE5B; color: #06331A; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Header ---------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 900;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.scrolled { height: 70px; box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 46px; height: 46px; flex: none; transition: width .3s var(--ease), height .3s var(--ease); }
.header.scrolled .brand__mark { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-family: "Cairo", sans-serif; font-weight: 800; font-size: 1.16rem; color: var(--navy); }
.brand__tag  { font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: .2px; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 10px 15px; border-radius: var(--radius-sm);
  font-family: "Cairo", sans-serif; font-weight: 700; font-size: .95rem; color: var(--navy);
}
.nav__link::after {
  content: ""; position: absolute; inset-block-end: 3px; inset-inline-start: 50%;
  translate: 50% 0; width: 0; height: 3px; border-radius: 3px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__link:hover { color: var(--blue-dark); }
.nav__link:hover::after, .nav__link.active::after { width: 22px; }
.nav__link.active { color: var(--blue-dark); }

.header__cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 9px; font-family: "Cairo", sans-serif;
  font-weight: 700; color: var(--navy); font-size: .95rem; direction: ltr;
}
.header__phone svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- language switcher ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-family: "Cairo", sans-serif; font-weight: 700; font-size: .82rem;
  padding: 9px 14px; border-radius: var(--radius-pill); flex: none;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.lang-switch svg { width: 16px; height: 16px; flex: none; }
.lang-switch__label { display: none; }
.lang-switch__code { letter-spacing: .4px; }

.nav__lang { display: none; }
@media (max-width: 980px) {
  .nav__lang {
    display: block; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  }
  .nav__lang .lang-switch { width: 100%; justify-content: center; padding: 14px; font-size: .96rem; }
  .nav__lang .lang-switch__code { display: none; }
  .nav__lang .lang-switch__label { display: inline; }
}

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); cursor: pointer; padding: 0; place-items: center;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; background: rgba(6,32,47,.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: 880;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* ---------- 7. Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease);
  background-size: cover; background-position: center;
}
.hero__slide.active { opacity: 1; animation: heroZoom 9s linear forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1.14); } }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(6,32,47,.94) 0%, rgba(6,32,47,.80) 42%, rgba(6,32,47,.35) 78%, rgba(6,32,47,.25) 100%),
    linear-gradient(to top, rgba(6,32,47,.75), transparent 55%);
}
.hero__inner { position: relative; z-index: 3; padding: 60px 0 120px; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); color: #EAF4FB;
  font-family: "Cairo", sans-serif; font-weight: 700; font-size: .84rem; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); box-shadow: 0 0 0 4px rgba(46,155,99,.28); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(46,155,99,0); } }
.hero h1 { color: #fff; margin-bottom: 20px; text-shadow: 0 4px 28px rgba(0,0,0,.35); }
.hero h1 span { color: var(--gold-light); }
.hero__text { color: #CBDDE9; font-size: 1.12rem; max-width: 620px; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: #DCEAF3; font-size: .85rem; font-weight: 600;
}
.hero__chip svg { width: 16px; height: 16px; color: var(--gold-light); }

.hero__dots { position: absolute; inset-block-end: 42px; inset-inline-start: 0; inset-inline-end: 0; z-index: 4; display: flex; justify-content: center; gap: 10px; }
.hero__dots button {
  width: 34px; height: 5px; border-radius: 3px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.32); transition: background .3s var(--ease), width .3s var(--ease); padding: 0;
}
.hero__dots button.active { background: var(--gold); width: 54px; }

.hero__scroll {
  position: absolute; inset-block-end: 34px; inset-inline-end: max(24px, calc((100vw - var(--container)) / 2));
  z-index: 4; color: #A9C6D8; font-size: .78rem; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(to bottom, transparent, var(--gold)); }

/* ---------- 8. Stats bar ---------- */
.stats { background: var(--grad-brand); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset-block-start: -60%; inset-inline-end: -8%;
  width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.05);
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 54px 0; position: relative; }
.stat { text-align: center; padding: 6px 14px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.stat:first-child { border-inline-start: 0; }
.stat__num { font-family: "Cairo", sans-serif; font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 800; color: #fff; line-height: 1.2; }
.stat__num span { color: var(--gold-light); }
.stat__label { color: #B6D2E6; font-size: .92rem; }

/* ---------- 9. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: #CFE6F5; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__tag {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  background: rgba(255,255,255,.95); color: var(--navy); font-family: "Cairo", sans-serif;
  font-weight: 700; font-size: .76rem; padding: 6px 14px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.card__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: .96rem; margin-bottom: 16px; }
.card__spec { list-style: none; padding: 0; margin: 0 0 20px; }
.card__spec li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .88rem; padding: 8px 0; border-bottom: 1px dashed var(--line); margin: 0;
}
.card__spec li:last-child { border-bottom: 0; }
.card__spec b { color: var(--navy); font-weight: 700; }
.card__foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* feature card (icon) */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); height: 100%;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-dark); margin-bottom: 20px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature:nth-child(3n+2) .feature__icon { background: #E9F5EE; color: var(--green); }
.feature:nth-child(3n+3) .feature__icon { background: #FDF3E0; color: #B57F14; }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; }
.feature p { font-size: .95rem; margin: 0; }

.section--navy .feature { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }
.section--navy .feature p { color: #A8C4D8; }
.section--navy .feature__icon { background: rgba(27,143,209,.18); color: #7EC8F0; }
.section--navy .feature:nth-child(3n+2) .feature__icon { background: rgba(46,155,99,.18); color: #6FD3A0; }
.section--navy .feature:nth-child(3n+3) .feature__icon { background: rgba(227,169,59,.18); color: var(--gold-light); }

/* ---------- 10. Split media block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; inset-block-end: -18px; inset-inline-start: -18px;
  width: 130px; height: 130px; border-radius: var(--radius); border: 4px solid var(--gold);
  z-index: -1;
}
.split__badge {
  position: absolute; inset-block-end: 24px; inset-inline-end: -14px;
  background: #fff; border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.split__badge b { font-family: "Cairo", sans-serif; font-size: 1.5rem; color: var(--navy); display: block; line-height: 1.2; }
.split__badge span { font-size: .82rem; color: var(--muted); }
.split__badge i { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-gold); display: grid; place-items: center; }
.split__badge i svg { width: 24px; height: 24px; color: #4A3405; }

/* ---------- 11. Check list ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: .98rem; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 5px; border-radius: 50%;
  background: #E9F5EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A4E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section--navy .checklist li { color: #C9DCEA; }
.section--navy .checklist li::before { background-color: rgba(46,155,99,.2); }

/* ---------- 12. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; min-width: 480px; }
table.spec th, table.spec td { padding: 14px 18px; text-align: right; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.spec thead th { background: var(--navy); color: #fff; font-family: "Cairo", sans-serif; font-weight: 700; }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:nth-child(even) { background: var(--bg-soft); }
table.spec td:first-child { font-weight: 700; color: var(--navy); }

/* ---------- 13. Quote / marketing strip ---------- */
.quote-strip { background: var(--bg-sand); border-block: 1px solid #EDE4D4; }
.quote {
  position: relative; text-align: center; max-width: 900px; margin-inline: auto; padding: 10px 20px;
}
.quote p {
  font-family: "Cairo", sans-serif; font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  font-weight: 700; color: var(--navy); line-height: 1.7; margin-bottom: 14px;
}
.quote span { color: var(--muted); font-size: .92rem; }
.quote::before {
  content: "”"; font-family: "Cairo", serif; font-size: 6rem; color: var(--gold);
  opacity: .35; line-height: .6; display: block; margin-bottom: 6px;
}

/* ---------- 14. Certifications ---------- */
.cert {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cert i { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; }
.cert i svg { width: 26px; height: 26px; color: var(--blue-dark); }
.cert p { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 600; line-height: 1.6; }

/* ---------- 15. Store ---------- */
.store-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 20px; box-shadow: var(--shadow-xs); margin-bottom: 34px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
  font-family: "Cairo", sans-serif; font-weight: 700; font-size: .86rem;
  padding: 9px 18px; border-radius: var(--radius-pill);
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--blue); color: var(--blue-dark); }
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.search {
  position: relative; display: flex; align-items: center; min-width: 260px; flex: 1; max-width: 340px;
}
.search svg { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 44px 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-family: inherit; font-size: .93rem; color: var(--ink); background: var(--bg-soft);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.search input:focus { outline: none; border-color: var(--blue); background: #fff; }

.product-card .card__media { aspect-ratio: 1 / 1; background: #fff; }
.product-card .card__media img { object-fit: cover; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pill {
  font-size: .74rem; font-weight: 700; font-family: "Cairo", sans-serif;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--blue-soft); color: var(--blue-dark);
}
.pill--green { background: #E9F5EE; color: var(--green); }
.pill--gold  { background: #FDF3E0; color: #A9760D; }

.no-results { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
.no-results.show { display: block; }

.rfq-note {
  display: flex; gap: 16px; align-items: flex-start; background: var(--blue-soft);
  border: 1px solid #CFE6F5; border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 34px;
}
.rfq-note svg { width: 26px; height: 26px; color: var(--blue-dark); flex: none; margin-top: 4px; }
.rfq-note p { margin: 0; font-size: .96rem; color: var(--navy); }

/* ---------- 16. Gallery ---------- */
.gallery-grid { columns: 3; column-gap: 20px; }
.gallery-item {
  position: relative; break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; background: var(--bg-soft); display: block; width: 100%;
  border: 0; padding: 0;
}
.gallery-item img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,32,47,.55), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item i {
  position: absolute; inset-block-end: 16px; inset-inline-start: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery-item i svg { width: 18px; height: 18px; color: var(--navy); }
.gallery-item:hover i { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 1200; background: rgba(4,18,28,.95);
  display: grid; place-items: center; opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .25s var(--ease); backdrop-filter: blur(6px);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__close { inset-block-start: 26px; inset-inline-end: 26px; }
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav.prev { inset-inline-end: 26px; inset-block-start: 50%; translate: 0 -50%; }
.lightbox__nav.next { inset-inline-start: 26px; inset-block-start: 50%; translate: 0 -50%; }
.lightbox__counter { position: absolute; inset-block-end: 26px; color: #9FB6C5; font-size: .9rem; direction: ltr; }

/* ---------- 17. Page banner ---------- */
.page-banner {
  position: relative; padding: calc(var(--header-h) + 70px) 0 70px; overflow: hidden;
  background: var(--navy-deep);
}
.page-banner__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .34;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(6,32,47,.92), rgba(6,32,47,.62));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: 12px; }
.page-banner p { color: #B6D2E6; max-width: 620px; font-size: 1.05rem; margin: 0; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .87rem; color: #86A5BA; margin-bottom: 16px; }
.crumbs a { color: var(--gold-light); }
.crumbs span { opacity: .6; }

/* ---------- 18. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.info-card {
  display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.info-card i { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--blue-soft); display: grid; place-items: center; }
.info-card i svg { width: 24px; height: 24px; color: var(--blue-dark); }
.info-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.info-card p, .info-card a { margin: 0; font-size: .95rem; display: block; color: var(--body); }
.info-card a:hover { color: var(--blue); }
.info-card .ltr { direction: ltr; text-align: right; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "Cairo", sans-serif; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.field label span { color: #D14343; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg-soft);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27,143,209,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8B98' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 17px; padding-left: 42px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); line-height: 0; background: var(--bg-soft);
}
.map-frame iframe { width: 100%; height: 440px; border: 0; display: block; }

.hours-card {
  background: var(--grad-brand); color: #fff; border-radius: var(--radius-lg); padding: 30px;
}
.hours-card h3 { color: #fff; }
.hours-card ul { list-style: none; padding: 0; margin: 0; }
.hours-card li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.18); font-size: .94rem; color: #CFE3F1; }
.hours-card li:last-child { border-bottom: 0; }
.hours-card li b { color: var(--gold-light); }

/* ---------- 19. Coverage chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy);
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }
.chip svg { width: 15px; height: 15px; color: var(--gold); }
.section--navy .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #DCEAF3; }

/* ---------- 20. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--grad-brand); color: #fff; padding: clamp(36px, 5vw, 60px);
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between;
}
.cta-band::before {
  content: ""; position: absolute; inset-block-start: -40%; inset-inline-start: -6%;
  width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.06);
}
.cta-band__text { position: relative; max-width: 620px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #BBD6E8; margin: 0; }
.cta-band .btn-row { position: relative; }

/* ---------- 21. Footer ---------- */
.footer { background: var(--navy-deep); color: #93AFC2; padding-top: 72px; position: relative; }
.footer h4 { color: #fff; font-family: "Cairo", sans-serif; font-size: 1.05rem; margin-bottom: 20px; font-weight: 800; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: #6E8C9F; }
.footer__brand p { font-size: .93rem; margin: 20px 0; max-width: 330px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 11px; }
.footer__list a { color: #93AFC2; font-size: .94rem; }
.footer__list a:hover { color: var(--gold-light); padding-inline-start: 5px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; font-size: .93rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 5px; }
.footer__contact a { color: #93AFC2; }
.footer__contact .ltr { direction: ltr; }
.social { display: flex; gap: 10px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #B7CEDD;
  transition: all .3s var(--ease);
}
.social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); border-color: var(--blue); }
.social a.wa:hover { background: #25D366; border-color: #25D366; color: #06331A; }
.social svg { width: 19px; height: 19px; }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0 26px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
}
/* NOTE: the page is RTL, so grid column 1 is on the RIGHT and column 3 on the LEFT.
   The developer button must sit at the visual bottom-left → column 3. */
.footer__copy { font-size: .86rem; color: #7593A8; grid-column: 1; text-align: start; }
.powered {
  grid-column: 2; text-align: center; font-family: "Cairo", sans-serif; font-size: .88rem;
  color: #8FADC0; letter-spacing: .3px;
}
.powered b { color: var(--gold-light); font-weight: 800; }

/* ---------- 22. Developer button (bottom-left of footer) ---------- */
.devbox { grid-column: 3; justify-self: end; position: relative; }
.dev-card {
  position: absolute; inset-block-end: calc(100% + 12px); inset-inline-end: 0;
  width: 290px; background: #0E2029; border: 1px solid #1E3A47; border-radius: 18px;
  padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  z-index: 20;
}
.dev-card.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dev-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dev-card__name { font-family: "Cairo", sans-serif; font-weight: 800; font-size: 1.16rem; color: #fff; margin: 0 0 4px; }
.dev-card__role { font-size: .72rem; font-weight: 800; letter-spacing: 1.1px; color: #F08A24; text-transform: uppercase; margin: 0; direction: ltr; text-align: right; }
.dev-card__avatar {
  flex: none; width: 52px; height: 52px; border-radius: 12px; background: #F08A24;
  display: grid; place-items: center; font-family: "Cairo", sans-serif; font-weight: 800;
  color: #21140A; font-size: 1.06rem; letter-spacing: .5px;
}
.dev-card__wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid #1E5E3C; background: rgba(37,211,102,.07); color: #EAF9F0;
  border-radius: 12px; padding: 13px; font-family: "Cairo", sans-serif; font-weight: 700; font-size: .96rem;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.dev-card__wa:hover { background: rgba(37,211,102,.16); border-color: #25D366; color: #fff; transform: translateY(-2px); }
.dev-card__wa svg { width: 20px; height: 20px; color: #25D366; }
.dev-card__phone { display: block; text-align: center; font-size: .82rem; color: #6E8C9F; margin-top: 12px; direction: ltr; }

.dev-trigger {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 9px 16px; color: #8FADC0; font-family: inherit; font-size: .84rem;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.dev-trigger:hover { border-color: #F08A24; background: rgba(240,138,36,.08); }
.dev-trigger b { font-family: "Cairo", sans-serif; font-weight: 800; font-style: italic; color: #fff; }
.dev-trigger .code { color: #F08A24; font-weight: 800; font-family: "Consolas", monospace; }

/* ---------- 23. Floating actions ---------- */
.float-wa, .to-top {
  position: fixed; z-index: 800; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow); border: 0; cursor: pointer;
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.float-wa { inset-block-end: 26px; inset-inline-start: 26px; background: #25D366; color: #06331A; }
.float-wa:hover { transform: scale(1.1); color: #06331A; }
.float-wa svg { width: 27px; height: 27px; }
.float-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: ring 2.2s infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

.to-top { inset-block-end: 26px; inset-inline-end: 26px; background: var(--navy); color: #fff; opacity: 0; visibility: hidden; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-dark); transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- 24. Modal (RFQ) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1100; background: rgba(6,32,47,.6); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  background: #fff; border-radius: var(--radius-lg); width: min(100%, 560px); padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-lg); transform: translateY(18px); transition: transform .35s var(--ease);
  max-height: 92vh; overflow-y: auto;
}
.modal.open .modal__box { transform: translateY(0); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal__head h3 { margin: 0 0 4px; }
.modal__head p { margin: 0; font-size: .9rem; color: var(--muted); }
.modal__close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; color: var(--navy);
  transition: background .25s var(--ease);
}
.modal__close:hover { background: var(--line); }
.modal__close svg { width: 18px; height: 18px; }

/* ---------- 25. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

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

/* ---------- 26. Responsive ---------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .header__phone span { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .burger { display: grid; }
  .nav {
    position: fixed; inset-block-start: 0; inset-inline-end: 0; height: 100dvh; width: min(86vw, 340px);
    background: #fff; box-shadow: var(--shadow-lg); z-index: 890; padding: calc(var(--header-h) + 20px) 22px 30px;
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
  }
  html[dir="rtl"] .nav { transform: translateX(-100%); }
  body.nav-open .nav { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 15px 14px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__link.active { background: var(--blue-soft); border-radius: var(--radius-sm); border-bottom-color: transparent; }
  .header__cta .btn { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media::after { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .hero__inner { padding: 40px 0 100px; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.02rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__copy, .powered, .devbox { grid-column: 1; text-align: center; justify-self: center; }
  /* centre the card under the trigger using PHYSICAL insets — a logical
     inset + translate(-50%) would push it off-canvas on an RTL page */
  .dev-card {
    inset-inline-start: auto; inset-inline-end: auto;
    left: 50%; translate: -50% 0; width: min(290px, 88vw);
  }
  .dev-card.open { transform: translateY(0) scale(1); }
  .gallery-grid { columns: 1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .store-toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; min-width: 0; width: 100%; }
  .lightbox__nav.prev { inset-inline-end: 12px; }
  .lightbox__nav.next { inset-inline-start: 12px; }
  .float-wa, .to-top { width: 48px; height: 48px; }
  .to-top { inset-block-end: 22px; inset-inline-end: 18px; }
  .float-wa { inset-block-end: 22px; inset-inline-start: 18px; }

  /* Spec tables (المواصفة/القيمة): on mobile let the table shrink to the
     screen width and wrap its text instead of forcing a horizontal-scroll
     table — the 480px min-width was pushing content off-screen and
     making cell text look cut off with no obvious way to scroll to it. */
  table.spec { min-width: 0; table-layout: fixed; }
  table.spec th, table.spec td { padding: 12px 14px; font-size: .88rem; white-space: normal; word-break: break-word; }
}

/* ---------- 27. Print ---------- */
@media print {
  .header, .footer, .float-wa, .to-top, .hero__dots, .nav { display: none !important; }
  body { color: #000; }
}
