/* Hamsa Trading & Supplies - premium proof-driven static site */

:root {
  --navy: #0F2A4A;
  --navy-2: #14395F;
  --navy-deep: #06182A;
  --orange: #E87722;
  --orange-2: #F19A4A;
  --cream: #F7F5F0;
  --paper: #FFFDFC;
  --line: #E2DED5;
  --muted: #677180;
  --ink: #162033;
  --shadow: 0 18px 50px rgba(15, 42, 74, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 42, 74, 0.08);
  --radius: 8px;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 48px);
  --font-ar: "Cairo", "Tajawal", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-lang="en"] body {
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[translate="no"] {
  unicode-bidi: isolate;
}

a[href^="tel:"],
a[href^="mailto:"],
.client-proof,
.footer__name-en {
  direction: ltr;
  unicode-bidi: isolate;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: 0;
}
h1 { font-size: 64px; font-weight: 800; margin-bottom: 20px; text-wrap: balance; }
h2 { font-size: 42px; font-weight: 800; margin-bottom: 16px; text-wrap: balance; }
h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
p { color: #374151; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  inset-inline-start: 20px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid rgba(232, 119, 34, 0.75);
  outline-offset: 3px;
}

section[id] { scroll-margin-top: 92px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.9);
  border-bottom: 1px solid rgba(15, 42, 74, 0.1);
  backdrop-filter: saturate(150%) blur(14px);
}

.topbar__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 36px;
  height: 42px;
  object-fit: contain;
}

.brand__words {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand__ar { font-size: 19px; font-weight: 800; color: var(--navy); }
.brand__en {
  margin-top: 5px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--orange);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  margin-inline-start: auto;
}

.nav a {
  position: relative;
  padding-block: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--orange);
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.lang-toggle,
.menu-toggle {
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.lang-toggle {
  min-width: 48px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
}

.section-tight {
  padding: clamp(28px, 6vw, 86px) 0 54px;
}

.section--white { background: var(--paper); }

.section__eyebrow,
.eyebrow {
  display: inline-flex;
  color: #C55712;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 12px;
}

html[data-lang="en"] .section__eyebrow,
html[data-lang="en"] .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading h2 { margin-bottom: 0; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.8), rgba(255,255,255,0.28)),
    linear-gradient(180deg, rgba(15,42,74,0.04), rgba(232,119,34,0.05)),
    var(--cream);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.hero__copy { position: relative; z-index: 1; }

.lede {
  max-width: 60ch;
  color: #3F4652;
  font-size: 19px;
  margin-bottom: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(232, 119, 34, 0.25);
}
.btn--primary:hover { background: var(--navy); box-shadow: 0 14px 28px rgba(15,42,74,0.22); }
.btn--ghost {
  border-color: rgba(15, 42, 74, 0.75);
  color: var(--navy);
  background: rgba(255,255,255,0.45);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--wide { margin-top: 22px; }

.operations-visual {
  position: relative;
  border: 1px solid rgba(15, 42, 74, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #F8F5EE);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(360px, 40vw, 520px);
  padding: clamp(16px, 2vw, 24px);
}

.operations-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,42,74,0.08), transparent 32%),
    repeating-linear-gradient(135deg, rgba(15,42,74,0.035) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.ops-map {
  position: absolute;
  inset: clamp(14px, 2vw, 24px);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(15,42,74,0.1);
}

.ops-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ops-panel {
  position: absolute;
  z-index: 1;
  width: min(250px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,42,74,0.12);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 14px 32px rgba(15,42,74,0.12);
  backdrop-filter: blur(10px);
}

.ops-panel--primary {
  inset-inline-start: 26px;
  top: 28px;
  background: rgba(15,42,74,0.94);
}

.ops-panel--qa {
  inset-inline-end: 24px;
  top: 42%;
}

.ops-panel--network {
  inset-inline-start: 40px;
  bottom: 28px;
}

.ops-panel span {
  display: block;
  color: #C55712;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ops-panel strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.45;
}

.ops-panel--primary span { color: var(--orange-2); }
.ops-panel--primary strong { color: #fff; }

.trust-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(15,42,74,0.12);
  background: rgba(255,255,255,0.65);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip div {
  padding: 18px 20px;
  border-inline-start: 1px solid rgba(15,42,74,0.1);
}
.trust-strip div:first-child { border-inline-start: 0; }

.trust-strip strong,
.trust-strip span { display: block; }
.trust-strip strong {
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}
.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
}

.intro-copy {
  columns: 2;
  column-gap: 34px;
}
.intro-copy p { break-inside: avoid; margin-bottom: 0; }
.intro-copy p + p { margin-top: 18px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.process-step,
.service,
.aud,
.contact-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
}

.process-step {
  position: relative;
  padding: 24px 22px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.process-step::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0.28);
  transform-origin: center;
  transition: transform 180ms ease;
}

.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(232,119,34,0.4);
}
.process-step:hover::after { transform: scaleX(1); }

