/* Yazeed & Abdulrahman Co. — site styles
   Palette: limestone paper, charcoal ink, one brass accent. The logo's own red marks warnings only. */
:root {
  --paper: #fcfcfc;          /* matches the logo artwork background */
  --stone: #f1efea;
  --stone-2: #e6e3dc;
  --ink: #141518;
  --ink-2: #44464c;
  --ink-3: #74767c;
  --line: #d9d6cf;
  --brass: #8c6d3c;
  --dark: #141518;
  --dark-2: #1f2024;
  --on-dark: #eceae5;
  --on-dark-2: #a9a8a3;
  --warn: #a3201f;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 10vw, 144px);
  --font: 'Almarai', 'IBM Plex Sans', system-ui, sans-serif;
  --font-head: 'Noto Kufi Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:lang(en) { --font: 'IBM Plex Sans', system-ui, sans-serif; --font-head: 'IBM Plex Sans', system-ui, sans-serif; }
.display, .h2, h3, .app-t, .phone-row, .fig-v { font-family: var(--font-head); }
.fig-v, .phone-num { font-family: 'IBM Plex Sans', var(--font-head); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.8; font-weight: 400;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:lang(en) body, body:lang(en) { line-height: 1.65; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .04em; }
.stone { background: var(--stone); }
.dark { background: var(--dark); color: var(--on-dark); }

/* Type */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500; color: var(--brass); margin-bottom: 20px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.kicker .mono { font-size: 12px; }
.display {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 5rem);
  line-height: 1.12; font-weight: 500;
}
:lang(en) .display { letter-spacing: -.025em; line-height: 1.04; }
.display span { display: block; }
.display .muted { color: var(--ink-3); font-weight: 500; }
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.2; font-weight: 500; }
:lang(en) .h2 { letter-spacing: -.02em; line-height: 1.12; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 38em; margin-top: 24px; }
.dark .lead { color: var(--on-dark-2); }
.small { font-size: 15px; color: var(--ink-3); margin-top: 28px; max-width: 40em; }
.num { color: var(--ink-3); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; font-size: 16px; font-weight: 500;
  border: 1px solid var(--ink); border-radius: 2px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #2a2c31; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.center-cta { margin-top: 56px; display: flex; justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 252, .94);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 84px; }
.logo img { height: 70px; width: auto; }
.nav { display: flex; gap: 32px; margin-inline-start: auto; font-size: 15px; }
.nav a { color: var(--ink-2); padding-block: 6px; background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size .3s var(--ease), color .2s; }
[dir="ltr"] .nav a { background-position: 0 100%; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang { font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.lang:hover { color: var(--ink); border-color: var(--ink); }
.header-call { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; padding: 10px 16px; border: 1px solid var(--line); border-radius: 2px; transition: border-color .2s; }
.header-call:hover { border-color: var(--ink); }
.menu-btn { display: none; }

/* Hero */
.hero, .p-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 104px) clamp(56px, 8vw, 120px); }
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(20, 21, 24, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 21, 24, .075) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-mesh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(252,252,252,0) 0%, rgba(252,252,252,.55) 32%, var(--paper) 62%), linear-gradient(to top, var(--paper) 0, rgba(252,252,252,0) 28%); }
[dir="ltr"] .hero-mesh::after { background: linear-gradient(to right, rgba(252,252,252,0) 0%, rgba(252,252,252,.55) 32%, var(--paper) 62%), linear-gradient(to top, var(--paper) 0, rgba(252,252,252,0) 28%); }
.js .hero-mesh { animation: mesh-in 1.6s var(--ease) both; }
@keyframes mesh-in { from { opacity: 0; } }
.mesh-note { z-index: 1;
  position: absolute; bottom: 24px; inset-inline-start: var(--gutter);
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  text-decoration: line-through; text-decoration-color: var(--warn); text-decoration-thickness: 1px;
}
.hero-grid, .p-hero-grid { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.p-hero-grid { grid-template-columns: 1fr 1fr; }
.hero-product { position: relative; }
.hero-product img { width: 100%; }
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-product { animation: fade 1.2s .1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* Figures */
.figures { padding-block: 0 var(--sec); }
.fig-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.fig { padding: 28px 24px 0 0; }
[dir="rtl"] .fig { padding: 28px 0 0 24px; }
.fig + .fig { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.fig-v { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 300; line-height: 1.1; white-space: nowrap; }
.fig-v small { font-size: .38em; font-weight: 400; color: var(--ink-3); vertical-align: middle; }
.fig-l { font-size: 15px; color: var(--ink-2); margin-top: 14px; max-width: 18em; line-height: 1.65; }
.on-dark { padding-bottom: 0; }
.on-dark .fig-grid { border-top-color: var(--on-dark); }
.on-dark .fig + .fig { border-color: #34363b; }
.on-dark .fig-l, .on-dark .fig-v small { color: var(--on-dark-2); }

/* Split sections */
.company, .what, .apps, .specs, .method, .downloads, .compare, .gallery, .contact, .perf { padding-block: var(--sec); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.split-head .btn { margin-top: 36px; }
.section-head { max-width: 52rem; margin-bottom: clamp(40px, 5vw, 72px); }
.lines { border-top: 1px solid var(--ink); }
.line { display: grid; grid-template-columns: 64px 1fr; column-gap: 24px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.line .num { grid-row: span 2; padding-top: .55em; }
.line h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.35; }
.line p { color: var(--ink-2); margin-top: 6px; }

/* Compare */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); align-items: end; }
.frame { overflow: hidden; background: var(--stone-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.cmp .frame { aspect-ratio: 4 / 3; }
.cmp-before img { filter: saturate(.8); }
figcaption { font-size: 15px; color: var(--ink-2); margin-top: 16px; line-height: 1.65; }
figcaption strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

/* Field */
.field-fig img { width: 100%; max-height: 86vh; object-fit: cover; }
.field-fig figcaption { padding-block: 20px 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.field-fig .kicker { margin: 0; }
.field { padding-bottom: var(--sec); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.contact .kicker { color: #c3a675; }
.phones { border-top: 1px solid #34363b; }
.phone-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-bottom: 1px solid #34363b; }
.phone-num { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); font-weight: 300; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.phone-num:hover { color: #fff; }
.phone-acts { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 14px; border: 1px solid #44464c; border-radius: 2px; transition: background .2s, border-color .2s; }
.pill:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.email { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--on-dark-2); font-size: 15px; }
.email a:hover { color: #fff; }

/* Footer */
.site-footer { padding-block: 56px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 32px; align-items: center; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 8px 14px; border: 1px solid var(--line); border-radius: 2px; transition: border-color .2s, color .2s; justify-self: start; }
.footer-social:hover { color: var(--ink); border-color: var(--ink); }
.footer-logo { height: 72px; width: auto; }
.footer-line { font-size: 14px; color: var(--ink-2); }
.footer-legal { font-size: 13px; color: var(--ink-3); }

/* Product page */
.fiber-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.fiber-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.fiber-list .en, .app-list .en { color: var(--ink-3); font-size: 12px; margin-inline-start: auto; }
.fiber-fig { overflow: hidden; aspect-ratio: 4 / 5; }
.fiber-fig img { width: 100%; height: 100%; object-fit: cover; }

.perf .section-head { margin-bottom: 48px; }
.note { font-size: 14px; color: var(--on-dark-2); margin-top: 48px; max-width: 48em; padding-top: 20px; border-top: 1px solid #34363b; }

.replace { margin-top: 36px; color: var(--ink-2); font-size: 16px; padding: 24px; background: var(--stone); }
.replace .kicker { display: flex; margin-bottom: 10px; }
.app-list { border-top: 1px solid var(--ink); }
.app-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.app-t { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.35; }

.spec-table { margin: 0; border-top: 1px solid var(--ink); }
.spec-row { display: grid; grid-template-columns: 11rem 1fr; gap: 24px; padding-block: 18px; border-bottom: 1px solid var(--stone-2); }
.spec-row dt { color: var(--ink-3); font-size: 15px; }
.spec-row dd { margin: 0; font-weight: 500; }

.method-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.steps { margin-top: 40px; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.steps .num { font-size: 14px; padding-top: .3em; }
.limit { margin-top: 48px; padding: 24px 28px; border-inline-start: 3px solid var(--warn); background: #f7f1ef; }
.limit h3 { font-size: 16px; font-weight: 600; color: var(--warn); margin-bottom: 8px; }
.limit p { font-size: 15.5px; color: var(--ink-2); }
.video-fig { position: sticky; top: 112px; }
.video-fig video { width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: cover; background: var(--stone-2); }

.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, 26vw); gap: clamp(12px, 2vw, 24px); }
.gal { display: flex; flex-direction: column; min-height: 0; }
.gal img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.gal-1 { grid-row: 1 / span 2; }
.gal-4 { grid-column: 2 / span 2; }

.dl-list { border-top: 1px solid var(--ink); }
.dl-list a { display: flex; align-items: center; gap: 20px; padding: 28px 8px; border-bottom: 1px solid var(--line); font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); transition: background .2s, padding .3s var(--ease); }
.dl-list a:hover { background: var(--stone); padding-inline: 20px; }
.dl-list .dl-t { flex: 1; }
.dl-list .mono { color: var(--ink-3); }

.nf { padding-block: var(--sec); min-height: 50vh; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .header-call span { display: none; }
  .header-call { padding: 10px 12px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; gap: 16px; }
  .logo img { height: 50px; }
  .header-actions { margin-inline-start: auto; gap: 12px; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 11px; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; }
  .menu-btn i { display: block; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--stone-2); font-size: 17px; background: none; }
  .hero-grid, .p-hero-grid, .split, .contact-grid, .method-grid, .compare-grid { grid-template-columns: 1fr; }
  .hero-product { order: -1; max-width: 560px; }
  .hero-mesh::after, [dir="ltr"] .hero-mesh::after { background: linear-gradient(to bottom, var(--paper) 0, rgba(252,252,252,.4) 45%, var(--paper) 100%); }
  .mesh-note { display: none; }
  .fig-grid { grid-template-columns: 1fr 1fr; }
  .fig:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .fig { padding-bottom: 28px; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--line); }
  .video-fig { position: static; max-width: 420px; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 56vw; }
  .gal-1, .gal-2, .gal-3, .gal-4 { grid-column: auto; grid-row: auto; }
  .gal-1 { grid-row: span 2; }
  .gal-4 { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .actions .btn { width: 100%; justify-content: center; }
  .fig-v { font-size: 2rem; }
  .fig-l { font-size: 14px; }
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gal-1 { grid-row: auto; }
  .gal img { aspect-ratio: 4 / 3; flex: none; }
  .phone-row { flex-direction: column; align-items: flex-start; }
  .lang { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .contact, .video-fig, .hero-mesh { display: none; }
}
.figures + .company { padding-top: clamp(24px, 4vw, 64px); }
/* Noto Kufi Arabic sits taller than Latin faces */
:lang(ar) .display { line-height: 1.4; font-weight: 600; }
:lang(ar) .h2 { line-height: 1.55; font-weight: 600; }
:lang(ar) h3, :lang(ar) .app-t { line-height: 1.6; }
:lang(ar) .display { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.4rem); }
