/* Custom styles for Monty Compost website */

/* Base styles */
body {
  font-family: "Poppins", sans-serif;
}

/* Headings keep Montserrat */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

/* Navigation and menu items use Poppins */
nav a,
#mobile-menu a {
  font-family: "Poppins", sans-serif;
}

/* Enhanced navigation styling */
.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 700;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #41735f;
  transition: width 0.3s ease;
}

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

.nav-link.active {
  color: #41735f;
  font-weight: 700;
}

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

/* Mobile menu enhancements */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  border-left: 3px solid #41735f;
  padding-left: 0.5rem;
  background-color: rgba(65, 115, 95, 0.05);
}

.mobile-nav-link.active {
  border-left: 3px solid #41735f;
  padding-left: 0.5rem;
  color: #41735f;
  font-weight: 700;
  background-color: rgba(65, 115, 95, 0.05);
}

/* Buttons use Poppins */
button,
.inline-flex,
a.inline-flex,
a.bg-monty-orange,
a.bg-monty-green,
a.border-monty-green,
a.border-monty-light {
  font-family: "Poppins", sans-serif;
}

/* Custom utility classes that might be needed beyond Tailwind */
.bg-gradient-overlay {
  background: linear-gradient(to bottom, rgba(45, 49, 66, 0.1), rgba(45, 49, 66, 0.7));
}

/* FAQ accordion styles */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-content.active {
  max-height: 300px; /* Increased max-height to accommodate content */
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  overflow-y: auto;
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f0ea;
}

::-webkit-scrollbar-thumb {
  background: #41735f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #345e4c;
}
