/* Custom styles for Ministry of Oak and Hardwood */

/* Carousel styles */
.carousel-dot.active {
  background-color: rgba(255, 255, 255, 1) !important;
}

.slide {
  transition: opacity 0.5s ease-in-out;
}

/* Header styling */
#main-header {
  transition: all 0.3s ease-in-out;
}

#main-header.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: rgba(17, 24, 39, 0.95) !important; /* More opaque when scrolled - !important to override inline styles */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px); /* Add blur effect for better text readability */
}

/* Flash messages */
.flash-message {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Ensure proper background attachment for parallax effect */
@media (min-width: 768px) {
  .bg-fixed {
    background-attachment: fixed;
  }
}
 
/* Gallery specific styles */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.group:hover .gallery-overlay {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Custom focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(217, 119, 6, 0.5);
  outline-offset: 2px;
}

/* Disabled button styles */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Link focus */
a:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Gallery content transition */
.gallery-overlay .opacity-0 {
  opacity: 0;
  transition: opacity 0.3s;
}

.group:hover .gallery-overlay .opacity-0 {
  opacity: 1;
}
