/* Union Bricks – site styles. Logical properties keep one stylesheet for RTL (ar) and LTR (en). */
:root {
  --bg: #0b1520; --bg-2: #0f1d2b; --navy: #27526e; --navy-2: #1c3b52;
  --ink: #eef2f5; --muted: #a7b6c3; --line: rgba(255, 255, 255, .13);
  --accent: #e3a548; --accent-ink: #13202c; --concrete: #c9c5bd;
  --panel: rgba(10, 19, 29, .74); --solid: rgba(10, 19, 29, .94);
  --r: 18px; --top: 70px;
  --font: "Segoe UI", "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, "Geeza Pro", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.75 var(--font); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #f3c47a; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; position: relative; }
.narrow { width: min(820px, 100% - 40px); }
.ico { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em; }

/* ---------- 3D layer */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; touch-action: pan-y; }
.scene-fallback { position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(39, 82, 110, .55), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .05) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 94px, rgba(255, 255, 255, .04) 94px 96px),
    var(--bg); }
main, .footer, .topbar { position: relative; z-index: 2; }

/* ---------- top bar (white so the original logo keeps its colours) */
.topbar { position: fixed; inset-inline: 0; top: 0; height: var(--top); z-index: 50; display: flex; align-items: center; gap: 22px;
  padding-inline: clamp(14px, 3vw, 34px); background: rgba(255, 255, 255, .95); color: var(--navy-2);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .25); backdrop-filter: saturate(1.3) blur(8px); }
