/* Kroobia Renewed — B2B site styles. Built on the Kroobia Design System tokens. */
@import url('tokens/colors.css');
@import url('tokens/typography.css');
@import url('tokens/spacing.css');
@import url('tokens/base.css');

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('fonts/PlusJakartaSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('fonts/PlusJakartaSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('fonts/PlusJakartaSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('fonts/PlusJakartaSans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2'); }

/* Arabic: Cairo first, Jakarta for Latin fallback */
html[lang="ar"] {
  --font-display: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --display1-spacing: 0; --display2-spacing: 0; --display3-spacing: 0;
  --title1-spacing: 0; --title2-spacing: 0; --title3-spacing: 0; --title4-spacing: 0;
  --label2-spacing: 0;
}
html[lang="ar"] .kr-display1, html[lang="ar"] .kr-display2 { line-height: 1.25; }

/* The site is designed light-only. Telling the browser this stops Android/Samsung
   "force dark" from inverting the brand colours and the product photos. */
:root { color-scheme: only light; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }
@media (max-width: 600px) { :root { --container-pad: 16px; } }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.01em; }
.muted { color: var(--fg-muted); }

/* ---------- Icons ---------- */
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .ic.flip { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-control);
  font-family: var(--font-body); font-size: var(--label1-size); font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-sm { height: 36px; padding: 0 14px; }
.btn-primary { background: var(--bg-primary); color: var(--fg-inverse); }
.btn-primary:hover { background: var(--bg-primary-hover); }
.btn-tertiary { background: #fff; color: var(--fg); border-color: var(--bg-line-heavy); }
.btn-tertiary:hover { background: var(--bg-secondary); }
.btn-ghost { background: transparent; color: var(--fg-primary); }
.btn-ghost:hover { background: var(--bg-primary-wash); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--bg-line);
}
.site-header .bar { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: var(--space-4); }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-pill); color: var(--fg); font-weight: 600; font-size: 0.9375rem;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.nav a:hover { background: var(--bg-secondary); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--bg-primary-wash); color: var(--fg-primary); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: auto; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px 0 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--bg-line); background: var(--bg-alternate); color: var(--neutral-700);
  font-size: 0.875rem; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
html[dir="rtl"] .lang-toggle { padding: 0 11px 0 14px; }
.lang-toggle .ic { width: 17px; height: 17px; color: var(--green-600); }
.lang-toggle:hover { background: var(--bg-primary-wash); border-color: var(--green-200); color: var(--fg-primary); }
.lang-toggle:focus-visible { outline: none; box-shadow: var(--ring-focus); }
html[lang="en"] .lang-toggle span { font-family: 'Cairo', sans-serif; font-weight: 700; }
html[lang="ar"] .lang-toggle span { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Mobile nav: tabs row under the bar */
@media (max-width: 900px) {
  .site-header .bar { height: 62px; gap: var(--space-3); }
  .brand img { height: 34px; }
  .nav {
    order: 3; margin: 0; width: 100%; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 10px; gap: 6px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex-shrink: 0; font-size: 0.875rem; padding: 7px 12px; background: var(--bg-alternate); }
  .site-header .bar { flex-wrap: wrap; height: auto; padding-top: 10px; }
  .header-actions .btn-wa-label { display: none; }
}

/* ---------- Reveal-on-load motion ---------- */
.rise { opacity: 0; transform: translateY(14px); animation: rise var(--duration-slow) var(--ease-out) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Opening screen (home hero) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--bg-line);
  min-height: calc(100svh - 72px);
  display: flex; flex-direction: column;
}
.hero::before { /* soft lime glow */
  content: ''; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  inset-inline-end: -260px; top: -320px;
  background: radial-gradient(closest-side, rgba(185, 194, 89, 0.28), rgba(112, 179, 108, 0.10) 55%, transparent 72%);
  pointer-events: none;
}
.hero-mark { /* oversized leaf watermark */
  position: absolute; width: 520px; opacity: 0.07; inset-inline-start: -140px; bottom: -120px; pointer-events: none;
}
html[dir="rtl"] .hero-mark { transform: scaleX(-1); }
.hero-grid {
  position: relative; flex: 1;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-12); align-items: center;
  padding-block: var(--space-12) var(--space-8);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--bg-line); box-shadow: var(--shadow-xs);
  font-size: 0.8125rem; font-weight: 700; color: var(--green-700);
}
html[dir="rtl"] .hero-eyebrow { padding: 6px 8px 6px 14px; }
.hero-eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient-leaf); display: grid; place-items: center; color: #fff; }
.hero-eyebrow .dot .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em;
  margin: var(--space-5) 0 0; color: var(--fg);
}
html[lang="ar"] .hero h1 { line-height: 1.25; letter-spacing: 0; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.hero h1 .line { display: block; }
.hero-lead { margin: var(--space-6) 0 0; max-width: 34rem; font-size: 1.1875rem; line-height: 1.6; color: var(--neutral-600); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-ctas .btn-tertiary .ic { color: var(--green-600); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--space-8);
  margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(21, 32, 26, 0.10);
}
.hero-stats .num { font-family: var(--font-mono); font-weight: 500; font-size: 1.75rem; color: var(--green-700); letter-spacing: -0.02em; line-height: 1.1; }
.hero-stats .lbl { font-size: 0.8125rem; font-weight: 600; color: var(--fg-muted); margin-top: 4px; }

/* Laptop showcase */
.showcase { position: relative; aspect-ratio: 1 / 0.92; max-width: 560px; margin-inline: auto; width: 100%; }
.showcase .tile {
  position: absolute; background: #fff; border-radius: var(--radius-2xl); border: 1px solid var(--bg-line);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.showcase .tile img { width: 100%; height: 100%; object-fit: contain; }
.showcase .t-main { width: 74%; aspect-ratio: 1; inset-inline-start: 13%; top: 10%; z-index: 3; padding: 4%; }
.showcase .t-back1 { width: 44%; aspect-ratio: 1; inset-inline-start: 0; top: 0; z-index: 1; transform: rotate(-7deg); padding: 3%; opacity: 0.96; }
.showcase .t-back2 { width: 44%; aspect-ratio: 1; inset-inline-end: 0; bottom: 2%; z-index: 2; transform: rotate(6deg); padding: 3%; }
.showcase .t-main::after { /* subtle leaf rim */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(112, 179, 108, 0.25);
}
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--bg-line);
  padding: 10px 14px 10px 10px; font-size: 0.8125rem; line-height: 1.3;
}
html[dir="rtl"] .chip { padding: 10px 10px 10px 14px; }
.chip b { display: block; font-size: 0.875rem; color: var(--fg); }
.chip span { color: var(--fg-muted); }
.chip .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-positive-wash); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.chip .ico .ic { width: 19px; height: 19px; }
.chip-1 { inset-inline-start: -4%; bottom: 16%; }
.chip-2 { inset-inline-end: -2%; top: 6%; }

