/* ─── Custom Properties ─── */
:root {
  --plum-600: #6B2150;
  --plum-700: #561A41;
  --plum-800: #411331;
  --plum-900: #2D0D22;
  --plum-950: #1a0814;
  --amber-400: #F59E0B;
  --amber-300: #FCD34D;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }

/* ─── Navbar ─── */
#navbar { height: 72px; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--amber-400);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav-link:hover::after { width: 60%; }

/* ─── Mobile Menu ─── */
#mobile-menu { pointer-events: none; }
#mobile-menu.open { pointer-events: auto; transform: translateX(0); }
.mobile-link { transition: color var(--transition-fast); }

/* ─── Geometric Shapes ─── */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}

.geo-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--amber-400);
  top: -200px;
  right: -150px;
}

.geo-circle-2 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--plum-400);
  bottom: -100px;
  left: -100px;
}

.geo-rect-1 {
  width: 200px;
  height: 200px;
  background: var(--amber-400);
  top: 40%;
  right: 5%;
  border-radius: 32px;
  transform: rotate(25deg);
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 200px solid var(--amber-400);
  bottom: 10%;
  left: 8%;
  transform: rotate(-15deg);
}

.geo-dots {
  background-image: radial-gradient(circle, var(--amber-400) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  width: 200px;
  height: 200px;
  top: 20%;
  right: 10%;
  opacity: 0.2;
}

/* ─── Floating Stat Cards ─── */
.float-card {
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1s; }
.card-3 { animation-delay: -2s; }
.card-4 { animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

/* ─── Product Cards ─── */
.product-card {
  will-change: transform;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}

/* ─── Gallery ─── */
.gallery-item {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107,33,80,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  pointer-events: none;
  border-radius: inherit;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
  transition: transform 0.5s ease;
}

/* ─── Testimonial Cards ─── */
.testimonial-card {
  position: relative;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(107,33,80,0.12);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Focus Styles ─── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--plum-900); }
::-webkit-scrollbar-thumb { background: var(--plum-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--plum-500); }

/* ─── Mobile Menu Overlay ─── */
@media (max-width: 767px) {
  #mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(45, 13, 34, 0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-link {
    font-size: 1.75rem;
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
  }
}

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