/* Custom styles for Sisters Moto */

/* Hero Banner Background Images */
.hero-background {
  background-image: url('https://images.pexels.com/photos/19762820/pexels-photo-19762820.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  width: 100%;
}

/* Debug: Make sure hero section is visible */
section[class*="h-[80vh]"] {
  background-color: #000000 !important;
  min-height: 80vh !important;
  display: block !important;
  visibility: visible !important;
}

/* Ensure hero slides are visible by default */
.hero-slide {
  opacity: 1 !important;
  z-index: 20 !important;
}

.hero-slide[style*="opacity: 0"] {
  opacity: 0 !important;
  z-index: 10 !important;
}

/* Force first slide to be visible */
#slide-1 {
  opacity: 1 !important;
  z-index: 20 !important;
  visibility: visible !important;
  display: block !important;
}

/* Force second slide to be hidden */
#slide-2 {
  opacity: 0 !important;
  z-index: 10 !important;
  visibility: hidden !important;
}

/* Story Section Image */
.story-image {
  background-image: url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
  height: 500px;
}

/* Community Section Images */
.community-image {
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.community-image-2 {
  background-image: url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.community-image-3 {
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.community-image-4 {
  background-image: url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

/* Merch Product Images */
.merch-product-1 {
  background-image: url('https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.merch-product-2 {
  background-image: url('https://images.unsplash.com/photo-1556821840-3a63f95609a7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.merch-product-3 {
  background-image: url('https://images.unsplash.com/photo-1521369909029-2afc88201f35?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.merch-product-4 {
  background-image: url('https://images.unsplash.com/photo-1606107557195-0e29a4b5b4aa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

/* Additional Section Images */
.hero-background-2 {
  background-image: url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

/* Category Card Backgrounds */
.category-bikes {
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.category-parts {
  background-image: url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.category-tools {
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

.category-gear {
  background-image: url('https://images.unsplash.com/photo-1568772585407-9361f9bf3a87?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
}

/* Brand Story Store Front Background */
.brand-store-front {
  background-image: url('https://d3uw6f38ocgirn.cloudfront.net/media/up/678/98412e4465141972fce04c7b59b93a48_sistersmoto.jpg');
}

/* Parallax Background Effect */
.parallax-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translateZ(0);
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Reset dropdown styles */
.dropdown-menu {
  position: relative;
}

/* First level dropdown - Mega Menu */
/* We'll control this with JavaScript instead */

/* Mega menu styles */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  width: 100%;
  background-color: #ffffff;
  border-top: 2px solid #eab308; /* yellow-500 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 30px;
  left: 0;
}

.mega-menu-title {
  color: #000000;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
}

.mega-menu-column {
  padding: 0 15px;
}

.mega-menu-link {
  display: block;
  padding: 12px 0;
  color: #333333;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.mega-menu-link:hover {
  color: #eab308;
}

.mega-menu-featured {
  background-color: #f8f8f8;
  padding: 20px;
  margin-top: 20px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.mega-menu-featured-title {
  color: #000000;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
}

.mega-menu-featured-text {
  color: #333333;
  font-size: 16px;
  line-height: 1.5;
}

/* Fix for menu positioning */
.group {
  position: static;
}

.group > a {
  position: relative;
  z-index: 10000;
}

.group > a .fa-chevron-down {
  transition: transform 0.3s ease;
}

.group:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

/* Navbar positioning styles */
nav {
  position: relative;
}

#primary-navbar {
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
  position: relative;
  z-index: 60;
}

#primary-navbar.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#secondary-navbar {
  position: relative;
  z-index: 50;
  transition: all 0.3s ease;
}

/* Fixed positions for secondary navbar */
.fixed-top {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  z-index: 55 !important;
}

.fixed-below-primary {
  position: fixed !important;
  top: 96px !important; /* Adjust this value to match your primary navbar height */
  left: 0 !important;
  right: 0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  z-index: 45 !important;
}

/* Improve spacing in mega menu */
.grid {
  width: 100%;
}

@media (max-width: 768px) {
  .mega-menu {
    padding: 15px;
  }
  
  .mega-menu-link {
    padding: 8px 0;
  }
  
  .fixed-below-primary {
    top: 70px !important; /* Adjust for mobile primary navbar height */
  }
}