/* ============ Makeup Shams – theme tokens ============ */
:root {
  --bg: #faf6f1;
  --bg-2: #f3ebe2;
  --surface: #ffffff;
  --ink: #2a1f1a;
  --muted: #7a6a60;
  --line: #e7dbcf;
  --gold: #b8863b;
  --gold-2: #e9c27a;
  --rose: #c97b84;
  --on-accent: #ffffff;
  --shadow: 0 20px 50px -24px rgba(90, 55, 30, .35);
  --radius: 22px;
  --font-body: "Tajawal", system-ui, sans-serif;
  --font-head: "El Messiri", "Tajawal", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120d0b; --bg-2: #1a1310; --surface: #211915; --ink: #f3e9df; --muted: #b3a294;
    --line: #34281f; --gold: #e0b56a; --gold-2: #f3d49a; --rose: #d98f98; --on-accent: #1a120d;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #120d0b; --bg-2: #1a1310; --surface: #211915; --ink: #f3e9df; --muted: #b3a294;
  --line: #34281f; --gold: #e0b56a; --gold-2: #f3d49a; --rose: #d98f98; --on-accent: #1a120d;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html[lang="en"] { --font-head: "Cormorant Garamond", "El Messiri", serif; }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.75 var(--font-body);
  transition: background-color .4s, color .4s;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 40px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--rose)); color: var(--on-accent); box-shadow: 0 12px 30px -12px var(--gold); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px var(--gold); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lang-label { font-weight: 700; font-size: 14px; }

/* theme icon */
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
  padding-top: env(safe-area-inset-top);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 38px; height: 38px; animation: spin 40s linear infinite; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 20px; }
