/* =========================================================
   Modern Trading Company (MTC) — Corporate website styles
   Brand: Green #187043 · Dark green #0E4D2F · Charcoal #1F2933 · White
   ========================================================= */

:root {
  --green: #187043;
  --green-dark: #0E4D2F;
  --green-deep: #0A3A23;
  --green-mid: #2E8B57;
  --green-soft: #A8D5BA;
  --green-tint: #EAF4EE;
  --green-wash: #F4F9F6;
  --charcoal: #1F2933;
  --ink: #1F2933;
  --muted: #56626D;
  --line: #E1E8E4;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --wa: #1FAF5A;
  --gold: #C19A48;      /* from the MTC logo */
  --gold-soft: #D9BC7E;

  --font-en: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(15, 40, 28, .06), 0 2px 8px rgba(15, 40, 28, .05);
  --shadow: 0 10px 30px -12px rgba(14, 77, 47, .22), 0 2px 6px rgba(15, 40, 28, .05);
  --shadow-l: 0 30px 60px -24px rgba(10, 58, 35, .35);

  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; line-height: 1.8; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; color: var(--charcoal); font-weight: 800; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol.steps, ol.timeline { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; border-radius: 6px; }

/* ---------- Bilingual visibility ----------
   Every translatable piece of text exists twice in the HTML:
   <span lang="en">…</span><span lang="ar">…</span>
   Only the active language is shown. */
html[lang="en"] body [lang="ar"],
html[lang="ar"] body [lang="en"] { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 104px; }
.section-sm { padding-block: 72px; }
.section.tint { background: var(--green-wash); }
.section.dark { background: var(--green-dark); color: #D7E8DE; }
.section.dark :is(h2, h3) { color: var(--white); }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--green-dark); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Typography blocks ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14.5px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--gold-soft); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2, .h2 { font-size: clamp(30px, 3.6vw, 46px); }
.lead { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--muted); line-height: 1.7; }
.section.dark .lead { color: #BFD9C9; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.split-head .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff; --bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: 15.5px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { --bg: var(--green-dark); --bd: var(--green-dark); color: var(--fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-light { --bg: #fff; --fg: var(--green-dark); --bd: #fff; }
.btn-light:hover { --bg: var(--green-tint); --bd: var(--green-tint); --fg: var(--green-dark); }
.btn-outline { --bg: transparent; --fg: var(--green-dark); --bd: #C9DACF; }
.btn-outline:hover { --bg: var(--green-dark); --fg: #fff; --bd: var(--green-dark); }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; --fg: #fff; }
.btn-wa { --bg: var(--wa); --bd: var(--wa); }
.btn-wa:hover { --bg: #178F49; --bd: #178F49; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
html[dir="rtl"] .flip, html[dir="rtl"] .link-arrow svg, html[dir="rtl"] .btn svg.arrow { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* blur lives on a pseudo-element so the fixed mobile menu isn't trapped inside the header */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10, 58, 35, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--charcoal); white-space: nowrap;
}
html[lang="ar"] .main-nav a { font-size: 15px; }
.main-nav a:hover { color: var(--green); background: var(--green-wash); }
.main-nav a[aria-current="page"] { color: var(--green); }
.main-nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--green); margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 700; font-size: 14.5px; color: var(--green-dark);
}
.lang-toggle:hover { border-color: var(--green); }
.lang-toggle svg { width: 17px; height: 17px; }
.lang-toggle .lt-label { font-family: var(--font-ar); }
html[lang="ar"] .lang-toggle .lt-label { font-family: var(--font-en); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--charcoal); border-radius: 2px; position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .25s var(--ease); }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #D7E8DE;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(46, 139, 87, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(24, 112, 67, .45), transparent 60%),
    linear-gradient(160deg, var(--green-dark), var(--green-deep));
  padding-block: 88px 150px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -.03em; margin-bottom: 24px; }
html[lang="ar"] .hero h1 { line-height: 1.3; letter-spacing: 0; font-size: clamp(34px, 4.4vw, 56px); }
.hero h1 em { font-style: normal; color: var(--green-soft); }
.hero .lead { color: #C4DCCD; max-width: 560px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; color: #BFD9C9; }
.hero-trust li { display: flex; align-items: center; gap: 9px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }
.hero-visual { position: relative; }
.hero-visual .art { border-radius: var(--radius-l); box-shadow: var(--shadow-l); overflow: hidden; background: var(--green-tint); }
.hero-visual .art img { width: 100%; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--charcoal); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-l);
  font-size: 14px; line-height: 1.35; animation: floaty 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 16px; color: var(--green-dark); }
