@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --sky: #058FD3;
  --sky2: #0090D0;
  --navy: #313D7B;
  --red: #B40001;
  --gold: #F2CD73;
  --green: #7CB342;
  --teal: #3BAAA5;
  --white: #fff;
  --canvas: #f8f9fb;
  --ink: #1A1A2E;
  --muted: #5f6b7a;
  --line: #e6e9ef;
  --font: "Inter", "IBM Plex Sans Arabic", "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --header: 72px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); overflow-x: hidden; max-width: 100%; }
html:not(.ready) body { visibility: hidden; }
body {
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.lock { overflow: hidden; }
html[lang="ar"] body { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--white); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -48px;
  z-index: 80;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip:focus { top: 12px; }

h1, h2, h3 { color: var(--navy); font-weight: 500; line-height: 1.1; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; }

.label { font-size: 0.8rem; font-weight: 500; color: var(--sky); letter-spacing: 0.08em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }

header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.logo img { width: 42px; height: 42px; border-radius: 6px; background: var(--white); } /* light surface for transparent logo */
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; background: #e6f4ff; color: var(--sky); padding: 2px 8px; border-radius: 999px; margin-inline-start: 6px; }
.verified svg { width: 14px; height: 14px; }
.verified span { font-size: 0.65rem; }

.nav-panel { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.links { display: flex; gap: 18px; font-size: 0.95rem; }
.links a { color: var(--ink); padding: 6px 4px; }
.links a.active { color: var(--sky); border-bottom: 2px solid var(--sky); }
.panel-extra { display: none; }
.right { display: flex; align-items: center; gap: 8px; }

.lang { background: var(--white); border: 1px solid var(--line); color: var(--navy); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 0.85rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--sky); color: var(--white); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; border: 0; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-kelp, .btn-red { background: var(--red); color: var(--white); }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); transition: .2s; }
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 25px; }

@media (max-width: 860px) {
  .links { display: none; flex-direction: column; gap: 4px; background: var(--white); padding: 12px; border-radius: 12px; border: 1px solid var(--line); position: absolute; top: calc(var(--header) - 4px); inset-inline-end: 16px; min-width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 60; }
  .nav-panel.open .links { display: flex; }
  .panel-extra { display: block; }
  .menu-btn { display: block; }
  .desk-cta { display: none; }
}

.hero {
  position: relative;
  background: linear-gradient(180deg, #f0f7fc 0%, var(--canvas) 70%);
  padding-block: clamp(40px, 8vw, 80px) 60px;
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 24px; }
.hero-copy { max-width: 52ch; }
.hero .visits { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.hero .visits strong { color: var(--navy); font-weight: 500; }

section { padding-block: clamp(32px, 6vw, 64px); }
section.alt { background: var(--white); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,143,211,.08); }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card .meta { font-size: 0.8rem; color: var(--sky); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filter-chip { background: var(--white); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.filter-chip.active, .filter-chip:hover { background: var(--sky); color: var(--white); border-color: var(--sky); }
.search { flex: 1 1 220px; min-width: 180px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) {
  .chip-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
}

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.prod-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.prod-card img { width: 100%; height: 148px; object-fit: contain; background: #fff; padding: 8px; }
.prod-card .p-body { padding: 10px 12px; font-size: 0.9rem; }
.prod-card .brand { color: var(--sky); font-weight: 500; font-size: 0.8rem; }
.prod-card .flavor { color: var(--ink); }
.prod-card .meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

.two { display: grid; gap: 24px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }

.list { padding-inline-start: 1.1em; }
.list li { margin: 6px 0; }

.note { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.vm { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--white); }

.locations { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.loc { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--white); }
.loc h3 { margin-bottom: 6px; }

.team { display: grid; gap: 20px; }
.team .member { display: flex; gap: 16px; align-items: flex-start; }
.team img { width: 160px; max-width: 42%; border-radius: 12px; }
.bio { color: var(--muted); font-size: 0.95rem; }

.phones a { display: block; color: var(--sky); margin: 4px 0; }
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

form label { display: block; margin: 10px 0; font-size: 0.9rem; }
form input, form textarea, form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
form textarea { min-height: 100px; resize: vertical; }

footer { background: var(--navy); color: #c9d2e3; padding-block: 40px 20px; font-size: 0.9rem; }
footer a { color: #c9d2e3; }
.foot { display: grid; gap: 24px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; font-size: 0.8rem; }

.stats { display: flex; gap: 24px; flex-wrap: wrap; }
.stat .num { font-size: 1.6rem; font-weight: 500; color: var(--navy); }

#visits { margin-top: 12px; }

.filter-bar input, .filter-bar select { font-size: 0.9rem; }

/* products count */
#prod-count { font-size: 0.85rem; color: var(--muted); }

.missing { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.missing .logo { font-size: 1.4rem; }
.missing h1 { font-size: 2rem; margin: 12px 0; }

@media (max-width: 480px) {
  .prod-card img { height: 120px; }
}

/* Keep phone numbers and Latin meta in visual LTR even on RTL pages */
.ltr, a[href^="tel:"], a[href^="https://wa.me"], .phones a {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
