/* =====================================================================
   SECTIONS — one block per page section (matches ids in config.js).
   ===================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--grad-navy);
  color: #fff;
  padding-block: clamp(48px, 7vw, 96px);
  /* fills the first screen under the header; the counter starts below it */
  display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
}
/* Brand background (rosette pattern on navy gradient) — used by the home hero and the inner-page heroes */
.hero-pattern {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(22, 34, 73, .90), rgba(22, 34, 73, .35)),   /* softens the pattern behind text — raise .35 for calmer, lower for stronger */
    url("../img/backgrounds/Backgrounds-1.webp") center / cover no-repeat, var(--c-primary);
}
/* Home hero: image scaled to the hero height, repeated sideways = more, smaller shapes */
.hero > .hero-pattern { background-size: auto, auto 100%; background-repeat: no-repeat, repeat-x; background-position: center, center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow-light { color: var(--c-gold); }
.hero-title { font-size: var(--fs-hero); line-height: 1.2; margin-block-end: 20px; }
.hero-lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .8); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }

.hero-visual { position: relative; }
.hero-media { aspect-ratio: 5 / 4; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.hero-media.is-placeholder { background: rgba(255, 255, 255, .06); border-color: rgba(252, 234, 188, .4); color: rgba(255, 255, 255, .8); }
.hero-media.is-placeholder .media-icon, .hero-media.is-placeholder figcaption span { color: var(--c-sand); }
.hero-badge {
  position: absolute; z-index: 1; inset-inline-start: -16px; bottom: -18px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-white); color: var(--c-primary); font-weight: 600;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
}
.hero-badge .ic { color: var(--c-accent); }
.hero-chips { position: absolute; z-index: 1; top: 20px; inset-inline-end: -14px; display: flex; flex-direction: column; gap: 8px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-white); color: var(--c-ink); font-size: .88rem; font-weight: 600;
  padding: 8px 14px 8px 12px; border-radius: 999px; box-shadow: var(--shadow-s);
}
.hero-chip .ic { width: 18px; height: 18px; color: var(--c-accent); }

/* Counter: its own section under the hero */
.stats-band { position: relative; background: var(--c-primary-darker); padding-block: clamp(28px, 3.5vw, 44px); }
/* Top edge only: the hero fades into the counter's navy */
.stats-band::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: clamp(50px, 6vw, 80px); pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--c-primary-darker));
}
.stats-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }   /* one equal column per number */
.stat { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; padding: 8px 16px; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, .2); }
.stat dd { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 800; color: var(--c-sand); line-height: 1.1;
  -webkit-text-stroke: .6px currentColor; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }   /* extra-bold numbers */
.stat dt { color: #fff; font-weight: 600; font-size: .98rem; margin-block-start: 6px; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-chips { position: static; flex-direction: row; flex-wrap: wrap; margin-block-start: 16px; }
  .hero-badge { position: relative; inset: auto; z-index: 1; align-self: flex-start; margin-block-start: -26px; margin-inline-start: 12px; }   /* sits on top of the photo */
  .hero-visual { display: flex; flex-direction: column; }
  .hero-media { aspect-ratio: 16 / 10; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; row-gap: 8px; }
  .stat:nth-child(odd) { border-inline-start: 0; }
}
@media (max-width: 520px) {
  .hero-chip { font-size: .8rem; padding: 6px 12px 6px 10px; }
}