/* Trust strip at the bottom of the opening screen */
.trust-strip { position: relative; border-top: 1px solid rgba(21, 32, 26, 0.08); background: rgba(255, 255, 255, 0.55); }
.trust-strip .wrap { display: flex; align-items: center; gap: var(--space-8); padding-block: var(--space-5); flex-wrap: wrap; }
.trust-strip .lbl { font-size: var(--label2-size); font-weight: 700; letter-spacing: var(--label2-spacing); text-transform: uppercase; color: var(--fg-muted); }
.clients { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.clients li {
  height: 52px; min-width: 132px; padding: 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
}
.clients img { height: 28px; width: auto; }
.clients .wordmark { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1rem; color: var(--neutral-700); letter-spacing: -0.01em; line-height: 1.1; }
.clients .wordmark small { display: block; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); padding-block: var(--space-10) var(--space-8); }
  .showcase { max-width: 440px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: var(--space-6) var(--space-10); }
}
@media (max-width: 480px) {
  .hero-lead { font-size: 1.0625rem; }
  .hero-ctas .btn { width: 100%; }
  .chip { font-size: 0.75rem; padding: 8px 12px 8px 8px; }
  .chip .ico { width: 30px; height: 30px; }
  .trust-strip .wrap { gap: var(--space-3); }
  .clients { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .clients li { min-width: 0; }
}

/* ---------- Trade-in band (home) ---------- */
.trade { padding-block: var(--space-20); }
.trade-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-10); align-items: center;
  background: var(--gradient-leaf-soft); border: 1px solid var(--bg-line); border-radius: var(--radius-2xl);
  padding: var(--space-12);
}
.trade h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1; letter-spacing: -0.022em; margin: var(--space-3) 0 0;
}
html[lang="ar"] .trade h2 { line-height: 1.35; letter-spacing: 0; }
.trade p { margin: var(--space-4) 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--neutral-600); max-width: 32rem; }
.trade-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.trade-ctas .btn-tertiary .ic { color: var(--green-600); }
.trade-visual { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); }
.trade-visual figure { margin: 0; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-4); box-shadow: var(--shadow-card); text-align: center; }
.trade-visual img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.trade-visual figcaption { margin-top: var(--space-2); font-size: var(--caption-size); font-weight: 700; color: var(--fg-muted); }
.trade-visual .old img { filter: grayscale(1); mix-blend-mode: multiply; opacity: 0.7; }
.trade-visual .new { border-color: var(--green-300); box-shadow: var(--shadow-lg); transform: scale(1.06); }
.trade-visual .new figcaption { color: var(--green-700); }
.trade-visual .swap { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-leaf); color: #fff; box-shadow: var(--shadow-md); }
.trade-visual .swap .ic { width: 22px; height: 22px; stroke-width: 2; }
@media (max-width: 900px) {
  .trade { padding-block: var(--space-12); }
  .trade-card { grid-template-columns: 1fr; padding: var(--space-8) var(--space-5); }
}
@media (max-width: 480px) { .trade-ctas .btn { width: 100%; } }

