/* ============================================================
   HELIOPOLIS FOR MINING — Design System / Component Kit
   Industrial minerals supplier. Built from the Figma source.
   Palette: deep green · mineral red · sand · cream · charcoal
   Type: Montserrat (primary) · Poppins (nav)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --green:        #126636;   /* deep green — nav, headers, trust */
  --green-deep:   #0d4d28;   /* footer / hover */
  --green-tint:   #eaf1ec;   /* light green wash */
  --red:          #c62129;   /* mineral red — primary CTA / RFQ */
  --red-deep:     #a4141b;
  --sand:         #d8c3a5;   /* warm accent */
  --sand-soft:    #e7dcc8;
  --cream:        #f7f5f2;   /* section background */
  --ink:          #2b2b2b;   /* charcoal — top bar / dark band */
  --ink-soft:     #3a3a3a;
  --white:        #ffffff;

  /* Neutrals */
  --line:         #e4e1da;
  --line-strong:  #d4cfc4;
  --text:         #2b2b2b;
  --text-muted:   #6f6a61;
  --text-faint:   #9a948a;

  /* Geometry */
  --maxw: 1200px;
  --pad: 120px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(26,26,26,.06);
  --shadow-md: 0 8px 24px rgba(26,26,26,.10);
  --shadow-lg: 0 18px 48px rgba(26,26,26,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--sand); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: 72px; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head--ink .section-title { color: var(--cream); }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-more svg { width: 16px; height: 16px; }
.link-more:hover { gap: 12px; color: var(--green-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }

.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-deep); box-shadow: var(--shadow-md); }

.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-deep); box-shadow: var(--shadow-md); }

.btn--ghost-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost-green:hover { background: var(--green); color: var(--white); }

.btn--ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost-white:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--sm { padding: 9px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

/* ---------- Brand logo mark ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 48px; height: 48px; flex: none;
  background: url(assets/heliopolis-mark.svg) center / contain no-repeat;
}
.brand-divider { width: 1px; height: 42px; background: rgba(43,43,43,.28); }
.brand-text { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.brand-name {
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  color: var(--red); text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.brand-tagline {
  font-size: 10px; font-weight: 500; letter-spacing: .01em;
  color: var(--text-muted); line-height: 1.2; white-space: nowrap;
}
.brand-dashes { display: flex; gap: 7px; margin-top: 4px; }
.brand-dashes span { width: 34px; height: 3px; border-radius: var(--r-pill); }
.brand-dashes span:first-child { background: var(--red); }
.brand-dashes span:last-child { background: var(--green); }
/* Lockup on dark backgrounds — keep colors legible */
.brand--on-dark .brand-name { color: var(--white); }
.brand--on-dark .brand-dashes span:last-child { background: var(--sand); }

/* ---------- Header / nav ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; padding-block: 6px;
}
.topbar a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--sand); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-left svg { width: 13px; height: 13px; color: var(--sand); flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right svg { width: 13px; height: 13px; color: var(--sand); }
.topbar-tagline { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.5); font-size: 11.5px; letter-spacing: .03em; }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,.15); }
.topbar-lang { display: flex; align-items: center; gap: 2px; direction: ltr; }
.topbar-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  padding: 3px 0;
  border-radius: 5px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.topbar-lang__btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar-lang__btn.is-active { color: var(--sand); background: rgba(255,255,255,.12); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}
.nav-links {
  display: flex; align-items: center; gap: 22px;
  font-family: "Poppins", "Montserrat", sans-serif;
  font-size: 13.5px; font-weight: 500;
}
.nav-links a {
  position: relative; color: var(--ink); padding-block: 4px;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--green);
  transition: width .22s var(--ease);
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px;
  flex-direction: column; gap: 5px; border-radius: var(--r-sm);
  transition: background .15s;
}
.nav-toggle:hover { background: var(--green-tint); }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (photo background) ---------- */
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,15,10,.82) 0%, rgba(9,15,10,.5) 45%, rgba(9,15,10,.85) 100%);
}
.hero-banner > .container { position: relative; z-index: 1; }
.hero-banner__content { max-width: 640px; padding-block: 64px; }
.hero-banner__content h1,
.hero-title {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 8px 28px rgba(0,0,0,.4);
}
.hero-banner__content p,
.hero-text {
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sand); margin-bottom: 18px;
}
.hero-title {
  font-size: 56px; font-weight: 700; line-height: 1.02;
  letter-spacing: -0.02em; margin-bottom: 14px;
}
/* Responsive font-size utilities for page H1/CTA headings that carry
   their other styling inline but still need to scale on mobile. */