/* ---------- Value chain ---------- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; counter-reset: step; }
.chain::before {
  content: ""; position: absolute; top: 36px; inset-inline: 10%;
  border-block-start: 2px dashed var(--c-accent); opacity: .5;
}
.chain-step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.chain-icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-white); color: var(--c-primary); border: 2px solid var(--c-primary);
  box-shadow: 0 0 0 8px var(--c-surface); margin-block-end: 16px; transition: background .25s, color .25s;
}
.chain-icon .ic { width: 30px; height: 30px; }
.chain-step:hover .chain-icon { background: var(--c-primary); color: var(--c-sand); }
.chain-num { font-size: .8rem; font-weight: 700; color: var(--c-accent); letter-spacing: .08em; }
.chain-step h3 { font-size: var(--fs-h3); color: var(--c-primary); margin-block: 4px 6px; }
.chain-step p { color: var(--c-muted); font-size: .93rem; max-width: 180px; }

@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; gap: 0; }
  .chain::before { top: 36px; bottom: 36px; inset-inline: auto; inset-inline-start: 35px; border-block-start: 0; border-inline-start: 2px dashed var(--c-accent); }
  .chain-step { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: start; align-items: center; padding-block: 10px; }
  .chain-icon { grid-row: span 3; margin: 0; }
  .chain-step p { max-width: none; }
}

/* ---------- Business lines ---------- */
.lines { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.line-main {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-primary); color: #fff; border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px;
}
.line-main::after {
  content: ""; position: absolute; z-index: -1; width: 280px; height: 280px; inset-inline-end: -80px; bottom: -80px;
  border: 40px solid rgba(252, 234, 188, .08); border-radius: 50%;
}
.line-main .tag { align-self: flex-start; }
.line-main h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.line-main p { color: rgba(255, 255, 255, .82); font-size: var(--fs-lead); }
.line-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--c-sand-soft); color: var(--c-accent);
}
.line-main .line-icon { background: rgba(255, 255, 255, .12); color: var(--c-sand); margin-block-start: auto; }
.line-icon .ic { width: 28px; height: 28px; }
.line-list { display: flex; flex-direction: column; }
.line-row { display: flex; gap: 20px; padding-block: 28px; border-block-end: 1px solid var(--c-line); }
.line-row:first-child { padding-block-start: 0; }
.line-row:last-child { border-block-end: 0; }
.line-row h3 { font-size: var(--fs-h3); color: var(--c-primary); margin-block-end: 6px; }
.line-row p { color: var(--c-muted); }
.line-row .tag { margin-block-start: 12px; }
@media (max-width: 860px) { .lines { grid-template-columns: 1fr; } .line-row:first-child { padding-block-start: 28px; } }

/* ---------- Products ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 32px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid var(--c-line); background: var(--c-white);
  font-weight: 600; cursor: pointer; color: var(--c-ink); transition: all .2s;
}
.tab .ic { width: 22px; height: 22px; color: var(--c-accent); }
.tab:hover { border-color: var(--c-primary); }
.tab[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.tab[aria-selected="true"] .ic { color: var(--c-sand); }
.product-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; animation: fadeIn .4s var(--ease); }
.product-panel[hidden] { display: none; }
.product-media { aspect-ratio: 4 / 3; }
/* Product packshots: show the whole product, centered on a white backdrop */
.product-media:not(.is-placeholder) {
  isolation: isolate;
  background: var(--c-white);
  border: 1px solid var(--c-line);
}
/* Wisam shape repeated behind the product — change opacity / size to adjust */
.product-media:not(.is-placeholder)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 1; pointer-events: none;
  background: url("../img/backgrounds/Wisam%20Shape.webp") 0 0 / 70px auto space;
}
.product-media:not(.is-placeholder) img {
  position: absolute; inset: clamp(20px, 4vw, 40px);
  width: calc(100% - 2 * clamp(20px, 4vw, 40px)); height: calc(100% - 2 * clamp(20px, 4vw, 40px));
  object-fit: contain;
  /* grey shadow to the right and bottom: x offset, y offset, blur, color */
  filter: drop-shadow(12px 14px 14px rgba(0, 0, 0, .3));
}
/* Product slides: every photo fills the same 4:3 frame */
.product-slider .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.product-slider .slide.is-active { opacity: 1; }
.slide-btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, .92); color: var(--c-primary); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-s); transition: background .2s, color .2s;
}
.slide-btn:hover { background: var(--c-primary); color: #fff; }
.slide-btn .ic { width: 20px; height: 20px; }
.slide-btn.is-prev { inset-inline-start: 12px; }
.slide-btn.is-prev .ic { rotate: 180deg; }
.slide-btn.is-next { inset-inline-end: 12px; }
.slide-dots { position: absolute; bottom: 14px; inset-inline: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(42, 55, 125, .25); cursor: pointer; transition: width .25s, background .25s; }
.slide-dots button.is-active { width: 24px; background: var(--c-accent); }
.storage { display: flex; gap: 8px; margin-block-end: 14px; }
.product-info h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--c-primary); margin-block-end: 10px; }
.product-info > p { color: var(--c-muted); font-size: var(--fs-lead); }
.product-info h4 { font-size: .85rem; letter-spacing: .06em; color: var(--c-accent); margin-block: 28px 12px; text-transform: uppercase; }
.item-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.item-list li { display: flex; align-items: center; gap: 10px; padding-block: 10px; border-block-end: 1px solid var(--c-line); font-weight: 500; }
.item-list .ic { width: 20px; height: 20px; color: var(--c-accent); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .product-panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .item-list { grid-template-columns: 1fr; } .tab { padding: 0 14px; } }