/* ---------- Workshop banner (home) ---------- */
.banner { padding-top: var(--space-20); }
.banner-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--bg-line);
  min-height: 520px; display: flex; align-items: center; background: var(--gradient-hero); box-shadow: var(--shadow-card);
}
.banner-media { position: absolute; inset: 0; }
.banner-photo { width: 100%; height: 100%; object-fit: cover; }
.banner-frame.has-photo .banner-collage { display: none; }
/* Photo mode: soft white wash on the physical left, where the copy sits (the photo keeps its left third calm) */
.banner-frame.has-photo .banner-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 34%, rgba(255,255,255,0) 62%);
}
.banner-collage { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 50%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 36px; }
.banner-collage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--bg-line); padding: 6%; box-shadow: var(--shadow-md); }
.banner-collage img:first-child { grid-row: span 2; }
.banner-copy { position: relative; z-index: 1; width: min(500px, 42%); margin-inline-start: var(--space-12); padding-block: var(--space-12); }
/* With the real photo, the copy sits on the physical left in both languages (the photo's calm third) */
.banner-frame.has-photo { direction: ltr; }
.banner-frame.has-photo .banner-copy { margin-left: var(--space-12); margin-right: 0; }
html[dir="rtl"] .banner-frame.has-photo .banner-copy { direction: rtl; }
/* Arabic sits right-aligned inside the copy column, so it reaches further into
   the photo — widen the white wash a little in RTL to keep it readable. */
html[dir="rtl"] .banner-frame.has-photo .banner-media::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 42%, rgba(255,255,255,0) 72%);
}
.banner h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.022em; margin: var(--space-3) 0 0; }
html[lang="ar"] .banner h2 { line-height: 1.4; letter-spacing: 0; }
.banner p { margin: var(--space-4) 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--neutral-600); }
.banner-chips { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: flex; flex-wrap: wrap; gap: 8px; }
.banner-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--bg-line); font-size: 0.8125rem; font-weight: 600; box-shadow: var(--shadow-xs); }
.banner-chips .ic { width: 16px; height: 16px; color: var(--green-600); }
@media (max-width: 900px) {
  .banner { padding-top: var(--space-12); }
  .banner-frame { flex-direction: column; align-items: stretch; min-height: 0; }
  .banner-media { position: relative; height: 260px; }
  .banner-collage { width: 100%; padding: 16px; gap: 10px; }
  .banner-frame.has-photo .banner-media::after { background: linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%); }
  .banner-copy { width: auto; margin: 0; padding: var(--space-6) var(--space-5) var(--space-8); }
  .banner-copy .btn { width: 100%; }
}

