/* =========================================================
   Hayat Beauty Salon · صالون حياة للتجميل
   ========================================================= */

:root {
  --cream: #FAF7F2;
  --cream-2: #F2ECE2;
  --emerald: #143D2B;
  --emerald-2: #0E2C1F;
  --henna: #6B341E;
  --gold: #C59D5F;
  --gold-soft: #E3CFA6;
  --ink: #1E1A16;
  --muted: #6E655B;
  --line: rgba(20, 61, 43, .12);
  --wa: #1FA855;

  --f-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar-display: "Amiri", "Cairo", serif;
  --f-ar-body: "Cairo", "Tajawal", system-ui, sans-serif;

  --radius: 18px;
  --nav-h: 68px;
  --shadow: 0 18px 50px -20px rgba(20, 30, 20, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: var(--f-ar-body); }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; inset-inline-start: 1rem; top: -60px; z-index: 100;
  background: var(--emerald); color: var(--cream); padding: .6rem 1rem; border-radius: 10px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.8rem; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--emerald-2); box-shadow: 0 10px 30px -10px rgba(197,157,95,.7); }
.btn--gold:hover { background: #D3AE70; }
.btn--small { padding: .65rem 1.2rem; font-size: .9rem; margin-top: 1rem; }
.btn--wa { width: 100%; background: var(--wa); color: #fff; padding: 1rem; }
.btn--wa svg { width: 22px; height: 22px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  color: var(--cream);
  background: rgba(14, 44, 31, .28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(250, 247, 242, .14);
  transition: background .35s, color .35s, border-color .35s;
}
.nav.is-solid {
  background: rgba(14, 44, 31, .94);
  color: var(--cream);
  border-bottom-color: rgba(197,157,95,.3);
}

.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav__logo { height: 40px; width: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.25)); }
.nav.is-solid .nav__logo { filter: none; }
.nav__logo--ar { display: none; height: 44px; }
html[lang="ar"] .nav__logo--en { display: none; }
html[lang="ar"] .nav__logo--ar { display: block; }
.brand-logo { width: min(440px, 78vw); height: auto; margin: 0 auto .4rem; filter: drop-shadow(0 6px 30px rgba(0,0,0,.45)); }
.footer__logo { width: 200px; height: auto; margin: .6rem 0 1.4rem; }
.nav__leaf { width: 28px; height: 28px; color: var(--gold); }
.nav__name {
  font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; letter-spacing: .18em;
  display: flex; flex-direction: column; line-height: 1;
}
.nav__name small {
  font-family: var(--f-body); font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  opacity: .8; margin-top: .25rem;
}
html[lang="ar"] .nav__name small { font-family: var(--f-ar-body); letter-spacing: 0; text-transform: none; font-size: .75rem; }

.nav__links { display: none; gap: 1.8rem; }
.nav__links a {
  text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .04em;
  opacity: .85; position: relative; padding: .3rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .6rem; }

.lang {
  display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px;
  border-color: rgba(197,157,95,.6);
}
.lang__btn {
  background: transparent; border: 0; cursor: pointer; border-radius: 999px;
  padding: .3rem .75rem; font-size: .8rem; font-weight: 600;
}
.lang__btn[data-lang="ar"] { font-family: var(--f-ar-body); }
.lang__btn[aria-pressed="true"] { background: var(--gold); color: var(--emerald-2); }

.nav__bag {
  position: relative; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(197,157,95,.6); background: transparent; display: grid; place-items: center;
}
.nav__bag svg { width: 20px; height: 20px; }
.nav__bag-count {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold); color: var(--emerald-2);
  font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}
.nav__bag-count[data-zero="true"] { display: none; }

@media (min-width: 960px) { .nav__links { display: flex; } }

/* ---------- Chapters ---------- */
.chapter {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 6vw, 5rem) clamp(4.5rem, 10vh, 7rem);
  overflow: hidden; isolation: isolate;
  scroll-snap-align: start;
  color: var(--cream);
}