/* ---------- Brands ---------- */
.brands-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.brand-stats { display: flex; gap: 16px; margin-block-end: clamp(32px, 4vw, 48px); }
.brand-stats > div {
  min-width: 170px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-line); display: flex; flex-direction: column;
}
.brand-stats strong { font-size: 2.2rem; line-height: 1.1; color: var(--c-accent); }
.brand-stats strong.word { font-size: 1.7rem; color: var(--c-primary); }
.brand-stats > div > span { color: var(--c-muted); font-size: .9rem; }
.marquees { display: flex; flex-direction: column; gap: 16px; }
.marquee {
  overflow: hidden; direction: ltr;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee.is-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-item {
  width: 200px; height: 96px; margin-inline-end: 16px; flex: none;
  display: grid; place-items: center; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-line); padding: 16px;
}
.brand-item img { max-height: 56px; width: auto; }
.brand-item.is-placeholder { border: 2px dashed rgba(97, 103, 173, .3); color: var(--c-muted); gap: 4px; font-size: .82rem; text-align: center; }
.brand-item.is-placeholder .ic { color: var(--c-accent); opacity: .7; }
.brand-item.is-placeholder span { unicode-bidi: plaintext; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* Static logo row (used while there are only a few brands) */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 230px)); justify-content: center; align-items: center; gap: clamp(20px, 3vw, 40px); }
.brand-grid .brand-item {
  width: auto; height: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0;
  animation: brandFloat 5s ease-in-out infinite; transition: transform .25s var(--ease);
}
.brand-grid .brand-item:nth-child(2n) { animation-delay: -1.5s; }
.brand-grid .brand-item:nth-child(3n) { animation-delay: -3s; }
.brand-grid .brand-item { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; }
.brand-grid .brand-item img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: none; opacity: 1; transition: transform .25s var(--ease); }
/* Light or white logos: thin dark edge so they stay readable on white (colors unchanged) */
.brand-item.is-light img { filter: drop-shadow(0 0 1px rgba(26, 34, 80, .9)) drop-shadow(0 0 1px rgba(26, 34, 80, .6)) drop-shadow(0 3px 6px rgba(26, 34, 80, .25)); }
.brand-grid .brand-item:hover img { transform: scale(1.06); }
@keyframes brandFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } .brand-grid .brand-item { height: 120px; } }
@media (max-width: 860px) { .brands-head { grid-template-columns: 1fr; gap: 0; } .brand-stats > div { min-width: 0; flex: 1; } }
@media (prefers-reduced-motion: reduce) {
  .marquees { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
  .marquee { -webkit-mask: none; mask: none; direction: inherit; }
  .marquee-track { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .brand-item { width: auto; margin: 0; }
  .brand-item[aria-hidden] { display: none; }
}

/* ---------- Who we serve ---------- */
.serve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.serve-panel { border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.serve-media { aspect-ratio: 16 / 10; border-radius: 0; }
.serve-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.serve-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-block-start: -54px;
  position: relative; box-shadow: var(--shadow-s); margin-block-end: 6px;
}
.serve-icon .ic { width: 26px; height: 26px; }
.serve-body h3 { font-size: var(--fs-h3); }
.serve-body ul { margin-block-start: auto; padding-block-start: 12px; display: flex; flex-direction: column; gap: 8px; }
.serve-body li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; }
.serve-body li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); flex: none; }