/* ---------- Inner pages: shared ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero { background: var(--gradient-hero); border-bottom: 1px solid var(--bg-line); padding-block: var(--space-16) var(--space-12); position: relative; overflow: hidden; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.028em; margin: var(--space-4) 0 0; max-width: 16ch; }
html[lang="ar"] .page-hero h1 { line-height: 1.3; letter-spacing: 0; max-width: 18ch; }
.page-hero .lead { margin: var(--space-5) 0 0; max-width: 40rem; font-size: 1.1875rem; line-height: 1.65; color: var(--neutral-600); }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-10) 0 0; }
.facts > div { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: 12px 18px; box-shadow: var(--shadow-xs); }
.facts dt { font-size: var(--label2-size); font-weight: 700; letter-spacing: var(--label2-spacing); text-transform: uppercase; color: var(--fg-muted); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1rem; }

.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--bg-line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 7px 14px; border-radius: var(--radius-pill); font-size: 0.875rem; font-weight: 600; color: var(--neutral-700); border: 1px solid var(--bg-line); background: #fff; }
.subnav a:hover { text-decoration: none; border-color: var(--green-300); color: var(--fg-primary); }
@media (max-width: 900px) { .subnav { position: static; } }

.section { padding-block: var(--space-20); scroll-margin-top: 130px; }
.section.tinted { background: var(--bg-alternate); border-block: 1px solid var(--bg-line); }
.section-head { max-width: 44rem; margin-bottom: var(--space-10); }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -0.022em; margin: var(--space-3) 0 0; }
html[lang="ar"] .section-head h2 { line-height: 1.4; letter-spacing: 0; }
.section-head p { margin: var(--space-4) 0 0; font-size: 1.0625rem; line-height: 1.7; color: var(--neutral-600); }
@media (max-width: 700px) { .section { padding-block: var(--space-12); } .section-head { margin-bottom: var(--space-8); } }

/* Numbers */
.numbers { padding-block: var(--space-12); }
.num-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); overflow: hidden; background: #fff; }
.num-grid > div { padding: var(--space-6) var(--space-5); border-inline-end: 1px solid var(--bg-line); }
.num-grid > div:last-child { border-inline-end: 0; }
.num-grid b { display: block; font-size: 1.875rem; font-weight: 500; color: var(--green-700); letter-spacing: -0.02em; line-height: 1.1; text-align: start; unicode-bidi: plaintext; }
.num-grid span { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--fg-muted); line-height: 1.35; }
@media (max-width: 1000px) {
  .num-grid { grid-template-columns: repeat(3, 1fr); }
  .num-grid > div:nth-child(3n) { border-inline-end: 0; }
  .num-grid > div:nth-child(-n+3) { border-bottom: 1px solid var(--bg-line); }
}
@media (max-width: 560px) {
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .num-grid > div { border-inline-end: 1px solid var(--bg-line) !important; border-bottom: 1px solid var(--bg-line); }
  .num-grid > div:nth-child(2n) { border-inline-end: 0 !important; }
  .num-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .num-grid b { font-size: 1.5rem; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.svc-card { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-card); display: flex; flex-direction: column; align-items: flex-start; }
.svc-ico, .f-ico { width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--bg-primary-wash); color: var(--green-700); }
.svc-ico .ic, .f-ico .ic { width: 26px; height: 26px; }
.svc-card h3 { font-size: var(--title2-size); font-weight: 700; margin: var(--space-5) 0 0; letter-spacing: -0.014em; }
.svc-card > p { margin: var(--space-3) 0 0; color: var(--neutral-600); line-height: 1.65; }
.ticks { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks .ic { width: 20px; height: 20px; color: var(--green-600); margin-top: 2px; stroke-width: 2.2; }
.svc-card .btn { margin-top: auto; }
@media (max-width: 800px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { padding: var(--space-6); } .svc-card .btn { width: 100%; } }

/* Quality steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); }
.steps .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-leaf); color: #fff; font-size: 0.875rem; }
.steps h3 { font-size: 1.0625rem; font-weight: 700; margin: var(--space-4) 0 0; }
.steps p { margin: var(--space-2) 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--fg-muted); }
.groups { margin-top: var(--space-6); background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-8); }
.groups h3 { margin: 0 0 var(--space-5); font-size: 1.0625rem; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.groups h3 .mono { font-size: 1.75rem; color: var(--green-700); }
.groups ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px var(--space-6); }
.groups li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; }
.groups .ic { width: 20px; height: 20px; color: var(--green-600); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li:last-child { grid-column: span 2; } }
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; } .steps li:last-child { grid-column: auto; }
  .groups { padding: var(--space-5); } .groups ul { grid-template-columns: 1fr 1fr; }
}

/* Warranty features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.feature { border: 1px solid var(--bg-line); border-radius: var(--radius-lg); padding: var(--space-6); background: #fff; }
.feature h3 { font-size: 1.125rem; font-weight: 700; margin: var(--space-4) 0 0; }
.feature p { margin: var(--space-2) 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--fg-muted); }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* SLA */
.sla-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.sla-card { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-8); }
.sla-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--space-3); font-size: 1.125rem; }
.sla-card h3 .ic { color: var(--green-600); }
.sla-card dl { margin: 0; }
.sla-card dl > div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 14px; border-top: 1px solid var(--bg-line); }
.sla-card dt { color: var(--neutral-600); }
.sla-card dd { margin: 0; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.note { display: flex; align-items: center; gap: 10px; margin: var(--space-6) 0 0; font-size: 0.9375rem; color: var(--fg-muted); }
.note .ic { color: var(--green-600); }
@media (max-width: 800px) { .sla-grid { grid-template-columns: 1fr; } .sla-card { padding: var(--space-5); } }

/* Data security */
.security { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-12); align-items: start; }
.security .section-head { margin-bottom: 0; }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.sec-list li { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-5); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); background: #fff; font-weight: 600; line-height: 1.45; }
.sec-list .ic { width: 22px; height: 22px; color: var(--green-600); margin-top: 1px; }
@media (max-width: 900px) { .security { grid-template-columns: 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .sec-list { grid-template-columns: 1fr; } }

/* Sustainability + CTA */
.eco-wrap { padding-top: 0; }
.eco { display: flex; gap: var(--space-5); align-items: center; padding: var(--space-8); border-radius: var(--radius-xl); background: var(--gradient-leaf-soft); border: 1px solid var(--bg-line); }
.eco h3 { margin: 0; font-size: 1.25rem; }
.eco p { margin: 6px 0 0; color: var(--neutral-600); line-height: 1.6; }
@media (max-width: 600px) { .eco { flex-direction: column; align-items: flex-start; padding: var(--space-6); } }
.cta-band { background: var(--gradient-hero); border-top: 1px solid var(--bg-line); text-align: center; padding-block: var(--space-20); }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.022em; margin: 0; }
html[lang="ar"] .cta-band h2 { letter-spacing: 0; }
.cta-band p { margin: var(--space-3) auto 0; max-width: 34rem; color: var(--neutral-600); font-size: 1.0625rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
@media (max-width: 480px) { .cta-actions .btn { width: 100%; } }

/* ---------- Catalog ---------- */
.page-hero.compact { padding-block: var(--space-12) var(--space-10); }
.cat-hero { display: grid; grid-template-columns: 1fr auto; gap: var(--space-10); align-items: end; }
.cat-hero h1 { max-width: 20ch; }
.how { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.how li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.875rem; white-space: nowrap; }
.how .mono { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-leaf); color: #fff; font-size: 0.75rem; }
@media (max-width: 1000px) { .cat-hero { grid-template-columns: 1fr; gap: var(--space-6); } .how { flex-wrap: wrap; } }

.catalog { padding-block: var(--space-8) var(--space-20); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); background: #fff; }
.search:focus-within { border-color: var(--green-500); box-shadow: var(--ring-focus); }
.search .ic { color: var(--fg-muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 0.9375rem; background: transparent; color: var(--fg); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--bg-secondary); border: 1px solid var(--bg-line); }
.seg button { height: 38px; padding: 0 14px; border: 0; border-radius: var(--radius-pill); background: transparent; font-weight: 600; font-size: 0.875rem; color: var(--neutral-600); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--fg-primary); box-shadow: var(--shadow-sm); }
.seg button:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.count { margin: 0 0 0 auto; font-weight: 600; font-size: 0.875rem; color: var(--fg-muted); }
html[dir="rtl"] .count { margin: 0 auto 0 0; }
@media (max-width: 700px) { .count { width: 100%; margin: 0; } .filters { width: 100%; } .seg { flex: 1 1 100%; } .seg button { flex: 1; padding: 0 8px; } }

