/* ==========================================================================
   NOIR BARBER — main stylesheet (mobile-first)
   Sections: base · primitives · nav · menu · hero · intro · services ·
             experience · barber · gallery · products · visit · final ·
             footer · dock/toast · motion
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--soot); direction: rtl;
  /* body's overflow-x:hidden alone doesn't stop the swipe-scroll/rubber-band on every mobile
     browser, especially in RTL — some let the <html> box itself scroll past the edge. Clipping
     it here too, plus overscroll-behavior-x, is what actually keeps every device pinned. */
  overflow-x: hidden; width: 100%;
}
body {
  margin: 0;
  background: var(--soot);
  color: var(--ivory);
  font: 400 var(--t-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overscroll-behavior-x: none; width: 100%; max-width: 100%;
  direction: rtl; /* set here too: the hosted artifact skeleton owns <html>, so this rule (not the dir="rtl" attribute) is what drives the RTL layout there */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-family: var(--f-accent); font-style: normal; font-weight: 700; text-transform: none; letter-spacing: normal; color: var(--bronze-hi); }
::selection { background: var(--bronze); color: var(--soot); }
:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 4px; border-radius: 2px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--soot); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.muted { color: var(--ash); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--f-mono); font-size: .92em; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ---------- Primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .8125rem/1 var(--f-body);
  letter-spacing: normal; text-transform: none; color: var(--bronze-hi);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow .dot { display: none; }

.section-title {
  font: 800 var(--t-h2)/1 var(--f-display);
  text-transform: none; letter-spacing: normal; text-wrap: balance;
}
.section-title em { font-size: 1.04em; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--row { align-items: end; }
.section-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 6vw, 72px); }
.lede { font: 400 var(--t-lede)/1.4 var(--f-body); color: var(--ivory); max-width: 30ch; text-wrap: pretty; }

