/* ============================================
   SUPERNOVA RIYADH — style-2026.css
   Augmentation "10K€ feeling" du style de base.
   - Custom cursor desktop
   - Scroll progress bar
   - Marquee infinie
   - Hero poster fallback img
   - Parallax multi-couches (about-figure)
   - Showreel video frame avec coins glass
   - Galerie masonry 8 photos
   - Grid 6 cards signatures
   - Glass cards avis
   - Gradient mesh animé (final-cta)
   - Footer enrichi
   ============================================ */

/* ---------- 1. CUSTOM CURSOR (desktop) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent-pale);
  transition: transform 0.06s linear, opacity 0.2s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-accent-pale);
  transition: transform 0.18s var(--ease-out), width 0.25s var(--ease-out),
              height 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              opacity 0.2s ease, background 0.25s ease;
}
.cursor-ring.hovering {
  width: 60px; height: 60px;
  background: rgba(196, 165, 114, 0.12);
  border-color: var(--color-accent);
}
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .btn, input, textarea, select, [role="button"] { cursor: none; }
}

/* ---------- 2. SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-pale));
  z-index: 9998;
  box-shadow: 0 0 14px var(--color-glow);
  pointer-events: none;
  will-change: width;
  transition: width 0.06s linear;
}

/* ---------- 3. HERO POSTER FALLBACK ---------- */
.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: brightness(0.95) saturate(1.05);
}
.hero-video {
  z-index: -2 !important;
}

/* Hero overlay refined */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 13, 10, 0.42) 0%, rgba(18, 13, 10, 0.58) 55%, rgba(18, 13, 10, 0.93) 100%),
    radial-gradient(ellipse at 18% 78%, rgba(196, 165, 114, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 22%, rgba(232, 197, 190, 0.10) 0%, transparent 60%);
}

/* Hero title — variable axis */
.hero-title {
  font-variation-settings: "opsz" 120, "wght" 300, "SOFT" 50;
  text-shadow: 0 4px 40px rgba(0,0,0,0.40);
}
.hero-title em {
  font-variation-settings: "opsz" 144, "wght" 300, "SOFT" 100;
}

/* ---------- 4. MARQUEE BAND ---------- */
.marquee-band {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-line-soft);
  border-bottom: 1px solid var(--color-line-soft);
  overflow: hidden;
  padding: 1.1rem 0;
  position: relative;
}
.marquee-band::before, .marquee-band::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-band::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg-darker), transparent);
}
.marquee-band::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-bg-darker), transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  white-space: nowrap;
  animation: marquee-scroll 70s linear infinite;
  will-change: transform;
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.02rem;
  color: var(--color-text-muted);
  letter-spacing: 0.005em;
  flex-shrink: 0;
}
.marquee-item strong {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  margin-right: 0.3rem;
}
.marquee-sep {
  color: var(--color-accent);
  opacity: 0.5;
  font-size: 1.1rem;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 5. PARALLAX FIGURE (about) ---------- */
.about-figure {
  aspect-ratio: 4/5;
  position: relative;
  background: var(--color-bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.about-figure-img,
.about-figure-overlay {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.about-figure-img {
  z-index: 1;
  transition: transform 1.6s var(--ease-out);
}
.about-figure-overlay {
  z-index: 2;
  width: 52%;
  height: 44%;
  bottom: 6%;
  left: 6%;
  top: auto;
  right: auto;
  border-radius: var(--radius);
  border: 6px solid var(--color-bg);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.6);
  object-position: center;
}
.about-figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 13, 10, 0.50));
  pointer-events: none;
  z-index: 3;
}
.about-figure-stamp {
  position: absolute;
  z-index: 4;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(196, 165, 114, 0.45);
  background: rgba(18, 13, 10, 0.60);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: var(--radius);
  text-align: right;
  display: flex; flex-direction: column;
  gap: 0.1rem;
}
.about-figure-stamp em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--color-accent);
  font-weight: 400;
  line-height: 1;
}
.about-figure-stamp small {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (hover: hover) {
  .about-figure:hover .about-figure-img { transform: scale(1.04); }
}

/* ---------- 6. SHOWREEL VIDEO FRAME ---------- */
.showreel {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 165, 114, 0.08), transparent 55%),
    var(--color-bg-darker);
  position: relative;
}
.showreel-frame {
  position: relative;
  max-width: 1100px;
  margin: 3rem auto 0;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(196, 165, 114, 0.10);
}
.showreel-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.showreel-corner {
  position: absolute;
  width: 28px; height: 28px;
  z-index: 3;
  pointer-events: none;
}
.showreel-corner-tl {
  top: 14px; left: 14px;
  border-top: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
}
.showreel-corner-tr {
  top: 14px; right: 14px;
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
}
.showreel-corner-bl {
  bottom: 14px; left: 14px;
  border-bottom: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
}
.showreel-corner-br {
  bottom: 14px; right: 14px;
  border-bottom: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
}