.lap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.lap-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.lap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lap-media { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 0; border: 0; border-bottom: 1px solid var(--bg-line); background: #fff; cursor: zoom-in; overflow: hidden; flex-shrink: 0; }
.lap-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.lap-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--bg-primary-wash); color: var(--green-700); font-size: 0.75rem; font-weight: 700; border: 1px solid var(--green-100); }
.badge.alt { background: var(--accent-lime-wash); color: var(--lime-600); border-color: var(--lime-200); }
.lap-body { display: flex; flex-direction: column; gap: 8px; padding: var(--space-4) var(--space-4) var(--space-5); flex: 1; }
.lap-body h3 { margin: 0; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.lap-body h3 button { all: unset; cursor: pointer; }
.lap-body h3 button:hover { color: var(--fg-primary); }
.lap-body h3 button:focus-visible { box-shadow: var(--ring-focus); border-radius: 4px; }
.lap-specs { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; flex: 1; align-content: start; }
.lap-specs li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--neutral-600); }
.lap-specs .ic { width: 15px; height: 15px; color: var(--green-600); flex-shrink: 0; }
html[dir="rtl"] .lap-specs { text-align: left; }
.lap-actions { display: flex; gap: 8px; margin-top: var(--space-3); }
.lap-actions .btn:first-child { flex: 1; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon .ic { color: var(--green-600); }
.btn-added { background: var(--bg-primary-wash); color: var(--green-700); border-color: var(--green-200); }
.btn-added:hover { background: var(--green-100); }
.empty { text-align: center; padding: var(--space-16) var(--space-4); color: var(--fg-muted); max-width: 30rem; margin: 0 auto; }

/* Sticky quote bar */
.quote-bar { position: sticky; bottom: 0; z-index: 55; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--bg-line); box-shadow: 0 -8px 24px rgba(21,32,26,0.08); }
.quote-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 12px; }
.qb-info { display: flex; align-items: center; gap: 12px; }
.qb-info b { display: block; font-size: 0.9375rem; }
.qb-info span:not(.qb-ico) { font-size: 0.8125rem; color: var(--fg-muted); }
.qb-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-primary-wash); color: var(--green-700); }
body.has-quote .fab-wa { bottom: 84px; }

