/* ==========================================================================
   Aknan Specialized for Industry — main stylesheet
   One page, English (LTR) and Arabic (RTL) via the EN / AR toggle.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.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';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.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 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-500-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-500-latin.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: 600 800;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-600-arabic.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-arabic-600-latin.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: 'Saira';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/saira-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/saira-latin.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;
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #13222C;
  --ink-soft: #53616B;
  --navy: #0F2533;
  --navy-deep: #0A1A24;
  --navy-line: #1A3040;
  --navy-border: #22394A;
  --teal: #0A7C86;
  --teal-text: #0A6B74;
  --teal-hover: #07616A;
  --teal-dark: #064E55;
  --sand: #D9B98A;
  --sand-dark: #C7AE86;
  --slate: #7F97A3;
  --mist: #B3C2CB;
  --steel: #C9D3D9;
  --cream: #F5F1EA;
  --cream-deep: #EAE3D7;
  --line: #E3DACB;
  --card-line: #DDD3C2;
  --white: #FFFFFF;

  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Saira', 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 5.5vw, 80px);
  --section-y: clamp(64px, 8vw, 112px);
  --max: 1440px;
  --radius: 4px;
}

html[lang="ar"] {
  --font-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', 'Saira', sans-serif;
}

/* ---------- Base ---------- */
*, *::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-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-text); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4, h5, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -48px; z-index: 100;
  background: var(--teal); color: var(--white); padding: 10px 16px; border-radius: 3px;
}
.skip-link:focus { top: 12px; color: var(--white); }

[dir="rtl"] .icon-arrow { transform: scaleX(-1); }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow__bars { display: flex; gap: 4px; flex-shrink: 0; }
.eyebrow__bars span { display: block; width: 16px; height: 4px; }
.eyebrow__bars span:nth-child(1) { background: var(--ink); }
.eyebrow__bars span:nth-child(2) { background: var(--teal); }
.eyebrow__bars span:nth-child(3) { background: var(--sand-dark); }
.eyebrow__text {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-text);
}
html[lang="ar"] .eyebrow__text { font-family: var(--font-body); letter-spacing: 0; font-size: 14px; font-weight: 500; }
.eyebrow--light .eyebrow__bars span:nth-child(1) { background: var(--white); }
.eyebrow--light .eyebrow__bars span:nth-child(2) { background: var(--sand); }
.eyebrow--light .eyebrow__bars span:nth-child(3) { background: var(--slate); }
.eyebrow--light .eyebrow__text { color: var(--mist); }

.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; color: var(--ink);
  text-wrap: balance;
}
html[lang="ar"] .h2 { line-height: 1.3; }
.section--navy .h2 { color: var(--white); }

.section-head {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head > p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }
.section--navy .section-head > p { color: var(--mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 3px;
  font-family: inherit; font-weight: 600; font-size: 16px;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-hover); color: var(--white); }