/* Buttons — one primary action, one look */
.btn {
  --bg: transparent; --fg: var(--ivory); --bd: var(--line-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--btn-radius, 0px);
  font: 600 .8125rem/1 var(--f-body); letter-spacing: normal; text-transform: none;
  transition: color .35s var(--ease-out), border-color .35s;
}
.btn::before { /* ink wipe on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ivory); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--soot); border-color: var(--ivory); }
.btn:active { transform: translateY(1px); }
.btn--solid { --bg: var(--bronze); --fg: var(--soot); --bd: var(--bronze); }
.btn--ghost { --bd: var(--line-strong); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .6875rem; }
.btn--xl { min-height: 68px; padding: 0 40px; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn__arrow { font-family: var(--f-body); letter-spacing: 0; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(-4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .8125rem/1 var(--f-body); letter-spacing: normal; text-transform: none;
  padding-block: 10px; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .3s;
}
.link-arrow::after { content: "←"; letter-spacing: 0; transition: transform .35s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; color: var(--bronze-hi); }
.link-arrow:hover::after { transform: translateX(-4px); }

/* Unfilled business info — deliberately visible, never invented */
.placeholder {
  display: inline-block; padding: 1px 8px;
  border: 1px dashed rgba(212, 158, 107, .55); color: var(--bronze-hi);
  font: 400 .85em/1.5 var(--f-body); letter-spacing: normal; white-space: nowrap;
}

/* Art-directed photo placeholder.
   Replace with <img> of the same aspect ratio; the treatment stays. */
.ph {
  --tint: 28 30% 18%;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--photo-radius, 0px);
  background:
    radial-gradient(120% 80% at 70% 18%, hsl(var(--tint) / .95), transparent 60%),
    linear-gradient(170deg, hsl(var(--tint)) 0%, #0c0a08 88%);
}
.ph::before { /* film grain */
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ph[data-ph]::after { /* label, so nobody ships a placeholder by accident */
  content: "صورة — " attr(data-ph);
  position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 3;
  font: 500 .6875rem/1.4 var(--f-body); letter-spacing: normal; text-transform: none;
  color: rgba(237, 230, 218, .55);
}
.ph > img { /* real photo, once dropped in — see comment above */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  filter: saturate(.92) brightness(.94) contrast(1.04);
}
.ph > img.is-warmed { /* pulls a cooler-toned source photo into NOIR's warm palette */
  filter: sepia(.35) saturate(1.05) brightness(.92) contrast(1.05) hue-rotate(-6deg);
}
.ph__light { /* soft key light that drifts on hover */
  position: absolute; inset: -20%; z-index: 0;
  background: radial-gradient(40% 35% at 62% 30%, rgba(212, 158, 107, .28), transparent 70%);
  transition: transform 1.2s var(--ease-out);
}
.ph:hover .ph__light { transform: translate(-4%, 3%); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .5s var(--ease-out), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav[data-state="scrolled"] {
  background: rgba(15, 13, 11, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
  transition: height .5s var(--ease-out);
}
.nav[data-state="scrolled"] .nav__inner { height: 60px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; margin-inline-end: auto; }
.wordmark__main { font: 900 1.75rem/1 var(--f-logo); letter-spacing: .06em; }
.wordmark__sub { font: 400 1.05rem/1 var(--f-accent); color: var(--bronze-hi); }
.wordmark--lg .wordmark__main { font-size: 3.5rem; }
.wordmark--lg .wordmark__sub { font-size: 1.6rem; }
.nav__links { display: none; gap: 30px; }
.nav__links a {
  position: relative; font: 600 .875rem/1 var(--f-body); letter-spacing: normal; text-transform: none; color: rgba(237, 230, 218, .78);
  padding-block: 8px; transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze-hi); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }

.menu-btn { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding-inline: 4px; position: relative; z-index: 61; }
.menu-btn__label { font: 600 .75rem/1 var(--f-body); letter-spacing: normal; text-transform: none; }
.menu-btn__lines { display: grid; gap: 6px; width: 26px; }
.menu-btn__lines i { display: block; height: 1.5px; background: var(--ivory); transition: transform .45s var(--ease-out), width .45s; }
.menu-btn__lines i:last-child { width: 16px; justify-self: end; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { width: 26px; transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--soot);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 32px + env(safe-area-inset-top, 0px)) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  animation: menuIn .55s var(--ease-out) both;
}
.menu::before { /* pole stripe along the edge */
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 6px;
  background: repeating-linear-gradient(-45deg, var(--bronze) 0 8px, var(--ivory) 8px 16px, var(--soot) 16px 24px);
  opacity: .8;
}
.menu__links { display: grid; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font: 800 clamp(2.1rem, 9vw, 3.25rem)/1 var(--f-display); text-transform: uppercase;
  padding-block: 6px; border-bottom: 1px solid var(--line);
  animation: rise .6s var(--ease-out) both;
}
.menu__links a small { font: 500 .6875rem/1 var(--f-body); letter-spacing: normal; color: var(--ash); width: 44px; }
.menu__links a:nth-child(2) { animation-delay: .05s; } .menu__links a:nth-child(3) { animation-delay: .1s; }
.menu__links a:nth-child(4) { animation-delay: .15s; } .menu__links a:nth-child(5) { animation-delay: .2s; }
.menu__foot { display: grid; gap: 16px; }
.menu__hours { font: 400 .875rem/1 var(--f-body); letter-spacing: normal; color: var(--ash); text-align: center; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
  min-height: 100svh;
}
.hero__frame { position: relative; margin-inline: calc(var(--gutter) * -1); }
.ph--hero { aspect-ratio: 4 / 5; max-height: 44svh; width: 100%; animation: frameIn 1.3s var(--ease-io) .1s both; }
.ph--hero::after { bottom: auto; top: 14px; }
.hero__frame::after { /* fade photo into the ground */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 2;
  background: linear-gradient(to top, var(--soot), transparent);
}
.hero__rail { display: none; }
.hero__word {
  position: relative; z-index: 3; display: flex; direction: ltr;
  margin-top: -.36em; margin-bottom: 18px; order: 1;
  font: 900 clamp(7.5rem, 44vw, 30rem)/.78 var(--f-logo);
  letter-spacing: -.02em; color: var(--ivory);
}
.hero__word span { display: inline-block; animation: letterUp 1s var(--ease-out) both; }
.hero__word span:nth-child(1) { animation-delay: .35s; } .hero__word span:nth-child(2) { animation-delay: .42s; }
.hero__word span:nth-child(3) { animation-delay: .49s; } .hero__word span:nth-child(4) { animation-delay: .56s; }
.hero__copy { position: relative; z-index: 3; display: grid; gap: 18px; order: 2; }
.hero__title { font: 800 clamp(2.4rem, 11vw, 3.4rem)/.92 var(--f-display); text-transform: uppercase; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; animation: lineUp .9s var(--ease-out) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .75s; }
.hero__title .line:nth-child(2) > span { animation-delay: .85s; }
.hero__title em { font-size: 1.06em; }
.hero__sub { color: var(--ash); max-width: 32ch; animation: fadeUp .8s var(--ease-out) 1s both; }
.hero__eyebrow { animation: fadeUp .8s var(--ease-out) .65s both; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; animation: fadeUp .8s var(--ease-out) 1.1s both; }
.hero__actions .btn { flex: 1 1 100%; }

.scroll-cue { display: none; }
.pole {
  width: 10px; height: 56px; border-radius: 6px; border: 1px solid var(--line-strong); overflow: hidden; display: block;
  background: repeating-linear-gradient(-45deg, var(--bronze) 0 6px, var(--ivory) 6px 12px, var(--soot) 12px 18px) 0 0 / 100% 50.9px;
  animation: pole 2.4s linear infinite;
}

/* ---------- 3. Intro ---------- */
.intro__grid { display: grid; gap: 32px; }
.intro__title {
  font: 800 clamp(3.4rem, 13vw, 11rem)/1 var(--f-display);
  text-transform: none; letter-spacing: normal;
}
.intro__title em { font-size: 1.02em; }
.intro__pill {
  display: inline-block; vertical-align: middle;
  width: 1.6em; height: .72em; border-radius: 999px; margin-inline: .06em;
  transform: translateY(-.06em);
  /* شعار عمود الحلاقة (barber pole)، بألوان الموقع بدل الأحمر/الأزرق التقليدي */
  background:
    radial-gradient(120% 70% at 28% 0%, rgba(237, 230, 218, .38), transparent 55%),
    repeating-linear-gradient(38deg,
      var(--ivory) 0 5px,
      var(--bronze-hi) 5px 10px,
      var(--leather) 10px 15px,
      var(--bronze-hi) 15px 20px);
  box-shadow: inset 0 0 0 1px rgba(237, 230, 218, .18);
}
.intro__pill::after { display: none; }
.intro__body { display: grid; gap: 18px; max-width: 520px; }
.intro__body p:not(.lede) { color: var(--ash); max-width: 46ch; }
.intro__words { display: grid; border-top: 1px solid var(--line); }
.intro__words li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.intro__words span { font: 700 1.5rem/1 var(--f-display); text-transform: none; letter-spacing: normal; }
.intro__words small { font: 400 .8125rem/1.3 var(--f-body); color: var(--ash); text-align: end; }

/* ---------- 4. Services ---------- */
.services { background: var(--tobacco); border-block: 1px solid var(--line); }
.services__grid { display: grid; gap: 40px; }
.services__preview { display: none; }
.svc-list { border-top: 1px solid var(--line-strong); counter-reset: svc; }
.svc { border-bottom: 1px solid var(--line); }
.svc__row {
  width: 100%; display: grid; align-items: baseline; text-align: left;
  grid-template-columns: 1fr auto; grid-template-areas: "name price" "time time";
  gap: 4px 16px; padding: 22px 0;
}
.svc__name {
  grid-area: name; font: 800 clamp(1.9rem, 8.6vw, 3.1rem)/1 var(--f-display); text-transform: none;
  transition: transform .5s var(--ease-out), color .3s;
}
.svc__leader { display: none; }
.svc__time { grid-area: time; font: 500 .8125rem/1 var(--f-body); letter-spacing: normal; color: var(--ash); text-transform: none; }
.svc__price { grid-area: price; font: 500 1.35rem/1 var(--f-mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; transition: color .3s; }
.svc__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.svc__detail > div { overflow: hidden; }
.svc__detail-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 24px; }
.svc__detail p { color: var(--ash); max-width: 44ch; }
.svc__book { font: 600 .8125rem/1 var(--f-body); letter-spacing: normal; text-transform: none; color: var(--bronze-hi); padding-block: 8px; }
.svc__book::after { content: " ←"; }
.svc.is-active .svc__detail { grid-template-rows: 1fr; }
.svc.is-active .svc__name { color: var(--ivory); transform: translateX(10px); }
.svc.is-active .svc__price { color: var(--bronze-hi); }
.svc { position: relative; }
.svc::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 30px; width: 4px; height: 1.8rem;
  background: var(--bronze); transform: scaleY(0); transition: transform .45s var(--ease-out);
}
.svc.is-active::before { transform: scaleY(1); }

.ph--preview { aspect-ratio: 4 / 5; transition: background .8s var(--ease-out); }
.svc-icon {
  position: absolute; inset: 0; margin: auto; width: 34%; z-index: 2;
  fill: none; stroke: rgba(237, 230, 218, .82); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .35s, transform .6s var(--ease-out);
}
.svc-icon.swap { opacity: 0; transform: translateY(10px) rotate(-6deg); }
.preview__meta { position: absolute; inset-inline-end: 18px; top: 14px; z-index: 3; display: flex; align-items: baseline; gap: 6px; }
.preview__time { font: 900 clamp(5rem, 9vw, 8rem)/.8 var(--f-display); color: var(--ivory); font-variant-numeric: tabular-nums; }
.preview__unit { font: 400 1.6rem/1 var(--f-accent); color: var(--bronze-hi); }

/* ---------- 5. Experience ---------- */
.steps { display: grid; gap: clamp(56px, 9vw, 120px); position: relative; }
.step { display: grid; gap: 20px; }
.step__n {
  font: 900 clamp(6rem, 30vw, 15rem)/.8 var(--f-display); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(to top, var(--bronze) 50%, transparent 50%) 0 0 / 100% 200% no-repeat;
  -webkit-background-clip: text; background-clip: text; background-position: 0 0%;
}
.step__title { font: 800 var(--t-h3)/1 var(--f-display); text-transform: uppercase; }
.step__text { color: var(--ash); max-width: 36ch; margin-top: 10px; }
.step .ph { aspect-ratio: 3 / 2; }

/* ---------- 6. Barber ---------- */
.barber__grid { display: grid; gap: 48px; }
.barber__photo { aspect-ratio: 3 / 4; max-height: 80svh; }
.barber__tag { position: absolute; inset-inline-start: 14px; top: 14px; z-index: 3; }
.barber__copy { display: grid; gap: 28px; align-content: center; }
.barber__quote {
  font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.4 var(--f-accent); color: var(--ivory);
  padding-inline-start: 22px; border-inline-start: 1px solid var(--bronze); max-width: 30ch;
}
.barber__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.barber__facts div { padding: 18px 12px 18px 0; display: grid; gap: 10px; }
.barber__facts div + div { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.barber__facts dt { font: 500 .75rem/1.3 var(--f-body); letter-spacing: normal; text-transform: none; color: var(--ash); }
.barber__facts dd { font: 700 1.35rem/1 var(--f-display); text-transform: uppercase; }
.barber__specialties { font: 400 .9375rem/1.6 var(--f-body); color: var(--ash); }

/* Phase 6 — optional, empty by default: section description under a title,
   footer social row. Both stay invisible until the Website Editor sets them. */
.section-desc { color: var(--ash); font: 400 var(--t-body)/1.6 var(--f-body); max-width: 55ch; margin-top: 10px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.footer__social a { font: 600 .8125rem/1 var(--f-body); color: var(--ash); }
.footer__social a:hover { color: var(--bronze-hi); }
.barber__facts dd .placeholder { font-size: .6rem; }

/* ---------- 7. Gallery ---------- */
.gallery { padding-top: 0; }
.gallery__grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 38vw;
  grid-template-areas: "a a" "a a" "b c" "d c" "f f" "e e";
}
.g-item { position: relative; overflow: hidden; }
.g-item .ph { position: absolute; inset: 0; transition: transform 1.1s var(--ease-out), filter .6s; filter: saturate(.85) brightness(.92); }
.g-item:hover .ph { transform: scale(1.04); filter: saturate(1) brightness(1); }

/* ---------- 8. Products ---------- */
.prod-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
.prod { display: grid; gap: 14px; }
.prod__stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 38%, var(--leather), var(--tobacco) 70%);
  border: 1px solid var(--line);
}
.prod__stage::after { /* plinth */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.55), transparent 70%);
}
.prod__stage svg { position: absolute; inset: 0; margin: auto; height: 64%; z-index: 1; transition: transform .7s var(--ease-out); }
.prod:hover .prod__stage svg { transform: translateY(-8px); }
.prod__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prod__name { font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; }
.prod__price { font: 500 .95rem/1 var(--f-mono); color: var(--bronze-hi); direction: ltr; unicode-bidi: isolate; }
.prod__blurb { color: var(--ash); font-size: .875rem; margin-top: -6px; }

