/* Istanbul Hair Style: tokens, type and the shared parts. One locked dark theme (the salon's black and gold),
   one accent (gold), 2px corners everywhere. Logical properties throughout, so Arabic needs no overrides. */

/* One display face per language (so an Arabic page never fetches the Latin one for its spaces and digits),
   and one text face for both scripts, split by unicode-range. */
@font-face { font-family: "IHS Display"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IHS Display AR"; src: url("../fonts/el-messiri-arabic-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IHS Text"; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IHS Text"; src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IHS Text"; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IHS Text"; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --bg: #100e0d;
  --surface: #1b1816;
  --ink: #f4f1ec;
  --ink-2: #b7afa4;
  --gold: #d8b76b;
  --on-gold: #17130c;
  --error: #ff9d8c;
  --line: rgb(216 183 107 / 0.24);
  --line-strong: rgb(216 183 107 / 0.55);
  --r: 2px;
  --display: "IHS Display", "Times New Roman", serif;
  --text: "IHS Text", "Segoe UI", Tahoma, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --max: 75rem;
  --header-h: 4.5rem;
  --space: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root:lang(ar) { --display: "IHS Display AR", "IHS Text", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Smooth only once the page has loaded: a link that opens the page part way down jumps there at once, so
   nothing measures the page while it is still travelling. */
@media (prefers-reduced-motion: no-preference) { html.is-loaded { scroll-behavior: smooth; } }
@media (max-width: 61.99rem) { html { scroll-padding-bottom: 6rem; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-inline-size: 0; }
legend { padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3) { line-height: 1.35; font-weight: 600; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--on-gold); }
[hidden] { display: none !important; }
[id] { scroll-margin-block-start: 1rem; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
:dir(rtl) .icon--flip { transform: scaleX(-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tbc { color: var(--ink-2); }
.skip-link { position: absolute; z-index: 60; inset-inline-start: var(--pad); top: 0.5rem; padding: 0.6rem 1rem; background: var(--gold); color: var(--on-gold); border-radius: var(--r); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Buttons and links */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.55rem 1.5rem; border: 1px solid transparent; border-radius: var(--r); font-weight: 600; font-size: 1rem; line-height: 1.4; text-decoration: none; white-space: nowrap; isolation: isolate; transition: transform 0.2s var(--ease); }
.btn::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: #fff; opacity: 0; transition: opacity 0.25s ease; }
.btn:hover::after { opacity: 0.1; }
.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold::after { z-index: 0; mix-blend-mode: soft-light; }
.btn--gold:hover::after { opacity: 0.55; }
.btn--gold > * { position: relative; z-index: 1; }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.text-link { color: var(--gold); text-decoration: underline; }

/* ---------- Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-block-end: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; text-decoration: none; }
.logo__mark { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; }
.logo__word { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; }
.logo__word:lang(ar) { font-weight: 600; }
.nav__list { display: flex; gap: 2rem; }
.nav__link { position: relative; display: inline-block; padding-block: 0.6rem; text-decoration: none; font-size: 0.975rem; color: var(--ink-2); }
.nav__link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0.25rem; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.site-header__end { display: flex; align-items: center; gap: 1rem; }
.lang { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; text-decoration: none; font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap; }
.lang:hover { color: var(--ink); text-decoration: underline; }
.site-header__book { min-height: 2.75rem; }
.menu-btn { display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r); }
@media (max-width: 61.99rem) {
  :root { --header-h: 4.25rem; }
  .nav, .site-header__book, .site-header__end .lang { display: none; }
  .js .menu-btn { display: grid; }
  /* Without scripts there is no menu button: the links stay, in a row that wraps. */
  html:not(.js) .nav { display: block; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 0.5rem; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 1rem; }
  html:not(.js) .site-header__end .lang { display: inline-flex; }
}
@media (max-width: 22.5rem) { .logo__word { font-size: 1rem; } }

/* ---------- Phone and tablet menu: the page goes black and a thin gold frame holds the links */
.menu { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0.75rem; border: 0; background: var(--bg); color: var(--ink); }
.menu::backdrop { background: var(--bg); }
.menu__panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem; min-height: 100%; padding: 4rem 1.5rem 2rem; border: 1px solid var(--line-strong); border-radius: var(--r); }
.menu__close { position: absolute; inset-block-start: 0.75rem; inset-inline-end: 0.75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r); }
.menu__list { display: grid; justify-items: center; gap: 0.5rem; }
.menu__link { display: inline-block; min-height: 3rem; padding: 0.35rem 1rem; font-family: var(--display); font-size: 2rem; text-decoration: none; }
.menu__link[aria-current="true"] { color: var(--gold); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.menu__phone { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; text-decoration: none; color: var(--ink-2); }
.menu .lang { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .menu { opacity: 0; transition: opacity 0.35s ease, display 0.35s allow-discrete, overlay 0.35s allow-discrete; }
  .menu[open] { opacity: 1; }
  .menu__list > li { opacity: 0; transform: translateY(14px); transition: opacity 0.35s ease, transform 0.5s var(--ease); }
  .menu[open] .menu__list > li { opacity: 1; transform: none; }
  .menu[open] .menu__list > li:nth-child(2) { transition-delay: 0.06s; }
  .menu[open] .menu__list > li:nth-child(3) { transition-delay: 0.12s; }
  .menu[open] .menu__list > li:nth-child(4) { transition-delay: 0.18s; }
  @starting-style {
    .menu[open] { opacity: 0; }
    .menu[open] .menu__list > li { opacity: 0; transform: translateY(14px); }
  }
}

/* ---------- Phone and tablet booking bar */
.bar { display: none; }
@media (max-width: 61.99rem) {
  .bar { position: fixed; z-index: 25; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; padding: 0.7rem var(--pad) calc(0.7rem + env(safe-area-inset-bottom)); background: var(--bg); border-block-start: 1px solid var(--line); transition: transform 0.35s var(--ease), visibility 0.35s; }
  .bar .btn { padding-inline: 0.5rem; font-size: 0.9375rem; }
  .bar.is-away { transform: translateY(110%); visibility: hidden; }
  body.page-home { padding-block-end: 4.75rem; }
}
.bar__count { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: 0.35rem; border-radius: var(--r); background: var(--on-gold); color: var(--gold); font-size: 0.8125rem; }

/* ---------- Disclosures (the full price lists, the questions, the photo credits): smooth both ways */
.disclosure__summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; cursor: pointer; list-style: none; }
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__caret { color: var(--gold); transition: transform 0.3s var(--ease); }
.disclosure[open] > .disclosure__summary .disclosure__caret { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    .disclosure { interpolate-size: allow-keywords; }
    .disclosure::details-content { display: flow-root; height: 0; opacity: 0; overflow: clip; transition: height 0.4s var(--ease), opacity 0.3s ease, content-visibility 0.4s allow-discrete; }
    .disclosure[open]::details-content { height: auto; opacity: 1; }
  }
}

/* ---------- Footer: centred, like their flyers */
.site-footer { border-block-start: 1px solid var(--line); padding-block: 4rem 3rem; text-align: center; font-size: 0.9375rem; color: var(--ink-2); }
.site-footer__inner { display: grid; justify-items: center; gap: 1.25rem; }
.site-footer__mark { width: 4.5rem; height: 4.5rem; border: 1px solid var(--line-strong); border-radius: 50%; }
.site-footer__name { font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: var(--ink); text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.site-footer__meta a { display: inline-block; min-height: 1.5rem; }
.disclosure--credits { width: min(100%, 36rem); }
.disclosure--credits > summary { justify-content: center; gap: 0.5rem; }
.credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; margin-block-end: 0.75rem; }
.credits a { display: inline-block; min-height: 1.5rem; }
.site-footer__legal { color: var(--ink); }
.site-footer__legal a { color: var(--gold); }

/* ---------- Not found */
.notfound__inner { display: grid; justify-items: center; gap: 1.25rem; text-align: center; min-height: 40vh; align-content: center; }
.section { padding-block: var(--space); }
.section__title { font-size: clamp(2.125rem, 4.4vw, 3.25rem); }
.section__lead { max-width: 36rem; color: var(--ink-2); }
.section__head { display: grid; gap: 0.75rem; margin-block-end: clamp(2rem, 4vw, 3.5rem); }
.section__head--center { justify-items: center; text-align: center; }