/* Dialogs */
dialog { padding: 0; border: 0; color: var(--fg); background: transparent; }
dialog::backdrop { background: var(--bg-overlay); }
.modal { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.modal-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-pop); max-height: calc(100vh - 32px); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bg-line); background: rgba(255,255,255,0.92); display: grid; place-items: center; cursor: pointer; color: var(--fg); }
.modal-close:hover { background: var(--bg-secondary); }
.d-gallery { background: #fff; border-inline-end: 1px solid var(--bg-line); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.d-main { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.d-main img { width: 100%; height: 100%; object-fit: contain; }
.d-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.d-thumbs button { width: 64px; height: 56px; padding: 4px; border-radius: var(--radius-md); border: 1.5px solid var(--bg-line); background: #fff; cursor: pointer; }
.d-thumbs button[aria-pressed="true"] { border-color: var(--green-500); }
.d-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.d-info { padding: var(--space-8) var(--space-8) var(--space-6); overflow-y: auto; }
.d-info h2 { margin: 6px 0 0; font-size: var(--title1-size); font-weight: 800; letter-spacing: -0.018em; }
.d-price { margin: 6px 0 0; font-weight: 600; color: var(--fg-muted); font-size: 0.9375rem; }
.d-specs { margin: var(--space-5) 0 0; border: 1px solid var(--bg-line); border-radius: var(--radius-lg); overflow: hidden; }
.d-specs > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: 11px 14px; border-top: 1px solid var(--bg-line); font-size: 0.9375rem; }
.d-specs > div:first-child { border-top: 0; }
.d-specs > div:nth-child(odd) { background: var(--bg-alternate); }
.d-specs dt { color: var(--fg-muted); }
.d-specs dd { margin: 0; font-weight: 600; text-align: end; }
.d-promise { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; gap: 8px; }
.d-promise li { display: flex; gap: 10px; align-items: center; font-size: 0.875rem; font-weight: 500; }
.d-promise .ic { width: 18px; height: 18px; color: var(--green-600); }
.d-actions { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.d-actions .btn { flex: 1; }
.d-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-4); font-weight: 600; font-size: 0.9375rem; }
.stepper { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); overflow: hidden; background: #fff; }
.stepper button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: var(--fg); }
.stepper button:hover { background: var(--bg-secondary); }
.stepper input { width: 48px; height: 100%; border: 0; text-align: center; font-family: var(--font-mono); font-size: 0.9375rem; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm { height: 36px; }
.stepper.sm button { width: 32px; }
.stepper.sm input { width: 40px; }
@media (max-width: 800px) {
  .modal-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .d-gallery { border-inline-end: 0; border-bottom: 1px solid var(--bg-line); padding: var(--space-4); }
  .d-info { padding: var(--space-5); overflow: visible; }
}

/* Quote sheet (side panel) */
.sheet { margin: 0; margin-inline-start: auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); }
.sheet-inner { height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-pop); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--bg-line); }
.sheet-head h2 { margin: 0; font-size: var(--title3-size); }
.sheet-head .modal-close { position: static; }
.sheet-body { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-6); }
.sheet-foot { padding: var(--space-4) var(--space-6) var(--space-5); border-top: 1px solid var(--bg-line); background: var(--bg-alternate); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-item { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--bg-line); border-radius: var(--radius-lg); }
.q-item img { width: 56px; height: 44px; object-fit: contain; }
.q-text { min-width: 0; }
.q-text b { display: block; font-size: 0.875rem; }
.q-text span { display: block; font-size: 0.75rem; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[dir="rtl"] .q-text span { text-align: right; }
.q-remove { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-muted); cursor: pointer; display: grid; place-items: center; }
.q-remove:hover { background: var(--red-wash); color: var(--red-600); }
.q-empty { color: var(--fg-muted); text-align: center; padding: var(--space-10) 0; margin: 0; }
.q-list:empty { display: none; }
.q-form { border: 0; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-form legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.field { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--neutral-700); position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-size: 0.9375rem; font-weight: 400; color: var(--fg); padding: 11px 12px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); background: #fff; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: var(--ring-focus); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field.invalid input { border-color: var(--red-500); }
.field.invalid::after { content: attr(data-error); color: var(--red-600); font-size: 0.75rem; font-weight: 500; }
.q-hint { margin: 10px 0 0; text-align: center; font-size: 0.8125rem; color: var(--fg-muted); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) {
  .q-form { grid-template-columns: 1fr; } .sheet-body, .sheet-head, .sheet-foot { padding-inline: var(--space-4); }
  .q-item { grid-template-columns: 48px 1fr auto; row-gap: 8px; }
  .q-item img { width: 48px; grid-row: span 2; }
  .q-item .stepper { grid-column: 2; grid-row: 2; justify-self: start; }
  .q-remove { grid-column: 3; grid-row: 1; }
}