.brand__text small { font-size: 10px; letter-spacing: .28em; color: var(--muted); }
.menu { display: flex; gap: 28px; margin-inline-start: auto; }
.menu a { position: relative; font-weight: 500; color: var(--muted); transition: color .2s; }
.menu a:hover, .menu a.is-active { color: var(--ink); }
.menu a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); }
.nav__tools { display: flex; gap: 8px; }
.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 75% 30%, color-mix(in srgb, var(--gold-2) 35%, transparent), transparent 70%),
    radial-gradient(35% 35% at 20% 70%, color-mix(in srgb, var(--rose) 22%, transparent), transparent 70%);
}
html[dir="rtl"] .hero__glow { transform: scaleX(-1); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .08em; font-size: 14px; margin-bottom: 12px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
.hero__title { font-size: clamp(42px, 7vw, 82px); line-height: 1.12; margin-bottom: 20px; }
.hero__title span, .hero__title em { display: block; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold), var(--rose) 60%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="en"] .hero__title em { font-style: italic; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 36px; list-style: none; padding: 0; margin: 0; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-head); font-size: 34px; line-height: 1.1; color: var(--ink); }
.stats span { font-size: 14px; color: var(--muted); }
.hero__art { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.sun-art { width: 100%; height: auto; filter: drop-shadow(var(--shadow)); }
.sun-art .rays { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
.sparkles path { animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sparkles path:nth-child(2) { animation-delay: 1s; }
.sparkles path:nth-child(3) { animation-delay: 2s; }
.badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; box-shadow: var(--shadow); font-size: 14px;
  animation: float 6s ease-in-out infinite;
}
.badge--a { top: 16%; inset-inline-start: -4%; }
.badge--b { bottom: 12%; inset-inline-end: -2%; animation-delay: -3s; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.h2 { font-size: clamp(30px, 4.4vw, 46px); }

/* About */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about__card {
  position: relative; text-align: center; padding: 40px 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about__avatar {
  width: 168px; height: 168px; object-fit: cover; border-radius: 50%; margin: 0 auto 20px;
  border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--gold), var(--shadow);
}
.about__quote { font-family: var(--font-head); font-size: 30px; margin-bottom: 4px; }
.about__sig { color: var(--muted); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 20px; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; }
.ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-size: 13px; font-weight: 700;
}

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.card__icon {
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 26px; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold-2) 30%, transparent), color-mix(in srgb, var(--rose) 22%, transparent));
}
.card h3 { font-size: 22px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* Work */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; transition: all .2s;
}
.tab svg { width: 18px; height: 18px; }
.tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; cursor: pointer; border: 0; padding: 0;
  background: var(--surface); text-align: start; isolation: isolate;
  transition: transform .3s, box-shadow .3s;
}
.grid--ig .tile { aspect-ratio: 4 / 5; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__bg { position: absolute; inset: 0; z-index: -1; }
.tile__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.05) 55%, rgba(0,0,0,.25));
}
.tile__mark { position: absolute; top: 14px; inset-inline-start: 14px; width: 22px; height: 22px; color: #fff; opacity: .9; }
.tile__pin { position: absolute; top: 12px; inset-inline-end: 12px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.tile__play {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.4); transition: transform .3s, background .3s;
}
.tile__play svg { width: 26px; height: 26px; margin-inline-start: 3px; }
html[dir="rtl"] .tile__play svg { margin-inline-start: 0; margin-inline-end: 3px; transform: none; }
.tile:hover .tile__play { transform: scale(1.1); background: var(--gold); }
.tile__meta { position: absolute; inset-inline: 14px; bottom: 14px; color: #fff; }
.tile__views { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.tile__cap { font-size: 13px; line-height: 1.5; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; }

/* Embedded players (TikTok / Instagram) */
.tile--embed {
  aspect-ratio: auto; cursor: default; display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--surface);
}
.tile--embed:hover { transform: translateY(-4px); }
.tile__frame { position: relative; aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.tile--ig .tile__frame { aspect-ratio: auto; height: 600px; background: #fff; }
.tile__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.tile.is-loaded .tile__frame iframe { opacity: 1; }
.tile__frame .tile__bg { z-index: 0; display: grid; place-items: center; }
.tile__frame .tile__bg::after { display: none; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin 1s linear infinite;
}
.tile__foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13px; min-height: 52px; }
.tile__foot .tile__icon { width: 16px; height: 16px; flex: none; color: var(--gold); }
.tile__foot .tile__cap { flex: 1; min-width: 0; margin: 0; opacity: 1; color: var(--ink); -webkit-line-clamp: 1; display: -webkit-box; }
a.tile__cap:hover { color: var(--gold); text-decoration: underline; }
.tile__foot .tile__views { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.tile__foot .tile__pin { position: static; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); backdrop-filter: none; }
.grid--ig { grid-template-columns: repeat(3, 1fr); }

/* Booking */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; }
.steps b {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--gold); font-family: var(--font-head);
}
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}
.form__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.form__error { color: #c0392b; margin: 0; font-size: 14px; }
.btn--wa { width: 100%; }

/* Contact */
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.social {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
a.social:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.social svg {
  grid-row: span 2; width: 48px; height: 48px; padding: 12px; border-radius: 14px; color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.social b { font-size: 17px; }
.social span { color: var(--muted); font-size: 14px; }
html[dir="rtl"] .social span[dir="ltr"] { text-align: right; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* FAB */
.fab {
  position: fixed; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: #25d366; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; }

/* Modal */
.modal {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible;
  width: min(400px, 92vw);
}
.modal::backdrop { background: rgba(10, 6, 4, .78); backdrop-filter: blur(6px); }
.modal__body { background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 9 / 16; max-height: 86vh; width: 100%; }
.modal__body.is-ig { background: #fff; aspect-ratio: auto; height: min(720px, 86vh); }
.modal__body iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close {
  position: absolute; top: -48px; inset-inline-end: 0; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; translate: -50% 20px; opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: opacity .3s, translate .3s;
}
.toast.is-show { opacity: 1; translate: -50% 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.7); } }

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

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--ig { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .socials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .menu {
    position: fixed; inset: calc(72px + env(safe-area-inset-top)) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--ink); }
  .menu a::after { display: none; }
  .hero { padding: 24px 0 72px; }
  .hero__grid, .about, .book { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { order: -1; max-width: 300px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .stats { justify-content: center; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cards, .socials { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .stats strong { font-size: 28px; }
  .tile__foot .tile__cap, .tile__foot .tile__pin { display: none; }
  .grid--ig { grid-template-columns: 1fr; }
  .tile--ig .tile__frame { height: 640px; }
  .badge { font-size: 12px; padding: 8px 12px; }
}
