/* Demo salon site: white marble, navy script, champagne-gold hexagon frames */
:root {
  --paper: #f7f4ef;
  --ink: #1d2550;
  --ink-soft: #4a5277;
  --muted: #8a8fa8;
  --gold: #c2a26b;
  --gold-soft: #e6d6b4;
  --line: rgba(29, 37, 80, .10);
  --glass: rgba(255, 253, 249, .74);
  --shadow: 0 30px 60px -30px rgba(29, 37, 80, .28);
  --r: 22px;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.75 Tajawal, system-ui, sans-serif;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(194, 162, 107, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(29, 37, 80, .06), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='1200'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.004 .009' numOctaves='5' seed='7'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .58  0 0 0 0 .68  0 0 0 -2.2 1.25'/></filter><rect width='100%' height='100%' filter='url(%23m)' opacity='.35'/></svg>");
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: 'Jost', Tajawal, system-ui, sans-serif; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; letter-spacing: .2px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: 'El Messiri', serif; font-weight: 600; line-height: 1.25; margin: 0; }
.script { font-family: 'Pinyon Script', cursive; font-weight: 400; letter-spacing: .5px; direction: ltr; unicode-bidi: isolate; }
.en { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px;
  border-radius: 999px; border: 0; cursor: pointer; font: 700 16px Tajawal, sans-serif; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
html[lang="en"] .btn { font-family: 'Jost', sans-serif; font-weight: 600; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #2c3874, var(--ink)); box-shadow: 0 14px 30px -12px rgba(29, 37, 80, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(29, 37, 80, .7); }
.btn-ghost { color: var(--ink); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(247, 244, 239, .74); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .script { font-size: 32px; line-height: 1; color: var(--ink); }
.brand-mark { width: 24px; height: 28px; }
.links { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 500; color: var(--ink-soft); }
.links a { position: relative; }
.links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); }
.lang { font: 600 14px Tajawal, sans-serif; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: transparent; cursor: pointer; min-width: 52px; }
.lang:hover { border-color: var(--gold); color: var(--ink); }
.nav .btn { height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; letter-spacing: .5px; font-size: 15px; }
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); margin: 16px 0 6px; }
.hero .script.sub { font-size: clamp(34px, 4.4vw, 54px); color: var(--gold); display: block; margin-bottom: 18px; line-height: 1.3; }
html[dir="rtl"] .hero .script.sub { text-align: right; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 32ch; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 40px; color: var(--ink-soft); font-size: 15px; }
.trust b { display: block; font: 600 22px 'El Messiri', serif; color: var(--ink); }

.hero-art { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: center; }
.hex-frames { position: absolute; inset: 0; width: 100%; height: 100%; }
.hex-frames polygon { fill: none; stroke: var(--gold); stroke-width: 1.1; }
.hex-frames .f2 { stroke: #b9bfd3; transform-origin: center; animation: drift 18s ease-in-out infinite; }
.hex-frames .f3 { stroke: var(--gold-soft); transform-origin: center; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: rotate(4deg) scale(1.02); } }
.photo-hex { position: relative; width: 66%; aspect-ratio: .866; clip-path: var(--hex); background: linear-gradient(160deg, #e9e3d8, #cfc6b8); box-shadow: var(--shadow); }
.photo-hex img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translateY(-3%); } }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.chip b { color: var(--ink); font-weight: 700; display: block; font-size: 15px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #3dbb85; box-shadow: 0 0 0 5px rgba(61, 187, 133, .18); animation: pulse 2s infinite; }
.chip .dot.closed { background: #d9a441; box-shadow: 0 0 0 5px rgba(217, 164, 65, .18); }
.chip svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(61, 187, 133, 0); } }
.chip-1 { top: 12%; inset-inline-end: -2%; }
.chip-2 { bottom: 16%; inset-inline-end: 4%; }