/* ---------- 9. Visit ---------- */
.visit { background: var(--tobacco); border-top: 1px solid var(--line); }
.visit__grid { display: grid; gap: 56px; }
.visit__hours { display: grid; gap: 24px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 12px; }
.hours th, .hours td { padding: 20px 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: baseline; }
.hours tr:first-child > * { border-top: 1px solid var(--line-strong); }
.hours th { font: 700 clamp(1.3rem, 3vw, 1.9rem)/1 var(--f-display); text-transform: uppercase; }
.hours td { text-align: end; font: 400 1.0625rem/1 var(--f-mono); font-variant-numeric: tabular-nums; direction: ltr; }
.hours .today-chip { display: inline-block; margin-inline-start: 10px; vertical-align: middle; font: 600 .6875rem/1 var(--f-body); letter-spacing: normal; text-transform: none; color: var(--soot); background: var(--bronze); padding: 4px 6px; }
.hours tr.is-today th { color: var(--bronze-hi); }
.visit__info { display: grid; gap: 24px; align-content: start; }
.contact { display: grid; }
.contact div { display: grid; gap: 8px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.contact div:first-child { border-top: 1px solid var(--line-strong); }
.contact dt { font: 500 .75rem/1 var(--f-body); letter-spacing: normal; text-transform: none; color: var(--ash); }
.contact dd { font-size: 1.1rem; }
.visit__map { aspect-ratio: 16 / 10; }

/* ---------- 10. Final CTA (inverted) ---------- */
.final { position: relative; overflow: hidden; background: var(--ivory); color: var(--soot); padding-block: clamp(96px, 14vw, 220px); }
.final em { color: var(--bronze-lo); }
.final .eyebrow { color: var(--bronze-lo); }
.final__stripes {
  position: absolute; inset: -50% -10%; opacity: .045; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--soot) 0 36px, transparent 36px 72px, var(--bronze) 72px 108px, transparent 108px 144px);
  animation: stripes 40s linear infinite;
}
.final__inner { position: relative; display: grid; gap: 28px; justify-items: start; }
.final__title { font: 900 clamp(3.2rem, 12vw, 11rem)/1.05 var(--f-display); text-transform: none; letter-spacing: normal; max-width: 13ch; text-wrap: balance; }
.final__sub { font-size: var(--t-lede); line-height: 1.4; max-width: 34ch; color: #3b342d; }
.final .btn--solid { --bg: var(--soot); --fg: var(--ivory); --bd: var(--soot); }
.final .btn::before { background: var(--bronze); }
.final .btn:hover, .final .btn:focus-visible { color: var(--soot); border-color: var(--bronze); }
.final .btn--xl { width: 100%; }
.final :focus-visible { outline-color: var(--soot); }

/* ---------- 11. Footer ---------- */
.footer { padding-top: 80px; border-top: 1px solid var(--line); padding-bottom: 110px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 14px; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: .875rem; }
.footer__col h3 { font: 600 .75rem/1 var(--f-body); letter-spacing: normal; text-transform: none; color: var(--ash); margin-bottom: 6px; }
.footer__col a { color: rgba(237, 230, 218, .82); transition: color .25s; width: fit-content; }
.footer__col a:hover { color: var(--bronze-hi); }
.footer__col .placeholder { font-size: .72rem; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-block: 24px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--ash); }
/* سطر الحقوق (©) في أقصى الشمال أسفل الصفحة: ثاني عنصر بالترتيب = آخر الصف = الشمال بصفحة RTL */
.footer__base > p:first-child { order: 2; }
.footer__base .credit { flex-basis: 100%; text-align: center; opacity: .6; order: 3; }