.btn--ghost { border: 1.5px solid #4A6576; color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-deep); color: var(--mist); font-size: 13px; }
.utility__inner { min-height: 40px; display: flex; align-items: center; gap: 28px; }
.utility__item { display: flex; gap: 8px; align-items: center; }
.utility__item a { color: inherit; }
.utility__item a:hover { color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header__inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Homepage: header is see-through (frosted) over the hero, and turns solid white
   once the page is scrolled (main.js adds .is-scrolled) or the mobile menu is open. */
.header { transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.header--overlay + .hero { margin-top: -84px; }
.header--overlay + .hero .hero__inner { padding-top: calc(72px + 84px); }
.header--overlay .logo__img { border-radius: 8px; transition: background-color .3s ease; }
/* Dark logo lettering needs a light badge while the header is see-through */
.header--overlay:not(.is-scrolled):not(.nav-open) .logo__img { background: rgba(255, 255, 255, .92); padding: 4px 8px; }
.header--overlay.is-scrolled { box-shadow: 0 6px 20px rgba(10, 26, 36, .08); }
.header--overlay:not(.is-scrolled):not(.nav-open) {
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, .18);
}
.header--overlay:not(.is-scrolled):not(.nav-open) .logo,
.header--overlay:not(.is-scrolled):not(.nav-open) .nav__links a { color: var(--white); }
.header--overlay:not(.is-scrolled):not(.nav-open) .nav__links a:hover { color: var(--sand); }
.header--overlay:not(.is-scrolled):not(.nav-open) .logo__text span { color: var(--mist); }
.header--overlay:not(.is-scrolled):not(.nav-open) .logo__text { border-inline-start-color: rgba(255, 255, 255, .3); }
.header--overlay:not(.is-scrolled):not(.nav-open) .lang-toggle { border-color: rgba(255, 255, 255, .35); }
.header--overlay:not(.is-scrolled):not(.nav-open) .lang-toggle button:not(.active) { color: var(--mist); }
.header--overlay:not(.is-scrolled):not(.nav-open) .lang-toggle button:not(.active):hover { color: var(--white); }
.header--overlay:not(.is-scrolled):not(.nav-open) .nav-burger { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--white); }

.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 44px; height: 44px; flex-shrink: 0; }
/* Company logo image in the header */
.logo__img { height: 60px; width: auto; flex-shrink: 0; object-fit: contain; }
.header .logo { gap: 14px; }
.header .logo__text { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.logo__text {
  font-family: 'Saira', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 0.08em; line-height: 1;
  display: flex; flex-direction: column; gap: 5px;
}
.logo__text span {
  font-family: var(--font-mono); font-weight: 500; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
html[lang="ar"] .logo__text span { font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }

.nav { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--teal-text); }

.lang-toggle { display: flex; border: 1px solid var(--card-line); border-radius: 3px; overflow: hidden; }
.lang-toggle button {
  background: none; border: 0; color: var(--ink-soft); height: 40px; padding: 0 16px;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; cursor: pointer;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active { background: var(--teal); color: var(--white); }

.nav-burger {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-burger span { width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); position: relative; overflow: hidden; color: var(--white); }
/* Background photo (recoloured to the site palette) with a navy fade behind the text */
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; pointer-events: none;
}
[dir="rtl"] .hero__bg { transform: scaleX(-1); } /* pipes move to the left, away from the Arabic text */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(10,26,36,.94) 0%, rgba(15,37,51,.86) 32%, rgba(15,37,51,.35) 62%, rgba(15,37,51,.05) 100%);
}
[dir="rtl"] .hero::before {
  background: linear-gradient(to left, rgba(10,26,36,.94) 0%, rgba(15,37,51,.86) 32%, rgba(15,37,51,.35) 62%, rgba(15,37,51,.05) 100%);
}
.hero__inner {
  position: relative; z-index: 2; min-height: 640px; display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr); align-items: center; gap: 40px;
  padding-block: 72px;
}
.hero__content { display: flex; flex-direction: column; gap: 28px; position: relative; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--white); text-wrap: balance;
}
html[lang="ar"] .hero__title { line-height: 1.25; letter-spacing: 0; }
.hero__title em { font-style: normal; color: var(--sand); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--mist); max-width: 580px; text-wrap: pretty; text-align: justify; hyphens: auto; }
.hero__actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  min-height: 148px; padding-inline: 32px; border-inline-end: 1px solid var(--line);
}
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; }
.stat__num {
  font-family: 'Saira', sans-serif; font-weight: 700; font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 4px;
}
.stat__num .unit { font-size: 0.55em; color: var(--teal); }
.stat__label { font-size: 15px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
/* Factory photo: offset teal frame, founded badge, address caption */
.about__media { margin: 0; position: relative; padding-top: 20px; padding-inline-start: 20px; }
.about__media::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 62%; height: 70%;
  border-top: 2px solid var(--teal); border-inline-start: 2px solid var(--teal); pointer-events: none;
}
.about__photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
  background: var(--cream-deep);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.about__media:hover .about__photo img { transform: scale(1.03); }
