/* ============================================
   ROOTS, OILS N HERBS — CUSTOM STYLES
   ============================================ */

/* --- Base & Typography --- */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #D4A017;
  color: #1A0D20;
}

/* --- Navbar --- */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(26, 13, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(212, 160, 23, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  position: relative;
}

/* Hamburger animation */
#hamburger.active #bar1 {
  transform: translateY(4px) rotate(45deg);
}

#hamburger.active #bar2 {
  opacity: 0;
}

#hamburger.active #bar3 {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Section Components --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5B2C6F;
  background: linear-gradient(135deg, #E8DFED 0%, #D4C4DD 100%);
  padding: 0.4em 1em;
  border-radius: 100px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #1A0D20;
}

.section-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #5B2C6F;
}

/* --- Badges --- */
.badge-amber {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.8em;
  background: linear-gradient(135deg, #FFF0C2, #FFD54F);
  color: #2D2003;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}

.badge-plum {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.8em;
  background: linear-gradient(135deg, #D4C4DD, #B89DC5);
  color: #1A0D20;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* --- Product Cards --- */
.product-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.06);
  border: 1px solid rgba(91, 44, 111, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(91, 44, 111, 0.12);
}

/* --- Process Cards --- */
.process-card {
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: white;
  border: 1px solid rgba(91, 44, 111, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 44, 111, 0.1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 44, 111, 0.1);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #5B2C6F 0%, #7D4F8A 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4A2359 0%, #5B2C6F 100%);
  box-shadow: 0 8px 30px rgba(91, 44, 111, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* --- Form Inputs --- */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid #E8DFED;
  border-radius: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #1A0D20;
  background: #FAFAFA;
  transition: all 0.3s ease;
  outline: none;
}

.input-field::placeholder {
  color: #B89DC5;
}

.input-field:hover {
  border-color: #D4C4DD;
  background: white;
}

.input-field:focus {
  border-color: #5B2C6F;
  background: white;
  box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.08);
}

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

  .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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .product-card {
    padding: 1.25rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}