.float-chip .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; flex: none; }
.float-chip .ic svg { width: 22px; height: 22px; }
.float-chip.c1 { top: 8%; inset-inline-start: -28px; }
.float-chip.c2 { bottom: -28px; inset-inline-end: 32px; animation-delay: -3s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- Hero photo (single) ---------- */
.hero-visual .art { aspect-ratio: 3 / 2; }
.hero-visual .art img { height: 100%; object-fit: cover; }

/* ---------- Stats band ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -84px; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l); border: 1px solid var(--line);
}
.stat { padding: 32px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat .num { font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; color: var(--green-dark); letter-spacing: -.03em; line-height: 1; font-family: var(--font-en); }
.stat .label { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.stat .ic { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.stat .ic svg { width: 22px; height: 22px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #C4DCCD; padding-block: 76px 84px;
  background: radial-gradient(700px 400px at 90% 0%, rgba(46, 139, 87, .35), transparent 60%), linear-gradient(160deg, var(--green-dark), var(--green-deep));
}
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .04);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); max-width: 820px; }
.page-hero .lead { color: #C4DCCD; max-width: 680px; margin: 0; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 22px; color: #9FC4AE; }
.crumbs a { color: #D7E8DE; }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 14px; height: 14px; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.page-hero-grid .art { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l); }

/* ---------- Media / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.rev > :first-child { order: 2; }
.media { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--green-tint); box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-badge {
  position: absolute; inset-inline-start: 20px; bottom: 20px; background: rgba(255, 255, 255, .96); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center;
}
.media-badge .big { font-size: 34px; font-weight: 800; color: var(--green-dark); line-height: 1; font-family: var(--font-en); }
.media-badge small { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.35; font-weight: 600; }
.checklist { display: grid; gap: 14px; margin: 28px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 2px; }
.checklist strong { color: var(--charcoal); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CFE0D5; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.icon-box { width: 54px; height: 54px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin-bottom: 22px; }
.icon-box svg { width: 28px; height: 28px; }
.card.on-dark { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.card.on-dark p { color: #BFD9C9; }
.card.on-dark .icon-box { background: rgba(168, 213, 186, .14); color: var(--green-soft); }
.card.on-dark:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 22px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--charcoal); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.cat-tile::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--green-wash); transition: transform .4s var(--ease); z-index: 0; }
.cat-tile > * { position: relative; z-index: 1; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFE0D5; color: var(--charcoal); }
.cat-tile:hover::after { transform: scale(1.4); }
.cat-tile .icon-box { margin: 0; background: var(--green); color: #fff; }
.cat-tile h3 { font-size: 17px; margin: 0; }
.cat-tile p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.cat-tile .link-arrow { font-size: 14px; margin-top: auto; }
/* Category tiles with photos */
.cat-tile { padding: 0 0 22px; gap: 14px; }
.cat-tile::after { display: none; }
.cat-tile > :not(.cat-photo) { margin-inline: 22px; }
.cat-photo { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--green-tint); margin-bottom: -40px; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-tile:hover .cat-photo img { transform: scale(1.07); }
.cat-tile .icon-box { box-shadow: 0 0 0 4px #fff, 0 8px 18px -8px rgba(4, 38, 22, .5); }

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 12% 12%; border-top: 2px dashed rgba(168, 213, 186, .4); }
.section:not(.dark) .steps::before { border-color: #CFE0D5; }
.step { position: relative; text-align: center; padding-inline: 8px; }
.step .bubble { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 8px var(--green-dark); position: relative; }
.section:not(.dark) .step .bubble { box-shadow: 0 0 0 8px #fff; }
.section.tint .step .bubble { box-shadow: 0 0 0 8px var(--green-wash); }
.step .bubble svg { width: 30px; height: 30px; }
.step .n { position: absolute; top: -4px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--green-dark); font-size: 13px; font-weight: 800; display: grid; place-items: center; font-family: var(--font-en); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }
.section.dark .step p { color: #BFD9C9; }
.section:not(.dark) .step p { color: var(--muted); }

/* Map */
.map-card { background: var(--green-dark); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow-l); position: relative; overflow: hidden; }
.map-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 30% 60%, rgba(46, 139, 87, .35), transparent 70%); }
.map-card svg { position: relative; width: 100%; direction: ltr; }
.ksa-map .land { fill: #145E39; stroke: #3B9A66; stroke-width: 1.4; }
.ksa-map .route { fill: none; stroke: var(--green-soft); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .75; animation: dash 30s linear infinite; }
.ksa-map .city circle { fill: #A8D5BA; }
.ksa-map .city .halo { fill: rgba(168, 213, 186, .18); }
.ksa-map .hub circle.core { fill: #fff; }
.ksa-map .hub .pulse { fill: none; stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.ksa-map .branch circle.core { fill: #fff; }
.ksa-map text { font-family: var(--font-en); font-size: 13.5px; font-weight: 600; fill: #D7E8DE; }
.ksa-map g[lang="ar"] text { font-family: var(--font-ar); font-size: 14.5px; }
.ksa-map text.big { font-size: 15px; font-weight: 800; fill: #fff; }
.ksa-map .sea { font-size: 11px; font-style: italic; fill: #6FA98A; font-weight: 500; letter-spacing: .1em; }
@keyframes dash { to { stroke-dashoffset: -600; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.map-legend { position: relative; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; font-size: 13.5px; color: #BFD9C9; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; background: #A8D5BA; display: inline-block; }
.map-legend i.w { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.map-legend i.r { width: 22px; height: 0; border-radius: 0; border-top: 2px dashed #A8D5BA; background: none; }

/* Brand slots */
.brand-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-slot {
  aspect-ratio: 3 / 2; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 18px; transition: box-shadow .25s, transform .25s var(--ease);
}
.brand-slot:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-slot img { max-height: 72px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.brand-slot .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9AAFA3; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.brand-slot .ph svg { width: 30px; height: 30px; }

/* Audience chips */
.audience { display: flex; flex-wrap: wrap; gap: 12px; }
.audience li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.audience svg { width: 20px; height: 20px; color: var(--green); }

/* Feature list (numbered advantages) */
.adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.adv > div { padding: 36px 32px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: #fff; transition: background .25s; }
.adv > div:hover { background: var(--green-wash); }
.adv .k { font-family: var(--font-en); font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: .1em; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.adv .k svg { width: 26px; height: 26px; }
.adv h3 { font-size: 20px; }
.adv p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* News */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .thumb { aspect-ratio: 16 / 10; background: var(--green-tint); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-dark); font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }
.news-card h3 { font-size: 19.5px; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: 15px; }
.news-card details { margin-top: auto; }
.news-card summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--green); display: inline-flex; gap: 8px; align-items: center; }
.news-card summary::-webkit-details-marker { display: none; }
.news-card summary svg { width: 18px; height: 18px; transition: transform .2s; }
.news-card details[open] summary svg { transform: rotate(90deg); }
.news-card details .more { padding-top: 14px; color: var(--muted); font-size: 15px; }
.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; }
.news-feature .thumb { aspect-ratio: auto; min-height: 320px; }
.news-feature .body { padding: 40px; justify-content: center; }
.news-feature h3 { font-size: clamp(24px, 2.4vw, 32px); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-l); padding: 64px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(168, 213, 186, .25), transparent 60%), linear-gradient(135deg, var(--green), var(--green-dark));
  color: #D7E8DE; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 42px); }
.cta-band p { margin: 0; color: #CFE5D7; font-size: 17.5px; }
.cta-band .btn-row { justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Products catalogue ---------- */
.catalog-bar {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: 18px;
}
.search { position: relative; max-width: 560px; }
.search svg { position: absolute; inset-inline-start: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 54px; padding-inline: 50px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--green-wash);
  font-size: 16px; transition: border-color .2s, background .2s;
}
.search input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(24, 112, 67, .12); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px 2px; scrollbar-width: thin; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--charcoal); transition: all .2s;
}
.chip svg { width: 17px; height: 17px; color: var(--green); }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.chip[aria-pressed="true"] svg { color: var(--green-soft); }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; color: var(--muted); font-size: 15px; }
.catalog-meta strong { color: var(--charcoal); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #CFE0D5; }
.product-card .pimg { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(150deg, var(--green-wash), var(--green-tint)); color: var(--green); }
.product-card .pimg svg { width: 64px; height: 64px; opacity: .9; }
.product-card .pimg img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pimg .tag { position: absolute; top: 14px; inset-inline-start: 14px; margin: 0; background: #fff; }
.product-card .pbody { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 17.5px; margin-bottom: 6px; line-height: 1.3; }
.product-card .desc { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.product-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; margin: 0 0 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.product-card dt { color: var(--muted); font-weight: 600; }
.product-card dd { margin: 0; color: var(--charcoal); font-weight: 600; }
.product-card .pact { margin-top: auto; display: flex; gap: 8px; }
.product-card .pact .btn { flex: 1; min-height: 42px; padding: 8px 14px; font-size: 14px; }
.empty-state { display: none; text-align: center; padding: 64px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state.show { display: block; }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--green-soft); }

/* ---------- Network ---------- */
.branch-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.branch .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.branch h3 { font-size: 20px; margin: 0; }
.branch .badge { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--green); color: #fff; }
html[lang="ar"] .branch .badge { letter-spacing: 0; }
.branch .badge.soft { background: var(--green-tint); color: var(--green-dark); }
.branch p { margin: 0; color: var(--muted); font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.branch p svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--green); }
.branch .link-arrow { margin-top: 6px; font-size: 14.5px; }
.branch.more { background: var(--green-dark); border-color: var(--green-dark); color: #D7E8DE; justify-content: center; }
.branch.more h3 { color: #fff; font-size: 40px; font-family: var(--font-en); }
.branch.more p { color: #BFD9C9; }
.map-embed { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--green-tint); aspect-ratio: 16 / 9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.regions { display: flex; flex-wrap: wrap; gap: 10px; }
.regions li { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #D7E8DE; font-size: 14.5px; font-weight: 600; background: rgba(255, 255, 255, .04); }

/* ---------- Services ---------- */
.service { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .25s, border-color .25s; }
.service:hover { box-shadow: var(--shadow); border-color: #CFE0D5; }
.service .icon-box { margin: 0; width: 64px; height: 64px; }
.service h3 { font-size: 21px; margin-bottom: 8px; }
.service p { color: var(--muted); margin-bottom: 14px; }
.service ul { display: grid; gap: 6px; font-size: 15px; }
.service li { display: flex; gap: 10px; align-items: flex-start; }
.service li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-top: 10px; }

/* ---------- Values / timeline ---------- */
.mv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mv .card { padding: 40px; }
.mv .card h3 { font-size: 24px; }
.mv .card p { font-size: 17px; }
.timeline { position: relative; display: grid; gap: 28px; padding-inline-start: 36px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green), var(--green-soft)); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -36px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--green); }
.timeline .yr { font-family: var(--font-en); font-weight: 800; color: var(--green); font-size: 14px; letter-spacing: .1em; }
.timeline h3 { font-size: 20px; margin: 4px 0 6px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 44px; box-shadow: var(--shadow); }
.form-card h2 { font-size: clamp(26px, 2.6vw, 34px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--charcoal); }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--green-wash);
  font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23187043' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 16px center; }
html[dir="rtl"] .field select { background-position: left 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background-color: #fff; box-shadow: 0 0 0 4px rgba(24, 112, 67, .12); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #C0392B; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--green-tint); color: var(--green-dark); font-weight: 600; font-size: 15px; }
.form-status.show { display: block; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--charcoal); transition: border-color .2s, box-shadow .2s; }
a.contact-card:hover { border-color: var(--green); box-shadow: var(--shadow-s); color: var(--charcoal); }
.contact-card .icon-box { margin: 0; width: 48px; height: 48px; flex: none; }
.contact-card .icon-box svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.contact-card strong { font-size: 17px; direction: ltr; unicode-bidi: isolate; }
.contact-card .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--green-wash); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--green-dark); box-shadow: var(--shadow-s); }
.tab-panel[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #AEB8C1; padding-top: 80px; font-size: 15px; }
.site-footer a { color: #D5DCE2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .footer-logo { display: inline-block; margin-bottom: 22px; }
.footer-brand .footer-logo img { height: 48px; width: auto; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .02em; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--green-soft); margin-top: 4px; }
.footer-contact .ltr { direction: ltr; unicode-bidi: isolate; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.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); transition: background .2s, transform .2s; }
.social a:hover { background: var(--green); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-bottom .lang-toggle { min-height: 36px; padding: 6px 12px; background: transparent; color: #D5DCE2; border-color: rgba(255, 255, 255, .15); font-size: 13.5px; }

.contact-social .social { margin-top: 12px; }
.contact-social .social a { background: var(--green-tint); border-color: var(--line); color: var(--green-dark); }
.contact-social .social a:hover { background: var(--green); color: #fff; }
.main-nav .nav-cta { flex-direction: column; gap: 12px; }
.main-nav .nav-cta a.btn { display: flex; padding: 14px 24px; border-radius: 999px; font-size: 16px; color: #fff; }
.main-nav .nav-cta a.btn:hover { background: var(--green-dark); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(15, 80, 40, .55);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .tip { position: absolute; inset-inline-end: 72px; white-space: nowrap; background: var(--charcoal); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 8px; opacity: 0; transform: translateX(6px); transition: all .2s; pointer-events: none; }
.wa-float:hover .tip, .wa-float:focus-visible .tip { opacity: 1; transform: none; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease), transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.js .reveal.in { opacity: 1; translate: none; scale: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.notfound .code { font-family: var(--font-en); font-size: clamp(80px, 14vw, 160px); font-weight: 800; color: var(--green-tint); line-height: 1; letter-spacing: -.05em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .header-actions .btn { display: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .menu-btn { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 16px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { padding: 16px 4px; font-size: 18px; border-radius: 0; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav .nav-cta { display: flex; margin-top: 24px; }
  .header-actions { margin-inline-start: auto; }
  .nav-open { overflow: hidden; }
  .hero-grid, .split, .page-hero-grid, .cta-band, .news-feature { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .split { gap: 48px; }
  .hero { padding-block: 64px 130px; }
  .hero-visual { max-width: 640px; }
  .float-chip.c1 { inset-inline-start: 12px; top: -18px; }
  .float-chip.c2 { inset-inline-end: 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4)::before { display: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3, .adv, .branch-list { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1025px) { .main-nav .nav-cta { display: none; } }
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding-block: 72px; }
  .section-sm { padding-block: 56px; }
  .section-head { margin-bottom: 40px; }
  .brand img { height: 34px; }
  .lang-toggle .lt-text { display: none; }
  .hero { padding-block: 48px 120px; }
  .hero-trust { gap: 10px 20px; }
  .float-chip { padding: 9px 12px; font-size: 12.5px; }
  .float-chip strong { font-size: 14px; }
  .float-chip .ic { width: 32px; height: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 14px; }
  .stat .ic { display: none; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-inline-end: 0; }
  .g-2, .g-3, .g-4, .g-5, .adv, .mv, .branch-list, .form-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tile { padding: 20px 16px 18px; }
  .cat-tile p { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .pbody { padding: 16px; }
  .product-card .desc, .product-card dl { display: none; }
  .product-card .pact { flex-direction: column; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { padding: 36px 24px; }
  .form-card { padding: 28px 20px; }
  .service { grid-template-columns: 1fr; padding: 26px; }
  .news-feature .body { padding: 26px; }
  .page-hero { padding-block: 56px 64px; }
  .media-badge { inset-inline-start: 12px; bottom: 12px; padding: 10px 14px; }
  .media-badge .big { font-size: 26px; }
  .map-card { padding: 14px; }
  .btn-row .btn { flex: 1 1 auto; }
  .wa-float { width: 54px; height: 54px; inset-inline-end: 16px; bottom: 16px; }
}
@media (max-width: 340px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; scale: none; }
}
@media print {
  .site-header, .wa-float, .site-footer, .catalog-bar, .cta-band { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- Photo additions: responsive & motion ---------- */
/* One standard frame for every scene photo: 3:2. Category photos: 5:4. */
.split > .media { aspect-ratio: 3 / 2; }
.page-hero-grid .art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news-card .thumb { aspect-ratio: 3 / 2; }
@media (max-width: 760px) {
  .cat-tile { padding: 0 0 18px; }
  .cat-tile > :not(.cat-photo) { margin-inline: 16px; }
  .cat-photo { margin-bottom: -36px; }
}

/* ---------- Brand logo rows (Brands page) ---------- */
.brand-rows { display: grid; gap: 18px; }
.brand-row { display: grid; gap: 18px; }
.brand-row.r1 { grid-template-columns: 1.7fr repeat(5, 1fr); }
.brand-row.r2 { grid-template-columns: repeat(4, 1fr); }
.brand-row .brand-slot { aspect-ratio: auto; height: 190px; padding: 20px 14px; }
.brand-row.r2 .brand-slot { height: 200px; }
.brand-row .brand-slot img { max-height: 124px; }
.brand-row.r2 .brand-slot img { max-height: 144px; }
.brand-row .brand-slot.wide img { max-height: 136px; }
@media (max-width: 1024px) {
  /* smaller screens: one continuous grid so no card is left alone */
  .brand-rows { grid-template-columns: repeat(3, 1fr); }
  .brand-row { display: contents; }
  .brand-row .wide { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .brand-rows, .brand-row { gap: 12px; }
  .brand-rows { grid-template-columns: repeat(2, 1fr); }
  .brand-row.r2 .brand-slot:last-child { grid-column: 1 / -1; }
  .brand-row .brand-slot, .brand-row.r2 .brand-slot { height: 140px; padding: 18px 16px; }
  .brand-row .brand-slot img { max-height: 92px; }
  .brand-row .brand-slot.wide img { max-height: 110px; }
}

/* ---------- Mobile fixes ---------- */
/* Grid columns may shrink below their content (stops long emails pushing the page sideways) */
.split > *, .contact-cards, .contact-card > * { min-width: 0; }
.contact-card { overflow-wrap: anywhere; }
/* Very small phones (320–380px, e.g. iPhone SE): make the header fit */
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .brand img { height: 28px; width: auto; }
  .header-actions { gap: 6px; }
  .header-actions .lang-toggle { padding: 6px 10px; }
  .menu-btn { width: 42px; height: 42px; }
}

/* ---------- Product list (1,900+ items from js/products-data.js) ---------- */
.sku-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sku {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, border-color .25s, transform .25s var(--ease);
}
.sku:hover { box-shadow: var(--shadow); border-color: #CFE0D5; transform: translateY(-2px); }
.sku-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sku-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.sku-ic svg { width: 17px; height: 17px; }
.sku-cat { font-size: 12.5px; font-weight: 700; color: var(--green); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sku-code { margin-inline-start: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--green-wash); border-radius: 999px; padding: 2px 9px; }
.sku-name { font-size: 15.5px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.sku-alt { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.sku-alt [lang="en"] { font-family: var(--font-ar); text-align: start; }
.sku-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sku-unit { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.sku-wa { min-height: 38px; padding: 6px 14px; font-size: 13.5px; gap: 6px; flex: none; }
.sku-wa svg { width: 17px; height: 17px; }
.sku-more { display: flex; justify-content: center; margin-top: 28px; }
.sku-more [hidden] { display: none; }
.sku-more-count { font-weight: 600; opacity: .75; }
.sku-noscript { padding: 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.chip-count { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--green-wash); color: var(--muted); }
.chip[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .22); color: inherit; }
@media (max-width: 1180px) { .sku-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .sku-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 560px)  {
  .sku-grid { grid-template-columns: 1fr; }
  .sku { padding: 16px; }
}

/* ---------- Product photos on catalogue cards ---------- */
.sku-media { margin: -18px -18px 4px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); background: #fff; }
.sku-media img { width: 100%; height: 100%; }
.sku-media.is-brand img { object-fit: contain; padding: 14px; transition: transform .4s var(--ease); }
.sku-media.is-cat img { object-fit: cover; }
.sku:hover .sku-media.is-brand img { transform: scale(1.04); }
@media (max-width: 560px) {
  /* phones: compact list with a square thumbnail beside the text */
  .sku { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: start; }
  .sku > :not(.sku-media) { grid-column: 2; }
  .sku-media { grid-column: 1; grid-row: 1 / span 4; margin: 0; width: 84px; height: 84px; aspect-ratio: auto; border: 1px solid var(--line); border-radius: 12px; }
  .sku-media.is-brand img { padding: 6px; }
}
.photo-credit { margin: 22px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; }
.photo-credit a { color: inherit; text-decoration: underline; }

/* =========================================================
   Animations
   All movement uses transform/opacity only (smooth on phones).
   Everything is switched off by the reduced-motion rule above.
   ========================================================= */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes imgReveal { from { clip-path: inset(0 0 100% 0 round var(--radius-l)); } to { clip-path: inset(0 0 0 0 round var(--radius-l)); } }
@keyframes imgSettle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes skuIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes waRing { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes iconPop { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(.96) rotate(3deg); } 100% { transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

/* ---- Homepage hero: text rises in, photo wipes open, badges pop in ---- */
.js .hero-grid > div:first-child > * { animation: riseIn .9s var(--ease) both; }
.js .hero-grid > div:first-child > :nth-child(1) { animation-delay: .05s; }
.js .hero-grid > div:first-child > :nth-child(2) { animation-delay: .15s; }
.js .hero-grid > div:first-child > :nth-child(3) { animation-delay: .27s; }
.js .hero-grid > div:first-child > :nth-child(4) { animation-delay: .39s; }
.js .hero-grid > div:first-child > :nth-child(5) { animation-delay: .5s; }
.js .hero-visual .art { animation: imgReveal 1.25s cubic-bezier(.7, 0, .2, 1) .25s both; }
.js .hero-visual .art img { animation: imgSettle 2.2s var(--ease) .25s both; }
.js .float-chip.c1 { animation: chipIn .7s var(--ease) 1.05s both, floaty 6s ease-in-out 1.8s infinite; }
.js .float-chip.c2 { animation: chipIn .7s var(--ease) 1.25s both, floaty 6s ease-in-out 2s infinite; }
.hero-visual { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* ---- Inner page heroes ---- */
.js .page-hero .crumbs, .js .page-hero h1, .js .page-hero .lead { animation: riseIn .85s var(--ease) both; }
.js .page-hero h1 { animation-delay: .1s; }
.js .page-hero .lead { animation-delay: .22s; }
.js .page-hero-grid .art { animation: imgReveal 1.2s cubic-bezier(.7, 0, .2, 1) .2s both; }
.js .page-hero-grid .art img { animation: imgSettle 2s var(--ease) .2s both; }

/* ---- Section label lines draw in ---- */
.eyebrow::before { transform-origin: left center; }
html[dir="rtl"] .eyebrow::before { transform-origin: right center; }
.js .hero .eyebrow::before { animation: lineGrow .8s var(--ease) .3s both; }
.js .reveal .eyebrow::before { transform: scaleX(0); transition: transform .8s var(--ease) .35s; }
.js .reveal.in .eyebrow::before { transform: scaleX(1); }

/* ---- Scroll-in directions ---- */
.js .reveal.from-start { translate: -48px 0; }
.js .reveal.from-end { translate: 48px 0; }
html[dir="rtl"].js .reveal.from-start { translate: 48px 0; }
html[dir="rtl"].js .reveal.from-end { translate: -48px 0; }
.js .reveal.zoom { translate: 0 18px; scale: .96; }
.js .reveal.in.from-start, .js .reveal.in.from-end, .js .reveal.in.zoom,
html[dir="rtl"].js .reveal.in.from-start, html[dir="rtl"].js .reveal.in.from-end { translate: none; scale: none; }
@media (max-width: 1024px) {
  /* stacked layout on tablets/phones: slide up instead of sideways */
  .js .reveal.from-start, .js .reveal.from-end,
  html[dir="rtl"].js .reveal.from-start, html[dir="rtl"].js .reveal.from-end { translate: 0 22px; }
}

/* ---- Homepage brand marquee ---- */
.marquee {
  overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; padding-block: 6px 10px; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .brand-slot { flex: 0 0 auto; width: 190px; margin-inline-end: 16px; }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
@media (max-width: 760px) { .marquee .brand-slot { width: 150px; margin-inline-end: 12px; } .marquee-track { animation-duration: 28s; } }

/* ---- Buttons: arrow nudge and a light shine on hover ---- */
.btn svg.arrow { transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover svg.arrow { transform: scaleX(-1) translateX(4px); }
.btn-light, .btn-wa, .btn:not(.btn-outline):not(.btn-ghost-light) { position: relative; overflow: hidden; isolation: isolate; }
.btn-light::after, .btn-wa::after, .btn:not(.btn-outline):not(.btn-ghost-light)::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-120%) skewX(-20deg);
}
.btn-light:hover::after, .btn-wa:hover::after, .btn:not(.btn-outline):not(.btn-ghost-light):hover::after { animation: shine .8s var(--ease); }

/* ---- Icons pop when their card is hovered ---- */
.cat-tile:hover .icon-box svg, .card:hover .icon-box svg, .stat:hover .ic svg, .float-chip:hover .ic svg { animation: iconPop .55s var(--ease); }

/* ---- WhatsApp button: soft pulsing ring ---- */
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  pointer-events: none; animation: waRing 2.6s ease-out 1.5s infinite;
}

/* ---- Products: cards ripple in row by row ---- */
.sku { animation: skuIn .5s var(--ease) backwards; }
.sku:nth-child(4n+2) { animation-delay: .05s; }
.sku:nth-child(4n+3) { animation-delay: .1s; }
.sku:nth-child(4n+4) { animation-delay: .15s; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--green), var(--gold-soft));
  transform: scaleX(0); transform-origin: left center;
}
html[dir="rtl"] .scroll-progress { transform-origin: right center; }

@media (prefers-reduced-motion: reduce) {
  .hero-visual { transform: none !important; }
  .marquee-track { animation: none !important; }
  .scroll-progress { display: none; }
}

/* =========================================================
   Brand portfolio (brands.html) — built from js/brands-data.js
   ========================================================= */
.portfolio-label {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin: 4px 0 28px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.portfolio-label::before, .portfolio-label::after { content: ""; flex: 0 1 72px; height: 1px; background: var(--line); }
html[lang="ar"] .portfolio-label { letter-spacing: 0; text-transform: none; font-size: 15px; }

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.logo-tile {
  margin: 0; height: 150px; display: grid; place-items: center; padding: 24px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .25s, border-color .25s, transform .25s var(--ease);
}
.logo-tile:hover { border-color: #CFE0D5; box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-tile img { width: auto; height: auto; max-width: 78%; max-height: 80px; object-fit: contain; }

.portfolio-more { margin-top: 40px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.portfolio-more p { margin: 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; color: var(--green-dark); }

/* Directory */
.dir-total { margin: 0; color: var(--muted); font-size: 15px; }
.dir-total strong { font-family: var(--font-en); font-size: 34px; font-weight: 800; color: var(--green-dark); margin-inline-end: 4px; letter-spacing: -.02em; }
.dir-tools { display: grid; gap: 4px; margin-bottom: 26px; }
.dir-tools .search { max-width: 520px; }
.dir-tools .search input { background: #fff; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.dir-grid.single { grid-template-columns: 1fr; }
.dir-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; animation: skuIn .45s var(--ease) backwards; }
.dir-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dir-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.dir-ic svg { width: 22px; height: 22px; }
.dir-card h3 { flex: 1; margin: 0; font-size: 17.5px; color: var(--charcoal); }
.dir-count { font-size: 12.5px; font-weight: 700; color: var(--green-dark); background: var(--green-tint); border-radius: 999px; padding: 3px 10px; }
.dir-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  direction: ltr; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--charcoal);
  background: var(--green-wash); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.pill.is-featured { background: #fff; border-color: #C9DACF; }
.pill.is-featured::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 7px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.dir-toggle {
  margin-top: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--green);
}
.dir-toggle:hover { text-decoration: underline; }
.dir-empty { margin: 0; padding: 40px 0; text-align: center; color: var(--muted); }

@media (max-width: 1024px) {
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logo-tile { height: 112px; padding: 16px 18px; }
  .logo-tile img { max-height: 58px; max-width: 82%; }
  .dir-grid { grid-template-columns: 1fr; }
  .dir-card { padding: 20px; }
  .dir-total strong { font-size: 28px; }
}

/* Header fit on common laptop widths (1181–1440px): nav links slightly tighter so the
   "Wholesale enquiry" button never sticks out past the screen edge */
@media (min-width: 1181px) and (max-width: 1440px) {
  .header-inner { gap: 16px; }
  .main-nav a { padding-inline: 9px; font-size: 14.5px; }
  .header-actions { gap: 8px; }
}
@media (min-width: 1181px) and (max-width: 1320px) {
  .header-actions .btn { display: none; }   /* same as smaller screens: the menu still has Contact */
}
@media (min-width: 1025px) and (max-width: 1260px) {
  .main-nav a { padding-inline: 7px; font-size: 14px; }
  html[lang="ar"] .main-nav a { font-size: 14px; }
  .header-inner { gap: 12px; }
}
/* Elements waiting to slide in sideways must never widen the page */
main { overflow-x: clip; }
