/* ==========================================================================
   JF Ajyad Hotel — Makkah
   Dark, gold, hard-edged. Tokens first, then components.
   ========================================================================== */

:root {
  --ink:        #0b0b0c;   /* page ground */
  --panel:      #121214;   /* raised surface */
  --rule:       #1e1c19;   /* 2px hairlines that draw the grid */
  --gold:       #c9a24a;
  --gold-light: #e3c27e;
  --gold-dim:   #3a3226;   /* dashed placeholders, quiet borders */
  --white:      #ffffff;
  --text-70:    rgba(255, 255, 255, .74);
  --text-60:    rgba(255, 255, 255, .6);
  --text-45:    rgba(255, 255, 255, .45);

  --wrap: 1240px;
  --pad: 32px;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Archivo", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: pretty;
}

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

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

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-ink {
  background: var(--ink);
  color: var(--gold);
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--panel); border-color: var(--panel); color: var(--gold-light); }

.btn-sm { padding: 12px 20px; font-size: .78rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 12, .92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

.brand img { height: 52px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a.nav-link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a.nav-link:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav a.nav-link[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.lang-btn {
  background: transparent;
  border: 2px solid var(--gold-dim);
  color: var(--gold);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold-light); }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  background: transparent;
  border: 2px solid var(--gold-dim);
  cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  margin-bottom: 5px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:last-child { margin-bottom: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { border-bottom: 2px solid var(--rule); }
.section > .wrap { padding-block: 96px; }

.kicker {
  margin: 0 0 18px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

.h-lg  { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; }
.h-md  { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.h-sm  { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.lede { margin: 0; max-width: 640px; color: var(--text-70); }

.page-head > .wrap { padding-block: 88px 56px; }
.page-head h1 { margin: 0 0 20px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--rule);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(35%) brightness(.42);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.72) 0%, rgba(11,11,12,.35) 45%, rgba(11,11,12,.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 48px 40px;
  text-align: center;
}
/* The mark carries the hero — sized and centred like the reference. */
.hero-mark {
  height: clamp(120px, 16vw, 200px);
  width: auto;
  margin: 0 auto 20px;
}
.hero h1 {
  margin: 0 auto 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  max-width: 900px;
}
.hero p {
  margin: 0 auto 28px;
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn { padding: 18px 28px; font-size: .82rem; }

/* Standing invitation under the buttons. JS hides it after 13 September. */
.hero .invite {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 26px auto 0;
  padding: 12px 22px;
  border: 2px solid var(--gold-dim);
  background: rgba(11, 11, 12, .55);
  backdrop-filter: blur(4px);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  text-wrap: balance;
}
.hero .invite strong { color: var(--gold); font-weight: 700; }
.invite-dot {
  width: 8px; height: 8px;
  flex: 0 0 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: invite-pulse 2.4s ease-in-out infinite;
}
@keyframes invite-pulse {
  0%, 100% { opacity: 1;  transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}
@media (prefers-reduced-motion: reduce) { .invite-dot { animation: none; } }

/* Opening curtain — plays once per browser session, then never again. */
.curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  animation: curtain-lift 10s ease forwards;
}
.curtain-rule {
  height: 2px;
  background: var(--gold);
  margin-bottom: 36px;
  transform-origin: left;
  animation: rule-draw 1.4s ease forwards;
}
html[dir="rtl"] .curtain-rule { transform-origin: right; }
.curtain-kicker {
  margin: 0 0 22px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.curtain h2 {
  margin: 0 0 26px;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.025em;
  max-width: 900px;
}
.curtain-skip {
  position: absolute;
  bottom: 32px;
  inset-inline: 0;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
}
.curtain-date {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
}

@keyframes curtain-lift {
  0%, 94%  { opacity: 1; visibility: visible; }
  100%     { opacity: 0; visibility: hidden; }
}
@keyframes rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain { display: none; }
}

/* ── Stat band ──────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat { padding-block: 40px; }
.stat + .stat { padding-inline-start: 28px; }
.stat:not(:last-child) {
  border-inline-end: 2px solid var(--rule);
  padding-inline-end: 28px;
}
.stat strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
}
.stat span {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-60);
}

/* ── Split (text + image) ───────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
  align-items: center;
}
.split p { color: var(--text-70); text-wrap: pretty; }
.split h2 { margin: 0 0 24px; }
.split img { width: 100%; height: 520px; object-fit: cover; filter: grayscale(20%); }

/* ── Room cards ─────────────────────────────────────────────────────────── */

.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--rule);
}

.room-card { background: var(--panel); padding-bottom: 32px; }
.room-card .frame { height: 260px; background: var(--ink); overflow: hidden; }
.room-card .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.room-card .body { padding: 28px 28px 0; }
.room-card h3 { margin: 0 0 14px; font-size: 1.5rem; }
.room-card p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .95rem; }

.capacity {
  margin: 0 0 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.awaiting {
  width: 100%; height: 100%;
  border: 2px dashed var(--gold-dim);
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}
.awaiting p {
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Room detail rows (rooms page) ──────────────────────────────────────── */

.room-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
  padding-block: 72px;
}
.room-row .frame {
  height: 420px;
  background: var(--panel);
  border: 2px solid var(--rule);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.room-row .frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.room-row .frame .awaiting { width: calc(100% - 32px); height: calc(100% - 32px); padding: 24px; }
.room-row h2 { margin: 0 0 20px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.room-row > div > p { margin: 0 0 28px; color: var(--text-70); text-wrap: pretty; }

/* ── Key/value rows (features, distances) ───────────────────────────────── */

.rows {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-top: 2px solid var(--rule);
}
.rows li {
  padding-block: 16px;
  border-bottom: 2px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
}
.rows li span:last-child { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ── Gallery ────────────────────────────────────────────────────────────── */

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.link-gold {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold-dim);
  padding-bottom: 6px;
  transition: color .18s ease, border-color .18s ease;
}
.link-gold:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--rule);
}
.strip img { width: 100%; height: 300px; object-fit: cover; filter: grayscale(20%); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--rule);
}
.photo-grid figure {
  margin: 0;
  position: relative;
  background: var(--ink);
  overflow: hidden;
  cursor: zoom-in;
}
.photo-grid img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform .4s ease, filter .4s ease;
}
.photo-grid figure:hover img { transform: scale(1.03); filter: grayscale(0%); }
.photo-grid figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(11,11,12,0) 0%, rgba(11,11,12,.9) 100%);
}