/* Fallback scenes, shown until a video loads (or if it is missing) */
.chapter--1 { background: radial-gradient(120% 80% at 70% 15%, #E9B872 0%, #B87B43 35%, #4F3A22 70%, #1E1A12 100%); }
.chapter--2 { background: radial-gradient(110% 80% at 30% 20%, #8FA66A 0%, #3F5E34 40%, #1D3220 75%, #0E1A10 100%); }
.chapter--3 { background: radial-gradient(100% 70% at 50% 40%, #6B4A2B 0%, #3A2716 45%, #1A120A 100%); }
.chapter--4 { background: radial-gradient(110% 80% at 50% 30%, #8A4A2B 0%, #6B341E 30%, #2C1810 70%, #120A06 100%); }

.chapter__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  opacity: 1;
}

.chapter__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,20,14,.55) 0%, rgba(10,20,14,.05) 30%, rgba(10,20,14,.15) 55%, rgba(10,14,10,.82) 100%);
}

.chapter__content { max-width: 640px; }
.chapter__content--center { margin-inline: auto; text-align: center; max-width: 760px; }
.chapter--4 { align-items: center; }

.chapter__kicker {
  margin: 0 0 1rem; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600;
}
.chapter__kicker::before {
  content: ""; display: inline-block; width: 36px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-inline-end: .8rem;
}
.chapter__content--center .chapter__kicker::after {
  content: ""; display: inline-block; width: 36px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-inline-start: .8rem;
}

.chapter__title {
  margin: 0 0 1.1rem; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 5.4rem); line-height: 1.02; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.chapter__title--brand { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.chapter__title-ar {
  font-family: var(--f-ar-display); color: var(--gold); font-size: .62em; line-height: 1.4;
}

.chapter__text {
  margin: 0 0 1.4rem; font-size: clamp(1rem, 2.1vw, 1.2rem); line-height: 1.75;
  color: rgba(250,247,242,.9); max-width: 34em;
}
.chapter__content--center .chapter__text { margin-inline: auto; margin-bottom: 2.2rem; }

.chapter__arabic {
  margin: 0 0 1.6rem; font-family: var(--f-ar-display); font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--gold-soft);
}
html[lang="ar"] .chapter__arabic { display: none; }

.chapter__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chapter__points li {
  font-size: .85rem; padding: .45rem .95rem; border-radius: 999px;
  border: 1px solid rgba(197,157,95,.55); background: rgba(14,44,31,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

html[lang="ar"] .chapter__title { font-family: var(--f-ar-display); line-height: 1.3; }
html[lang="ar"] .chapter__title--brand > span[lang="en"] { font-family: var(--f-display); }
html[lang="ar"] .chapter__kicker { letter-spacing: 0; font-size: .95rem; }
html[lang="ar"] .chapter__text { line-height: 1.9; }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(197,157,95,.2); color: var(--gold-soft); border: 1px solid rgba(197,157,95,.5);
}
.badges--dark .badge { background: rgba(197,157,95,.12); color: var(--gold-soft); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(250,247,242,.6); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Reveal on scroll */
.reveal > * { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in > * { opacity: 1; transform: none; }
.reveal.is-in > *:nth-child(2) { transition-delay: .12s; }
.reveal.is-in > *:nth-child(3) { transition-delay: .24s; }
.reveal.is-in > *:nth-child(4) { transition-delay: .36s; }
.reveal.is-in > *:nth-child(5) { transition-delay: .48s; }

/* ---------- Services ---------- */
.services {
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.1rem, 5vw, 4rem) 6rem;
  max-width: 1180px; margin: 0 auto;
  scroll-snap-align: start;
}
.services__head { text-align: center; margin-bottom: 2.4rem; }
.eyebrow {
  margin: 0 0 .7rem; color: var(--henna); font-size: .78rem; letter-spacing: .3em;
  text-transform: uppercase; font-weight: 600;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.services__title {
  margin: 0 0 .8rem; font-family: var(--f-display); font-weight: 500; color: var(--emerald);
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05;
}
html[lang="ar"] .services__title { font-family: var(--f-ar-display); line-height: 1.4; }
.services__sub { margin: 0 auto; color: var(--muted); max-width: 32em; }

.services__tools {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: linear-gradient(var(--cream) 82%, rgba(250,247,242,0));
  padding: .8rem 0 1.2rem; margin-bottom: .5rem;
}

.search {
  display: flex; align-items: center; gap: .6rem; max-width: 520px; margin: 0 auto 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2rem 1.1rem;
  box-shadow: 0 6px 20px -12px rgba(20,61,43,.25);
}
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: .75rem 0; min-width: 0; }

.tabs {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .2rem .1rem;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .tabs { justify-content: center; flex-wrap: wrap; } }
.tab {
  flex: none; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--emerald);
  padding: .55rem 1.05rem; border-radius: 999px; font-size: .86rem; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--gold); }
.tab[aria-selected="true"] { background: var(--emerald); color: var(--cream); border-color: var(--emerald); }

.catalog { display: grid; gap: 2.6rem; }

.cat__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--gold); padding-bottom: .7rem; margin-bottom: .4rem;
}
.cat__title {
  margin: 0; font-family: var(--f-display); font-weight: 600; color: var(--emerald);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
}
html[lang="ar"] .cat__title { font-family: var(--f-ar-display); }
.cat__alt { font-size: 1rem; color: var(--henna); font-family: var(--f-ar-display); }
html[lang="ar"] .cat__alt { font-family: var(--f-display); font-style: italic; }

.cat__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 3rem; }
@media (min-width: 820px) { .cat__list { grid-template-columns: 1fr 1fr; } }

.item {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .9rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.item__name { font-weight: 600; font-size: .98rem; color: var(--ink); line-height: 1.35; }
.item__alt { display: block; font-weight: 400; font-size: .84rem; color: var(--muted); margin-top: .15rem; }
.item__alt[lang="ar"] { font-family: var(--f-ar-body); }
.item__alt[lang="en"] { font-family: var(--f-body); }
.item__desc { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; font-weight: 400; }
.item__price { font-weight: 700; color: var(--henna); white-space: nowrap; font-size: .95rem; text-align: end; }
.item__price small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.item--signature .item__name { color: var(--emerald); }
.item--signature .item__name::before { content: "✦ "; color: var(--gold); }

.add {
  cursor: pointer; border: 1px solid var(--emerald); background: transparent; color: var(--emerald);
  border-radius: 999px; padding: .42rem .9rem; font-size: .8rem; font-weight: 600; white-space: nowrap;
  min-width: 78px; transition: background .2s, color .2s;
}
.add:hover { background: var(--emerald); color: var(--cream); }
.add.is-added { background: var(--gold); border-color: var(--gold); color: var(--emerald-2); }

.catalog__empty { text-align: center; color: var(--muted); padding: 2rem 0; }
.catalog__note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--emerald-2); color: rgba(250,247,242,.85);
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 4rem) 6.5rem;
}
.footer__grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer__title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 2.4rem; color: var(--cream); }
html[lang="ar"] .footer__title { font-family: var(--f-ar-display); }
.footer h3 {
  margin: 0 0 .6rem; font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
  font-weight: 600;
}
.footer h3:not(:first-child) { margin-top: 1.4rem; }
html[lang="ar"] .footer h3 { letter-spacing: 0; font-size: .95rem; }
.footer p, .footer address { margin: 0 0 .4rem; font-style: normal; font-size: .93rem; line-height: 1.7; }
.footer__link { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(197,157,95,.35); }
.footer__link:hover { color: var(--cream); }
.footer address + .footer__link { display: inline-block; margin-top: .4rem; font-size: .9rem; }
.social { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .93rem; }
.social a { text-decoration: none; }
.social a:hover { color: var(--gold-soft); }
.footer__copy {
  max-width: 1180px; margin: 3rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(197,157,95,.2);
  font-size: .8rem; color: rgba(250,247,242,.55); display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between;
}

