/* =========================================================
   ASAS AL IMAR — Building Materials & Trading
   Main Stylesheet
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --navy-950: #071620;
  --navy-900: #0b2136;
  --navy-800: #0f2c46;
  --navy-700: #163a59;
  --green-700: #1f6b30;
  --green-600: #26843c;
  --green-500: #2f9e47;
  --green-400: #45b85c;
  --gold-500: #f0a93a;
  --gray-900: #1b232c;
  --gray-700: #45505b;
  --gray-500: #6b7785;
  --gray-300: #c9d0d6;
  --gray-100: #eef1f3;
  --gray-50: #f6f8f9;
  --white: #ffffff;

  --font-head: "Poppins", "Cairo", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Cairo", "Segoe UI", Arial, sans-serif;

  --container: 1600px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(11, 33, 54, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 33, 54, 0.12);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--green-600);
  display: inline-block;
}
.eyebrow.light { color: var(--gold-500); }
.eyebrow.light::before { background: var(--gold-500); }

.section { padding: 88px 0; }
.section--sm { padding: 56px 0; }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--dark p { color: var(--gray-300); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--gray-50); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-outline-dark { background: transparent; border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand img { height: 86px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-head); font-size: 1.55rem; color: var(--navy-900); font-weight: 700; letter-spacing: 0.3px; }
.brand-text span { font-size: 0.95rem; letter-spacing: 0.5px; color: var(--green-600); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--green-600); }
.main-nav a.active { border-color: var(--green-600); }
.main-nav .main-nav-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-700);
  transition: var(--transition);
}
.icon-btn:hover { background: var(--gray-100); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 30px;
  background: var(--white);
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition);
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--green-500); color: var(--green-600); }
.lang-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  background: var(--navy-950);
  overflow: hidden;
  min-height: 660px;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  z-index: 0;
}
.hero-bg-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(230, 238, 241, 0.62);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 10px 40px rgba(11, 33, 54, 0.1);
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
  color: var(--navy-900);
}
.hero-copy p { font-size: 1.08rem; max-width: 480px; margin-bottom: 32px; font-weight: 500; color: var(--navy-800); }
.hero-cta { display: flex; gap: 16px; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--navy-800); }
.hero-stat .icon-circle { width: 38px; height: 38px; }

.hero-art {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.hero-art .tagline-stack {
  position: relative;
  z-index: 3;
  color: var(--navy-800);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 2;
  font-weight: 700;
  margin-left: auto;
  text-align: right;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(11, 33, 54, 0.1);
}
.icon-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47,158,71,0.1);
  color: var(--green-600);
  flex-shrink: 0;
}
.icon-circle svg { width: 22px; height: 22px; }
.icon-circle.on-dark { background: rgba(255,255,255,0.08); color: var(--gold-500); }
.icon-circle.lg { width: 60px; height: 60px; }
.icon-circle.lg svg { width: 28px; height: 28px; }
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-whatsapp svg { width: 16px; height: 16px; }
.btn-whatsapp:hover { background: #1eb958; transform: translateY(-2px); }

.form-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.form-actions .btn { flex: 1; min-width: 200px; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 80px 0 64px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(47,158,71,0.25), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--gray-300); margin-top: 16px; }
.hero-profile-btn { margin-top: 28px; }
.breadcrumb a { color: var(--gray-300); }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 640px; }
.page-hero p { max-width: 620px; color: var(--gray-300); font-size: 1.02rem; }

/* ---------- Feature strip (3 items under hero) ---------- */
.feature-strip {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 28px;
  margin-top: 36px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(11, 33, 54, 0.08);
}
.feature-strip .feature-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.92rem; color: var(--navy-800); }

