/* ==========================================================================
   Page compositions: homepage, catalogue, detail templates, forms.
   ========================================================================== */

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 48px) 72px;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 60% at 78% 38%, rgba(47, 116, 245, .5), transparent 70%),
    radial-gradient(40% 50% at 92% 85%, rgba(0, 183, 195, .35), transparent 70%),
    radial-gradient(35% 45% at 55% 0%, rgba(134, 97, 197, .45), transparent 70%),
    radial-gradient(30% 40% at 100% 0%, rgba(227, 0, 140, .28), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(91, 52, 168, .45), transparent 70%),
    linear-gradient(180deg, #060b18 0%, #0a1430 100%);
}
[dir="rtl"] .hero__bg { transform: scaleX(-1); }
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: 600; letter-spacing: -0.035em; max-width: 14ch; }
[lang="ar"] .hero__title { letter-spacing: 0; font-weight: 500; max-width: 16ch; }
.hero__title span { display: block; background: linear-gradient(90deg, #8fb8ff, var(--cyan-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text-inverse-muted); max-width: 54ch; margin-block: 28px 36px; }
.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 600px; justify-self: end; width: 100%; }
[dir="rtl"] .hero__visual { justify-self: start; }
.hero__visual svg { width: 100%; height: 100%; overflow: visible; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-block-start: 48px; padding-block-start: 28px; border-block-start: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-sm); color: var(--text-inverse-muted); list-style: none; }
.hero__meta li { display: inline-flex; gap: 10px; align-items: center; }
.hero__meta .icon { width: 18px; height: 18px; color: var(--cyan-300); }

.hero-float { animation: float 9s ease-in-out infinite; transform-origin: center; }
.hero-float--b { animation-delay: -3s; }
.hero-float--c { animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-pulse { animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 32px) 56px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; justify-self: center; order: -1; margin-block-end: -12px; }
  [dir="rtl"] .hero__visual { justify-self: center; }
}
@media (max-width: 480px) { .hero__visual { max-width: 300px; } }

/* ---------- Home hero slider ---------- */
/* Slides share one grid cell, so the slider keeps the height of its tallest slide and nothing below it moves. */
.hero-slider { position: relative; display: grid; background: var(--navy-950); overflow: hidden; touch-action: pan-y; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition-delay: 0s; }
.hero-slider .hero { padding-block: calc(var(--header-h) + 24px) 56px; }
.hero-slider .hero__meta { margin-block-start: 28px; padding-block-start: 20px; }
/* Image banners carry their own text, so they are never cropped or letterboxed: full width at the
   artwork's own aspect ratio. Below 1024 px they start under the fixed header (the banner is too short to
   share space with it); from 1024 px they run up behind the transparent header, as on the store site. */