/* ── Lightbox ───────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 11, 12, .96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 72px;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: transparent;
  border: 2px solid var(--gold-dim);
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  width: 52px; height: 52px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.lightbox button:hover { border-color: var(--gold); color: var(--gold-light); }
.lightbox .lb-close { top: 20px; inset-inline-end: 20px; }
.lightbox .lb-prev  { inset-inline-start: 20px; }
.lightbox .lb-next  { inset-inline-end: 20px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption {
  position: absolute;
  bottom: 24px;
  inset-inline: 0;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-60);
}

/* ── Gold call-to-action band ───────────────────────────────────────────── */

.cta-band { background: var(--gold); color: var(--ink); }
.cta-band > .wrap {
  padding-block: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--ink); }
.cta-band p { margin: 0; font-size: 1rem; color: rgba(11, 11, 12, .78); }
.cta-band .btn { padding: 20px 32px; font-size: .82rem; }

/* ── Contact cards ──────────────────────────────────────────────────────── */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--rule);
}
.contact-cards > div { background: var(--panel); padding: 36px; }
.contact-cards .label {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-cards .value { margin: 0 0 22px; font-size: 1.2rem; }
.contact-cards .note { margin: 0; font-size: .9rem; color: var(--text-60); }
.contact-cards a:hover { color: var(--gold-light); }

.ltr { direction: ltr; unicode-bidi: isolate; }

/* ── Map ────────────────────────────────────────────────────────────────── */

.map-frame {
  border: 2px solid var(--rule);
  background: var(--panel);
  overflow: hidden;
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 380px; border: 0; filter: grayscale(30%) invert(92%) hue-rotate(180deg) contrast(.9); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { border-top: 2px solid var(--rule); }
.faq > div {
  padding-block: 28px;
  border-bottom: 2px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.faq h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.faq p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .95rem; text-wrap: pretty; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer { border-top: 2px solid var(--gold); background: var(--ink); }

.footer-top {
  padding-block: 72px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px;
  align-items: start;
}
.footer-top .footer-mark img { height: 180px; width: auto; margin-inline-start: -14px; }
.footer-top .footer-mark p {
  margin: 20px 0 0;
  max-width: 300px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-60);
  text-wrap: pretty;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--rule);
}
.footer-nav a {
  padding-block: 14px;
  border-bottom: 2px solid var(--rule);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  transition: color .18s ease;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-contact .label {
  margin: 0 0 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-contact .value { margin: 0 0 28px; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.footer-contact .value a:hover { color: var(--gold-light); }

.footer-operator {
  border-top: 2px solid var(--rule);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--text-70);
}
.footer-operator strong { color: var(--gold); font-weight: 600; }
.footer-operator a { color: var(--text-70); border-bottom: 1px solid var(--gold-dim); }
.footer-operator a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.footer-bottom {
  border-top: 2px solid var(--rule);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .76rem;
}
.footer-bottom .copy { letter-spacing: .06em; color: var(--text-45); }
.footer-bottom .city { letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .35); }

/* ── Floating WhatsApp ──────────────────────────────────────────────────── */

.wa-float {
  position: fixed;
  z-index: 50;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: background .18s ease;
}
.wa-float:hover { background: var(--gold-light); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --pad: 20px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
    padding: 8px var(--pad) 24px;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a.nav-link {
    padding-block: 16px;
    border-bottom: 2px solid var(--rule);
  }
  .nav .lang-btn { margin-top: 16px; }
  .nav .btn { margin-top: 12px; text-align: center; }

  .section > .wrap { padding-block: 64px; }
  .page-head > .wrap { padding-block: 56px 40px; }
  .hero { min-height: calc(100vh - 74px); }
  .hero-content { padding-block: 40px 36px; }
  .hero-mark { margin-bottom: 24px; }
  .hero .invite { margin-top: 24px; padding: 12px 16px; font-size: .72rem; letter-spacing: .1em; gap: 10px; }
  .split { gap: 36px; }
  .split img { height: 340px; }
  .room-row { gap: 32px; padding-block: 48px; }
  .room-row .frame { height: 300px; }
  .strip { grid-template-columns: 1fr; }
  .strip img { height: 240px; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid img { height: 260px; }
  .footer-top { gap: 36px; }
  .footer-top .footer-mark img { height: 130px; }

  .stat:not(:last-child) { border-inline-end: 0; border-bottom: 2px solid var(--rule); padding-inline-end: 0; }
  .stat + .stat { padding-inline-start: 0; }
  .stat { padding-block: 28px; }

  .lightbox .lb-prev, .lightbox .lb-next { width: 44px; height: 44px; }
}
