/* AL RUBAN one-page site, minimal pass (Ali 2026-11-20: "a lot of green and gold, I want it more minimal").
   Frame after factiva.framer.website (layout only). One off-white ground; brand green as the text colour;
   gold only as a thin accent (active tab, focus, one label, the logo). Hairlines instead of colour blocks. Square corners. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #0d302a;                 /* brand green, reads as near-black */
  --ink-soft: rgb(13 48 42 / .66);
  --line: rgb(13 48 42 / .12);
  --gold: #c0944d;                /* accent only */

  --f-ar: "Readex Pro", system-ui, sans-serif;
  --f-en: "Jost", "Readex Pro", system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --wrap: 1320px;
  --pad: clamp(24px, 4vw, 44px);
  --sec: clamp(88px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-ar); font-size: 17px; line-height: 1.8; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="en"] body { font-family: var(--f-en); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.i { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
[dir="rtl"] .card__arrow { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 30; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
/* Headings are Thmanyah Sans drawn as vector SVG (tools/headings.py): the licence forbids serving the font file. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hd { display: block; width: min(var(--w), 100%); height: auto; }
html[lang="ar"] .hd[data-lang="en"], html[lang="en"] .hd[data-lang="ar"] { display: none; }
.sec-head--center .hd { margin-inline: auto; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
html[lang="en"] .h2, html[lang="en"] .hero__title { text-transform: uppercase; font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; }
.lead { color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.1rem); max-width: 56ch; margin-top: 18px; }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head--center { text-align: center; display: grid; justify-items: center; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(247 246 242 / .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__row { height: 72px; display: flex; align-items: center; gap: 32px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-inline-start: auto; font-size: .93rem; }
.nav__links a { position: relative; padding-block: 6px; color: var(--ink-soft); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
.nav__end { display: flex; align-items: center; gap: 10px; }
.lang { height: 38px; min-width: 42px; padding-inline: 12px; border: 1px solid var(--line); font-family: var(--f-en); font-weight: 500; font-size: .82rem; letter-spacing: .06em; transition: border-color .2s ease, transform .16s var(--ease-out); }
html[lang="en"] .lang { font-family: var(--f-ar); letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .lang:hover { border-color: var(--ink); } }
.nav__call { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 14px; border: 1px solid var(--ink); font-size: .88rem; font-weight: 500; white-space: nowrap; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__call:hover { background: var(--ink); color: var(--bg); } }
.lang:active, .btn:active, .card:active, .nav__call:active { transform: scale(.97); }
.burger { display: none; width: 42px; height: 38px; place-items: center; border: 1px solid var(--line); }
.burger .i--close { display: none; }
.burger[aria-expanded="true"] .i--open { display: none; }
.burger[aria-expanded="true"] .i--close { display: block; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 104px); }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; max-width: 15ch; }
html[lang="en"] .hero__title { max-width: none; font-size: clamp(2.3rem, 5vw, 4.6rem); }
.hero__row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-top: clamp(28px, 4vw, 48px); }
.hero__sub { max-width: 44ch; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero__cards { display: grid; grid-template-columns: repeat(2, 240px); }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 150px; padding: 20px 22px; border: 1px solid var(--ink); transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.card + .card { border-inline-start: 0; }
.card--solid { background: var(--ink); color: var(--bg); }
.card__label { font-size: .78rem; opacity: .7; }
html[lang="en"] .card__label { text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; }
.card__title { font-size: 1.12rem; font-weight: 500; line-height: 1.35; padding-inline-end: 28px; }
.card__arrow { position: absolute; inset-inline-end: 20px; bottom: 22px; width: 18px; height: 18px; transition: translate .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:not(.card--solid):hover { background: var(--surface); }
  .card:hover .card__arrow { translate: 3px -3px; }
  [dir="rtl"] .card:hover .card__arrow { translate: -3px -3px; }
}
.hero__media { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.hero__media img { width: 100%; height: clamp(380px, 52vw, 680px); object-fit: cover; object-position: 50% 45%; }
.badge { position: absolute; inset-inline-end: calc(var(--pad) + 28px); bottom: -56px; width: min(360px, 78vw); background: var(--surface); padding: 26px 28px 28px; display: grid; gap: 4px; box-shadow: 0 18px 50px -24px rgb(13 48 42 / .28); }
.badge__label { font-size: .78rem; color: var(--gold); font-weight: 500; }
html[lang="en"] .badge__label { text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; }
.badge__num { font-size: clamp(1.45rem, 2.1vw, 1.85rem); font-weight: 600; line-height: 1.3; margin-top: 10px; }
.badge__text { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }

/* ---------- about ---------- */
.about { padding-block: calc(var(--sec) + 40px) var(--sec); }
.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.about__text .lead { max-width: 60ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--ink); opacity: .82; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 600; line-height: 1.25; }
.facts dd { color: var(--ink-soft); font-size: .9rem; margin-top: 6px; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- products ---------- */
.products { padding-block: var(--sec); border-top: 1px solid var(--line); }
.tabs { display: flex; gap: clamp(20px, 3vw, 44px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { padding-block: 14px; font-size: 1rem; font-weight: 500; color: var(--ink-soft); position: relative; white-space: nowrap; transition: color .2s ease; }
.tab::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--ink); } }
.panel[hidden] { display: none; }
.panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(32px, 4vw, 52px); }
.panel:not([hidden]) { animation: panelIn .4s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
.panel__media img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; }
.plist { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; align-content: start; }
.prod { display: flex; flex-direction: column; gap: 10px; }
.prod__name { font-size: 1.12rem; font-weight: 600; line-height: 1.45; }
.prod__tag { display: inline-block; vertical-align: middle; margin-inline-start: 6px; font-size: .68rem; font-weight: 500; color: var(--gold); border: 1px solid currentColor; padding: 0 6px; line-height: 1.7; }
html[lang="en"] .prod__tag { text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); }
[dir="rtl"] .sizes[dir="ltr"] { justify-content: flex-end; }
.sizes li { font-family: var(--f-en); font-size: .82rem; white-space: nowrap; }
.sizes li[data-i18n] { font-family: inherit; }
.prod__desc { color: var(--ink-soft); font-size: .96rem; line-height: 1.75; }