.hero-slide--image { position: relative; display: grid; place-items: start center; padding-block-start: calc(var(--header-h) + 1px); }
@media (min-width: 1024px) {
  .hero-slide--image { padding-block-start: 0; }
  /* A soft dark fade behind the menu keeps the white navigation readable on light banners. */
  .hero-slide--image::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: calc(var(--header-h) + 72px);
    background: linear-gradient(180deg, rgba(7, 13, 28, .62), rgba(7, 13, 28, .3) 55%, transparent);
    pointer-events: none;
  }
  /* The contact strip is see-through while the header sits over the banner. */
  .has-overlay-header .site-header:not(.is-solid):not(.is-open) .topbar { background: rgba(7, 13, 28, .35); }
}
.hero-slide--image img { display: block; width: 100%; height: auto; }
/* Only the slide on show sets the slider's height, so banners of different sizes never leave an empty band. */
.hero-slide--image:not(.is-active) { position: absolute; inset: 0 0 auto; }
.hero-slide__link { display: block; width: 100%; }
.hero-slide__link:focus-visible { outline-offset: -4px; }
/* Wide screens: the caption is read by screen readers only (the artwork shows the text; the whole image is the link). */
.hero-slide__caption { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-slide__caption .cluster { display: none; }
.hero-slide__title { font-size: var(--fs-2xl, 1.75rem); line-height: var(--lh-tight); color: var(--white); }
.hero-slide__summary { color: var(--text-inverse-muted); margin-block: 12px 24px; }

/* Narrow screens: slides stack their content, the decorative graphic is dropped and the controls sit below the slides. */
@media (max-width: 900px) {
  .hero-slider .hero { padding-block-end: 32px; }
  .hero-slider .hero__visual { display: none; }
  .hero-slide__caption { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; padding: 24px var(--gutter) 32px; color: var(--white); }
  .hero-slide__caption .cluster { display: flex; }
}

/* Wide screens: the controls float over the bottom of the banner, so the slider is exactly the banner's height.
   Narrow screens (caption under the image): they sit below the caption. */
.hero-slider__controls {
  position: static;
  z-index: 2;
  grid-area: 2 / 1;
  justify-self: center;
  margin-block: 16px 20px;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(6, 11, 24, .6);
  backdrop-filter: blur(8px);
  color: var(--white);
}
@media (min-width: 901px) {
  .hero-slider__controls {
    position: absolute;
    z-index: 3;
    inset-block-end: clamp(12px, 2vw, 24px);
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 8px 24px -10px rgba(0, 0, 0, .55);
  }
}
html:not(.js) .hero-slider__controls { display: none; }
.hero-slider__btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.hero-slider__btn:hover { background: rgba(255, 255, 255, .14); }
.hero-slider__btn .icon { width: 20px; height: 20px; }
.hero-slider__dots { display: flex; }
.hero-slider__dot { display: grid; place-items: center; width: 28px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-slider__dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .45); transition: width .3s var(--ease), background-color .3s var(--ease); }
.hero-slider__dot[aria-current="true"]::before { width: 22px; background: var(--white); }
.hero-slider__play, .hero-slider.is-paused .hero-slider__pause { display: none; }
.hero-slider.is-paused .hero-slider__play { display: block; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slider__dot::before { transition: none; } }

/* ---------- Trust strip ---------- */
.trust { padding-block: 28px; border-block-end: 1px solid var(--line); }
.trust__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; list-style: none; }
.trust__item { display: flex; gap: 14px; align-items: center; font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; }
.trust__item .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
@media (max-width: 1100px) { .trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust__item { font-size: var(--fs-xs); } }
@media (max-width: 380px) { .trust__list { grid-template-columns: 1fr; } }

/* ---------- Explore (editorial bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(290px, auto); gap: clamp(14px, 1.6vw, 22px); }
.bento__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 290px; padding-block-start: 120px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-lg); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; }
.bento__item > .art { position: absolute; inset: 0; z-index: -1; border-radius: 0; transition: transform .6s var(--ease); }
.bento__item:hover > .art { transform: scale(1.03); }
.bento__item .art__glyph { inset-block-start: 24px; inset-inline-end: 24px; width: 76px; transform: none; border-radius: 22px; }
.bento__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 8, 18, .78), rgba(4, 8, 18, 0) 62%); }
.bento__item h3 { font-size: var(--fs-xl); max-width: 22ch; }
.bento__item p { font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); margin: 8px 0 16px; max-width: 46ch; }
.bento__item .link-arrow { color: var(--white); }
.bento__item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.bento__item:nth-child(1) h3 { font-size: var(--fs-2xl); }
.bento__item:nth-child(1) .art__glyph { width: 38%; max-width: 230px; inset-block-start: 34%; inset-inline-end: 9%; transform: translateY(-50%); border-radius: 28%; }
.bento__item:nth-child(2), .bento__item:nth-child(3) { grid-column: span 5; }
.bento__item:nth-child(4), .bento__item:nth-child(5), .bento__item:nth-child(6) { grid-column: span 4; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); }
  .bento__item:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .bento__item:nth-child(1) { grid-column: 1 / -1; min-height: 340px; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento__item:nth-child(n) { min-height: 240px; } }

/* ---------- Software showcase ---------- */
.software-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2vw, 28px); }
.software-hero-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 460px; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius-lg); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; }
.software-hero-card > .art { position: absolute; inset: 0; z-index: -1; border-radius: 0; }
.software-hero-card .art__glyph { inset-block-start: auto; inset-block-end: 32px; inset-inline-end: 32px; transform: none; width: 26%; max-width: 150px; }
.software-hero-card h3 { font-size: var(--fs-2xl); max-width: 16ch; margin-block: 10px 12px; }
.software-hero-card p { color: rgba(255, 255, 255, .8); max-width: 40ch; }
.software-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.software-item { position: relative; display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.software-item:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.software-item h3 { font-size: 1rem; font-family: var(--font-latin); }
.software-item p { font-size: var(--fs-xs); color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }
@media (max-width: 960px) { .software-feature { grid-template-columns: 1fr; } .software-hero-card { min-height: 380px; } }
@media (max-width: 560px) { .software-list { grid-template-columns: 1fr; } }

/* ---------- Solutions editorial ---------- */
.solution-spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-block-end: clamp(28px, 3.5vw, 44px); }
.solution-spotlight .art { aspect-ratio: 5 / 4; }
.solution-spotlight h3 { font-size: var(--fs-2xl); margin-block: 10px 16px; }
.solution-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.solution-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: background-color .2s, box-shadow .2s, border-color .2s; }
.solution-tile:hover { box-shadow: var(--shadow); border-color: transparent; }
.solution-tile h3 { font-size: var(--fs-lg); }
.solution-tile p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
.solution-tile .link-arrow { margin-block-start: auto; }
@media (max-width: 860px) { .solution-spotlight { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industry-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industry-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 22px; border-radius: var(--radius-lg); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; }
.industry-card > .art { position: absolute; inset: 0; z-index: -1; border-radius: 0; transition: transform .6s var(--ease); }
.industry-card:hover > .art { transform: scale(1.04); }
.industry-card .art__glyph { inset-block-start: 22px; inset-inline-end: 22px; width: 64px; transform: none; border-radius: 18px; }
.industry-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 8, 18, .8), transparent 55%); }
.industry-card h3 { font-size: var(--fs-lg); }
.industry-card p { font-size: var(--fs-xs); color: rgba(255, 255, 255, .78); margin: 6px 0 0; }
@media (max-width: 1100px) { .industry-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .industry-rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .industry-card { scroll-snap-align: start; }
}