.brand img { height: 60px; width: auto; }
.mainnav { margin-inline-start: auto; }
.mainnav ul { display: flex; gap: clamp(10px, 1.6vw, 24px); }
.mainnav a, .lang { color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mainnav a:hover, .lang:hover { color: var(--navy); text-decoration: underline; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang { border: 1px solid rgba(28, 59, 82, .3); padding: 4px 10px; border-radius: 999px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 9px; cursor: pointer; }
.menu-btn span { display: block; height: 3px; margin: 4px 0; background: var(--navy-2); border-radius: 2px; }
.mobile-nav { position: fixed; top: var(--top); inset-inline: 0; z-index: 49; background: #fff; padding: 10px 20px 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.mobile-nav a { display: block; padding: 10px 4px; color: var(--navy-2); font-weight: 700; text-decoration: none; border-bottom: 1px solid #e6e9ec; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: .45em; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  padding: .72em 1.35em; border-radius: 999px; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: #f1bb63; color: var(--accent-ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.topbar .btn-sm { color: var(--accent-ink); }

/* ---------- sections and panels */
.section { position: relative; padding-block: clamp(70px, 12vh, 140px); }
.panel { max-width: 560px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .04em; font-size: .95rem; }
.lead { font-size: 1.12rem; color: #dbe4ea; }
.sub { color: var(--muted); max-width: 760px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.mt { margin-top: 2em; }

.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--top) + 40px); }
.panel-hero { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: 600px; }
.panel-hero p, .panel-hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.h1-name { display: block; }
.h1-slogan { display: block; font-size: .5em; font-weight: 600; color: var(--concrete); margin-top: .25em; }
.scroll-hint { position: absolute; bottom: 26px; inset-inline: 0; text-align: center; color: var(--muted); font-size: .9rem; }
.scroll-hint span { display: block; width: 2px; height: 42px; margin: 0 auto 10px; background: linear-gradient(var(--accent), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.about, .pave { display: flex; }
.about > .wrap, .pave > .wrap { flex: 1; }
.about { min-height: 150vh; }
.about .panel { position: sticky; top: calc(var(--top) + 6vh); }
.values li { position: relative; padding-inline-start: 26px; margin-bottom: .7em; color: #dbe4ea; }
.values li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 12px; height: 8px; background: var(--accent); border-radius: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 70vh; }
.stats li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; backdrop-filter: blur(8px); }
.stats strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--accent); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .95rem; }
.stats-small { grid-template-columns: repeat(2, 1fr); margin-top: 1.2em; }
.stats-small li { background: rgba(255, 255, 255, .05); }

.sec-head { margin-bottom: 30vh; }
.product-step { min-height: 92vh; display: flex; align-items: center; }
.product-step .num { color: var(--accent); font-weight: 800; font-size: 1.1rem; letter-spacing: .1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: .4em 0 1em; }
.chips li { border: 1px solid var(--line); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 3px 12px; font-size: .9rem; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pave { min-height: 160vh; }
.pave .panel { position: sticky; top: calc(var(--top) + 8vh); }

.solid { background: var(--solid); border-top: 1px solid var(--line); }
.spec { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.spec > summary, .faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 1.1rem; list-style: none; position: relative; padding-inline-end: 48px; }
.spec > summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.spec > summary::after, .faq summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; }
details[open] > summary::after { content: "–"; }
.spec > p, .spec > .table-wrap { margin: 0 20px 18px; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
caption { text-align: start; padding: 12px 14px; color: var(--muted); font-size: .9rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
thead th { background: var(--navy-2); color: #fff; white-space: nowrap; }
tbody th { font-weight: 600; color: #dbe4ea; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
td { font-variant-numeric: tabular-nums; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-block: 1.2em; }
.card { display: block; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--accent); color: var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card h3 { font-size: 1.08rem; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: rgba(39, 82, 110, .45); border: 1px solid rgba(255, 255, 255, .15); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.all-projects { margin-top: 1em; }
.all-projects table { min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details p { padding: 0 20px 16px; color: #dbe4ea; margin: 0; }

/* ---------- quote and contact */
.quote, .contact { background: var(--solid); }
.quote .panel { max-width: 860px; margin-inline: auto; background: rgba(255, 255, 255, .04); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 1em; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; padding: 10px 12px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form select option { color: #111; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-status { color: var(--accent); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 1.2em; }
.contact .card > .ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 10px; }
.contact address { font-style: normal; color: #dbe4ea; margin-bottom: .6em; }
.contact .card p { margin-bottom: .5em; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.soc { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line); }
.soc:hover { background: var(--accent); color: var(--accent-ink); }
.soc .ico { width: 20px; height: 20px; }

/* ---------- footer, floating buttons */
.footer { background: #070e15; border-top: 1px solid var(--line); padding: 56px 0 24px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.logo-card { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 14px; margin-bottom: 14px; }
.logo-card img { height: 56px; width: auto; }
.slogan { color: var(--concrete); font-weight: 700; }
.f-h { font-size: 1.05rem; color: var(--ink); margin-top: 0; }
.f-list li { margin-bottom: 6px; }
.f-list a { color: var(--muted); text-decoration: none; }
.f-list a:hover { color: var(--accent); }
.copy { text-align: center; margin: 36px 0 0; font-size: .9rem; }
.wa-float { position: fixed; z-index: 60; bottom: 20px; inset-inline-end: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.wa-float .ico { width: 32px; height: 32px; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.motion-toggle { position: fixed; z-index: 60; bottom: 26px; inset-inline-start: 20px; background: rgba(10, 19, 29, .8); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: 600 .85rem var(--font); cursor: pointer; }
.no-js .motion-toggle { display: none; }

/* ---------- product pages */
.page-product main { padding-top: var(--top); }
.page-product .scene-fallback { position: absolute; z-index: 0; border-radius: var(--r); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: rgba(255, 255, 255, .3); }
.crumbs a { color: var(--muted); }
.product-hero { padding-top: 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.viewer { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #234862, #0b1520 70%); border: 1px solid var(--line); }
.viewer #scene { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: none; }
.viewer #scene:active { cursor: grabbing; }
.viewer figcaption { position: absolute; z-index: 2; bottom: 12px; inset-inline: 0; text-align: center; color: var(--muted); font-size: .85rem; pointer-events: none; }
.page-product .panel { max-width: none; }
.page-404 main { min-height: 70vh; padding-top: calc(var(--top) + 60px); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .mainnav { display: none; }
  .menu-btn { display: block; }
  .top-actions { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  :root { --top: 62px; }
  body { font-size: 16px; }
  .brand img { height: 40px; }
  .top-actions .btn-sm { display: none; }
  .panel { max-width: none; background: rgba(10, 19, 29, .84); }
  .hero .wrap { margin-top: 34vh; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 60vh; }
  .product-step { align-items: flex-end; padding-bottom: 6vh; }
  .form, .contact-grid, .footer-grid, .two-col { grid-template-columns: 1fr; }
  .viewer { order: -1; }
  .motion-toggle { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  #scene, .scene-fallback, .topbar, .wa-float, .motion-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .solid, .quote, .contact, .panel { background: none; border: 0; box-shadow: none; }
}
bdi[dir="ltr"] { white-space: nowrap; }