.tone-primary { background: var(--c-primary); color: #fff; }
.tone-primary p { color: rgba(255, 255, 255, .8); }
.tone-primary .serve-icon { background: var(--c-sand); color: var(--c-primary); }
.tone-primary li::before { background: var(--c-sand); }
.tone-accent { background: var(--grad-red); color: #fff; }
.tone-accent p { color: rgba(255, 255, 255, .88); }
.tone-accent .serve-icon { background: var(--c-white); color: var(--c-accent); }
.tone-accent li::before { background: var(--c-white); }
.tone-sand { background: var(--c-sand); color: var(--c-ink); }
.tone-sand h3 { color: var(--c-primary); }
.tone-sand .serve-icon { background: var(--c-primary); color: var(--c-sand); }
.tone-sand li::before { background: var(--c-accent); }
.tone-primary .media.is-placeholder, .tone-accent .media.is-placeholder {
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .06) 14px 15px), rgba(0, 0, 0, .12);
  border: 0; border-block-end: 2px dashed rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85);
}
.tone-primary .media.is-placeholder .media-icon, .tone-accent .media.is-placeholder .media-icon,
.tone-primary .media.is-placeholder figcaption span, .tone-accent .media.is-placeholder figcaption span { color: #fff; }
.tone-sand .media.is-placeholder { border: 0; border-block-end: 2px dashed rgba(97, 103, 173, .35); background-color: var(--c-sand-soft); }
.serve-media.is-placeholder { padding-block-end: 40px; }
@media (max-width: 960px) { .serve { grid-template-columns: 1fr; } .serve-media { aspect-ratio: 16 / 7; } }

/* ---------- Network ---------- */
.network { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ksa-map { width: 100%; height: auto; overflow: visible; }
.map-land { fill: rgba(255, 255, 255, .06); stroke: rgba(252, 234, 188, .5); stroke-width: 1.5; stroke-linejoin: round; }
.map-route { fill: none; stroke: var(--c-sand); stroke-width: 2; stroke-dasharray: 6 7; opacity: .7; animation: dash 30s linear infinite; }
.map-spoke { fill: none; stroke: rgba(252, 234, 188, .35); stroke-width: 1.2; stroke-dasharray: 3 5; animation: dash 40s linear infinite; }
.map-point-dot { fill: #fff; }
.map-point-ring { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.map-point { cursor: default; }
.map-point:hover .map-point-dot { fill: var(--c-sand); }
.map-wh-dot { fill: var(--c-accent); stroke: #fff; stroke-width: 2.5; }
.map-wh-ring { fill: none; stroke: var(--c-sand); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; }
.map-wh:nth-child(odd) .map-wh-ring { animation-delay: 1.3s; }
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.map-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-block-start: 16px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; }
.lg-wh { background: var(--c-accent); box-shadow: 0 0 0 2px #fff; }
.lg-office { background: #fff; }
.map-note { font-size: .78rem; color: rgba(255, 255, 255, .5); margin-block-start: 6px; }
.network-info .section-head { margin-block-end: 28px; }
.region-list { display: flex; flex-direction: column; gap: 10px; }
.region-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.region-list .ic { color: var(--c-sand); }
.region-list span { display: flex; flex-direction: column; font-size: .9rem; color: rgba(255, 255, 255, .7); line-height: 1.4; }
.region-list strong { color: #fff; font-size: 1rem; }
.network-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-block-start: 28px; padding-block-start: 24px; border-block-start: 1px solid rgba(255, 255, 255, .14); }
.network-stats > div { display: flex; flex-direction: column; }
.network-stats dd { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 700; color: var(--c-gold); line-height: 1.1; }
.network-stats dt { font-size: .88rem; color: rgba(255, 255, 255, .72); }
@media (max-width: 900px) { .network { grid-template-columns: 1fr; } .network-map { order: 2; max-width: 520px; margin-inline: auto; width: 100%; } }

/* ---------- Why Wisam ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.why-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.why-list li { display: flex; gap: 18px; padding-block: 24px; border-block-start: 1px solid var(--c-line); }
.why-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-sand-soft); color: var(--c-accent); transition: background .25s, color .25s;
}
.why-icon .ic { width: 26px; height: 26px; }
.why-list li:hover .why-icon { background: var(--c-primary); color: var(--c-sand); }
.why-list h3 { font-size: var(--fs-h3); color: var(--c-primary); margin-block-end: 6px; }
.why-list p { color: var(--c-muted); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } .why-grid .section-head { position: static; } }
@media (max-width: 600px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list li > .ic {
  width: 46px; height: 46px; padding: 11px; border-radius: 12px; flex: none;
  background: var(--c-sand-soft); color: var(--c-accent);
}
.info-list span { display: block; font-size: .82rem; color: var(--c-muted); }
.info-list a, .info-list p { font-weight: 600; color: var(--c-ink); }
.info-list a:hover { color: var(--c-accent); }
.info-list a[dir="ltr"] { unicode-bidi: isolate; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.contact-form, .form-card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-l);
  padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow);
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Home: Connect with us ---------- */
.connect-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1200px) { .connect-grid { grid-template-columns: repeat(3, 1fr); } }
.connect-item {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px;
  border-radius: var(--radius-l); background: var(--c-white); border: 1px solid var(--c-line); box-shadow: var(--shadow-s);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.connect-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-primary); }
.connect-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c-primary); color: var(--c-sand); transition: background .25s;
}
.connect-icon .ic { width: 28px; height: 28px; }
.connect-item:hover .connect-icon { background: var(--c-accent); color: #fff; }
.connect-text { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.connect-text strong { font-size: var(--fs-h3); color: var(--c-primary); }
.connect-text span { color: var(--c-muted); font-size: .95rem; }
.connect-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-accent); }
.connect-cta .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.connect-item:hover .connect-cta .ic { transform: translateX(4px); }
[dir="rtl"] .connect-item:hover .connect-cta .ic { transform: scaleX(-1) translateX(4px); }
@media (max-width: 1024px) { .connect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .connect-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages: hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: var(--grad-navy);
  padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px);
}
.page-hero .container { max-width: var(--container); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: rgba(255, 255, 255, .65); margin-block-end: 24px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--c-sand); }
.breadcrumb .ic { width: 16px; height: 16px; }
.breadcrumb [aria-current] { color: var(--c-gold); }
.page-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); line-height: 1.2; max-width: 760px; margin-block-end: 14px; }
.page-lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .8); max-width: 680px; }

