/* Shafra Barbers, Adliya. Concept site by Orvo.
   One stylesheet for the English and Arabic pages: logical properties throughout. */

:root {
  --green-950: #0a1c16;
  --green-900: #0f2a21;
  --green-800: #15382c;
  --green-700: #1e4a3b;
  --ivory: #efe7d4;
  --ivory-2: #e3d8bf;
  --paper: #f5efe1;
  --ink: #16211c;
  --ink-2: #4b5751;
  --oxblood: #7a1f24;
  --oxblood-2: #5e171b;
  --brass: #c4a265;
  --brass-2: #9a7b43;
  --on-dark: #efe7d4;
  --on-dark-2: rgb(239 231 212 / .7);
  --line-dark: rgb(196 162 101 / .28);
  --line-light: rgb(22 33 28 / .16);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1240px;
  --header-h: 64px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --grade: sepia(.16) saturate(.86) contrast(1.06) brightness(.94);

  color-scheme: dark;
}

:root:lang(ar) {
  --f-display: "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-width: thin;
  scrollbar-color: var(--brass-2) var(--green-950);
  background: var(--green-950);
}
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track { background: var(--green-950); }
html::-webkit-scrollbar-thumb { background: var(--brass-2); border-radius: 10px; border: 2px solid var(--green-950); }
html::-webkit-scrollbar-thumb:hover { background: var(--brass); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--green-950);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; }
p { margin: 0; }

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

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Demo bar ---------- */

.demo-bar {
  position: relative;
  z-index: 30;
  padding: 10px var(--gutter);
  font-size: 13px;
  line-height: 1.4;
  color: var(--on-dark-2);
  text-align: center;
  background: var(--green-950);
  border-block-end: 1px solid rgb(196 162 101 / .16);
}
.demo-bar a {
  display: inline-block;
  padding: 14px 10px;
  margin: -14px -10px;
  color: var(--on-dark);
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(10 28 22 / .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-block-end: 1px solid rgb(196 162 101 / .14);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: .01em;
}
.brand-name small {
  display: block;
  margin-block-start: 2px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--on-dark-2);
}
.nav { display: none; }
.nav a, .lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 12px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark-2);
  border-radius: 4px;
  transition: color 160ms ease, background-color 160ms ease;
}
.lang { color: var(--on-dark); padding-inline: 10px; }
.lang:lang(ar), .lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--f-body); }
.lang[lang="en"] { font-family: "Archivo", system-ui, sans-serif; }

@media (min-width: 860px) {
  .nav { display: flex; gap: 2px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 1rem/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-brass { background: var(--brass); color: var(--green-950); }
.btn-ghost { border-color: rgb(239 231 212 / .35); color: var(--on-dark); }
.btn-ox { background: var(--oxblood); color: var(--ivory); }
.btn-small { min-height: 44px; min-width: 56px; padding: 10px 16px; font-size: .92rem; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .lang:hover { color: var(--on-dark); background: rgb(239 231 212 / .07); }
  .demo-bar a:hover { color: var(--brass); }
  .btn-brass:hover { background: #d3b276; }
  .btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
  .btn-ox:hover { background: #8d262c; }
}

/* ---------- Hero: the barber pole ---------- */

.hero-track { position: relative; }

.stage {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 55% at 72% 40%, rgb(196 162 101 / .16), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, var(--green-950), transparent 60%),
    linear-gradient(180deg, var(--green-900), var(--green-800) 60%, var(--green-900));
}
.stage::after {
  /* faint brushed grain so the green reads as a painted wall, not a flat fill */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .012) 0 1px, transparent 1px 3px);
}

.js.scrub .hero-track { height: 380svh; }
/* the price list slides up over the pinned, fully wiped stage */
.js.scrub .services {
  position: relative;
  z-index: 1;
  margin-block-start: calc(-1 * max(600px, 100svh - var(--header-h)));
  padding-block-start: clamp(48px, 7vw, 88px);
}
.js.scrub .stage {
  position: sticky;
  top: var(--header-h);
  max-height: none;
}

/* the slot the pole occupies before scrolling: the poster and the 3D camera both read it */
.pole-slot {
  position: absolute;
  z-index: 1;
  inset-inline-end: 14%;
  top: 9%;
  height: 82%;
  aspect-ratio: 120 / 440;
  pointer-events: none;
}
.poster { width: 100%; height: 100%; transition: opacity 500ms ease; }
.pole-shadow {
  position: absolute;
  inset-block-end: -2%;
  inset-inline-start: 50%;
  width: 160%;
  height: 7%;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(0 0 0 / .45), transparent);
  transition: opacity 500ms ease;
}
:dir(rtl) .pole-shadow { translate: 50% 0; }