/* ---------- Dock + toast ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--soot) 55%, transparent);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.dock[data-show="true"] { transform: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  background: var(--ivory); color: var(--soot); padding: 14px 18px;
  font: 500 .8125rem/1.4 var(--f-body); box-shadow: 0 20px 50px rgba(0,0,0,.45);
  animation: fadeUp .45s var(--ease-out) both;
}
.toast b { font-weight: 600; }

/* ==========================================================================
   Tablet ≥ 700px
   ========================================================================== */
@media (min-width: 700px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .intro__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 48px; }
  .intro__grid > .eyebrow { grid-column: 1 / -1; }
  .intro__title { grid-column: 1 / -1; }
  .intro__body { grid-column: 1 / 7; }
  .intro__words { grid-column: 8 / -1; align-self: start; }
  .svc__row { grid-template-columns: auto 1fr auto auto; grid-template-areas: "name leader time price"; gap: 20px; padding: 26px 0; }
  .svc__leader { display: block; grid-area: leader; align-self: end; height: 1px; margin-bottom: .55em; background: radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px) 0 0 / 8px 2px repeat-x; }
  .svc__price { min-width: 4ch; text-align: end; direction: ltr; }
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; column-gap: 40px; }
  .step__n { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .step .ph { grid-column: 2; }
  .step__body { grid-column: 2; }
  .step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .step:nth-child(even) .step__n { grid-column: 2; }
  .step:nth-child(even) .ph, .step:nth-child(even) .step__body { grid-column: 1; }
  .prod-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
  .final .btn--xl { width: auto; }
  .gallery__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 230px);
    grid-template-areas: "a a a b c c" "a a a d c c" "e e f f f f";
    gap: 12px;
  }
  .section-head--row { grid-template-columns: 1fr auto; }
}

