:root {
  --bg: #14110f;
  --bg-2: #1b1714;
  --panel: #211c18;
  --panel-2: #271f1a;
  --ink: #f3ead9;
  --ink-soft: #cdbfa8;
  --muted: #9a8c76;
  --gold: #c9a24b;
  --gold-bright: #e6c068;
  --gold-deep: #9c7a2e;
  --line: rgba(201, 162, 75, 0.22);
  --line-soft: rgba(243, 234, 217, 0.08);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --r: 18px;
  --max: 1180px;
  --display: "El Messiri", serif;
  --body: "Tajawal", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 520px at 85% -8%, rgba(201, 162, 75, 0.14), transparent 60%),
    radial-gradient(900px 480px at -10% 12%, rgba(156, 122, 46, 0.10), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- splash / preloader ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg); overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.done { opacity: 0; visibility: hidden; }
.splash-media { position: absolute; inset: 0; }
.splash-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4) saturate(0.9); transform: scale(1.06); }
.splash-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, transparent 30%, rgba(20,17,15,0.85) 100%);
}
.splash-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 1rem; animation: splashIn 0.8s ease both;
}
.splash-logo {
  width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.8);
}
.splash-name { font-family: var(--display); font-size: clamp(1.7rem, 6vw, 2.6rem); color: #fff; margin-top: 1.1rem; }
.splash-tag { color: var(--gold-bright); font-size: 0.92rem; letter-spacing: 0.08em; margin-top: 0.4rem; }
.splash-bar {
  width: 120px; height: 2px; margin-top: 1.6rem; border-radius: 2px; overflow: hidden;
  background: rgba(243,234,217,0.12); position: relative;
}
.splash-bar::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: splashLoad 1.1s ease-in-out infinite;
}
@keyframes splashIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes splashLoad { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; font-family: var(--body);
  font-weight: 700; font-size: 0.98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn .ico { width: 1.05em; height: 1.05em; fill: currentColor; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #1c1409; box-shadow: 0 14px 30px -14px rgba(201, 162, 75, 0.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(201, 162, 75, 0.85); }
.btn-line { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--gold); color: #1c1409; border-color: var(--gold); }
.btn.full { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(20, 17, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 0.7rem; margin-inline-end: auto; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.18rem; color: var(--ink); }
.brand-text small { color: var(--muted); font-size: 0.74rem; }
.nav { display: flex; gap: 1.6rem; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; position: relative; padding: 0.2rem 0; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s ease; }
.nav a:hover { color: var(--gold-bright); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; z-index: 2; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) brightness(0.7); }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(20,17,15,0.35) 45%, rgba(20,17,15,0.6) 100%),
    linear-gradient(to left, rgba(20,17,15,0.7), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); max-width: 760px; }
.eyebrow { display: inline-block; color: var(--gold-bright); letter-spacing: 0.12em; font-size: 0.82rem; font-weight: 500; margin-bottom: 1rem; padding: 0.3rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.hero h1::after { content: ""; display: block; width: 88px; height: 3px; margin-top: 1rem; background: linear-gradient(90deg, var(--gold-bright), transparent); border-radius: 2px; }
.hero-sub { margin-top: 1.3rem; font-size: clamp(1rem, 2.6vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.6rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--display); color: var(--gold-bright); font-size: 1.25rem; }
.hero-stats span { color: var(--muted); font-size: 0.85rem; }

/* ---------- sections ---------- */
section { position: relative; z-index: 2; }
.section-head { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 2rem) 1.5rem; text-align: center; }
.kicker { color: var(--gold-bright); font-weight: 700; letter-spacing: 0.14em; font-size: 0.78rem; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0.6rem 0; }
.section-head p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }

/* ---------- features ---------- */
.feature-grid {
  max-width: var(--max); margin: 0 auto; padding: 1rem clamp(1.2rem, 5vw, 2rem) 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.feature {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: 1.8rem 1.4rem;
  position: relative; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--gold-bright), transparent); opacity: 0; transition: opacity 0.3s ease; }
