/* =========================================================
   Vimla Jewellers — Custom Styles
   Complements Tailwind utility classes (loaded via CDN)
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #B68D40;
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FAF7F2; }
::-webkit-scrollbar-thumb { background: #E8DCC8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #B68D40; }

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

:focus-visible {
  outline: 2px solid #B68D40;
  outline-offset: 3px;
}

/* =========================================================
   Header shrink-on-scroll
   ========================================================= */
#site-header.scrolled {
  box-shadow: 0 8px 25px -10px rgba(45,42,38,0.12);
}

/* =========================================================
   Glassmorphism
   ========================================================= */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(45, 42, 38, 0.45);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(232, 220, 200, 0.18);
}

/* =========================================================
   Hero Slider
   ========================================================= */
.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,42,38,0.55) 0%, rgba(45,42,38,0.35) 45%, rgba(45,42,38,0.75) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.18em;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #B68D40;
  display: inline-block;
}

/* Floating gold flecks */
.gold-flecks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.fleck {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #F3D98A 0%, #B68D40 70%, transparent 100%);
  opacity: 0.55;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.6; }
  50%  { transform: translateY(-45vh) translateX(15px) scale(1.1); }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-90vh) translateX(-10px) scale(0.7); opacity: 0; }
}

.hero-swiper .swiper-pagination-bullet {
  width: 9px; height: 9px;
  background: #FAF7F2;
  opacity: 0.55;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: #B68D40;
  opacity: 1;
  width: 28px;
  border-radius: 5px;
  transition: width .3s ease;
}

.hero-nav-btn {
  width: 48px; height: 48px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(250,247,242,0.15);
  border: 1px solid rgba(250,247,242,0.4);
  color: #FAF7F2;
  transition: all .3s ease;
}
.hero-nav-btn:hover { background: #B68D40; border-color: #B68D40; }

/* =========================================================
   Stat / counter bar
   ========================================================= */
.stat-number { font-family: 'Cinzel', serif; }

/* =========================================================
   Cards & hover effects
   ========================================================= */
.service-card, .category-card, .why-card, .testimonial-card {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover, .why-card:hover {
  transform: translateY(-6px);
}

.icon-badge {
  background: linear-gradient(135deg, #F3E9D4 0%, #E8DCC8 100%);
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.service-card:hover .icon-badge, .why-card:hover .icon-badge {
  background: linear-gradient(135deg, #B68D40 0%, #9C7730 100%);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.category-card { overflow: hidden; }
.category-card img { transition: transform .6s ease; }
.category-card:hover img { transform: scale(1.12); }
.category-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(45,42,38,0.85) 100%);
}

/* Shimmer accent line under headings */
.heading-divider {
  width: 70px; height: 2px;
  background: linear-gradient(90deg, transparent, #B68D40, transparent);
  position: relative;
}
.heading-divider::before {
  content: "";
  position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px;
  background: #B68D40;
  border-radius: 50%;
}

/* =========================================================
   Before / After comparison slider (Gallery)
   ========================================================= */
.compare-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 1rem;
  cursor: ew-resize;
  user-select: none;
}
.compare-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-after { clip-path: inset(0 0 0 50%); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #FAF7F2;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.compare-handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px;
  background: #FAF7F2 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B68D40' stroke-width='2'><path d='M8 7l-5 5 5 5M16 7l5 5-5 5'/></svg>") center/22px no-repeat;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(45,42,38,0.25);
}
.compare-label {
  position: absolute; top: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 9999px;
  color: #fff; text-transform: uppercase;
  background: rgba(45,42,38,0.65);
  backdrop-filter: blur(6px);
}
.compare-label.before { left: 14px; }
.compare-label.after { right: 14px; }

/* Gallery lightbox */
#lightbox-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,18,15,0.92);
  display: none;
  align-items: center; justify-content: center;
}
#lightbox-overlay.active { display: flex; }
#lightbox-overlay img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 0.5rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Gallery filter buttons */
.filter-btn.active {
  background: #B68D40 !important;
  color: #fff !important;
  border-color: #B68D40 !important;
}

/* =========================================================
   FAQ Accordion
   ========================================================= */
.faq-item .faq-icon { transition: transform .3s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-answer {
  max-height: 320px;
}

/* =========================================================
   Testimonial stars
   ========================================================= */
.star-rating i { color: #B68D40; }

/* =========================================================
   Section reveal helpers (used alongside AOS) -- fallback if AOS not yet active
   ========================================================= */
[data-aos] { will-change: transform, opacity; }

/* =========================================================
   Misc
   ========================================================= */
.pattern-dots {
  background-image: radial-gradient(circle, #E4D8C5 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

@keyframes pulseSlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
}
.animate-pulse-slow { animation: pulseSlow 2.4s ease-in-out infinite; }

/* Back to top visible state */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