/* ---------- Category / Product Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-thumb {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}
.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-thumb img { transform: scale(1.06); }
.cat-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-body h3 { font-size: 1.05rem; margin: 0; }
.cat-body p { font-size: 0.88rem; margin: 0; flex: 1; }
.cat-link { font-weight: 600; font-size: 0.88rem; color: var(--green-600); display: inline-flex; align-items: center; gap: 6px; }
.cat-link svg { width: 14px; height: 14px; transition: var(--transition); }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

/* ---------- About split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}
.about-media {
  position: relative;
  min-height: 420px;
  background: linear-gradient(160deg, #1c2c3a, #0b1620);
  overflow: hidden;
}
.about-media-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0% 100%);
}
.about-media .diagonal {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0% 100%);
  background: linear-gradient(150deg, rgba(11, 22, 32, 0.55), rgba(11, 22, 32, 0.85));
}
.about-copy { padding: 72px 48px; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature-inline-list { margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.feature-inline { display: flex; gap: 16px; align-items: flex-start; }
.feature-inline h4 { margin: 0 0 4px; font-size: 1rem; color: var(--white); }
.feature-inline p { margin: 0; font-size: 0.88rem; }

/* ---------- Brands strip ---------- */
.brand-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.brand-badge {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-800);
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-align: center;
  background: var(--white);
}
.brand-badge:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.brand-badge:not(:has(img)):hover { color: var(--green-600); }
.brand-badge img { width: 140px; height: 54px; max-width: 100%; object-fit: contain; }
.brand-badge small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 1.5px; color: var(--gray-500); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-950));
  color: var(--white);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; left: -60px; bottom: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(47,158,71,0.3), transparent 70%);
}
.cta-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: 6px; font-size: 1.7rem; }
.cta-inner p { margin: 0; color: var(--gray-300); }

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 48px;
  padding-top: 40px;
}
.stat-item { text-align: center; padding: 0 12px; }
.stat-item .icon-circle { margin: 0 auto 14px; }
.stat-item h4 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.stat-item p { font-size: 0.85rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--gray-300); }
.footer-top { padding-top: 64px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.4fr; gap: 32px; }
.footer-brand { order: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-brand-top { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.footer-brand-top .footer-logo { height: 46px; }
.footer-brand-top .saudi-emblem { height: 40px; width: auto; opacity: 0.92; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.88rem; color: var(--gray-300); max-width: 280px; }
.footer-social { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: #0a66c2;
  color: var(--white);
  border: 1px solid #0a66c2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(10,102,194,0.35);
  transition: var(--transition);
}
.footer-social a:hover { background: #0d7dea; border-color: #0d7dea; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col { text-align: center; }
.footer-col h5 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.5px; }
.footer-col ul { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.footer-col a { font-size: 0.88rem; color: var(--gray-300); transition: var(--transition); }
.footer-col a:hover { color: var(--green-400); }
.footer-contact li { display: flex; justify-content: center; gap: 10px; align-items: flex-start; font-size: 0.88rem; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 3px; color: var(--green-400); flex-shrink: 0; }
.footer-contact li a { color: inherit; transition: color 0.2s ease; }
.footer-contact li a:hover { color: var(--green-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-size: 0.82rem; color: var(--gray-500);
  gap: 14px;
  text-align: center;
}
.footer-bottom-text { display: flex; flex-direction: column; gap: 4px; }
.back-to-top {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 30px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}
.back-to-top svg { width: 14px; height: 14px; color: var(--green-400); transition: var(--transition); }
.back-to-top:hover { background: var(--green-600); border-color: var(--green-600); color: var(--white); }
.back-to-top:hover svg { color: var(--white); transform: translateY(-2px); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--navy-800); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(47,158,71,0.12);
}
.phone-input { position: relative; display: flex; gap: 8px; }
.phone-input input { flex: 1; min-width: 0; }
.country-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 10px;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: var(--transition);
  flex-shrink: 0;
}
.country-select:hover, .country-select[aria-expanded="true"] {
  border-color: var(--green-500);
  background: var(--white);
}
.country-select svg { width: 14px; height: 14px; color: var(--gray-500); }
.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 260px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 6px;
}
.country-dropdown li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--gray-900);
  cursor: pointer;
  transition: var(--transition);
}
.country-dropdown li:hover, .country-dropdown li[aria-selected="true"] { background: var(--gray-50); }
.country-dropdown li b { margin-left: auto; font-weight: 600; color: var(--gray-500); }
.flag-img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(11,33,54,0.1); }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 10px; }
.form-success {
  display: none;
  background: rgba(47,158,71,0.1);
  border: 1px solid var(--green-500);
  color: var(--green-700);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-100);
}
.info-card:last-child { border-bottom: none; }
.info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.info-card p { margin: 0; font-size: 0.9rem; }
.info-card p a { color: inherit; transition: color 0.2s ease; }
.info-card p a:hover { color: var(--green-600); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); margin-top: 28px; }
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Industries ---------- */
.industry-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}
.industry-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.industry-card .icon-circle { margin-bottom: 18px; }
.industry-card h3 { font-size: 1.15rem; }
.industry-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.industry-card ul li { font-size: 0.85rem; color: var(--gray-700); display: flex; gap: 8px; align-items: center; }
.industry-card ul li svg { width: 14px; height: 14px; color: var(--green-600); flex-shrink: 0; }