/* ---------- Floating bag button ---------- */
.fab {
  position: fixed; z-index: 40; bottom: max(1rem, env(safe-area-inset-bottom)); inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: .8rem; cursor: pointer;
  padding: .7rem .8rem .7rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--emerald); color: var(--cream); box-shadow: var(--shadow);
  border: 1px solid rgba(197,157,95,.55);
  font-weight: 600; font-size: .92rem; animation: pop .35s var(--ease);
}
html[dir="rtl"] .fab { transform: translateX(50%); }
.fab__count {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--emerald-2);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.fab__total { background: rgba(250,247,242,.12); padding: .35rem .8rem; border-radius: 999px; }
@keyframes pop { from { transform: translateX(-50%) translateY(20px); opacity: 0; } }
html[dir="rtl"] .fab { animation-name: pop-rtl; }
@keyframes pop-rtl { from { transform: translateX(50%) translateY(20px); opacity: 0; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; z-index: 39; bottom: max(1rem, env(safe-area-inset-bottom)); inset-inline-end: 1rem;
  width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
body.has-fab .wa-float { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 68px); }
@media (min-width: 700px) { body.has-fab .wa-float { bottom: max(1rem, env(safe-area-inset-bottom)); } }

/* ---------- Drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(10,20,14,.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s;
}
.scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; z-index: 61; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(440px, 100%); background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,.35);
  transform: translateX(105%); transition: transform .4s var(--ease); visibility: hidden;
}
html[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.is-open { transform: none !important; visibility: visible; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; color: var(--emerald); }
html[lang="ar"] .drawer__head h2 { font-family: var(--f-ar-display); }
.drawer__close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--emerald);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem 2rem; overscroll-behavior: contain; }

.bag { list-style: none; margin: 0; padding: 0; }
.bag li {
  display: grid; grid-template-columns: 1fr auto auto; gap: .7rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.bag__name { font-weight: 600; line-height: 1.35; }
.bag__price { color: var(--henna); font-weight: 700; white-space: nowrap; }
.bag__remove {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; color: var(--muted); font-size: 1.05rem; line-height: 1;
}
.bag__remove:hover { color: var(--henna); border-color: var(--henna); }
.bag__empty { color: var(--muted); text-align: center; padding: 2rem 0 1rem; }

.bag__total {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem;
  font-size: 1rem; color: var(--emerald);
}
.bag__total strong { font-size: 1.35rem; color: var(--henna); }
.bag__hint { margin: .2rem 0 1.4rem; font-size: .8rem; color: var(--muted); }

.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--emerald); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: .75rem .85rem; font-weight: 400; font-size: .95rem; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form__error {
  margin: 0; padding: .65rem .85rem; border-radius: 10px; font-size: .85rem;
  background: #FBEDE7; color: var(--henna);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 70; bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 76px); left: 50%;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--emerald); color: var(--cream); padding: .65rem 1.2rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500; box-shadow: var(--shadow);
  transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 2rem); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

body.drawer-open { overflow: hidden; }

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  :root { --nav-h: 62px; }
  .nav__logo { height: 34px; }
  .nav__logo--ar { height: 38px; }
  .lang__btn { padding: .3rem .6rem; }
  .item { grid-template-columns: 1fr auto; row-gap: .5rem; }
  .item .add { grid-column: 1 / -1; justify-self: start; }
  .fab__label { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal > * { opacity: 1; transform: none; }
}

/* Chapter IV: extra darkening behind the centered logo */
.chapter--4 .chapter__overlay {
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(10,14,10,.55) 0%, rgba(10,14,10,.25) 70%, rgba(10,14,10,0) 100%),
    linear-gradient(180deg, rgba(10,20,14,.55) 0%, rgba(10,20,14,.2) 35%, rgba(10,14,10,.75) 100%);
}