.gl {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}
.stage.is-live .gl { opacity: 1; }
.stage.is-live .poster, .stage.is-live .pole-shadow { opacity: 0; }

/* giant words that slide behind the pole while it turns */
.words {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
}
.js.scrub .words { display: block; }
.word {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.word b {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(8.5rem, 31vw, 27rem);
  line-height: .8;
  letter-spacing: -.01em;
  color: var(--ivory);
}
.word:nth-child(2) b { color: transparent; -webkit-text-stroke: 2px var(--brass); }
.word:nth-child(3) b { color: #a43a3f; }

.hero-copy {
  position: absolute;
  z-index: 3;
  inset-inline-start: 0;
  inset-block: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  width: min(100%, 700px);
  padding-inline: var(--gutter);
  padding-block: 32px;
  will-change: transform, opacity;
}
@media (min-width: 1240px) {
  .hero-copy { inset-inline-start: calc((100% - var(--max)) / 2); }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 34px;
  padding: 6px 14px 6px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--on-dark);
  background: rgb(10 28 22 / .55);
  border: 1px solid var(--line-dark);
  border-radius: 40px;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
}
.status[data-state="open"]::before { background: #6fcf8e; box-shadow: 0 0 0 4px rgb(111 207 142 / .18); }
.status[data-state="soon"]::before { background: #e6b14f; }
.status[data-state="closed"]::before { background: #c9545a; }

.hero h1 {
  font-size: clamp(3.4rem, 7.2vw, 6.9rem);
  line-height: .86;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.hero h1:lang(ar) { font-size: clamp(2.5rem, 5.6vw, 5.1rem); line-height: 1.12; letter-spacing: 0; font-weight: 700; }
.lede {
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--on-dark-2);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { font-size: .9rem; color: var(--on-dark-2); }

/* closing wipe: an ivory stripe sweeps across and hands the page to the price list */
.wipe {
  position: absolute;
  z-index: 4;
  inset-block: -10%;
  inset-inline-start: -60%;
  width: 220%;
  background: var(--paper);
  transform: translateX(100%) skewX(-24deg);
  pointer-events: none;
  display: none;
}
.js.scrub .wipe { display: block; }

/* Phone: the copy sits high and left; the pole hangs beside it on the right, leaning in.
   --tilt is read by scene.js too, so the 3D pole starts at exactly the poster's angle. */
@media (max-width: 759px) {
  .pole-slot {
    --tilt: 11deg;
    inset-inline-end: 2%;
    top: 15%;
    height: 56%;
  }
  :dir(rtl) .pole-slot { --tilt: -11deg; }
  .poster { rotate: var(--tilt); }
  .hero-copy {
    justify-content: center;
    gap: 18px;
    padding-block: 24px 40px;
  }
  .hero h1 { font-size: clamp(2.5rem, 12.4vw, 3.3rem); max-width: 62%; }
  .hero h1:lang(ar) { font-size: clamp(2rem, 9.6vw, 2.6rem); }
  .hero-copy .lede { max-width: 62%; }
  .hero-actions { margin-block-start: 6px; }
  .word b { font-size: 42vw; }
  .lede { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 759px) and (max-height: 700px) {
  .pole-slot { height: 60%; top: 12%; }
  .hero-copy .lede { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 11vw, 140px); }
.section-head {
  display: grid;
  gap: 18px;
  margin-block-end: clamp(36px, 6vw, 64px);
}
.section-head h2 {
  font-size: clamp(3.3rem, 9vw, 7.4rem);
  line-height: .86;
  letter-spacing: -.005em;
}
.section-head h2:lang(ar) { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.15; letter-spacing: 0; font-weight: 700; }
.section-head p { max-width: 58ch; color: var(--on-dark-2); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; }
}

/* ---------- Services: ivory price board ---------- */

.services { background: var(--paper); color: var(--ink); }
.services .section-head p { color: var(--ink-2); }

.price-list { list-style: none; margin: 0; padding: 0; border-block-start: 2px solid var(--ink); }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "desc desc" "time time";
  column-gap: 16px;
  row-gap: 4px;
  padding-block: 20px 22px;
  border-block-end: 1px solid var(--line-light);
}
.price-row h3 {
  grid-area: name;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: .95;
  font-weight: 800;
  align-self: center;
}
.price-row h3:lang(ar) { font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.3; font-weight: 700; }
.price-row .desc { grid-area: desc; max-width: 60ch; color: var(--ink-2); margin-block-start: 4px; }
.price-row .time { grid-area: time; font-size: .88rem; font-weight: 600; color: var(--oxblood); }
.price {
  grid-area: price;
  align-self: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price small { font-family: var(--f-body); font-size: .5em; font-weight: 600; margin-inline-start: 3px; }
.price:lang(ar) { font-family: "Big Shoulders Display", var(--f-display); }
.price-row.featured { position: relative; }
.price-row.featured::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--gutter) * -1);
  inset-block: 18px;
  width: 4px;
  background: var(--oxblood);
}
@media (min-width: 900px) {
  .price-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 110px auto;
    grid-template-areas: "name desc time price";
    column-gap: 32px;
    align-items: center;
  }
  .price-row .desc, .price-row .time { margin: 0; }
  .price { min-width: 6.2ch; text-align: end; }
}
.services-note {
  margin-block-start: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  color: var(--ink-2);
  font-size: .95rem;
}
.services-note .btn-ox { color: var(--ivory); }

/* ---------- Barbers ---------- */

.barbers { background: var(--green-900); }
.crew {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 78%);
  gap: 14px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-block-end: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--brass-2) transparent;
  list-style: none;
  margin-block: 0;
}
.crew::-webkit-scrollbar { height: 6px; }
.crew::-webkit-scrollbar-track { background: transparent; }
.crew::-webkit-scrollbar-thumb { background: var(--brass-2); border-radius: 6px; }
@media (min-width: 900px) {
  .crew { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.barber {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04);
}
/* Real barbers, one photo set: same 4:5 frame, same warm-green grade. */
.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--green-950);
  box-shadow: 0 14px 30px -18px rgb(0 0 0 / .85);
  isolation: isolate;
}
.portrait img, .tile:not(.type) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--grade);
}
/* A low-key original gets one stop of exposure back so the set reads evenly. */
.portrait.lift img { filter: var(--grade) brightness(1.18); }
/* Shared tint: brass lift in the highlights, green in the shadows. */
.portrait::before, .tile:not(.type) figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(165deg, rgb(196 162 101 / .38), rgb(15 42 33 / .62));
  mix-blend-mode: soft-light;
}
/* Fine brass keyline, echoing the old nameplate frame. */
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(196 162 101 / .38);
  background: linear-gradient(180deg, transparent 62%, rgb(10 28 22 / .5));
}
.portrait .chair {
  position: absolute;
  z-index: 3;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 5px 9px 4px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  color: var(--green-950);
  background: linear-gradient(180deg, #d6b87c, #b39257);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgb(255 255 255 / .3) inset, 0 4px 10px -4px rgb(0 0 0 / .6);
}
.portrait .chair:lang(ar) { letter-spacing: 0; font-size: .8rem; }
.barber h3 { font-size: 2rem; line-height: 1; }
.barber h3:lang(ar) { font-size: 1.45rem; line-height: 1.3; font-weight: 700; }
.barber .role { color: var(--brass); font-weight: 600; font-size: .95rem; margin-block-start: -6px; }
.barber p.bio { color: var(--on-dark-2); font-size: .98rem; }
.barber .shift { font-size: .88rem; color: var(--on-dark-2); margin-block-start: auto; }
.barber .btn { align-self: stretch; }

/* ---------- Booking ---------- */

.book { background: var(--green-950); }
/* The walk-in note: a handwritten sticky note taped up by the door. The outer box only casts
   the curled-corner shadow; the note itself sits on top, tilted, with a strip of tape. */
.walkin {
  position: relative;
  z-index: 0;
  width: min(100%, 400px);
  margin-block-start: 14px;
  justify-self: start;
}
.walkin::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: 10px;
  bottom: 12px;
  width: 55%;
  height: 24px;
  box-shadow: 0 16px 18px rgb(0 0 0 / .6);
  transform: rotate(4deg) skewX(-12deg);
}
.walkin::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -13px;
  left: 50%;
  width: 104px;
  height: 28px;
  background: linear-gradient(180deg, rgb(255 255 255 / .42), rgb(255 255 255 / .26));
  box-shadow: 0 1px 2px rgb(0 0 0 / .2);
  clip-path: polygon(0 6%, 4% 0, 8% 8%, 12% 0, 100% 2%, 96% 50%, 100% 96%, 92% 100%, 88% 92%, 84% 100%, 0 98%, 3% 50%);
  transform: translateX(-50%) rotate(3deg);
}
.note {
  position: relative;
  padding: 30px 28px 22px;
  color: #2b2a1c;
  background:
    linear-gradient(170deg, rgb(255 255 255 / .35), transparent 30%),
    linear-gradient(180deg, #f1dc86 0, #f6e6a2 14%, #f4e29a 70%, #ead27e 100%);
  border-radius: 2px 2px 4px 2px / 2px 2px 26px 2px;
  box-shadow: 0 1px 1px rgb(0 0 0 / .18), 0 10px 22px -12px rgb(0 0 0 / .7), inset -14px -18px 26px -22px rgb(110 80 10 / .55);
  transform: rotate(-2.4deg);
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: 1.5rem;
  line-height: 1.12;
  transition: transform 320ms cubic-bezier(.23, 1, .32, 1);
}
.walkin .note p { margin: 0; color: inherit; max-width: none; }
.walkin .note-head { position: relative; display: inline-block; font-size: 2.05rem; font-weight: 700; color: #6b1f24; margin-block-end: 10px; }
.walkin-line { position: absolute; inset-inline: -4px; bottom: -6px; width: calc(100% + 8px); height: 12px; color: #a43a3f; }
.walkin .note-sign { margin-block-start: 12px; text-align: end; font-size: 1.3rem; color: #4a4630; }
.note:lang(ar) { font-family: "Aref Ruqaa", "IBM Plex Sans Arabic", serif; font-size: 1.3rem; line-height: 1.75; }
.note:lang(ar) .note-head { font-size: 1.7rem; line-height: 1.5; }
.note:lang(ar) .note-sign { font-size: 1.15rem; }
@media (hover: hover) and (pointer: fine) {
  .walkin:hover .note { transform: rotate(-1deg) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) { .note { transition: none; } }

.booker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.steps { min-width: 0; }
@media (min-width: 1000px) {
  .booker { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .ticket { position: sticky; top: calc(var(--header-h) + 24px); }
}
.step {
  margin: 0;
  padding: 0 0 28px;
  border: 0;
  border-block-end: 1px solid var(--line-dark);
  min-width: 0;
}
.step + .step { margin-block-start: 26px; }
.step legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  margin-block-end: 16px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}
.step legend:lang(ar) { font-size: 1.3rem; line-height: 1.3; font-weight: 700; }
.step legend span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  color: var(--brass);
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 600;
  translate: 0 -3px;
}
.choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 700px) { .choices { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.choices.barbers-pick { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 60px;
  padding: 10px 14px;
  background: var(--green-900);
  border: 1px solid rgb(239 231 212 / .14);
  border-radius: 3px;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.choice b { font-weight: 600; font-size: 1rem; line-height: 1.25; }
.choice small { font-size: .84rem; color: var(--on-dark-2); }
.choice:active > span { transform: scale(.97); }
.choice input:checked + span {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink);
}
.choice input:checked + span small { color: var(--oxblood); }
.choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.choice input:disabled { cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .choice:hover input:not(:checked):not(:disabled) + span { border-color: var(--brass); }
}

.days {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 92px;
  gap: 8px;
  overflow-x: auto;
  padding-block-end: 10px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--brass-2) transparent;
}
.days::-webkit-scrollbar { height: 6px; }
.days::-webkit-scrollbar-track { background: transparent; }
.days::-webkit-scrollbar-thumb { background: var(--brass-2); border-radius: 6px; }
@media (min-width: 1000px) { .days { margin-inline: 0; padding-inline: 0; grid-auto-columns: minmax(0, 1fr); } }
.days .choice { scroll-snap-align: start; }
.days .choice > span { align-items: center; text-align: center; min-height: 68px; padding-inline: 6px; }
.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin-block-start: 14px;
}
.times .choice > span { min-height: 46px; align-items: center; padding-inline: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.times-empty, .js-only-note { color: var(--on-dark-2); font-size: .95rem; margin-block-start: 12px; }
.no-js-hide { display: none; }
.js .no-js-hide { display: grid; }
.js .js-hide { display: none; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: 420px; }
.field label { font-size: .9rem; color: var(--on-dark-2); }
.field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  font: 500 1rem var(--f-body);
  color: var(--on-dark);
  background: var(--green-900);
  border: 1px solid rgb(239 231 212 / .2);
  border-radius: 3px;
}
.field input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }

/* the ticket: a paper stub with punched notches */
.ticket {
  --notch: 12px;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 64%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 64%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  border-radius: 4px;
  padding: 24px 22px 22px;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / .35));
}
.ticket h3 { font-size: 1.9rem; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ticket h3:lang(ar) { font-size: 1.4rem; line-height: 1.3; font-weight: 700; }
.ticket h3 small { font-family: var(--f-body); font-size: .8rem; font-weight: 600; color: var(--oxblood); }
.ticket dl { margin: 16px 0 0; display: grid; gap: 0; }
.ticket dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-block: 9px;
  border-block-end: 1px dashed var(--line-light);
}
.ticket dt { font-size: .82rem; color: var(--ink-2); padding-block-start: 2px; }
.ticket dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ticket dd.empty { color: var(--ink-2); font-weight: 400; }
.ticket .total { display: flex; justify-content: space-between; align-items: baseline; margin-block: 34px 16px; }
.ticket .total span { font-size: .9rem; color: var(--ink-2); }
.ticket .total strong { font-family: "Big Shoulders Display", var(--f-display); font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket .btn { width: 100%; }
.ticket .hint { margin-block-start: 12px; font-size: .86rem; color: var(--ink-2); min-height: 2.6em; }

/* ---------- Gallery ---------- */

.gallery { background: var(--green-900); }
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  grid-auto-flow: dense;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(300px, 27vw, 380px); gap: 14px; }
  .tiles .tile, .tiles .tile.type { aspect-ratio: auto; min-height: 0; }
  .tiles .tile img { aspect-ratio: auto; height: 100%; }
  .tile.wide { grid-column: span 2; }
  .tile.tall { grid-row: span 2; }
}
.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--green-800);
  min-height: 220px;
}
.tile.wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.tile.wide img { aspect-ratio: 16 / 10; }
.tile figcaption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 40px 14px 12px;
  font-size: .9rem;
  line-height: 1.35;
  color: var(--ivory);
  background: linear-gradient(transparent, rgb(10 28 22 / .88));
}
.tile figcaption b { display: block; font-size: 1rem; font-weight: 600; }
.tile figure { margin: 0; height: 100%; }
.tile:not(.type) figure { position: relative; }
.tile:not(.type) figcaption { z-index: 2; }
.tile.type { aspect-ratio: 4 / 5; }
.tile.type figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}
.tile.type figcaption { position: static; padding: 0; background: none; }
.tile.type figcaption b { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; font-weight: 800; margin-block-end: 6px; }
.tile.type figcaption b:lang(ar) { font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.tile.fade-chart { background: var(--paper); color: var(--ink); }
.tile.fade-chart figcaption { color: var(--ink-2); }
.tile.fade-chart figcaption b { color: var(--ink); }
.tile svg { width: 100%; height: auto; flex: 1; min-height: 0; }
@media (max-width: 899px) {
  /* Half-width photo tiles carry 4-5 caption lines on a phone: a deeper scrim keeps them legible over bright towels and skin. */
  .tile:not(.wide):not(.type) figcaption {
    padding: 72px 12px 12px;
    font-size: .84rem;
    background: linear-gradient(transparent, rgb(10 28 22 / .78) 42%, rgb(10 28 22 / .94));
  }
  .tile:not(.wide):not(.type) figcaption b { font-size: .95rem; }
  .tile.type { aspect-ratio: auto; }
  .tile.type svg { flex: none; height: 92px; }
  .tile.type figcaption b { font-size: 1.35rem; }
  .tile.type figure { padding: 14px; gap: 12px; }
}

/* ---------- Visit ---------- */

.visit { background: var(--green-950); }
.visit-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.address {
  font-style: normal;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
}
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.visit-notes { display: grid; gap: 10px; color: var(--on-dark-2); max-width: 52ch; }
.visit-notes strong { color: var(--on-dark); font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: start; margin-block-end: 14px; }
.hours th, .hours td { padding: 16px 0; text-align: start; border-block-end: 1px solid var(--line-dark); font-weight: 500; }
.hours td { text-align: end; white-space: nowrap; padding-inline-start: 16px; }
.hours tr[aria-current] th, .hours tr[aria-current] td { color: var(--brass); font-weight: 600; }
.hours tr[aria-current] th::after { content: attr(data-today); margin-inline-start: 10px; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: rgb(196 162 101 / .16); }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-950); border-block-start: 1px solid var(--line-dark); padding-block: 40px 48px; }
.footer-word {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(5rem, 22vw, 17rem);
  line-height: .78;
  color: var(--green-800);
  margin-block-end: 28px;
  letter-spacing: -.01em;
  user-select: none;
}
.footer-word:lang(ar) { font-size: clamp(4rem, 17vw, 13rem); line-height: 1.1; font-weight: 800; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; color: var(--on-dark-2); font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 48px; padding-inline: 8px; text-decoration: none; color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--brass); } }

/* ---------- Arabic display sizes ---------- */

.word b:lang(ar) { font-size: clamp(6.5rem, 23vw, 20rem); line-height: 1.2; font-weight: 900; }
.brand-name:lang(ar) { font-size: 1.4rem; font-weight: 800; }
@media (max-width: 759px) { .word b:lang(ar) { font-size: 32vw; } }

/* ---------- Reduced motion / transparency / contrast ---------- */

@media (prefers-reduced-motion: reduce) {
  .gl, .poster, .pole-shadow { transition: none; }
  .btn, .choice > span { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
  .btn:active, .choice:active > span { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--green-950); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --on-dark-2: rgb(239 231 212 / .9); --line-dark: rgb(196 162 101 / .6); }
}