/* ---------- Inner pages: form + side panel ---------- */
.form-section { padding-block-start: 0; }
.form-layout {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 3vw, 40px); align-items: start;
  margin-block-start: clamp(-48px, -4vw, -32px); position: relative;
}
.form-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); color: var(--c-primary); margin-block-end: 22px; }
.form-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-block { border-radius: var(--radius-l); padding: 24px; }
.aside-block h3 { font-size: 1.05rem; margin-block-end: 14px; }
.aside-steps { background: var(--c-primary); color: #fff; }
.aside-steps ol { display: flex; flex-direction: column; gap: 14px; }
.aside-steps li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, .85); }
.aside-steps li span {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-sand); color: var(--c-primary); font-weight: 700; font-size: .85rem;
}
.aside-direct { background: var(--c-white); border: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 10px; }
.aside-direct h3 { color: var(--c-primary); margin: 0; }
.aside-direct p { color: var(--c-muted); font-size: .92rem; }
.aside-link { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.aside-link .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--c-sand-soft); color: var(--c-accent); }
.aside-link:hover { color: var(--c-accent); }
.aside-direct .btn { margin-block-start: 6px; }
@media (max-width: 960px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}

/* Scrolling logo strip (8+ brands): same card-less look as the static row */
.marquee .brand-item {
  width: 230px; height: 150px; margin-inline-end: clamp(28px, 4vw, 56px); padding: 0;
  background: none; border: 0; box-shadow: none; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  animation: brandFloat 5s ease-in-out infinite;
}
.marquee .brand-item:nth-child(2n) { animation-delay: -1.5s; }
.marquee .brand-item:nth-child(3n) { animation-delay: -3s; }
.marquee .brand-item img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s var(--ease); }
.marquee .brand-item:hover img { transform: scale(1.06); }
.marquee .marquee-track { padding-block: 12px; }
@media (max-width: 520px) { .marquee .brand-item { width: 150px; height: 110px; } }
@media (prefers-reduced-motion: reduce) { .marquee .brand-item { width: 100%; animation: none; } }