/* ---------- why ---------- */
.why { padding-block: var(--sec); border-top: 1px solid var(--line); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.point { padding: 36px clamp(16px, 2.5vw, 36px) 8px; }
.point + .point { border-inline-start: 1px solid var(--line); }
.point:first-child { padding-inline-start: 0; }   /* text lines up with the section edge */
.point:last-child { padding-inline-end: 0; }
.point__icon { width: 28px; height: 28px; color: var(--ink); }
.point__title { font-size: 1.15rem; font-weight: 600; line-height: 1.45; margin-top: 22px; }
.point__text { color: var(--ink-soft); margin-top: 8px; font-size: .97rem; }

/* ---------- faq ---------- */
.faq { padding-block: var(--sec); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item h3 { font-size: inherit; font-weight: inherit; }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; text-align: start; font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.acc__plus { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.acc__btn[aria-expanded="true"] .acc__plus { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 24px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- contact ---------- */
.contact { padding-block: var(--sec); border-top: 1px solid var(--line); }
.contact__top { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.col { display: grid; gap: 10px; align-content: start; padding: 32px clamp(16px, 2.5vw, 36px) 0; }
.col:first-child { padding-inline-start: 0; }
.col + .col { border-inline-start: 1px solid var(--line); }
.col__label { font-size: .8rem; color: var(--ink-soft); margin-bottom: 4px; }
html[lang="en"] .col__label { text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; }
.col__line { font-size: 1.08rem; font-weight: 500; }
a.col__line { justify-self: start; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.col__line:hover { background-size: 100% 1px; } }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding-inline: 24px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 1rem; transition: opacity .2s ease, transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover { opacity: .88; } }

/* ---------- footer ---------- */
.foot { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot__cols > div { display: grid; gap: 10px; align-content: start; font-size: .93rem; color: var(--ink-soft); }
.foot__label { font-size: .8rem; color: var(--ink); margin-bottom: 6px; }
html[lang="en"] .foot__label { text-transform: uppercase; letter-spacing: .14em; font-size: .66rem; }
.foot__cols a { justify-self: start; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .foot__cols a:hover { color: var(--ink); } }
/* the wordmark as a faint watermark (one tone), like the grey wordmark in the reference */
.foot__mark { margin-top: clamp(56px, 8vw, 112px); aspect-ratio: 255 / 123.5; background: rgb(13 48 42 / .07);
  -webkit-mask: url("../logo/wordmark-green.svg") center / contain no-repeat; mask: url("../logo/wordmark-green.svg") center / contain no-repeat; }
.foot__copy { padding-block: 24px 32px; font-size: .82rem; color: var(--ink-soft); }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel:not([hidden]) { animation: none; }
  .acc__panel, .tab::after, .card__arrow { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .nav__call-label { display: none; }
  .hero__row { grid-template-columns: 1fr; align-items: start; }
  .plist { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__row { gap: 12px; }
  .nav__links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--pad) 16px; font-size: 1.05rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s var(--ease-out), visibility 0s .2s; }
  .nav__links a { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s var(--ease-out); }
  .nav__end { margin-inline-start: auto; }
  .burger { display: grid; }
  .badge { position: relative; inset: auto; width: min(340px, 88%); margin: -48px 0 0; margin-inline-start: auto; }
  .about { padding-top: var(--sec); }
  .about__grid, .faq__grid, .panel { grid-template-columns: 1fr; }
  .points, .contact__grid { grid-template-columns: 1fr; }
  .sec-head--center { text-align: start; justify-items: start; }
  .point + .point, .col + .col { border-inline-start: 0; border-top: 1px solid var(--line); }
  .point { padding-inline: 0; padding-bottom: 28px; }
  .col { padding-inline: 0; padding-bottom: 28px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__call { padding-inline: 10px; }
  .nav__logo img { height: 34px; }
  .hero__cards { grid-template-columns: 1fr 1fr; }
  .card { min-height: 128px; padding: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
}
