/* ============================================================
   Arabesoke — custom styles layered on top of Tailwind (CDN)
   ============================================================ */

:root {
  --gold: #c9a86a;
  --gold-light: #e6cd9a;
  --ink: #0b0908;
  --ink-soft: #14100e;
  --cream: #f5efe4;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--ink);
  color: var(--cream);
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.font-accent {
  font-family: 'Cormorant Garamond', serif;
}

::selection {
  background: var(--gold);
  color: #14100e;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: #3a3128;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: #14100e;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-mark {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.3em;
  color: var(--gold);
  animation: pulseFade 1.4s ease-in-out infinite;
}
@keyframes pulseFade {
  0%, 100% { opacity: 0.35; letter-spacing: 0.3em; }
  50% { opacity: 1; letter-spacing: 0.45em; }
}

/* Header */
#site-header {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
#site-header.scrolled {
  background-color: rgba(11, 9, 8, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.6);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--gold-light);
}

/* Gold gradient text */
.text-gold-gradient {
  background: linear-gradient(120deg, #a67c3c, #e6cd9a 45%, #a67c3c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn-gold {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  z-index: -1;
}
.btn-gold:hover::before {
  transform: translateX(120%);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Divider ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 2.5rem;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Arabesque pattern background */
.pattern-bg {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,168,106,0.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,168,106,0.05), transparent 40%);
}

/* Hero */
.hero-bg {
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.scroll-indicator {
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  position: relative;
}
.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* Dish / gallery cards */
.dish-card img,
.gallery-item img {
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.6s ease;
}
.dish-card:hover img,
.gallery-item:hover img {
  transform: scale(1.08);
}

.card-shadow {
  box-shadow: 0 20px 45px -20px rgba(0,0,0,0.7);
}

/* Menu tabs */
.menu-tab-btn {
  position: relative;
  transition: color 0.3s ease;
}
.menu-tab-btn.active {
  color: var(--gold-light);
}
.menu-tab-btn.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: var(--gold);
}
.menu-panel {
  display: none;
}
.menu-panel.active {
  display: block;
}
.menu-item-row {
  border-bottom: 1px dashed rgba(201,168,106,0.25);
}

/* Testimonials */
.testimonial-slide {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Gallery lightbox */
#lightbox {
  transition: opacity 0.3s ease;
}
#lightbox.hidden-lb {
  opacity: 0;
  pointer-events: none;
}

/* Reservation */
.input-field {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,106,0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.input-field:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,106,0.15);
  background: rgba(255,255,255,0.05);
}
.input-field.field-error {
  border-color: #c0564f;
}

/* WhatsApp floating button */
.whatsapp-btn {
  box-shadow: 0 10px 25px -8px rgba(37,211,102,0.6);
}
.whatsapp-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25D366;
  animation: whatsappPulse 2.4s ease-out infinite;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Back to top */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Star rating */
.star {
  color: var(--gold);
}

/* Focus visibility for a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