/* ---------- Values list (About page) ---------- */
.value-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}
.value-pill span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Timeline / division sections on Products page ---------- */
.division-nav {
  position: sticky;
  top: 111px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  overflow-x: auto;
}
.division-nav .container { display: flex; gap: 6px; padding-top: 0; padding-bottom: 0; }
@media (min-width: 901px) {
  .division-nav .container { justify-content: center; }
}
.division-nav a {
  padding: 16px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.division-nav a:hover, .division-nav a.active { color: var(--green-600); border-color: var(--green-600); }

.division-block { padding: 72px 0; border-bottom: 1px solid var(--gray-100); position: relative; overflow: hidden; }
.division-block:last-child { border-bottom: none; }
.division-block::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500));
}
.division-head { display: flex; justify-content: center; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; text-align: center; }
.division-head-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.division-head .icon-circle.lg { margin-top: 0; }
.division-head p { max-width: 560px; margin: 0 auto; }
.code-tag { font-size: 0.72rem; letter-spacing: 1px; color: var(--gold-500); font-weight: 700; margin-bottom: 8px; display: block; }

.sub-item {
  display: flex; gap: 16px;
  padding: 20px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
}
.sub-item:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.sub-item h4 { margin: 0 0 6px; font-size: 0.98rem; }
.sub-item p { margin: 0; font-size: 0.85rem; }
.sub-num {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-600);
  background: rgba(47,158,71,0.1);
  border-radius: 50%;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}
.icon-circle.gold { background: rgba(240,169,58,0.12); color: var(--gold-500); }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.division-block .badge-row { justify-content: center; }
.mini-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; color: var(--navy-800);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  padding: 8px 14px;
  border-radius: 30px;
}
.mini-badge svg { width: 14px; height: 14px; color: var(--green-600); }

/* ---------- Page-load intro (logo pop + hero cascade) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes logoPop {
    0% { opacity: 0; transform: scale(2); }
    55% { opacity: 1; transform: scale(0.92); }
    78% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
  }
  @keyframes introFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes introArtIn {
    from { opacity: 0; transform: translateX(24px) scale(0.97); }
    to { opacity: 1; transform: translateX(0) scale(1); }
  }

  .brand img { animation: logoPop 0.9s ease both; transform-origin: center; }
  .brand-text { animation: introFadeUp 0.5s ease 0.45s both; }

  /* Home hero */
  .hero-copy .eyebrow { animation: introFadeUp 0.6s ease 0.05s both; }
  .hero-copy h1 { animation: introFadeUp 0.7s ease 0.15s both; }
  .hero-copy p { animation: introFadeUp 0.7s ease 0.28s both; }
  .hero-copy .hero-cta { animation: introFadeUp 0.7s ease 0.4s both; }
  .hero-copy .hero-stats { animation: introFadeUp 0.7s ease 0.52s both; }
  .hero-art { animation: introArtIn 0.8s ease 0.2s both; }

  /* Inner-page hero banner */
  .page-hero .eyebrow { animation: introFadeUp 0.6s ease 0.05s both; }
  .page-hero h1 { animation: introFadeUp 0.7s ease 0.15s both; }
  .page-hero p { animation: introFadeUp 0.7s ease 0.28s both; }
  .page-hero .breadcrumb { animation: introFadeUp 0.6s ease 0.4s both; }
}