/* ==========================================================================
   Desktop ≥ 1000px
   ========================================================================== */
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .menu-btn, .menu { display: none !important; }
  .dock { display: none; }

  /* Hero: layered editorial composition */
  .hero { display: block; min-height: max(760px, min(100svh, 1000px)); padding: 0; }
  .hero__frame {
    position: absolute; margin: 0; z-index: 2;
    top: calc(var(--nav-h) + 28px); left: var(--gutter);
    width: min(38vw, 560px); bottom: clamp(60px, 7vw, 110px);
  }
  .hero__frame::after { display: none; }
  .ph--hero { aspect-ratio: auto; height: 100%; max-height: none; }
  .ph--hero > img { object-position: center 36%; }
  .hero__rail {
    display: block; position: absolute; right: calc(var(--gutter) * .45); top: 50%; z-index: 3;
    transform: translate(50%, -50%) rotate(90deg); transform-origin: center; white-space: nowrap;
    font: 500 .8125rem/1 var(--f-body); letter-spacing: normal; text-transform: none; color: var(--ash);
    animation: fadeIn 1s ease 1.2s both;
  }
  .hero__rail span { color: var(--bronze); margin-inline: 10px; }
  .hero__copy {
    position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--nav-h) + clamp(40px, 8vh, 110px));
    width: min(52vw, 760px); gap: 26px;
  }
  .hero__title .line { white-space: nowrap; }
  .hero__title { font-size: var(--t-h1); }
  .hero__sub { font-size: 1.125rem; }
  .hero__word {
    position: absolute; z-index: 1; right: calc(var(--gutter) - .04em); bottom: -.1em; margin: 0;
    font-size: min(var(--t-mega), 46svh); color: var(--ivory);
  }
  .scroll-cue {
    display: grid; justify-items: center; gap: 12px; position: absolute; z-index: 3;
    left: calc(var(--gutter) + min(38vw, 560px) + 28px); bottom: clamp(60px, 7vw, 110px);
    animation: fadeIn 1s ease 1.4s both;
  }
  .scroll-cue__label {
    display: flex; align-items: center; justify-content: center;
    width: 1.4em; height: 4.5em;
    font: 500 .75rem/1 var(--f-body); letter-spacing: normal; text-transform: none; color: var(--ash);
  }
  .scroll-cue__label span { display: inline-block; white-space: nowrap; transform: rotate(-90deg); }

  .intro__title { grid-column: 1 / 11; }
  .intro__body { grid-column: 2 / 7; }
  .intro__words { grid-column: 8 / 12; }

  .services__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 110px); align-items: start; }
  .services__preview { display: block; position: sticky; top: 100px; }
  .svc__row { cursor: pointer; }

  .barber__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(56px, 8vw, 140px); align-items: center; }
  .visit__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(56px, 8vw, 140px); }
  .visit__info { padding-top: 88px; }
}

@media (min-width: 1000px) and (max-height: 820px) {
  .hero__title { font-size: clamp(3rem, 6.6vw, 6.4rem); }
}

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes rise     { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes lineUp   { from { transform: translateY(105%); } to { transform: none; } }
@keyframes letterUp { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes frameIn  { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes menuIn   { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pole     { to { background-position: 0 50.9px; } }
@keyframes stripes  { to { transform: translateX(203.6px); } }

/* Scroll-driven reveals. Elements are visible at rest; supporting browsers
   animate them as they enter. No JS, no invisible content. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal, .section-head, .svc, .prod, .g-item, .step__body, .step .ph {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
    .step__n { animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    @media (min-width: 1000px) { .hero__word { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; } }
    .ph--hero .ph__light { animation: driftLight linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes fill       { from { background-position: 0 0%; } to { background-position: 0 100%; } }
@keyframes drift      { to { transform: translateY(18%); } }
@keyframes driftLight { to { transform: translateY(12%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .step__n { background-position: 0 100%; }
}

/* منتج بصورة مرفوعة */
.prod__stage--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .7s var(--ease-out); }
.prod:hover .prod__stage--img img { transform: scale(1.04); }