/* ---------- About ---------- */
.about-quote { display: grid; grid-template-columns: auto 1fr; gap: var(--space-8); align-items: center; padding: var(--space-10); border-radius: var(--radius-2xl); background: var(--bg-inverse); color: #fff; }
.about-quote .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.about-quote p { margin: 0; font-size: 1.125rem; line-height: 1.65; color: rgba(255,255,255,0.78); max-width: 36rem; }
@media (max-width: 760px) { .about-quote { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); gap: var(--space-4); } }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-6); }
.mv { padding: var(--space-8); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); background: var(--gradient-leaf-soft); }
.mv h3 { margin: var(--space-4) 0 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: var(--label2-spacing); text-transform: uppercase; color: var(--green-700); }
.mv p { margin: var(--space-2) 0 0; font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
@media (max-width: 760px) { .mv-grid { grid-template-columns: 1fr; } .mv { padding: var(--space-6); } }

.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.client { display: flex; flex-direction: column; border: 1px solid var(--bg-line); border-radius: var(--radius-xl); background: #fff; overflow: hidden; box-shadow: var(--shadow-card); }
.client .logo { height: 120px; display: grid; place-items: center; padding: var(--space-6); border-bottom: 1px solid var(--bg-line); }
.client .logo img { max-height: 52px; width: auto; }
.client .logo .wordmark { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.375rem; color: var(--neutral-700); text-align: center; line-height: 1.1; letter-spacing: -0.01em; }
.client .logo .wordmark small { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-top: 4px; }
.client .meta { padding: var(--space-4) var(--space-5); }
.client .meta b { display: block; font-size: 1rem; }
.client .meta span { font-size: 0.875rem; color: var(--fg-muted); }
@media (max-width: 1000px) { .client-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .client .logo { height: 96px; padding: var(--space-4); }
  .client .logo img { max-height: 40px; }
  .client .logo .wordmark { font-size: 1rem; white-space: nowrap; }
  .client .logo .wordmark small { font-size: 0.5625rem; letter-spacing: 0.06em; }
}

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.person { display: flex; gap: var(--space-5); padding: var(--space-6); border: 1px solid var(--bg-line); border-radius: var(--radius-xl); background: #fff; }
.avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-leaf); color: #fff; font-weight: 800; font-size: 1.25rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.person h3 { margin: 0; font-size: 1.1875rem; }
.person .role { display: block; margin-top: 2px; font-size: 0.875rem; font-weight: 600; color: var(--green-700); }
.person p { margin: var(--space-3) 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--neutral-600); }
.team-note { margin: var(--space-5) 0 0; color: var(--fg-muted); font-weight: 500; }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } .person { padding: var(--space-5); } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); position: relative; }
.timeline li { position: relative; padding-top: var(--space-8); }
.timeline li::before { content: ''; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--green-100); }
.timeline li::after { content: ''; position: absolute; top: 2px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--gradient-leaf); box-shadow: 0 0 0 4px var(--bg-alternate); }
.timeline .yr { font-family: var(--font-mono); font-size: 1.25rem; color: var(--green-700); }
.timeline p { margin: 6px 0 0; font-weight: 600; line-height: 1.5; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 var(--space-6); padding-inline-start: var(--space-8); }
  .timeline li::before { top: 0; bottom: 0; inset-inline: 7px auto; width: 2px; height: auto; }
}

/* ---------- Buyback ---------- */
.bb-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-10); align-items: end; }
.bb-hero .hero-ctas { margin-top: var(--space-6); }
.options { display: grid; gap: var(--space-3); }
.option { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); border-radius: var(--radius-xl); background: #fff; border: 1px solid var(--bg-line); box-shadow: var(--shadow-card); }
.option b { display: block; font-size: 1.125rem; }
.option span.txt { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.5; }
.option .or { display: none; }
@media (max-width: 900px) { .bb-hero { grid-template-columns: 1fr; gap: var(--space-8); } }

.check-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.check-grid li { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-5); border: 1px solid var(--bg-line); border-radius: var(--radius-lg); background: #fff; font-weight: 600; line-height: 1.45; }
.check-grid .ic { width: 22px; height: 22px; color: var(--green-600); flex-shrink: 0; }
@media (max-width: 900px) { .check-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps.four { grid-template-columns: 1fr 1fr; } .steps.four li:last-child { grid-column: auto; } }
@media (max-width: 600px) { .steps.four { grid-template-columns: 1fr; } }