/* ---------- 7. SIGNATURES 6-COL GRID ---------- */
.dishes-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}
@media (max-width: 1000px) {
  .dishes-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .dishes-grid-6 { grid-template-columns: 1fr; }
}

.dish-card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(245, 239, 231, 0.025), rgba(245, 239, 231, 0.005)),
    var(--color-bg-soft);
}
.dish-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(196, 165, 114, 0), rgba(196, 165, 114, 0.40), rgba(232, 197, 190, 0.30), rgba(196, 165, 114, 0));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.dish-card > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .dish-card:hover::before { opacity: 1; }
}

/* ---------- 8. GALLERY MASONRY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-elevated);
  margin: 0;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.5s var(--ease);
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18, 13, 10, 0.70));
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease);
}
/* Caption — EN by default, AR when RTL */
.gallery-item::after {
  content: attr(data-caption-en);
  position: absolute;
  bottom: 1rem;
  left: 1.1rem; right: 1.1rem;
  z-index: 2;
  color: var(--color-text);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  line-height: 1.3;
  opacity: 0.92;
  transform: translateY(0);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
html[dir="rtl"] .gallery-item::after {
  content: attr(data-caption-ar);
  font-family: 'Reem Kufi Fun', 'Tajawal', serif;
  font-style: normal;
  font-weight: 500;
  text-align: right;
  left: 1.1rem; right: 1.1rem;
}
@media (hover: hover) {
  .gallery-item:hover img { transform: scale(1.08); filter: brightness(1.05); }
  .gallery-item:hover::before { opacity: 1; }
}

.gallery-item-tall { grid-column: span 2; grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; grid-row: span 1; }
.gallery-grid > .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
  grid-column: span 1; grid-row: span 1;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item-tall { grid-column: span 2; grid-row: span 2; }
  .gallery-item-wide { grid-column: span 2; grid-row: span 1; }
  .gallery-grid > .gallery-item:not(.gallery-item-tall):not(.gallery-item-wide) {
    grid-column: span 1; grid-row: span 1;
  }
}

/* ---------- 9. GLASS REVIEW CARDS ---------- */
.review-card-glass {
  background:
    linear-gradient(135deg, rgba(245, 239, 231, 0.07), rgba(245, 239, 231, 0.015)),
    rgba(34, 26, 20, 0.55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(196, 165, 114, 0.22);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.55);
  transition: all 0.5s var(--ease);
}
@media (hover: hover) {
  .review-card-glass:hover {
    border-color: rgba(196, 165, 114, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 32px 80px -24px rgba(0,0,0,0.65);
  }
}

/* ---------- 10. CONTACT MAP iframe ---------- */
.contact-map-frame {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.45);
  filter: grayscale(0.15) contrast(1.05);
  background: var(--color-bg-soft);
}
.contact-map-frame iframe {
  width: 100%; height: 100%;
  display: block;
}

