/* CSS Variables and Global Styles - Matching Original HTML */
:root {
  --bg-dark: #0F1115;
  --bg-dark2: #14161A;
  --gold: #C7A97A;
  --cream: #F5EFE6;
  --muted: #9AA1A9;
  --header-h: 72px;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

html, body {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-dark2));
  min-height: 100vh;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100%;
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: .5rem;
  z-index: 50;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 1rem;
}

/* Container - Let Tailwind handle the container styles */

/* Scrollbar hiding */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Reveal animations - matching original */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Parallax layer - matching original */
.parallax-layer {
  will-change: transform;
  transform: translateY(0);
  transition: transform .1s linear;
}

/* Section scroll margin for header */
section[id] {
  scroll-margin-block-start: calc(var(--header-h) + 24px);
}

/* Hero variants */
.hero-variant {
  display: block;
  opacity: 1;
  animation: fadeInUp 1.2s ease-out;
}

.hero-variant.hidden {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Collection filters */
.filter-chip {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.filter-chip.active,
.filter-chip:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(199, 169, 122, 0.4);
}

/* Product cards */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Testimonials */
.testimonial-slide {
  transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.hidden {
  display: none;
}

/* FAQ accordion */
.rotate-180 {
  transform: rotate(180deg);
}

/* Shadows - using original soft shadow */
.shadow-soft {
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.35);
}

.hover\:shadow:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Typography - matching original font setup */
.font-display {
  font-family: 'Assistant', 'Heebo', 'system-ui', 'sans-serif';
  font-weight: 400;
}

.font-sans {
  font-family: 'Heebo', 'Assistant', 'system-ui', 'sans-serif';
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 17, 21, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(199, 169, 122, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(199, 169, 122, 0.5);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .hero-variant {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  
  .reveal {
    transform: translateY(16px);
  }
}

/* Focus states for accessibility - using CSS variable */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

/* Toast notification */
.toast-enter-active,
.toast-leave-active {
  transition: all 0.3s ease;
}

.toast-enter-from,
.toast-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

/* RTL-specific adjustments */
[dir="rtl"] .space-x-4 > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

[dir="rtl"] .space-x-reverse > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

/* Smooth transitions for all interactive elements */
button,
a,
input,
textarea {
  transition: all 0.2s ease;
}

/* Enhanced hover effects */
.group:hover {
  transform: translateY(-2px);
}

/* Loading states */
img {
  transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
  .fixed,
  .sticky,
  button,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.15) !important;
  }
  
  .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.3) !important;
  }
}

/* Reduced motion support - matching original */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  .parallax-layer {
    transition: none !important;
    transform: none !important;
  }
  
  * {
    scroll-behavior: auto !important;
  }
}