/* ---------- Scroll reveal ---------- */
/* Content is always fully visible by default (never hidden) — this only
   adds a subtle slide-up motion once an element is confirmed in view. */
.reveal { transition: transform 0.6s ease; }
body.reveal-ready .reveal {
  transform: translateY(24px);
}
body.reveal-ready .reveal.is-visible {
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
  .main-nav, .nav-actions .icon-btn, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { gap: 8px; }
  .main-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .main-nav .main-nav-cta {
    display: inline-flex;
    margin-top: 14px;
    padding: 14px 26px;
    justify-content: center;
    border-bottom: none;
    color: var(--white);
  }
  .main-nav .main-nav-cta:hover { color: var(--white); }
  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: -1; }
  .hero { background: linear-gradient(120deg, #eef3f6 0%, #e4ecef 55%, #dbe6ea 100%); }
  .hero-bg-photo, .hero-bg-fade { bottom: auto; height: 800px; }
  .hero-bg-photo { object-position: 39% center; }
  .about-split { grid-template-columns: 1fr; }
  .about-media { min-height: 260px; }
  .about-copy { padding: 48px 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .form-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .division-head { flex-direction: column; align-items: center; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .feature-strip { gap: 20px; }
  .nav-wrap { padding: 10px 16px; }
  .brand img { height: 46px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text span { font-size: 0.65rem; }
  .lang-toggle svg { display: none; }
  .lang-toggle { padding: 9px 12px; }
  .about-logo-box { min-height: 220px; }
  .about-logo-img { width: 78% !important; }
  .division-nav { top: 67px; }
  .division-block .grid { grid-template-columns: 1fr; }
  .sub-item { padding: 16px; }
  .industries-grid { grid-template-columns: 1fr; }
  .feature-trio { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- RTL (Arabic) overrides ---------- */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .lang-toggle { font-family: var(--font-body); }

/* Hero tagline stack — mirror the right-aligned card to the left */
html[dir="rtl"] .hero-art .tagline-stack {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* Footer brand + national emblem divider */
html[dir="rtl"] .footer-brand-top .saudi-emblem {
  padding-left: 0;
  padding-right: 16px;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.4);
}

/* "Learn more" / card link arrows should point left in RTL */
html[dir="rtl"] .cat-card:hover .cat-link svg,
html[dir="rtl"] .btn svg,
html[dir="rtl"] .cat-link svg {
  transform: scaleX(-1);
}
html[dir="rtl"] .cat-card:hover .cat-link svg { transform: scaleX(-1) translateX(4px); }

/* Country dropdown (Request a Quote phone field) */
html[dir="rtl"] .country-dropdown { left: auto; right: 0; }
html[dir="rtl"] .country-dropdown li b { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .country-select svg { transform: none; }

/* Breadcrumb + division-nav + feature lists read naturally RTL via flex,
   but a few icon-first rows need their gap direction mirrored visually */
html[dir="rtl"] .industry-card ul li,
html[dir="rtl"] .footer-contact li,
html[dir="rtl"] .info-card,
html[dir="rtl"] .feature-inline,
html[dir="rtl"] .sub-item,
html[dir="rtl"] .mini-badge,
html[dir="rtl"] .value-pill,
html[dir="rtl"] .hero-stat,
html[dir="rtl"] .feature-item {
  text-align: right;
}

html[dir="rtl"] .about-media .diagonal,
html[dir="rtl"] .about-media-photo {
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 900px) {
  html[dir="rtl"] body.nav-open .main-nav { text-align: right; }
}
