/* ==========================================================================
   KAEM Solutions — Marketing Site
   Design system tokens + shared layout styles.
   Generated site: see build.js. Single stylesheet shared by all 13 pages.
   ========================================================================== */

/* ---- Design tokens (Section 2.1 / 2.2) --------------------------------- */
:root {
  --primary: #5B2EE5;
  --primary-deep: #4311C9;
  --accent-blue: #2E7DF0;
  --navy: #0B1437;
  --bg: #FFFFFF;
  --bg-muted: #F4F5F8;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --card: #FFFFFF;
  --card-shadow: rgba(20, 20, 60, 0.08);
  --success: #22B07D;

  --cta-from: #5B2EE5;
  --cta-to: #6A3DF0;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 9vw, 96px);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font: "Poppins", "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
  /* Hidden off the top with a transform (no left:-9999 — that creates a huge
     horizontal scroll area once the page flips to dir="rtl"). */
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-y); }
.section--muted { background: var(--bg-muted); }

/* Dashed section label — defining visual motif (Section 2.2) */
.section-label {
  display: block;
  text-align: center;
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.section-label--blue { color: var(--accent-blue); }
.section-label::before { content: "\2013\00a0"; color: inherit; opacity: 0.85; }
.section-label::after  { content: "\00a0\2013"; color: inherit; opacity: 0.85; }
.section-intro {
  max-width: 720px;
  margin: -28px auto clamp(36px, 5vw, 56px);
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---- Buttons / chips (Section 2.5) ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(91, 46, 229, 0.28);
}
.btn--primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 26px;
}
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
}
.chip--violet {
  background: rgba(91, 46, 229, 0.08);
  color: var(--primary);
  border-color: rgba(91, 46, 229, 0.2);
}

/* ---- Placeholder image block ------------------------------------------ */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(91, 46, 229, 0.12), rgba(46, 125, 240, 0.12)),
    repeating-linear-gradient(45deg, rgba(91, 46, 229, 0.04) 0 12px, transparent 12px 24px);
  border: 1px solid rgba(91, 46, 229, 0.14);
  color: var(--primary);
  overflow: hidden;
}
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--1x1 { aspect-ratio: 1 / 1; }

/* Real product photos (hero + section imagery) */
.asset-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(91, 46, 229, 0.14);
}
.asset-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asset-media--4x3 { aspect-ratio: 4 / 3; }
.asset-media--16x9 { aspect-ratio: 16 / 9; }
.asset-media--1x1 { aspect-ratio: 1 / 1; }
.hero__media .asset-media { box-shadow: 0 30px 60px var(--card-shadow); }

/* "How it Works" flow illustration (replaces the numbered text steps) */
.howitworks-media { display: flex; justify-content: center; }
.howitworks-media img { width: 100%; max-width: 440px; height: auto; display: block; }

/* "Proven at Scale" bento image (replaces the text stat cards on POS) */
.stats-media img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

/* OS logos image in the hero badge row (iOS / Android / Windows) */
.os-logos { height: 30px; width: auto; display: inline-block; vertical-align: middle; }
.ph__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
}
.ph__inner svg { width: 40px; height: 40px; opacity: 0.7; }
.ph__label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }

/* ==========================================================================
   Header / sticky nav (Section 3.1)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(20, 20, 60, 0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  color: #fff;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand b { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--primary); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Products dropdown */
.nav__item--has-menu { position: relative; }
.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(560px, 86vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  background: #fff;
  border: 1px solid rgba(20, 20, 60, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px var(--card-shadow);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}
.nav__menu a:hover { background: var(--bg-muted); }
.nav__menu a span { color: var(--primary); font-weight: 600; }
.nav__menu a small { color: var(--text-muted); font-weight: 400; }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--text);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid rgba(20, 20, 60, 0.08);
    box-shadow: 0 24px 48px var(--card-shadow);
    padding: 16px var(--pad) 24px;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 16px; }
  .nav__menu {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    border-left: 2px solid rgba(91, 46, 229, 0.2);
    border-radius: 0;
  }
  .nav .btn { margin-top: 10px; width: 100%; justify-content: center; }
  .nav .lang-toggle { margin-top: 12px; justify-content: center; }
}

/* ==========================================================================
   Header — matched to the main KAEM site header
   (KAEM wordmark logo, dark nav, EN | عربي toggle, outlined "Let's Talk")
   ========================================================================== */
.brand__logo {
  display: block;
  height: 34px;
  width: auto;
}

/* Dark nav text to match the main site */
.nav__link { color: var(--navy); }

/* Language toggle (ported from the main site) */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 0;
  padding: 5px 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}
.lang-btn.active { opacity: 1; }
.lang-btn:hover:not(.active) { opacity: 0.75; }
.lang-sep {
  font-size: 11px;
  color: var(--navy);
  opacity: 0.4;
  user-select: none;
  line-height: 1;
}