.about__badge {
  position: absolute; bottom: 0; inset-inline-end: 0; min-width: 132px;
  background: var(--teal); color: var(--white); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.about__badge strong { font-family: 'Saira', sans-serif; font-weight: 700; font-size: 36px; line-height: 1; }
.about__badge span { font-size: 13px; font-weight: 500; }
.about__caption {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  background: var(--navy); color: var(--white); border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
}
.about__caption-icon {
  width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--navy-border); color: var(--sand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about__caption-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; }
.about__caption-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); font-weight: 500;
}
html[lang="ar"] .about__caption-label { font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }
.about__copy { display: flex; flex-direction: column; gap: 24px; }
.about__copy > p { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 12px; }
.feature { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 16px; }
.feature:nth-child(2) { border-color: var(--teal); }
.feature:nth-child(3) { border-color: var(--sand-dark); }
.feature strong { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.feature span { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- History timeline ---------- */
.timeline-hint {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
}
html[lang="ar"] .timeline-hint { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
[dir="rtl"] .timeline-hint svg { transform: scaleX(-1); }

.timeline { position: relative; }
.timeline__controls { display: flex; gap: 8px; }
.timeline__btn {
  width: 48px; height: 48px; border-radius: 3px; border: 1.5px solid #4A6576; background: transparent; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.timeline__btn:hover { border-color: var(--white); }
.timeline__btn:disabled { opacity: .35; cursor: default; border-color: #4A6576; }
[dir="rtl"] .timeline__btn svg { transform: scaleX(-1); }

.timeline-track {
  display: flex; overflow-x: auto; padding: 8px 0 32px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: var(--teal) var(--navy-line);
}
.timeline-track::-webkit-scrollbar { height: 6px; }
.timeline-track::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 6px; }
.timeline-track::-webkit-scrollbar-track { background: var(--navy-line); border-radius: 6px; }
.timeline-item {
  flex: 0 0 280px; scroll-snap-align: start; position: relative; padding-inline-end: 40px;
}
.timeline-item::before {
  content: ""; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--navy-border);
}
.timeline-item:last-child::before { inset-inline-end: 40px; }
.timeline-dot {
  position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--sand); margin-bottom: 28px;
}
.timeline-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--sand); }
.timeline-year {
  font-family: 'Saira', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; color: var(--white); margin-bottom: 16px;
}
.timeline-item h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--sand); margin-bottom: 10px;
}
.timeline-item p { font-size: 15px; line-height: 1.6; color: var(--mist); max-width: 240px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; color: var(--ink);
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--teal); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.card__icon {
  width: 56px; height: 56px; border-radius: 2px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; color: var(--teal);
}
.card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.2; }
html[lang="ar"] .card__title { font-size: 21px; line-height: 1.4; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* Expandable cards (Why Us + product page): show the title only; main.js adds
   .is-open to the one card being hovered, focused or clicked. */
.why-grid { align-items: start; }
.card--reveal { cursor: pointer; outline-offset: 2px; --reveal-gap: 14px; }
.card__titlerow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__plus { flex-shrink: 0; color: var(--teal); transition: transform .3s ease; }
.card__reveal {
  display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: calc(var(--reveal-gap) * -1); /* cancel the card gap while closed */
  transition: grid-template-rows .35s ease, opacity .25s ease, margin-top .35s ease;
}
.card__reveal > div { overflow: hidden; min-height: 0; }
.card--reveal.is-open .card__reveal { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.card--reveal.is-open .card__plus { transform: rotate(45deg); }

/* ---------- Distributor ---------- */
.distributor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-line); }
.distributor__panel {
  background: var(--navy); color: var(--white); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden;
}
.distributor__badge {
  width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--navy-border);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.distributor__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy-border); position: relative; }
.distributor__stats > div { padding: 20px 16px 0; border-inline-end: 1px solid var(--navy-border); }
.distributor__stats > div:first-child { padding-inline-start: 0; }
.distributor__stats > div:last-child { border-inline-end: 0; }
.distributor__stats .num { font-family: 'Saira', sans-serif; font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--white); }
.distributor__stats .lbl { font-size: 14px; color: var(--mist); margin-top: 8px; }
.distributor__copy { background: var(--white); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.distributor__copy h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.distributor__copy p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 16px;
  background: var(--cream); border: 1px solid var(--card-line); font-size: 13px; font-weight: 500; color: var(--ink);
}
.distributor__copy .tags { margin-top: 6px; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.product-card .card__media {
  height: 200px; background: var(--cream); border-radius: 2px; margin-bottom: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
/* Product photo fills the image area; use class="contain" on the <img> to show the whole photo instead */
.product-card .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card .card__media img.contain { object-fit: contain; padding: 12px; }
.product-card:hover .card__media img { transform: scale(1.04); }
.product-card .card__foot {
  margin-top: auto; border-top: 1px solid var(--cream-deep); padding-top: 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.card__link {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 1.5px solid var(--teal); border-radius: 3px; color: var(--teal-text); font-weight: 600; font-size: 15px;
  transition: background-color .15s ease, color .15s ease;
}
.card__link:hover { background: var(--teal); color: var(--white); }
.card__link svg { transition: transform .15s ease; }
.card__link:hover svg { transform: translateX(3px); }
[dir="rtl"] .card__link:hover svg { transform: scaleX(-1) translateX(3px); }
.product-card .tag { background: var(--white); color: var(--teal-text); border-color: var(--steel); }
/* Homepage product cards: the whole card is clickable via its "Learn More" link */
.product-grid .product-card { position: relative; cursor: pointer; }
.product-grid .card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Why Us: gallery link ---------- */
.why-gallery {
  margin-top: 40px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.why-gallery h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.25; }
.why-gallery p { font-size: 15px; color: var(--mist); margin-top: 6px; }

/* ==========================================================================
   Inner pages (products.html, gallery.php)
   ========================================================================== */
.nav__links a[aria-current="page"] { color: var(--teal-text); }

.page-head { background: var(--navy); color: var(--white); padding-block: clamp(48px, 6vw, 80px); }
.page-head__inner { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05;
}
html[lang="ar"] .page-head h1 { line-height: 1.3; }
.page-head p { font-size: 17px; line-height: 1.6; color: var(--mist); max-width: 640px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--slate); }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--white); }