/* ---------- sections ---------- */
section { padding: 90px 0; }
.head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.head .script { color: var(--gold); font-size: 40px; display: block; line-height: 1.2; }
.head h2 { font-size: clamp(32px, 4vw, 46px); margin-top: 4px; }
.head p { color: var(--ink-soft); margin: 12px 0 0; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { position: relative; border-radius: var(--r); background: var(--glass); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), var(--shadow); transition: transform .35s; overflow: hidden; }
.svc:hover { transform: translateY(-6px); }
.svc-photo { position: relative; height: 230px; overflow: hidden; background: linear-gradient(160deg, #ece6dc, #d6cdbf); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.svc:hover .svc-photo img { transform: scale(1.07); }
.svc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(247, 244, 239, .95), transparent 45%); }
.svc-ico { position: absolute; z-index: 1; top: 196px; inset-inline-start: 26px; width: 64px; height: 72px; display: grid; place-items: center; }
.svc-ico svg.hx { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-ico svg.hx polygon { fill: #fffdf9; stroke: var(--gold); stroke-width: 1.4; }
.svc-ico svg.ic { width: 26px; height: 26px; position: relative; color: var(--ink); }
.svc-body { padding: 34px 28px 30px; }
.svc h3 { font-size: 26px; }
.svc h3 .en { color: var(--gold); font-size: 19px; font-weight: 500; margin-inline-start: 6px; }
html[lang="en"] [data-ar-only] { display: none; }
.svc ul { list-style: none; padding: 0; margin: 14px 0 22px; color: var(--ink-soft); display: grid; gap: 6px; }
.svc li::before { content: "◇"; color: var(--gold); margin-inline-end: 8px; font-size: 12px; }
.more { font: inherit; font-weight: 700; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; cursor: pointer; background: none; border: 0; padding: 0; }
.more:hover { color: var(--gold); }
.more .arr { transition: transform .2s; display: inline-block; }
html[dir="rtl"] .more .arr { transform: scaleX(-1); }
.more:hover .arr { transform: translateX(4px); }
html[dir="rtl"] .more:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ---------- booking ---------- */
#book { position: relative; }
.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.booking .head { text-align: start; margin: 0; }
.steps { display: grid; gap: 18px; margin: 28px 0 32px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step i { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font: 700 18px 'El Messiri', serif; font-style: normal;
  color: var(--ink); background: #fff; border: 1px solid var(--gold-soft); }
.step b { display: block; }
.step span { color: var(--ink-soft); font-size: 15px; }
.private { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.book-aside-photo { margin-top: 30px; border-radius: var(--r); overflow: hidden; height: 220px; box-shadow: var(--shadow); background: #e9e3d8; }
.book-aside-photo img { width: 100%; height: 100%; object-fit: cover; }
.book-frame { border-radius: 26px; padding: 10px; background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); }

/* Shown until the demo salon is live on Selvaxa: a preview of the booking form */
.book-demo { border-radius: 18px; background: #fff; padding: 26px; }
.demo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.demo-top small { color: var(--muted); }
.demo-svc { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.demo-svc.on { border-color: var(--ink); background: rgba(29, 37, 80, .03); }
.demo-svc small { color: var(--muted); display: block; }
.demo-days { display: flex; gap: 8px; margin: 18px 0 12px; }
.demo-days div { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.demo-days div.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-times span { text-align: center; padding: 9px 0; border-radius: 10px; background: #f4f2ee; font-size: 14px; }
.demo-times span.on { background: var(--gold); color: #fff; }
.soon { margin-top: 20px; padding: 18px; border-radius: 16px; background: #faf7f1; border: 1px dashed var(--gold-soft); text-align: center; }
.soon p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; }
.soon .btn { width: 100%; }
.is-live .book-demo { display: none; }
[data-saloon-booking] { display: none; }
.is-live [data-saloon-booking] { display: block; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.g { border-radius: 20px; overflow: hidden; position: relative; background: linear-gradient(160deg, #ece6dc, #d6cdbf); cursor: zoom-in; padding: 0; border: 0; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.g:hover img { transform: scale(1.06); }
.g.tall { grid-row: span 2; }
.g .tag { position: absolute; bottom: 12px; inset-inline-start: 12px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 999px; color: var(--ink); font: 500 13px Tajawal, sans-serif; }
.ig-link { text-align: center; margin-top: 34px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(20, 24, 48, .82); backdrop-filter: blur(6px); padding: 24px; }
.lightbox.open { display: grid; animation: fade .25s; }
.lightbox img { max-height: 86vh; max-width: min(1000px, 100%); border-radius: 18px; box-shadow: 0 40px 80px rgba(0, 0, 0, .4); }
.lightbox button { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px; border-radius: var(--r); background: var(--glass); border: 1px solid rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.card h3 { font-size: 22px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.card h3 svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.card p { margin: 0 0 16px; color: var(--ink-soft); }
.card .big { font: 600 26px 'El Messiri', serif; color: var(--ink); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.card a.link { font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--gold); }

footer { padding: 40px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot .script { font-size: 28px; color: var(--ink); }
.foot .credit { font-size: 12px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* phone: sticky booking bar */
.mbar { display: none; }

@media (max-width: 920px) {
  .links { display: none; }
  .hero { padding-top: 40px; padding-bottom: 50px; }
  .hero-grid, .booking { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 10px auto 0; width: 100%; }
  .services, .visit { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  section { padding: 64px 0; }
  .nav .btn { display: none; }
  .lang { margin-inline-start: auto; }
  footer { padding-bottom: 120px; }
  .mbar { display: flex; gap: 10px; position: fixed; inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; z-index: 60; padding: 10px;
    border-radius: 22px; background: rgba(255, 253, 249, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .mbar .btn { flex: 1; height: 50px; padding: 0 14px; }
  .mbar .btn-ghost { flex: 0 0 56px; padding: 0; }
}
@media (max-width: 420px) { .chip-1 { inset-inline-end: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