.form-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-12); align-items: start; }
.form-card { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-2xl); padding: var(--space-8); box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.form-grid .field.full { grid-column: 1 / -1; }
.field select { font: inherit; font-size: 0.9375rem; font-weight: 400; color: var(--fg); padding: 11px 12px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-control); background: #fff; }
.field select:focus { outline: none; border-color: var(--green-500); box-shadow: var(--ring-focus); }
.field.invalid select { border-color: var(--red-500); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--bg-line-heavy); border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 0.875rem; color: var(--fg); }
.choices input { accent-color: var(--green-700); margin: 0; }
.choices label:has(input:checked) { border-color: var(--green-500); background: var(--bg-primary-wash); color: var(--green-800); }
.form-card .btn-block { margin-top: var(--space-6); }
.form-card .q-hint { text-align: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: var(--space-5); } }

.faq { display: grid; gap: var(--space-3); max-width: 52rem; }
.faq details { border: 1px solid var(--bg-line); border-radius: var(--radius-lg); background: #fff; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--green-600); line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 var(--space-5) var(--space-5); color: var(--neutral-600); line-height: 1.65; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-inverse); color: rgba(255, 255, 255, 0.72); }
.site-footer .wrap { padding-block: var(--space-12) var(--space-8); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.site-footer h4 { color: #fff; font-size: 0.9375rem; margin: 0 0 var(--space-4); }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.footer-logo { height: 40px; width: auto; }
.footer-tag { margin: var(--space-4) 0 0; max-width: 22rem; font-size: 0.9375rem; line-height: 1.6; }
.footer-legal { margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--caption-size); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Floating WhatsApp button (mobile) */
.fab-wa {
  position: fixed; z-index: 60; inset-inline-end: 16px; bottom: 16px;
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: var(--bg-primary); color: #fff; box-shadow: var(--shadow-pop);
}
.fab-wa .ic { width: 26px; height: 26px; }
@media (max-width: 900px) { .fab-wa { display: grid; } }
/* The catalog already has WhatsApp in the header, on every card and in the quote
   bar — the floating button only covers the filters there. */
body[data-page="catalog"] .fab-wa { display: none !important; }

/* ---------- Techne landing (QR page) ---------- */
body.landing { background: var(--gradient-hero); min-height: 100vh; }
.land-head { background: rgba(255,255,255,0.8); border-bottom: 1px solid var(--bg-line); backdrop-filter: blur(8px); }
.land-head .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.land-head img { height: 38px; width: auto; }
.land { padding-bottom: var(--space-10); }
.land-hero { padding-block: var(--space-10) var(--space-8); text-align: center; }
.land-hero .hero-eyebrow { margin-inline: auto; }
.land-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; margin: var(--space-5) 0 0; }
html[lang="ar"] .land-hero h1 { line-height: 1.35; letter-spacing: 0; }
.land-hero p { margin: var(--space-4) auto 0; max-width: 34rem; color: var(--neutral-600); font-size: 1.0625rem; line-height: 1.65; }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.path { display: flex; flex-direction: column; gap: 6px; padding: var(--space-6); background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); color: var(--fg); transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.path:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.path .p-ico { width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--gradient-leaf); color: #fff; margin-bottom: var(--space-2); }
.path .p-ico .ic { width: 26px; height: 26px; }
.path b { font-size: 1.25rem; }
.path > span:not(.p-ico):not(.go) { color: var(--fg-muted); font-size: 0.9375rem; line-height: 1.55; }
.path .go { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-4); color: var(--fg-primary); font-weight: 700; font-size: 0.9375rem; }
@media (max-width: 700px) { .paths { grid-template-columns: 1fr; } .path { padding: var(--space-5); } }

.offers { margin-top: var(--space-8); background: var(--bg-inverse); color: #fff; border-radius: var(--radius-2xl); padding: var(--space-8); }
.offers h2 { margin: 0 0 var(--space-5); font-family: var(--font-display); font-size: 1.5rem; }
.offers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--space-6); }
.offers li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.offers .ic { color: var(--lime-400); flex-shrink: 0; }
.offers .fine { margin: var(--space-5) 0 0; color: rgba(255,255,255,0.65); font-size: 0.8125rem; }
@media (max-width: 700px) { .offers { padding: var(--space-6); } .offers ul { grid-template-columns: 1fr; } }

.lead-wrap { margin-top: var(--space-8); }
.lead-wrap .form-card h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; }
.lead-wrap .form-sub { margin: var(--space-2) 0 var(--space-6); color: var(--fg-muted); }
.lead-done { margin: var(--space-4) 0 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-positive-wash); color: var(--green-800); font-weight: 600; text-align: center; }
.lead-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--space-4); font-weight: 600; }
.land-foot { margin-top: var(--space-10); }
.land-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; color: var(--fg-muted); font-size: 0.8125rem; border-top: 1px solid var(--bg-line); padding-top: var(--space-5); }