/* Outlined "Let's Talk" pill to match the main site */
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 12px 26px;
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* Narrow single-column dropdown for short menus (Software, Media) */
.nav__menu--sm {
  width: max-content;
  min-width: 220px;
  grid-template-columns: 1fr;
}

/* ==========================================================================
   Hero (Section 3.2)
   ========================================================================== */
.hero { padding-block: clamp(48px, 7vw, 84px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--primary);
  margin-bottom: 20px;
}
.hero__intro { color: var(--text-muted); font-size: 17px; }
.hero__intro p + p { margin-top: 16px; }

.badges { margin-top: 28px; display: grid; gap: 16px; }
.badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.badge-row__label { font-size: 14px; font-weight: 600; color: var(--text); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  border: 1px solid rgba(20, 20, 60, 0.07);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.badge svg { width: 20px; height: 20px; }
.badge--zatca { color: var(--primary); }
.badge--zatca .badge__zatca {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.hero__media .ph { box-shadow: 0 30px 60px var(--card-shadow); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* ==========================================================================
   Core Features grid (Section 3.3)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid rgba(20, 20, 60, 0.06);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 10px 30px var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px var(--card-shadow); }
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(91, 46, 229, 0.1);
  color: var(--primary);
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; color: var(--accent-blue); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* Management modules chips (POS) */
.module-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.module-list li {
  list-style: none;
  background: #fff;
  border: 1px solid rgba(91, 46, 229, 0.16);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.module-list li::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: middle;
}

/* Dashboard detail callout (POS) */
.callout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.callout__item {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(20, 20, 60, 0.06);
  box-shadow: 0 10px 30px var(--card-shadow);
  padding: 22px 24px;
}
.callout__item h3 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.callout__item p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 600px) { .callout { grid-template-columns: 1fr; } }

/* ==========================================================================
   How it Works + Benefits two-column (Section 3.4 / 3.5)
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.steps { display: grid; gap: 8px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding-bottom: 24px;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  border-left: 2px dotted rgba(91, 46, 229, 0.4);
}
.step__badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.step__badge svg { width: 22px; height: 22px; }
.step__num {
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.step__body h3 { font-size: 17px; margin-bottom: 4px; }
.step__body p { font-size: 14px; color: var(--text-muted); }

.benefits { display: grid; gap: 18px; }
.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid rgba(20, 20, 60, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--card-shadow);
  padding: 20px 22px;
}
.benefit__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(34, 176, 125, 0.12);
  color: var(--success);
  flex-shrink: 0;
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit h3 { font-size: 16px; color: var(--primary); margin-bottom: 4px; }
.benefit p { font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   Highlight band (Section 3.6) — used by POS GO / KDS
   ========================================================================== */
.usecase-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  background: var(--accent-blue);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #fff;
}
.usecase-bar li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.usecase-bar svg { width: 20px; height: 20px; }

.panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: linear-gradient(135deg, var(--accent-blue), #1f5fd0);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
}
.panel h2 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 16px; }
.panel p { color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.panel .ph {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; } }

/* ==========================================================================
   Stats band (Section 4 / POS)
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  background: var(--card);
  border: 1px solid rgba(20, 20, 60, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--card-shadow);
  padding: 28px 26px;
}
.stat__num {
  font-size: clamp(34px, 4.4vw, 44px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat__title { font-weight: 700; margin: 6px 0 8px; }
.stat__desc { font-size: 14px; color: var(--text-muted); }
@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ==========================================================================
   Home product grid (Section 4)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(20, 20, 60, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--card-shadow);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px var(--card-shadow); }
.product-card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91,46,229,0.12), rgba(46,125,240,0.12));
  color: var(--primary);
  margin-bottom: 16px;
}
.product-card__icon svg { width: 26px; height: 26px; }
.product-card h3 { font-size: 18px; color: var(--accent-blue); margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--text-muted); flex: 1; }
.product-card__cta {
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card__cta svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.product-card:hover .product-card__cta svg { transform: translateX(4px); }
@media (max-width: 920px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA band (Section 3.7 / 17.2)
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--cta-from), var(--cta-to));
  color: #fff;
  text-align: center;
}
.cta-band__inner { padding-block: clamp(48px, 7vw, 80px); }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; }
.cta-band p {
  max-width: 640px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
}

/* ==========================================================================
   "let's talk" contact form (Section 3.8 / 17.3)
   ========================================================================== */
.contact { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 92px); }

.contact-title {
  text-align: center;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-blue);
  text-transform: lowercase;
  margin: 0 0 clamp(30px, 4.5vw, 52px);
}

