/* ============================================
   Bond and Bloom Lactation — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #05020A;
  color: #f5f0ff;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(200, 150, 62, 0.3);
  color: #f5f0ff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0A0412;
}
::-webkit-scrollbar-thumb {
  background: #441d94;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5420c4;
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 32px; opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Hero fade-in */
.hero-fade-in {
  animation: fadeInUp 0.8s ease-out both;
}

/* Particles */
.hero-particle {
  animation: float 4s ease-in-out infinite;
}
.hero-particle:nth-child(2) { animation-delay: 1s; animation-duration: 5s; }
.hero-particle:nth-child(3) { animation-delay: 2s; animation-duration: 3.5s; }
.hero-particle:nth-child(4) { animation-delay: 0.5s; animation-duration: 4.5s; }
.hero-particle:nth-child(5) { animation-delay: 1.5s; animation-duration: 6s; }

/* Scroll dot */
.scroll-dot {
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ============================================
   Navigation
   ============================================ */

#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(5, 2, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 150, 62, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #E8C060, #C8963E);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #E8C060;
}

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

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* Hamburger */
.menu-line {
  transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
#menuBtn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* ============================================
   Buttons
   ============================================ */

.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #E8C060 0%, #C8963E 50%, #B8832E 100%);
  color: #0A0412;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(200, 150, 62, 0.25);
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F0D080 0%, #E8C060 50%, #D4A84B 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.btn-gold:hover::before {
  opacity: 1;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 150, 62, 0.4);
  color: #0A0412;
}

.btn-gold span,
.btn-gold svg {
  position: relative;
  z-index: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(200, 150, 62, 0.4);
  color: #E8C060;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline:hover {
  border-color: #E8C060;
  background: rgba(200, 150, 62, 0.08);
  transform: translateY(-2px);
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 150, 62, 0.06);
}

/* ============================================
   Form Elements
   ============================================ */

.form-input,
.form-select,
.form-textarea {
  background: rgba(26, 10, 46, 0.6);
  border: 1px solid rgba(68, 29, 148, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f5f0ff;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(180, 157, 255, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(200, 150, 62, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
  background: rgba(26, 10, 46, 0.8);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%23E8C060' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #1A0A2E;
  color: #f5f0ff;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(200, 150, 62, 0.2);
}

.faq-item.active {
  border-color: rgba(200, 150, 62, 0.3);
  background: rgba(26, 10, 46, 0.3);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .hero-fade-in {
    animation-duration: 0.6s;
  }
}

/* ============================================
   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;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}