.fs-52 { font-size: 52px; }
.fs-42 { font-size: 42px; }
.fs-38 { font-size: 38px; }
.fs-36 { font-size: 36px; }
.hero-sub {
  font-size: 18px; font-weight: 600; color: var(--sand);
  letter-spacing: .01em; margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.hero-text {
  font-size: 16px; max-width: 48ch;
  margin-bottom: 32px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255,255,255,.96); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-sm);
}
.hero-stat b { display: block; font-size: 24px; color: var(--green); line-height: 1; }
.hero-stat span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, #e7e0d2 0 11px, #efe9dd 11px 22px);
  display: grid; place-items: center;
  color: var(--text-faint);
}
.ph::after {
  content: attr(data-label);
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #8a8475; background: rgba(255,255,255,.6);
  padding: 4px 10px; border-radius: 6px;
}
.ph--sand { background: repeating-linear-gradient(45deg, #ddcfb6 0 11px, #e6dcc6 11px 22px); }
.ph--green { background: repeating-linear-gradient(45deg, #cfe0d4 0 11px, #dcebdf 11px 22px); }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.chip {
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-strong);
  padding: 9px 20px; border-radius: var(--r-pill);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ---------- Product card ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.layout-hero-card  { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: flex-start; }
.layout-sidebar    { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start; }
.layout-sidebar-lg { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.layout-article    { display: grid; grid-template-columns: 1fr 382px; gap: 48px; align-items: flex-start; }
.layout-story      { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: flex-start; }
.layout-spotlight  { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }

.product-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong);
}
.product-card .pc-media {
  aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; margin-bottom: 14px;
  background: var(--cream);
}
.pc-title { font-size: 18px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.pc-apps { font-size: 13px; color: var(--text-muted); line-height: 1.4; min-height: 36px; }
.pc-grades {
  display: flex; align-items: center; gap: 7px; margin: 12px 0 14px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.pc-grades svg { width: 15px; height: 15px; color: var(--red); }
.pc-actions { display: flex; gap: 10px; margin-top: auto; }
.pc-actions .btn--green { flex: 1; }

/* ---------- Application tile ---------- */
.app-tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.app-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.app-icon {
  width: 44px; height: 44px;
  background: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background .2s var(--ease);
}
.app-tile:hover .app-icon { background: var(--red); }
.app-name { font-size: 16px; font-weight: 700; color: var(--red); }
.app-sub { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Industry card ---------- */
.industry-card {
  border-radius: var(--r-md); overflow: hidden; position: relative;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.industry-card .ic-media { aspect-ratio: 4/3; }
.industry-card .ic-name {
  padding: 14px 16px 18px; font-size: 15px; font-weight: 700;
  color: var(--green); text-align: center; line-height: 1.3;
}

/* ---------- Why Heliopolis (dark band) ---------- */
.why-head {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-bottom: 44px;
}
.why-head .rule { flex: 1; max-width: 360px; height: 2px; background: var(--red); }
.why-head h2 { font-size: 26px; font-weight: 700; color: var(--cream); white-space: nowrap; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin-inline: auto; }
.feature {
  display: flex; gap: 18px; padding: 20px; border-radius: var(--r-lg);
  transition: background .2s var(--ease);
}
.feature:hover { background: rgba(255,255,255,.04); }
.feature-icon {
  width: 46px; height: 46px; flex: none; color: var(--sand);
}
.feature-icon svg { width: 46px; height: 46px; }
.feature h3 { font-size: 22px; font-weight: 600; color: var(--sand); margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: rgba(247,245,242,.62); line-height: 1.5; }

/* ---------- Technical data CTA ---------- */
.tds { background: var(--cream); }
.tds .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding-block: 64px;
}
.tds h2 { font-size: 40px; font-weight: 700; color: var(--red); line-height: 1.1; margin-bottom: 20px; }
.tds .tds-rule { width: 90px; height: 3px; background: var(--sand); margin-bottom: 20px; }
.tds p { font-size: 17px; color: var(--text-muted); max-width: 42ch; margin-bottom: 28px; }
.tds-media { aspect-ratio: 16/11; border-radius: var(--r-xl); overflow: hidden; }

/* ---------- Blog ---------- */
.blog-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card .bc-media { aspect-ratio: 16/9; }
.blog-card .bc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.bc-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.bc-title { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.bc-excerpt { font-size: 14px; color: var(--text-muted); }
.bc-more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--green); transition: gap .2s var(--ease); }
.bc-more:hover { gap: 11px; }
.bc-more svg { width: 14px; height: 14px; }

/* ---------- RFQ form ---------- */
.rfq { background: var(--green); color: var(--white); }
.rfq-head {
  display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 40px;
}
.rfq-head .rule { flex: 1; max-width: 300px; height: 2px; background: rgba(255,255,255,.4); }
.rfq-head h2 { font-size: 28px; font-weight: 700; white-space: nowrap; }
.rfq-form {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 24px;
  max-width: 1040px; margin-inline: auto;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .req { color: var(--sand); margin-left: 3px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
  transition: box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: 0 0 0 3px var(--sand);
}
.field--full { grid-column: 1 / -1; }
.field textarea { resize: vertical; min-height: 120px; }
.field .upload {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--white); border-radius: var(--r-sm); padding: 8px 8px 8px 14px;
  font-size: 14px; color: var(--text-faint);
}
.field .upload .btn { padding: 9px 16px; }
.rfq-submit { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

/* ---------- Floating contact ---------- */
.floats {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 60;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: var(--white);
  box-shadow: var(--shadow-md); transition: transform .2s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 24px; height: 24px; }
.float-btn--wa { background: #25d366; }
.float-btn--call { background: var(--red); }

.to-top {
  position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--white); display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: .25s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Floats sit fixed at the bottom corner and can otherwise overlap Hero CTA
   buttons/text on short mobile viewports, especially since .hero-actions
   packs to the same inline-start/end edge as direction flips (see RTL). Pull
   them up on small screens so there's always clearance above page content. */
@media (max-width: 560px) {
  .floats { bottom: 16px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; }
  .to-top { bottom: 16px; width: 40px; height: 40px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: rgba(255,255,255,.8); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer .logo-mark {
  background: url(assets/heliopolis-mark.svg) center / 70% no-repeat, var(--white);
  border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.footer-about p { font-size: 14px; color: rgba(255,255,255,.6); margin: 18px 0; max-width: 34ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); transition: background .2s var(--ease);
}
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 8px; transition: color .2s, gap .2s; }
.footer-col a:hover { color: var(--white); gap: 11px; }
.footer-col a svg { width: 12px; height: 12px; color: var(--sand); }
.footer-contact li { display: flex; gap: 11px; font-size: 14px; color: rgba(255,255,255,.72); }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--sand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ---------- Mobile nav drawer ---------- */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 70;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: min(85vw, 380px);
  background: var(--white); z-index: 80; padding: 22px 26px 28px;
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-nav.open { transform: none; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mobile-nav__top .logo-mark { width: 36px; height: 36px; }
.mobile-nav .mn-close {
  background: none; border: 0; width: 36px; height: 36px; border-radius: 50%;
  font-size: 24px; color: var(--ink); line-height: 1; display: grid; place-items: center;
  transition: background .15s;
}
.mobile-nav .mn-close:hover { background: var(--cream); }
.mobile-nav a {
  font-size: 17px; font-weight: 500; color: var(--ink);
  padding: 13px 10px; margin-inline: -10px; border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line);
  transition: background .15s, color .15s;
}
.mobile-nav a:hover { color: var(--green); background: var(--green-tint); }
.mobile-nav .btn { margin-top: 18px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  :root { --pad: 56px; }
  .hero-title { font-size: 44px; }
  .fs-52 { font-size: 40px; }
  .fs-42 { font-size: 34px; }
  .fs-38 { font-size: 32px; }
  .fs-36 { font-size: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 820px) {
  :root { --pad: 28px; }
  .section { padding-block: 56px; }
  .hero-banner { min-height: 420px; }
  .hero-banner__content { padding-block: 48px; }
  .hero-title { font-size: 38px; }
  .fs-52 { font-size: 34px; }
  .fs-42 { font-size: 30px; }
  .fs-38 { font-size: 28px; }
  .fs-36 { font-size: 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .layout-hero-card  { grid-template-columns: 1fr; }
  .layout-sidebar    { grid-template-columns: 1fr; }
  .layout-sidebar-lg { grid-template-columns: 1fr; }
  .layout-article    { grid-template-columns: 1fr; }
  .layout-story      { grid-template-columns: 1fr; }
  .layout-spotlight  { grid-template-columns: 1fr; gap: 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .tds .container { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; }
  .tds-media { order: -1; }
  .rfq-form { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
  .topbar-left span:nth-child(2) { display: none; }
  .why-head .rule, .rfq-head .rule { max-width: 60px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .nav-cta .btn { display: none; }
  .hero-banner { min-height: 380px; }
  .hero-title { font-size: 32px; }
  .section-title { font-size: 22px; }
  .fs-52 { font-size: 28px; }
  .fs-42 { font-size: 26px; }
  .fs-38 { font-size: 24px; }
  .fs-36 { font-size: 22px; }
  .rfq-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-card { padding: 10px; }
  .pc-actions { flex-direction: column; }
  .topbar-left { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 380px) {
  .brand-divider,
  .brand-text { display: none; }
  .brand { gap: 0; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ===== Language Dropdown ===== */
.lang-dropdown { position: relative; }
.lang-dropdown__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-muted);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  line-height: 1;
}
.lang-dropdown__btn:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.lang-dropdown.is-open .lang-dropdown__btn { border-color: var(--green); color: var(--green); background: var(--green-tint); }
.lang-dropdown__chevron { transition: transform .2s; opacity: .7; }
.lang-dropdown.is-open .lang-dropdown__chevron { transform: rotate(180deg); }
.lang-dropdown__list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 158px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  padding: 5px;
  list-style: none;
  margin: 0;
  z-index: 200;
}
.lang-dropdown.is-open .lang-dropdown__list { display: block; }
.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s;
}
.lang-dropdown__item:hover { background: var(--cream); color: var(--green); }
.lang-dropdown__item.is-active { color: var(--green); font-weight: 700; background: var(--green-tint); }
.lang-dropdown__flag { font-size: 15px; line-height: 1; }
.lang-dropdown__name { flex: 1; }

/* Mobile language switcher */
.lang-switcher--mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 8px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.lang-switcher--mobile .lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  background: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}
.lang-switcher--mobile .lang-btn:hover { color: var(--green); background: var(--green-tint); }
.lang-switcher--mobile .lang-btn.is-active { color: var(--green); background: var(--green-tint); font-weight: 700; }

/* ===================================================
   RTL — Arabic (dir="rtl")

   Key principle: `direction: rtl` is inherited by all
   elements. Flex row containers already reverse their
   item order via inheritance — do NOT add
   flex-direction: row-reverse (that double-reverses
   back to LTR). Only override specific properties
   that use physical left/right values.
   =================================================== */

/* 1 · Base direction + Arabic font */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[lang="ar"] body,
[lang="ar"] input,
[lang="ar"] textarea,
[lang="ar"] select,
[lang="ar"] button,
[lang="ar"] .btn {
  font-family: 'Cairo', 'Poppins', sans-serif;
}

/* 2 · Nav underline — anchor to inline-end (right → left) */
[dir="rtl"] .nav-links a::after {
  left: auto;
  right: 0;
}

/* 3 · Brand text — align content to the right (reading start) */
[dir="rtl"] .brand-text { align-items: flex-end; }

/* 4 · Topbar lang — always LTR so EN|FR|AR order never flips */
/* (already set via direction: ltr on .topbar-lang) */

/* 5 · Grids — direction: rtl makes auto-placed columns flow right → left */
[dir="rtl"] .grid-2,
[dir="rtl"] .grid-3,
[dir="rtl"] .grid-4,
[dir="rtl"] .footer-grid { direction: rtl; }

/* 6 · Multi-column layouts — direction: rtl reverses column order naturally;
   no order: -1 needed (that would push sidebar to the wrong side) */
[dir="rtl"] .layout-sidebar,
[dir="rtl"] .layout-sidebar-lg,
[dir="rtl"] .layout-article,
[dir="rtl"] .layout-story,
[dir="rtl"] .layout-spotlight,
[dir="rtl"] .layout-hero-card { direction: rtl; }

/* 7 · Breadcrumb separator — flip the › chevron */
[dir="rtl"] .breadcrumb-sep { transform: scaleX(-1); }

/* 8 · Arrow SVGs — flip all inline directional arrows */
[dir="rtl"] .link-more svg,
[dir="rtl"] .bc-more svg,
[dir="rtl"] .footer-col a svg { transform: scaleX(-1); }

/* 9 · Footer social icons — keep LTR order */
[dir="rtl"] .footer-social { direction: ltr; }

/* 10 · Form — submit button stays at inline-end (right side in RTL) */
[dir="rtl"] .rfq-submit { justify-content: flex-start; }

/* 11 · Inputs */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select { text-align: right; }

/* 12 · Tables — action column aligns to inline-start in RTL */
[dir="rtl"] table th,
[dir="rtl"] table td { text-align: right; }
[dir="rtl"] table th:first-child,
[dir="rtl"] table td:first-child { text-align: right; }
[dir="rtl"] table th:last-child,
[dir="rtl"] table td:last-child { text-align: left; }

/* 13 · Mobile nav — slide in from the same side as the (flex-reversed)
   hamburger toggle, i.e. the left in RTL instead of the right */
[dir="rtl"] .mobile-nav {
  direction: rtl;
  right: auto;
  left: 0;
  transform: translateX(-100%);
}
[dir="rtl"] .mobile-nav.open { transform: none; }

/* 14 · Mobile lang switcher — keep LTR so buttons stay EN|FR|AR */
[dir="rtl"] .lang-switcher--mobile { direction: ltr; }

/* 15 · Numbers / stats — always LTR for numerals */
[dir="rtl"] .stat-number { direction: ltr; unicode-bidi: embed; }