/* Category chips */
.chipbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 84px; z-index: 40; }
.chipbar__inner { display: flex; gap: 10px; overflow-x: auto; padding-block: 16px; scrollbar-width: none; }
.chipbar__inner::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 20px;
  border: 1px solid var(--card-line); background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 500;
}
.chip:hover { border-color: var(--teal); color: var(--ink); }

/* Product listing */
.cat { padding-block: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.cat:last-of-type { border-bottom: 0; }
.cat__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 720px; }
.cat__head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.cat__head p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.listing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.item { background: var(--white); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease; }
.item:hover { border-color: var(--teal); }
.item.card--reveal { --reveal-gap: 10px; }
.item__media { position: relative; aspect-ratio: 4 / 3; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .5s ease, opacity .5s ease; }
.item:hover .item__media img { transform: scale(1.05); }
/* Slideshow: extra photos are stacked on top of the first and faded in one at a time */
.item__media--slides .item__slide { position: absolute; inset: 0; opacity: 0; }
.item__media--slides .item__slide.is-active { opacity: 1; }
.item__dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.item__dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--steel); transition: width .25s ease, background-color .25s ease; }
.item__dots span.is-active { width: 18px; background: var(--teal); }
.item__specs { display: flex; flex-direction: column; gap: 6px; padding-block: 4px 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.item__specs li { padding-inline-start: 14px; position: relative; }
.item__specs li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px; border-radius: 1px; background: var(--sand-dark); }
.item__media--empty {
  background-color: var(--cream-deep);
  background-image: repeating-linear-gradient(135deg, rgba(23,24,26,.06) 0 2px, transparent 2px 14px);
  color: var(--ink-soft); font-size: 14px; text-align: center; padding: 16px;
}
.item__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.item__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); }
html[lang="ar"] .item__cat { font-family: var(--font-body); letter-spacing: 0; font-size: 12px; }
.item__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; }
.item__body .card__link { margin-top: auto; align-self: flex-start; }
.item__body .card__reveal .card__link { margin-top: 0; }
.item .card__reveal > div { padding: 4px; margin: -4px; } /* room for the button's focus outline */