/* ---------- About page ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-media {
  margin: 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--c-sand-soft); box-shadow: var(--shadow);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text p { font-size: var(--fs-lead); line-height: 1.9; color: var(--c-ink); }
.about-text p:first-child { font-weight: 500; color: var(--c-primary); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Product photo boxes: placeholder shows only while there is no <img> */
.product-slider .slider-empty { position: absolute; inset: 0; margin: 0; border-radius: inherit; }
.product-slider:has(img) .slider-empty { display: none; }
.slider-empty p { margin: 0; font-size: .9rem; font-weight: 500; line-height: 1.5; text-align: center; }
.slider-empty p span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); margin-block-end: 2px; }
/* without JavaScript: show only the first photo */
.product-slider > img ~ img { display: none; }

/* ---------- Legacy statement (big title + floating value words) ---------- */
.legacy {
  position: relative; isolation: isolate; overflow: hidden; background: var(--c-white);
  padding-block: clamp(48px, 7vw, 90px);
}
/* Top fades into the section above, bottom fades into the footer */
.legacy::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--c-white) 0%, transparent 80%, transparent 60%, var(--c-primary-darker) 100%);
}
/* background picture at 75% opacity — change .75 to adjust */
.legacy::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .75;
  background: url("../img/backgrounds/Backgrounds-3.webp") center / cover no-repeat;
}
.legacy-title {
  position: relative; z-index: 1; max-width: 900px; margin-inline: auto; text-align: center;
  font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.6rem); line-height: 1.45; color: var(--c-primary);
  text-shadow: 0 2px 18px rgba(255, 255, 255, .7);
}
.legacy-words { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pop-word {
  position: absolute; translate: -50% -50%; white-space: nowrap;
  font-family: var(--font-ar-head); font-weight: 700; color: var(--c-secondary);
  opacity: 0; will-change: transform, opacity;
  animation: pop-word 2s linear forwards;   /* each word lives 2 seconds */
}
.pop-word.is-still { opacity: .35; animation: none; font-size: 1.8rem; }
/* fades in, grows steadily the whole time, fades out */
@keyframes pop-word {
  0%   { opacity: 0;   transform: scale(.3); }
  25%  { opacity: .75; }
  70%  { opacity: .6; }
  100% { opacity: 0;   transform: scale(1.0); }
}

/* ---------- Company profile viewer (about page) ---------- */
/* Wide screens: two pages side by side like an open book; phones: one page at a time. */
/* background picture, fading in from the section above at the top and into the footer at the bottom (change 160px to adjust) */
.section-profile {
  background:
    linear-gradient(to bottom, var(--c-surface) 0, transparent 160px, transparent calc(100% - 160px), var(--c-primary-darker) 100%),
    #DCDDE6 url("../img/backgrounds/Backgrounds-3.webp") center / cover no-repeat;
}
.book {
  --book-shadow: 0 26px 40px -16px rgba(10, 15, 40, .55), 0 6px 14px rgba(10, 15, 40, .18);
  /* thin page edges peeking out, like the stack of pages in a real book */
  --book-edges-left:  -3px 1px 0 -1px #fafafa, -4px 2px 0 -1px #cfd0d6, -7px 3px 0 -2px #fafafa, -8px 4px 0 -2px #c4c5cc;
  --book-edges-right:  3px 1px 0 -1px #fafafa,  4px 2px 0 -1px #cfd0d6,  7px 3px 0 -2px #fafafa,  8px 4px 0 -2px #c4c5cc;
  --page-h: min(72vh, 680px); display: grid; justify-items: center; gap: 16px; outline: none; }
.book-stage {
  position: relative; display: flex; justify-content: center; direction: rtl;   /* the profile reads right to left */
  width: min(100% - 124px, calc(var(--page-h) * 9 / 16)); aspect-ratio: 9 / 16;   /* 124px = room for the side arrows */
  background: var(--c-surface); box-shadow: var(--book-shadow), var(--book-edges-left);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.book.is-spread .book-stage { width: min(100% - 124px, calc(var(--page-h) * 9 / 8)); aspect-ratio: 9 / 8; background: transparent; box-shadow: none; }
.book-page { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.book-page.is-fade { animation: fadeIn .35s var(--ease); }
.book.is-spread .book-page { width: 50%; box-shadow: var(--book-shadow), var(--book-edges-left), var(--book-edges-right); }
.book.is-spread .book-page + .book-page,
.book.is-spread .book-page:first-child:has(+ .book-page) { box-shadow: none; }
.book.is-spread .book-stage:has(.book-page + .book-page) { box-shadow: var(--book-shadow), var(--book-edges-left), var(--book-edges-right); }
/* page being turned, and the page still lying under it */
.book-sheet, .book-under { position: absolute; top: 0; height: 100%; object-fit: contain; background: #fff; pointer-events: none; }
.book-under { z-index: 2; }
.book-sheet { z-index: 3; box-shadow: 0 10px 30px rgba(10, 15, 40, .35); backface-visibility: hidden; will-change: transform; }
/* single page: shade along the spine on its right edge */
.book-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(270deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .06) 3%, rgba(0, 0, 0, 0) 7%);
}
.book.is-spread .book-stage:not(:has(.book-page + .book-page))::after { display: none; }
/* fold line in the middle of an open spread */
/* open book: the pages curve down into the spine in the middle, and catch a little light on the outer edges */
.book.is-spread .book-stage:has(.book-page + .book-page)::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 41%, rgba(0, 0, 0, .07) 46%, rgba(0, 0, 0, .2) 49.2%, rgba(0, 0, 0, .32) 50%,
                           rgba(0, 0, 0, .2) 50.8%, rgba(0, 0, 0, .07) 54%, rgba(0, 0, 0, 0) 59%),
    linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 3%, rgba(0, 0, 0, 0) 97%, rgba(0, 0, 0, .1));
}
/* arrows on both sides of the book */
.book-view { position: relative; justify-self: stretch; display: flex; align-items: center; justify-content: center; gap: 18px; }
.book-view .book-btn { flex: none; }
.book-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-primary); cursor: pointer; transition: background .2s, color .2s;
}
.book-btn:hover:not(:disabled) { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.book-btn:disabled { opacity: .35; cursor: default; }
.book-btn .ic { width: 20px; height: 20px; }
.book-btn.is-prev .ic { rotate: 180deg; }
/* phones: no room beside the page, so the arrows sit on its edges */
@media (max-width: 759px) {
  .book-stage { width: min(100%, calc(var(--page-h) * 9 / 16)); }
  .book-view .book-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-s); }
  .book-view .book-btn.is-prev { inset-inline-start: 6px; }
  .book-view .book-btn.is-next { inset-inline-end: 6px; }
  .book-view .book-btn:disabled { opacity: 0; pointer-events: none; }
}
.book-count { min-width: 9em; text-align: center; font-weight: 600; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.book-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* full screen view */
.book.is-full {
  position: fixed; inset: 0; z-index: 100; align-content: center; padding: 16px;
  --page-h: calc(100svh - 150px); background: rgba(14, 20, 50, .96);
}
.book.is-full .book-count { color: #fff; }
html.no-scroll { overflow: hidden; }