.step__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15,42,74,0.08);
  margin-bottom: 16px;
}
.step__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-step span,
.service strong {
  display: block;
  color: #C55712;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.process-step p,
.service p,
.aud p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service {
  padding: 22px;
  background: var(--cream);
  min-height: 174px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.service:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.proof-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0)),
    var(--cream);
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.proof-copy p { color: #3F4652; }

.client-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.client-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15,42,74,0.15);
  color: var(--navy);
  background: rgba(255,255,255,0.72);
  font-family: var(--font-en);
  font-weight: 800;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.capability-card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,42,74,0.12);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,119,34,0.45);
  background: #fff;
}

.capability-card span {
  display: block;
  color: #C55712;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.capability-card h3 {
  margin-bottom: 10px;
}

.capability-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.capability-card:nth-child(2) {
  background: var(--navy);
}

.capability-card:nth-child(2) span {
  color: var(--orange-2);
}

.capability-card:nth-child(2) h3 {
  color: #fff;
}

.capability-card:nth-child(2) p {
  color: rgba(255,255,255,0.75);
}

.capability-card:nth-child(2):hover {
  background: var(--navy-2);
}

.section--dark {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .section__eyebrow { color: var(--orange-2); }

.audiences {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.aud {
  padding: 24px 22px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.aud p { color: rgba(255,255,255,0.74); }

.contact-section { background: var(--paper); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.contact-copy p { color: #3F4652; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-card {
  display: block;
  padding: 22px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.contact-card:hover:not(.contact-card--static) {
  transform: translateY(-3px);
  border-color: rgba(232,119,34,0.55);
  box-shadow: var(--shadow-soft);
}
.contact-card span,
.contact-card strong { display: block; }
.contact-card span {
  color: #C55712;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-card strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}

.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.68);
  padding: 34px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer__mark {
  width: 32px;
  height: 38px;
  object-fit: contain;
}
.footer__name-ar { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.1; }
.footer__name-en {
  margin-top: 4px;
  color: var(--orange-2);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}
.footer__copy { margin: 0; color: rgba(255,255,255,0.55); font-size: 13px; }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  h1 { font-size: 50px; }
  h2 { font-size: 36px; }

  .hero__inner,
  .split-intro,
  .proof-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .process-grid,
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-strip,
  .audiences {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.56; }
  html[data-lang="en"] body { font-size: 15px; }

  .container { padding-inline: 18px; }
  .topbar__inner { min-height: 62px; gap: 10px; }
  .brand__mark { width: 30px; height: 35px; }
  .brand__ar { font-size: 16px; }
  .brand__en { font-size: 9px; letter-spacing: 2px; }

  .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .nav {
    position: absolute;
    inset-inline: 18px;
    top: calc(100% + 8px);
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 10px 12px;
    border-radius: 6px;
  }
  .nav a:hover { background: var(--cream); }
  .nav a::after { display: none; }

  .lang-toggle { min-width: 44px; min-height: 34px; }

  h1 { font-size: 34px; line-height: 1.2; margin-bottom: 12px; }
  h2 { font-size: 29px; line-height: 1.24; margin-bottom: 10px; }
  h3 { font-size: 19px; line-height: 1.28; }
  html[data-lang="ar"] h1 { font-size: 32px; line-height: 1.24; }
  html[data-lang="ar"] h2 { font-size: 27px; line-height: 1.28; }
  p { margin-bottom: 0.7em; }

  .section { padding: 42px 0; }
  .section-tight { padding: 24px 0 34px; }
  .section-heading { margin-bottom: 22px; }
  .section__eyebrow,
  .eyebrow { margin-bottom: 8px; font-size: 12px; }

  .hero__inner { gap: 20px; }
  .operations-visual {
    min-height: 300px;
    padding: 12px;
  }
  .ops-map { inset: 12px; }
  .ops-panel {
    width: min(220px, calc(100% - 24px));
    padding: 10px 12px;
  }
  .ops-panel strong { font-size: 13px; line-height: 1.35; }
  .ops-panel span { font-size: 11px; }
  .ops-panel--primary { inset-inline-start: 14px; top: 14px; }
  .ops-panel--qa { inset-inline-end: 14px; top: 42%; }
  .ops-panel--network { inset-inline-start: 14px; bottom: 14px; }

  .lede { font-size: 15.5px; line-height: 1.62; }
  .cta-row { margin-top: 18px; gap: 10px; }
  .btn {
    flex: 1 1 100%;
    min-height: 46px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .trust-strip {
    margin-top: 20px;
    grid-template-columns: 1fr 1fr;
  }
  .trust-strip div { padding: 12px; }
  .trust-strip strong { font-size: 16px; }
  .trust-strip span { font-size: 12px; margin-top: 2px; }

  .intro-copy { columns: 1; }
  .intro-copy p + p { margin-top: 12px; }

  .process-grid,
  .services,
  .audiences,
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .process-step,
  .service,
  .aud,
  .contact-card {
    padding: 18px;
  }

  .step__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .service { min-height: auto; }
  .process-step p,
  .service p,
  .aud p { font-size: 14px; line-height: 1.6; }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .capability-card {
    min-height: auto;
    padding: 18px;
  }
  .capability-card p { font-size: 14px; line-height: 1.58; }

  .client-proof { gap: 8px; margin-top: 16px; }
  .client-proof span { min-height: 36px; font-size: 13px; padding: 7px 12px; }

  .contact-copy .btn { margin-top: 14px; }
  .footer { padding: 26px 0; }
  .footer__inner { justify-content: center; text-align: center; }
}

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