.cform { max-width: 940px; margin: 0 auto; }
.cform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 3vw, 34px) clamp(28px, 5vw, 56px);
  align-items: end;
}
.cfield { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cfield--full { grid-column: 1 / -1; }
.cfield > label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Underline-style inputs and selects */
.cfield input,
.cfield select {
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 0;
  padding: 8px 2px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.cfield input::placeholder { color: rgba(255, 255, 255, 0.38); }
.cfield input:focus,
.cfield select:focus { outline: none; border-bottom-color: var(--accent-blue); }

.cfield select {
  appearance: none;
  cursor: pointer;
  padding-right: 26px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B2EE5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
/* Selects that carry the field name as their placeholder sit lower (no label
   above), so give them the same top rhythm as a labelled field. */
.cform-grid > .cfield:not(:has(> label)) { align-self: end; }
.cfield select option { color: var(--text); }
.cfield select option[disabled] { color: rgba(0, 0, 0, 0.5); }

/* Phone row: dial-country select + code + number, all inline, underlined */
.cfield--phone .cphone {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
}
.cphone .cf-dial { width: auto; min-width: 150px; flex: 0 0 auto; }
.cphone .cf-code {
  flex: 0 0 auto;
  color: #fff;
  font-size: 15px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.30);
}
.cphone .cf-phone { flex: 1 1 auto; }

/* Centered Send button (light-blue pill) */
.cform-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: clamp(10px, 2vw, 22px);
}
.btn-send {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent-blue);
  border: none;
  border-radius: 999px;
  padding: 13px 40px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn-send:hover { filter: brightness(1.08); }
.btn-send:active { transform: translateY(1px); }

@media (max-width: 620px) {
  .cform-grid { grid-template-columns: 1fr; }
  .cphone { flex-wrap: wrap; }
}

/* ==========================================================================
   Footer (Section 3.9 / 17.4)
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer__inner { padding-block: 48px; display: grid; gap: 28px; }
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { font-size: 15px; }
.footer-nav a:hover { color: var(--accent-blue); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__bottom a:hover { color: var(--accent-blue); }
.site-footer .brand { color: #fff; }
.footer-logo { display: block; height: 34px; width: auto; }

/* "Follow Us" socials — matched to the main KAEM site footer */
.footer-socials { display: inline-flex; align-items: center; gap: 14px; }
.footer-socials__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.footer-socials__list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-socials__list a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.footer-socials__list a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Utilities --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(40px, 6vw, 64px); }

/* ============================================================
   ARABIC MODE (RTL)  — activated by [dir="rtl"] / body.lang-ar
   The runtime (lang.js) sets dir="rtl" on <html>, which mirrors
   the flex/grid layout automatically. These rules add the Arabic
   webfont and correct the few things RTL mirroring can't infer.
   ============================================================ */
@font-face {
  font-family: 'GE SS Text';
  src: url('../webfonts/Arabic/GE_SS_Text_Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GE SS Text';
  src: url('../webfonts/Arabic/GE_SS_Text_Medium.otf') format('opentype');
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GE SS Text';
  src: url('../webfonts/Arabic/GE_SS_Text_Bold.otf') format('opentype');
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GE SS Text';
  src: url('../webfonts/Arabic/GE_SS_Text_Bold_2.otf') format('opentype');
  font-weight: 800 900; font-style: normal; font-display: swap;
}

/* Arabic font stack across the whole page in Arabic mode */
body.lang-ar,
body.lang-ar .nav__link,
body.lang-ar .btn,
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3,
body.lang-ar p, body.lang-ar li, body.lang-ar a,
body.lang-ar label, body.lang-ar input, body.lang-ar select, body.lang-ar button,
body.lang-ar .section-label, body.lang-ar .stat__title, body.lang-ar .stat__desc {
  font-family: 'GE SS Text', 'Cairo', var(--font);
}

/* Keep the ENTIRE header in its original LTR layout in Arabic mode:
   logo stays on the left, nav + language toggle + CTA stay on the right.
   Only the body content mirrors to RTL — this matches the main KAEM site
   product pages (e.g. products-main-page.html), where toggling the language
   translates the menu text without flipping the header alignment. */
body.lang-ar .site-header,
body.lang-ar .site-header__inner,
body.lang-ar .nav,
body.lang-ar .nav__list,
body.lang-ar .nav__menu,
body.lang-ar .lang-toggle { direction: ltr; }

/* Keep brand mark, numeric stats, badges and dial codes rendering LTR
   so Latin/emoji/digits are not reordered by the RTL context. */
body.lang-ar .brand,
body.lang-ar .stat__num,
body.lang-ar .badge,
body.lang-ar .footer-socials__list,
body.lang-ar .cphone .cf-code,
body.lang-ar option[value^="+"] { direction: ltr; }

/* Form controls: right-align text in RTL */
body.lang-ar .cfield > label { text-align: right; }
body.lang-ar input,
body.lang-ar select,
body.lang-ar textarea { text-align: right; }

/* The hero headline highlight span keeps its accent colour; ensure it and
   the trailing text read naturally right-to-left (dir handles ordering). */
body.lang-ar .hero__copy h1 { line-height: 1.35; }

/* Section labels use a leading dash motif that reads fine mirrored; just
   make sure the arrow icon inside buttons flips to point the right way. */
body.lang-ar .btn svg { transform: scaleX(-1); }