.feature:hover { transform: translateY(-6px); border-color: var(--line); }
.feature:hover::before { opacity: 1; }
.feature-num { font-family: var(--display); color: var(--gold); font-size: 1.5rem; opacity: 0.6; }
.feature h3 { margin: 0.6rem 0 0.5rem; font-size: 1.2rem; color: var(--ink); }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- gallery ---------- */
.gallery-grid {
  max-width: var(--max); margin: 0 auto; padding: 1rem clamp(1.2rem, 5vw, 2rem) 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr;
  gap: 0.9rem; grid-auto-flow: dense;
}
.shot {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-soft); cursor: pointer; background: var(--panel);
  aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -30px rgba(0,0,0,0.9);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.shot.feature { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(15,12,10,0.55), transparent 45%);
}
.shot figcaption {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1.6rem 1.1rem 1rem;
  font-family: var(--display); font-size: 1.02rem; color: #fff;
  transform: translateY(6px); opacity: 0.92; transition: 0.35s ease;
}
.shot-no {
  font-size: 0.78rem; color: #1c1409; background: var(--gold-bright);
  width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--body); font-weight: 700; flex: none;
}
.shot:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(0,0,0,1); }
.shot:hover img { transform: scale(1.07); }
.shot:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------- booking ---------- */
.booking { padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem) clamp(3rem, 7vw, 5rem); }
.booking-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.booking-copy { padding-top: 1rem; }
.booking-copy h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0.6rem 0 1rem; }
.booking-copy > p { color: var(--ink-soft); }
.assurance { list-style: none; margin: 1.5rem 0; display: grid; gap: 0.7rem; }
.assurance li { position: relative; padding-inline-start: 1.7rem; color: var(--ink-soft); }
.assurance li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.6em; width: 9px; height: 9px; border: 2px solid var(--gold); border-radius: 50%; }
.contact-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.9rem; transition: 0.25s ease; }
.chip .ico { width: 1.1em; height: 1.1em; fill: var(--gold-bright); }
.chip:hover { background: var(--panel-2); border-color: var(--gold); transform: translateY(-2px); }

.booking-form {
  background: linear-gradient(165deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.booking-form h3 { font-size: 1.4rem; margin-bottom: 1.2rem; color: var(--ink); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; font-weight: 500; }
.field label small { color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 12px; font-family: var(--body); font-size: 0.95rem;
  background: rgba(0,0,0,0.25); border: 1px solid var(--line-soft); color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field select {
  color-scheme: dark; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c9a24b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 0.7rem center; background-size: 1.1rem;
  padding-inline-start: 2.2rem;
}
.field select option { background: var(--panel-2); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #6f6353; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,0.15); }
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: #c2603f; }
.field input[type="date"] { color-scheme: dark; }
.err { display: block; min-height: 1em; color: #e08a63; font-size: 0.78rem; margin-top: 0.25rem; }
.form-foot { color: var(--muted); font-size: 0.78rem; margin-top: 0.9rem; text-align: center; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft); margin-top: 2rem;
  padding: 2.5rem clamp(1.2rem, 5vw, 2.4rem); display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center; justify-content: space-between; position: relative; z-index: 2;
}
.foot-brand { display: flex; align-items: center; gap: 0.8rem; }
.foot-brand img { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); }
.foot-brand strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.foot-brand span { color: var(--muted); font-size: 0.82rem; }
.foot-links { display: flex; gap: 1.4rem; }
.foot-links a { color: var(--ink-soft); font-size: 0.92rem; }
.foot-links a:hover { color: var(--gold-bright); }
.copy { width: 100%; text-align: center; color: var(--muted); font-size: 0.78rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }

/* ---------- floating wa ---------- */
.wa-float {
  position: fixed; inset-block-end: 1.4rem; inset-inline-start: 1.4rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2ad05a, #1da851); box-shadow: 0 12px 26px -8px rgba(37,211,102,0.6);
  animation: bob 3s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,6,5,0.92); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; border: 1px solid var(--line); }
.lb-close { position: absolute; top: 1.2rem; inset-inline-end: 1.4rem; background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .shot.feature { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
  .booking-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shot, .shot.feature { grid-column: span 1; aspect-ratio: 4 / 3; }
  .nav-cta { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
}

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