/* ---------- Legacy (Since 2003) ---------- */
.legacy {
  position: relative; overflow: hidden; scroll-snap-align: start;
  background: var(--emerald-2); color: var(--cream);
  padding: clamp(5rem, 12vw, 8.5rem) clamp(1.25rem, 6vw, 5rem);
}
.legacy::before {
  /* fine henna-net lattice, echoing the Royal Handnet */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 34px);
}
.legacy__inner {
  position: relative; max-width: 1180px; margin: 0 auto;
  display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .legacy__inner { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }

.legacy__year { display: flex; flex-direction: column; line-height: .9; }
.legacy__since {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--gold-soft); margin-bottom: .4rem;
}
html[lang="ar"] .legacy__since { font-family: var(--f-ar-display); font-style: normal; }
.legacy__num {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(6rem, 19vw, 12rem);
  background: linear-gradient(180deg, #F3D99A 0%, var(--gold) 55%, #9C7438 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow--gold { color: var(--gold); }
.legacy__title {
  margin: 0 0 1.1rem; font-family: var(--f-display); font-weight: 500; line-height: 1.1;
  font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--cream);
}
html[lang="ar"] .legacy__title { font-family: var(--f-ar-display); line-height: 1.45; }
.legacy__text { margin: 0 0 2.2rem; color: rgba(250,247,242,.82); font-size: 1.05rem; line-height: 1.8; max-width: 36em; }

.legacy__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.legacy__stats li { border-top: 1px solid rgba(197,157,95,.45); padding-top: .9rem; }
.legacy__stats strong { text-align: start; unicode-bidi: isolate;
  display: block; font-family: var(--f-display); font-weight: 600; color: var(--gold);
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1;
}
.legacy__stats span { display: block; font-size: .82rem; color: rgba(250,247,242,.75); margin-top: .3rem; line-height: 1.4; }

.badge--gold { background: var(--gold); color: var(--emerald-2); border-color: var(--gold); }
.legacy__year { align-items: flex-start; }
html[dir="rtl"] .legacy__stats strong { text-align: right; }
