:root {
  --brand: #0040ca;
  --brand-600: #0036ab;
  --navy: #003281;
  --navy-900: #001c4d;
  --ink: #0b1b3f;
  --muted: #4a5875;
  --bg: #f7f9fd;
  --tint: #edf2fc;
  --ice: #dbe6fb;
  --card: #ffffff;
  --border: #dde4f1;
  --field-border: #8290ad; /* 3:1 against field and page backgrounds */
  --danger: #c62828;
  --wa: #0f7a42; /* 5.4:1 on white; the old #128c4b was 4.3:1 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 28, 77, .06), 0 8px 24px rgba(0, 28, 77, .06);
  --shadow-lg: 0 18px 48px rgba(0, 28, 77, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
}
html[lang="en"] { --font: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* Two-tone ring: the navy inner ring shows on light surfaces, the white outer ring on the
   brand blues, so focus stays visible on any background without per-section overrides.
   `:root` lifts it above component box-shadows (e.g. .btn-primary) that would hide the ring;
   the radius stays low-specificity so pill buttons keep their own shape. */
:focus-visible { border-radius: 6px; }
:root :focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 2px var(--navy-900); }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(0, 64, 202, .25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ice); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--brand); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
}
.eyebrow-light { color: #b9cdfb; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--brand); background: var(--tint); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid var(--border); background: #fff; border-radius: 999px; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang-btn:hover, .menu-btn:hover { border-color: var(--brand); background: var(--tint); }
.lang-btn span { font-family: "Plus Jakarta Sans", "IBM Plex Sans Arabic", sans-serif; }
html[lang="en"] .lang-btn span { font-family: "IBM Plex Sans Arabic", sans-serif; }
.menu-btn { display: none; justify-content: center; padding: 0; }
.nav .nav-cta { display: none; }

/* Ends just below the min-width: 960px desktop layouts so the two never overlap. */
@media (max-width: 959.98px) {
  .menu-btn { display: inline-flex; }
  .hide-sm { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: 8px 16px 16px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav .nav-cta { display: inline-flex; margin-top: 8px; padding: 0 22px; border-radius: 999px; color: #fff; }
  .nav .nav-cta:hover { color: #fff; background: var(--brand-600); }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-inline-start: auto; }
  .brand img { height: 38px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, #1a5cf0 0%, transparent 60%),
              linear-gradient(160deg, var(--brand) 0%, var(--navy) 55%, var(--navy-900) 100%);
  padding: 56px 0;
}
.hero-frost {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16M6.3 6.3l11.4 11.4M17.7 6.3 6.3 17.7'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.1fr .9fr; padding-block: 24px 40px; } }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; text-wrap: balance; }
.hero .lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #f2f6ff; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { position: relative; height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
.hv-card {
  position: absolute; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.hv-card img, .cat-img img, .card-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.hv-1 { width: 58%; height: 72%; inset-inline-start: 2%; top: 4%; transform: rotate(-4deg); }
.hv-2 { width: 40%; height: 60%; inset-inline-end: 2%; top: 0; }
.hv-3 { width: 42%; height: 50%; inset-inline-end: 12%; bottom: 0; }
.hv-badge {
  position: absolute; inset-inline-start: 6%; bottom: 6%; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(10px);
  padding: 10px 16px; border-radius: 14px; font-size: .95rem;
}
.hv-badge strong { font-family: "Plus Jakarta Sans", sans-serif; unicode-bidi: isolate; }
@media (max-width: 600px) { .hero-visual { height: 300px; } .hv-badge { bottom: auto; top: -14px; inset-inline-start: auto; inset-inline-end: 0; background: var(--navy); z-index: 2; } }

/* Sections */
.section { padding: 80px 0; }
@media (max-width: 767px) { .section { padding: 56px 0; } }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 36px; }

/* About */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.features { display: grid; gap: 16px; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.f-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint); color: var(--brand); margin-bottom: 14px; flex: none;
}
.f-ic .ic { width: 22px; height: 22px; }

/* Categories */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat {
  position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0;
  overflow: hidden; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #b6c8f0; }
.cat-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #fff, var(--tint)); display: grid; place-items: center; padding: 16px; }
.cat-img img { transition: transform .4s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.05); }
.cat-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px 16px; }
.cat-body h3 { margin: 0; font-size: 1.05rem; }
.cat-body small { color: var(--muted); display: block; font-size: .85rem; }
.cat-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--brand); flex: none; transition: background-color .2s, color .2s; }
.cat:hover .cat-go { background: var(--brand); color: #fff; }

/* Own brands */
.own { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; }
.own-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .own-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.own-copy p { color: #d0dcfa; }
.ticks { display: grid; gap: 10px; margin-top: 20px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { color: #7ea6ff; margin-top: 3px; }
.own-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.own-card { margin: 0; background: #fff; border-radius: 20px; padding: 16px; color: var(--navy); box-shadow: var(--shadow-lg); }
.own-card img { aspect-ratio: 3 / 4; width: 100%; object-fit: contain; }
.own-card figcaption { text-align: center; font-weight: 700; margin-top: 8px; font-family: "Plus Jakarta Sans", sans-serif; }
.own-card:nth-child(2) { margin-top: 40px; }

/* Products */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.search {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; flex: 1 1 240px; max-width: 340px;
  background: #fff; border: 1px solid var(--field-border); border-radius: 999px; color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; min-height: 44px; }
.search input:focus-visible { outline: 0; box-shadow: none; } /* the pill shows focus via :focus-within */
@media (max-width: 640px) { .search { max-width: none; } }
.result-count { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  animation: cardIn .35s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; translate: 0 8px; } }
.card-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--border); }
.tag {
  position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px; font-size: .75rem; font-weight: 600;
  background: var(--tint); color: var(--brand); padding: 3px 10px; border-radius: 999px;
}
.tag.own-tag { background: var(--navy); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-brand { font-size: .8rem; font-weight: 600; color: var(--brand); font-family: "Plus Jakarta Sans", sans-serif; }
.card-body h3 { font-size: 1rem; margin: 0; }
.card-meta { color: var(--muted); font-size: .85rem; }
.card-cta {
  margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--wa); font-weight: 600; text-decoration: none; font-size: .9rem;
}
.card-cta:hover { text-decoration: underline; }
.card-cta .ic { width: 18px; height: 18px; }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px 16px; color: var(--muted); }
.empty p { margin: 0; }
@media (max-width: 420px) {
  .card-body { padding: 12px; }
  .card-body h3 { font-size: .95rem; }
}

/* Brands */
.brand-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .brand-list { grid-template-columns: repeat(5, 1fr); } }
.brand-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  min-height: 96px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  font-family: "Plus Jakarta Sans", sans-serif;
}
.brand-item strong { font-size: 1.1rem; color: var(--navy); }
.brand-item span { font-size: .8rem; color: var(--muted); font-family: var(--font); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.info { display: grid; gap: 14px; margin-top: 24px; }
.info li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.info .f-ic { margin: 0; }
.info .label { display: block; font-size: .85rem; color: var(--muted); }
.info a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--navy); word-break: break-word; }
.info a:hover { color: var(--brand); text-decoration: underline; }

.quote { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 480px) { .quote { padding: 20px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; box-shadow: none; border-color: var(--brand); background: #fff; }
.field .err { display: none; color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); border-width: 2px; }
.field.invalid .err { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-actions .btn { flex: 1 1 180px; }

.map-wrap { margin-top: 48px; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: 20px; box-shadow: var(--shadow); background: var(--tint); display: block; }

/* Footer */
.footer { background: var(--navy-900); color: #b9c8ea; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer nav, .footer-grid > div:last-child { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; color: #b9c8ea; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: .9rem; }

/* WhatsApp float */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 10px 28px rgba(18, 140, 75, .4); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