/* ---------- Brands ---------- */
.brand-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.brand-tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.brand-tile:hover { box-shadow: var(--shadow); border-color: transparent; }
.brand-wordmark { font-family: var(--font-latin); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--navy-800); direction: ltr; }
.brand-tile p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; }
@media (max-width: 760px) { .brand-row { grid-template-columns: 1fr; } }
.disclaimer { font-size: var(--fs-xs); color: var(--text-muted); margin-block-start: 18px; }

/* ---------- Why choose us ---------- */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; list-style: none; }
.why__list h3 { font-size: var(--fs-lg); margin-block: 16px 8px; }
.why__list p { font-size: var(--fs-sm); color: var(--text-inverse-muted); margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- Tabs (featured / recent) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--gray-100); }
.tabs button { min-height: 40px; padding: 8px 18px; border: 0; border-radius: var(--radius-pill); background: none; font-size: var(--fs-sm); font-weight: 500; color: var(--gray-600); }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 32px; list-style: none; }
.category-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: 400; text-decoration: none; }
.category-links a:hover { border-color: var(--ink); }
.category-links .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Insights ---------- */
.insight-card .card__media { aspect-ratio: 16 / 9; }
.insight-meta { display: flex; gap: 12px; align-items: center; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Catalogue (shop layout: filter card + 4-column product grid) ---------- */
.page-hero--shop { padding-block: 20px 4px; background: var(--gray-50); border: 0; }
.page-hero--shop .page-hero__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.page-hero--shop .lede { font-size: var(--fs-sm); }
.page-hero--shop + .shop { padding-block-start: 16px; }
.shop { background: var(--gray-50); }
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters {
  position: sticky;
  inset-block-start: calc(var(--header-bar-h) + 16px);
  max-height: calc(100vh - var(--header-bar-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 0;
  padding: 18px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.filters__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--fs-md); font-weight: 500; }
.filters__title .icon { width: 18px; height: 18px; }
.filter-block { margin: 0; padding: 14px 0; border: 0; border-block-end: 1px solid var(--line); min-width: 0; }
.filter-block:last-of-type { border-block-end: 0; }
.filter-block h3, .filter-block legend { float: none; margin: 0 0 10px; padding: 0; font-size: var(--fs-sm); font-weight: 500; }
.filter-block .check { align-items: center; padding: 6px 4px; font-size: .875rem; }
.filter-block .check input { margin: 0; width: 18px; height: 18px; }
.filter-block .check .count { margin-inline-start: auto; }
.check--brand .brand-logo { flex: none; }
.filter-list { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .875rem; text-decoration: none; }
.filter-list a:hover { background: var(--gray-50); }
.filter-list a[aria-current="page"] { background: #eaf1ff; color: var(--accent); font-weight: 500; }
.count { color: var(--text-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-block-end: 16px; }
.result-count { margin: 0; margin-inline-end: auto; font-size: var(--fs-sm); color: var(--text-muted); }
.catalog-search { position: relative; flex: 0 1 300px; }
.catalog-search .input { min-height: 42px; padding-inline-start: 40px; border-radius: 10px; background: var(--white); }
.catalog-search .icon { position: absolute; inset-inline-start: 12px; inset-block-start: 11px; width: 20px; height: 20px; color: var(--gray-500); }
.sort { position: relative; display: flex; align-items: center; }
.sort .icon { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; color: var(--gray-500); pointer-events: none; }
.sort .select { min-height: 42px; width: auto; padding-inline-start: 36px; border-radius: 10px; background-color: var(--white); font-weight: 500; font-size: .875rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; }
.active-filters .icon { width: 14px; height: 14px; }
.filters-toggle { display: none; }
.grid--shop { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.empty-state { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--white); }
.empty-state .icon-badge { margin-inline: auto; margin-block-end: 16px; }
@media (max-width: 1199px) { .grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; display: none; }
  .filters.is-open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .catalog-search { flex: 1 1 100%; order: 3; }
}
@media (max-width: 767px) { .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 359px) { .grid--shop { grid-template-columns: 1fr; } }

/* ---------- Product detail (gallery card | info, price box, actions, service tiles; panels; related) ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; padding-block: 16px 0; }
.pd__gallery { position: sticky; inset-block-start: calc(var(--header-bar-h) + 16px); }
.pd__stage { position: relative; aspect-ratio: 1.15; display: grid; place-items: center; border-radius: 18px; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.pd__stage .badge-clearance { inset-block-start: 16px; inset-inline-start: 16px; font-size: .75rem; padding: 5px 10px; }
.pd__stage img { width: 78%; height: 78%; object-fit: contain; }
.pd__stage .product-placeholder .icon { width: 120px; height: 120px; }
.pd__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.pd__thumbs button { width: 72px; height: 72px; padding: 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.pd__thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd__brand { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 500; color: var(--accent); text-decoration: none; }
.pd__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; margin: 10px 0 8px; }
.pd__model { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.pd__model code { margin-inline-start: 6px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .8125rem; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.pd__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pd__chips li { padding: 6px 12px; border-radius: var(--radius-pill); background: #eaf1ff; color: var(--accent); font-size: .875rem; font-weight: 500; }
.pd__summary { margin: 14px 0 0; color: var(--text-muted); }
.price-box { margin-block-start: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.price-box p { margin: 0; }
.price-box__label { font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
[lang="ar"] .price-box__label { letter-spacing: 0; }
.price-box p.price-box__amount { margin-block: 4px; font-size: 2.25rem; font-weight: 600; line-height: 1.1; color: #c8241b; }
.price-box p.price-box__ask { margin-block: 6px 2px; font-size: var(--fs-xl); font-weight: 600; }
.price-box__note { font-size: .8125rem; color: var(--text-muted); }
.pd__info > .stock { margin-block-start: 14px; font-size: .8125rem; }
.pd__buy { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block-start: 18px; }
.btn--lg { min-height: 54px; border-radius: 12px; font-size: var(--fs-md); }
.btn--dark { --btn-bg: var(--navy-900); }
.btn--dark:hover { --btn-bg: var(--navy-800); }
.pd__more { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 10px; }
.btn--outline { --btn-bg: var(--white); --btn-fg: var(--accent); --btn-border: var(--line); flex: 1 1 140px; min-height: 42px; padding: 8px 14px; border-radius: 10px; font-size: .875rem; }
.btn--outline:hover { --btn-bg: var(--white); --btn-border: var(--accent); box-shadow: none; }
.btn--whatsapp { --btn-fg: #0f7a3d; --btn-border: #9fd8b5; }
.pd__services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.pd__services a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-decoration: none; }
.pd__services a:hover { border-color: var(--accent); }
.pd__services .icon { width: 20px; height: 20px; color: var(--accent); flex: none; margin-block-start: 2px; }
.pd__services strong { display: block; font-size: .875rem; }
.pd__services small { color: var(--text-muted); font-size: .75rem; }
.pd-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-block-start: 36px; }
.pd-panels__col { display: grid; gap: 16px; }
.pd-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 0 16px; }
.pd-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; cursor: pointer; list-style: none; }
.pd-panel > summary::-webkit-details-marker { display: none; }
.pd-panel > summary h2 { margin: 0; font-size: var(--fs-md); font-weight: 500; }
.pd-panel > summary .icon { width: 18px; height: 18px; color: var(--gray-500); transition: transform .2s var(--ease); }
.pd-panel[open] > summary .icon { transform: rotate(180deg); }
.pd-panel[open] { padding-block-end: 16px; }
.pd-panel__sub { margin: 18px 0 10px; font-size: var(--fs-sm); }
.pd-panel .spec-table { width: 100%; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .875rem; }
.pd-panel .spec-table th, .pd-panel .spec-table td { padding: 10px 12px; border: 0; }
.pd-panel .spec-table tr:nth-child(even) { background: var(--gray-50); }
.pd-panel .spec-table th { width: 38%; font-weight: 400; }
.doc-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.doc-list a { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.doc-list a:hover { border-color: var(--ink); }
.doc-list small { color: var(--text-muted); }
.doc-list .icon:last-child { margin-inline-start: auto; color: var(--accent); }
.pd-related { padding-block: 36px 8px; }
.pd-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block-end: 18px; }
.pd-related__head h2 { margin: 0; font-size: var(--fs-xl); }
@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; }
  .pd__gallery { position: static; }
  .pd-panels { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pd__buy, .pd__services { grid-template-columns: 1fr; }
  .price-box p.price-box__amount { font-size: 1.85rem; }
}

.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50; display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-block-start: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .3); }
  .sticky-cta .btn { flex: 1; }
  .has-sticky-cta .site-footer { padding-block-end: 76px; }
}

/* ---------- Section page (solution / industry / software) ---------- */
.columns-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .columns-3 { grid-template-columns: 1fr; } }
.panel { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.panel h2, .panel h3 { font-size: var(--fs-lg); margin-block-end: 18px; display: flex; gap: 12px; align-items: center; }
.panel--muted { background: var(--surface-alt); border-color: transparent; }
.component-list { list-style: none; counter-reset: c; display: grid; gap: 12px; }
.component-list li { counter-increment: c; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.component-list li::before { content: counter(c, decimal-leading-zero); font-family: var(--font-latin); font-weight: 500; font-size: var(--fs-sm); color: var(--cyan-300); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
/* About: the company profile as a stack of cards, laid out like the previous site's About page. */
.about__stack { display: grid; gap: 24px; }
.about__pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.about-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px); }
.about-card__title { font-size: var(--fs-xl); margin-block-end: 16px; }
.about-card .prose { max-width: none; }
.about-card--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.about-card--media-left .about-card__media { order: -1; }
.about-card__media .rt-media { margin: 0; }
.about-card--chips .prose ul:first-of-type { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.about-card--chips .prose ul:first-of-type li { margin: 0; padding: 8px 18px; border-radius: var(--radius-sm); background: #e3f2fd; }
@media (max-width: 860px) {
  .about-card--split { grid-template-columns: 1fr; }
  .about-card--media-left .about-card__media { order: 0; }
}
.about-banner { position: relative; display: grid; align-items: center; min-height: 420px; padding: clamp(24px, 5vw, 60px); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.about-banner__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.about-banner__panel { max-width: 560px; padding: clamp(24px, 4vw, 40px); background: rgba(0, 0, 0, .55); color: var(--white); border-radius: var(--radius-sm); }
.about-banner__panel .about-card__title { color: var(--white); }

/* Images, videos and people written in rich text (RichText.cs). */
.rt-media { margin-block: 1.5em; }
.rt-media img, .rt-media video { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.rt-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; padding: 0 !important; margin-block: 1.5em; list-style: none; text-align: center; }
/* Four per row like the original team grid; the last row stays centred. */
.rt-people li { flex: 0 1 calc(25% - 15px); min-width: 150px; margin: 0; }
.rt-person img { display: block; width: 140px; height: 180px; margin: 0 auto 14px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
@media (max-width: 600px) {
  .rt-people { gap: 24px 12px; }
  .rt-people li { flex-basis: calc(50% - 6px); min-width: 0; }
  .rt-person img { width: 120px; height: 154px; }
}
.platforms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-block-start: 20px; }
.screens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.screens figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.screens figcaption { padding: 12px 16px; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- Enquiry forms ---------- */
.enquiry { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 40px var(--section-y); }
.enquiry-form { display: grid; gap: 20px; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.enquiry-aside { display: grid; gap: 20px; position: sticky; inset-block-start: calc(var(--header-bar-h) + 20px); }
.contact-card { padding: 26px; border-radius: var(--radius-lg); background: var(--navy-950); color: var(--text-inverse-muted); font-size: var(--fs-sm); }
.contact-card h2 { color: var(--white); font-size: var(--fs-lg); margin-block-end: 14px; }
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card ul { list-style: none; display: grid; gap: 12px; }
.contact-card li { display: flex; gap: 10px; }
.contact-card .icon { width: 18px; height: 18px; flex: none; color: var(--cyan-300); margin-block-start: 3px; }
.context-pill { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: var(--radius); background: #eef4ff; color: var(--navy-800); font-size: var(--fs-sm); font-weight: 500; }
.enquiry-types { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.enquiry-types a { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 500; text-decoration: none; }
.enquiry-types a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (max-width: 960px) { .enquiry { grid-template-columns: 1fr; } .enquiry-aside { position: static; } }

.thanks { text-align: center; padding-block: clamp(48px, 7vw, 96px); }
.thanks .icon-badge { width: 72px; height: 72px; border-radius: 50%; margin-inline: auto; margin-block-end: 24px; background: var(--success-bg); color: var(--success); }
.thanks .icon-badge .icon { width: 36px; height: 36px; }
.ref { display: inline-block; margin-block: 16px 32px; padding: 10px 18px; border-radius: var(--radius-sm); background: var(--gray-50); font-family: var(--font-latin); font-weight: 500; letter-spacing: .04em; direction: ltr; }

/* ---------- About ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.branch-card address { font-style: normal; color: var(--text-muted); font-size: var(--fs-sm); }
.branch-card ul { list-style: none; display: grid; gap: 8px; margin-block-start: 16px; font-size: var(--fs-sm); }
.branch-card li { display: flex; gap: 10px; align-items: center; }
.branch-card .icon { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Errors ---------- */
.error-page { padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.error-page .code { font-family: var(--font-latin); font-size: clamp(4rem, 12vw, 8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(90deg, var(--blue-600), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Small fixes shared by several templates ---------- */
.page-hero--dark { isolation: isolate; }
.page-hero--dark .hero__bg { position: absolute; inset: 0; z-index: -1; }
.thanks .cluster, .error-page .cluster { justify-content: center; }
.thanks .lede, .error-page .lede { margin-inline: auto; }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
.field-error:empty { display: none; }
.field-error .field-validation-valid { display: none; }
.split > h2 { position: sticky; inset-block-start: calc(var(--header-bar-h) + 24px); }
@media (max-width: 860px) { .split > h2 { position: static; } }

.why .lede { margin-block: 18px 28px; }
.solution-spotlight .lede { margin-block: 14px 24px; }

/* ---------- Colour mix ----------
   Items inside a colour-cycling list take the next of six hues, so rows of cards and icons mix colours
   the way Microsoft's pages do. Components read --c-bg / --c-ink / --c-accent and fall back to the brand blue. */
.c-cycle > *:nth-child(6n+1), .grid--3 > *:nth-child(6n+1), .grid--4 > *:nth-child(6n+1) { --c-bg: var(--c1-bg); --c-ink: var(--c1-ink); --c-accent: var(--c1-accent); }
.c-cycle > *:nth-child(6n+2), .grid--3 > *:nth-child(6n+2), .grid--4 > *:nth-child(6n+2) { --c-bg: var(--c2-bg); --c-ink: var(--c2-ink); --c-accent: var(--c2-accent); }
.c-cycle > *:nth-child(6n+3), .grid--3 > *:nth-child(6n+3), .grid--4 > *:nth-child(6n+3) { --c-bg: var(--c3-bg); --c-ink: var(--c3-ink); --c-accent: var(--c3-accent); }
.c-cycle > *:nth-child(6n+4), .grid--3 > *:nth-child(6n+4), .grid--4 > *:nth-child(6n+4) { --c-bg: var(--c4-bg); --c-ink: var(--c4-ink); --c-accent: var(--c4-accent); }
.c-cycle > *:nth-child(6n+5), .grid--3 > *:nth-child(6n+5), .grid--4 > *:nth-child(6n+5) { --c-bg: var(--c5-bg); --c-ink: var(--c5-ink); --c-accent: var(--c5-accent); }
.c-cycle > *:nth-child(6n+6), .grid--3 > *:nth-child(6n+6), .grid--4 > *:nth-child(6n+6) { --c-bg: var(--c6-bg); --c-ink: var(--c6-ink); --c-accent: var(--c6-accent); }

/* Coloured top bars on white cards and tiles. */
.solution-tile, .brand-tile, .software-item, .c-cycle > .card, .grid--3 > .card, .grid--4 > .card { border-block-start: 4px solid var(--c-accent, var(--line)); }
.solution-tile:hover, .software-item:hover, .brand-tile:hover { background: linear-gradient(180deg, var(--c-bg, var(--white)), var(--white) 70%); }
.trust__item .icon-badge { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-accent, transparent) 35%, transparent); }
.c-cycle.category-links a { background: var(--c-bg); border-color: transparent; color: var(--c-ink); }
.c-cycle.category-links a:hover { border-color: var(--c-ink); }
.c-cycle.category-links .icon { color: var(--c-ink); }
.why__list .icon-badge { background: color-mix(in srgb, var(--c-accent, #fff) 18%, transparent); }

/* Microsoft-style four-colour strip at the top of the trust bar and the footer. */
.trust { position: relative; background: linear-gradient(180deg, #f7f9ff, var(--white)); }
.site-footer { position: relative; }
.trust::before, .site-footer::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 4px; background: var(--brand-strip); }

/* Form CAPTCHA: image and "New image" side by side above the code input. */
.captcha__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.captcha__img { display: block; width: 200px; height: 70px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(23, 48, 106, .12); background: #eef4ff; }
.captcha__refresh { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--radius-pill); background: rgba(23, 48, 106, .06); color: var(--accent); font-size: var(--fs-sm); cursor: pointer; }
.captcha__refresh:hover { background: rgba(23, 48, 106, .12); }
.captcha__refresh:disabled { opacity: .6; cursor: progress; }
.captcha__refresh .icon { width: 18px; height: 18px; }
.captcha__input { max-width: 200px; font-family: var(--font-latin); letter-spacing: .2em; text-transform: uppercase; }
html:not(.js) .captcha__refresh { display: none; }

/* Contact page: showroom cards (glass, like the other cards). */
.showrooms { padding-block: 8px var(--section-y); }
.showrooms__title { margin-block-end: 18px; font-size: var(--fs-xl); }
.showroom-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 0; padding: 0; }
.showroom { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: var(--glass-fill, var(--white)); border: 1px solid var(--glass-edge, var(--line)); box-shadow: var(--glass-shadow, var(--shadow-sm)); }
.showroom__name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-lg); }
.showroom__name .icon { width: 22px; height: 22px; color: var(--accent); flex: none; }
.showroom__address { display: flex; gap: 10px; font-style: normal; font-size: var(--fs-sm); color: var(--text-muted); }
.showroom__meta { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; font-size: var(--fs-sm); }
.showroom__meta li { display: flex; gap: 10px; align-items: center; }
.showroom__address .icon, .showroom__meta .icon { width: 18px; height: 18px; flex: none; color: var(--accent); margin-block-start: 2px; }
.showroom__map { margin-block-start: auto; padding-block-start: 4px; }
