/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 0;
}

#navbar.nav-scrolled {
  background: rgba(74, 25, 66, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4a04a;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  z-index: 50;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-family: 'Lora', Georgia, serif;
}

.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 1.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #2a0d28 0%, #4a1942 25%, #6b3470 50%, #804080 75%, #4a1942 100%);
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-orb {
  background: radial-gradient(circle, rgba(212, 160, 74, 0.6) 0%, transparent 70%);
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -5%;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  bottom: 5%;
  left: -3%;
  background: radial-gradient(circle, rgba(160, 100, 160, 0.5) 0%, transparent 70%);
}

.hero-orb--3 {
  width: 250px;
  height: 250px;
  top: 40%;
  left: 20%;
}

/* Hero content animations — progressive enhancement only */
.hero-content {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
  }

  .hero-headline {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
  }

  .hero-sub {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
  }

  .hero-cta {
    animation: fadeSlideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
  }

  .hero-scroll {
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: #d4a04a;
  color: #2a0d28;
  box-shadow: 0 8px 30px rgba(212, 160, 74, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #e5b05a;
  transform: translateY(-2px);
}

.btn-secondary {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

/* ===== SECTION UTILITIES ===== */
.section-eyebrow {
  letter-spacing: 0.2em;
}

.section-title {
  font-weight: 700;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  will-change: transform;
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  border: 1px solid rgba(74, 25, 66, 0.08);
}

/* ===== SCROLL REVEAL ===== */
/* Default state: visible (no JS required) */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When JS adds the class, elements animate in */
.scroll-reveal.revealed {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.reveal-active.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion: keep everything visible */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.revealed,
  .scroll-reveal.reveal-active.revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-cta,
  .hero-scroll {
    animation: none;
    opacity: 1;
  }
}

/* ===== IMAGE HOVER ===== */
.product-card-img {
  overflow: hidden;
}

.product-card-img-inner {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid #d4a04a;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(212, 160, 74, 0.3);
  color: #2a0d28;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-orb--1 {
    width: 300px;
    height: 300px;
  }

  .hero-orb--2 {
    width: 200px;
    height: 200px;
  }

  .hero-orb--3 {
    display: none;
  }

  #navbar {
    background: rgba(74, 25, 66, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  }
}