/* Call-to-action band */
.cta-band { background: var(--teal); color: var(--white); padding-block: clamp(40px, 5vw, 64px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.cta-band p { font-size: 16px; color: #D5EEF0; margin-top: 8px; max-width: 560px; }
.cta-band .btn--light { background: var(--white); color: var(--teal-text); }
.cta-band .btn--light:hover { background: var(--cream); color: var(--teal-dark); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery__tile {
  margin: 0; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); background: var(--cream-deep); display: block; width: 100%;
}
.gallery__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__tile:hover img { transform: scale(1.04); }
.gallery__empty {
  padding: 64px 24px; text-align: center; border: 1px dashed var(--card-line); border-radius: var(--radius);
  background: var(--white); color: var(--ink-soft); font-size: 16px;
}
.gallery__count { font-size: 14px; color: var(--ink-soft); margin-top: -16px; margin-bottom: 24px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 26, 36, .92); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 24px; border: 1.5px solid #4A6576;
  background: rgba(10, 26, 36, .6); color: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox__btn:hover { border-color: var(--white); }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__prev { inset-inline-start: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 12px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lightbox__prev svg, [dir="rtl"] .lightbox__next svg { transform: scaleX(-1); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
.contact__info { display: flex; flex-direction: column; gap: 24px; }
.contact__info .section-head { margin-bottom: 8px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--cream-deep); }
.contact-item:first-of-type { border-top: 1px solid var(--cream-deep); }
.contact-item__icon {
  width: 48px; height: 48px; border-radius: 24px; background: var(--cream); color: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px;
}
html[lang="ar"] .contact-item h4 { font-family: var(--font-body); letter-spacing: 0; font-size: 13px; }
.contact-item p, .contact-item a { font-size: 17px; font-weight: 500; color: var(--ink); }
.contact-item a:hover { color: var(--teal-text); }

.form {
  background: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start;
}
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--steel); border-radius: 3px; background: var(--white);
  padding: 0 14px; font-size: 15px; font-family: inherit; color: var(--ink);
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field input::placeholder, .field textarea::placeholder { color: #8A969E; }
.form .btn { grid-column: 1 / -1; height: 54px; width: 100%; }
.form__status { grid-column: 1 / -1; font-size: 14px; color: var(--teal-text); min-height: 1em; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--mist); padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 56px; padding-bottom: 64px; }
/* White card so the white-background logo image sits cleanly on the dark footer */
.footer .logo {
  display: inline-flex; gap: 14px; color: var(--ink);
  background: var(--white); padding: 12px 22px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.footer .logo:hover { color: var(--ink); }
.footer .logo__text { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.footer__brand p { font-size: 15px; line-height: 1.7; max-width: 360px; margin-top: 20px; }
.footer h5 {
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
html[lang="ar"] .footer h5 { font-family: var(--font-body); letter-spacing: 0; font-size: 14px; font-weight: 600; }
.footer ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer ul a { color: var(--mist); }
.footer ul a:hover { color: var(--white); }
.footer__links ul { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 40px; }
.footer__bottom {
  min-height: 72px; border-top: 1px solid var(--navy-line); display: flex; align-items: center;
  justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; font-size: 13px; color: var(--slate); padding-block: 16px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border: 1px solid var(--navy-border); border-radius: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.socials a:hover { border-color: var(--slate); color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__links { gap: 20px; }
  .nav { gap: 20px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about__grid, .contact__grid { gap: 56px; }
}

@media (max-width: 1080px) {
  .nav-burger { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10,26,36,.08);
    padding: 8px var(--gutter) 24px;
  }
  .nav-open .nav { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--cream-deep); }
  .lang-toggle { margin-top: 20px; align-self: flex-start; }

  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 72px 88px; }
  .hero::before, [dir="rtl"] .hero::before { background: linear-gradient(to bottom, rgba(10,26,36,.9) 0%, rgba(15,37,51,.82) 60%, rgba(15,37,51,.7) 100%); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .distributor { grid-template-columns: 1fr; }
  .listing, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .utility__item--address { display: none; }
  .header__inner { height: 72px; }
  .header--overlay + .hero { margin-top: -72px; }
  .header--overlay + .hero .hero__inner { padding-top: calc(72px + 72px); }
  .logo__img { height: 48px; }
  html { scroll-padding-top: 72px; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 116px; padding-inline: 20px; }
  .stat:nth-child(odd) { padding-inline-start: 0; }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why-grid, .product-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 24px; }
  .about__media { padding-top: 12px; padding-inline-start: 12px; }
  .about__badge { min-width: 0; padding: 12px 14px; }
  .about__badge strong { font-size: 26px; }
  .timeline-item { flex-basis: 250px; padding-inline-end: 28px; }
  .timeline-year { font-size: 36px; }
  .form { grid-template-columns: 1fr; }
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .chipbar { top: 72px; }
  .listing, .gallery { grid-template-columns: 1fr; }
  .why-gallery .btn, .cta-band .btn { flex: 1 1 100%; }
  .lightbox__inner { padding: 64px 12px; }
}

@media (max-width: 480px) {
  .utility__item--email { display: none; }
  .distributor__stats > div { padding-inline: 10px; }
}

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

/* Contact form spam trap — kept off-screen */
.form { position: relative; }
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__status--error { color: #B42318; }
.form .btn:disabled { opacity: .6; cursor: wait; }

/* Homepage "Our Products": link to the full products page */
.products__more { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 760px) { .products__more .btn { width: 100%; } }
