@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Base Typography ===== */
body {
  font-family: 'Inter', system-ui, sans-serif;
}
h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  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; }

/* ===== Hero Text Animation ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-title {
  animation: fadeInUp 1s ease-out 0.3s both;
}
.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.6s both;
}
.hero-cta {
  animation: fadeInUp 1s ease-out 0.9s both;
}
.hero-scroll {
  animation: fadeIn 1s ease-out 1.5s both;
}

/* ===== Scroll Indicator Bounce ===== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}
.scroll-indicator {
  animation: bounce 2s infinite;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s;
  z-index: 101;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  color: #B8976C;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ===== FAQ Accordion ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}
.faq-answer.open {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* ===== Testimonial Carousel ===== */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* ===== Gallery Filter ===== */
.gallery-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item.hidden-filter {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.dark .navbar-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ===== RTL Overrides ===== */
[dir="rtl"] .space-x-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 1;
}

/* ===== Smooth Color Transitions ===== */
.transition-theme {
  transition-property: background-color, border-color, color, fill, stroke, box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #B8976C; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C8A97E; }

/* ===== Mobile Menu Animation ===== */
.mobile-menu-enter {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu-enter.open {
  max-height: 500px;
}

/* ===== Page Hero Shared ===== */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* ===== Counter Animation ===== */
.counter-value {
  display: inline-block;
}