/* ---------- 11. GRADIENT MESH ANIMÉ (final-cta) ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.final-cta-mesh {
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    conic-gradient(
      from 0deg at 50% 50%,
      rgba(196, 165, 114, 0.22) 0deg,
      rgba(18, 13, 10, 0.0) 90deg,
      rgba(232, 197, 190, 0.20) 180deg,
      rgba(18, 13, 10, 0.0) 270deg,
      rgba(196, 165, 114, 0.22) 360deg
    );
  filter: blur(70px) saturate(140%);
  animation: mesh-rotate 60s linear infinite;
  will-change: transform;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 100% 60% at 50% 50%, rgba(196, 165, 114, 0.12), transparent 70%),
    var(--color-bg-darker);
}
@keyframes mesh-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .final-cta-mesh { animation: none; }
}

/* ---------- 12. FOOTER ENRICHI ---------- */
.footer-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1;
}
.footer-brand-em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}
.footer-tagline {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 32ch;
}
.footer-signature {
  color: var(--color-accent);
  font-style: italic;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
@media (hover: hover) {
  .footer-signature:hover { border-bottom-color: var(--color-accent); }
}

/* ---------- 13. NAV REFINEMENTS ---------- */
.nav.scrolled {
  background: rgba(18, 13, 10, 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* ---------- 14. BUTTON ENRICHMENT — gradient + shimmer ---------- */
.btn-primary {
  background:
    linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-soft) 100%);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 239, 231, 0.28), transparent);
  transition: left 0.7s var(--ease);
}
@media (hover: hover) {
  .btn-primary:hover::before { left: 100%; }
  .btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-pale) 0%, var(--color-accent) 100%);
  }
}

/* ---------- 15. COUNTER STAT REFINEMENTS ---------- */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.018em;
}

/* ---------- 16. SECTION DIVIDERS ---------- */
.quiet::before,
.showreel::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

/* ---------- 17. HOVER LIFT pour cards ---------- */
@media (hover: hover) {
  .dish-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 32px 70px -28px rgba(0,0,0,0.65),
      inset 0 0 0 1px rgba(196, 165, 114, 0.20);
  }
}

/* ---------- 18. RÉPÈRE — gold glow on counter ---------- */
.repere-stat {
  text-shadow: 0 0 30px rgba(196, 165, 114, 0.20);
}
.repere-stat em {
  font-style: italic;
  color: var(--color-accent-pale);
  font-size: 0.7em;
  margin-left: 0.15em;
}

/* ---------- 19. CONTACT GRID — fix map column ---------- */
.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 20. SAFER SCROLLBAR (subtle gold) ---------- */
@media (pointer: fine) {
  body::-webkit-scrollbar { width: 10px; }
  body::-webkit-scrollbar-track { background: var(--color-bg-darker); }
  body::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--color-accent-soft), var(--color-accent));
    border-radius: 5px;
    border: 2px solid var(--color-bg-darker);
  }
}

/* ---------- 21. MOBILE STICKY CTA refinement ---------- */
.sticky-cta {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
}

/* ---------- 22. BOOKING-HERO BG (subtle) ---------- */
.booking-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.booking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(196, 165, 114, 0.12), transparent 60%);
  z-index: 0;
}
.booking-hero > .container { position: relative; z-index: 1; }

/* ============================================
   PAYMENT SUCCESS MODAL
   ============================================ */
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: pmFadeIn 0.25s ease-out;
}
.payment-modal[hidden] { display: none; }

@keyframes pmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.payment-modal .pm-modal-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: pmSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pmSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pm-icon-success {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  animation: pmIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes pmIconPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.payment-modal h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
html[dir="rtl"] .payment-modal h2 { font-family: 'Reem Kufi Fun', 'Tajawal', serif; font-style: normal; }

.pm-confirm-sub {
  font-size: 0.96rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pm-demo-note {
  padding: 0.85rem 1rem;
  background: var(--color-bg-darker);
  border: 1px dashed var(--color-line-soft);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--color-text-dim);
  margin-bottom: 1.75rem;
}
.pm-demo-note em { font-style: italic; }

.pm-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#btn-pay:disabled {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}
