/* Responsive Navigation Styles */

/* Menu toggle for mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 2001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hide mobile nav by default on all devices */
.mobile-nav {
  display: none !important; /* Added !important to ensure it's hidden on desktop */
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .navbar {
    padding: 1.5rem 0;
    background-color: transparent;
  }
  
  .navbar.scrolled {
    padding: 0.8rem 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .navbar.scrolled .mobile-logo{
    color: var(--dark);
    font-size: 1.5rem;
  }
  
  /* Hide desktop elements on mobile */
  .nav-links {
    display: none; /* Hide the nav-links by default on mobile */
  }
  
  .nav-left, .nav-right {
    display: none;
  }
  
  /* Mobile navbar layout - vertical stacked and centered */
  .mobile-nav {
    display: flex !important; /* Added !important to override the default hiding */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .mobile-logo {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--light);
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  /* Show the mobile CTA button on mobile */
  .mobile-cta {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
    text-align: center;
  }
  
  .mobile-cta:hover {
    background-color: #e55a2a;
    transform: translateY(-2px);
  }
  
  /* Adjust hero padding for smaller navbar */
  .hero {
    padding: 200px 0 100px !important;
  }
  
  .hero-content {
    padding-top: 120px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  /* Adjust hero for church and finance pages */
  .church-hero, .finance-hero {
    padding: 200px 0 100px !important;
  }
  
  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Additional responsive adjustments for smaller screens */
@media (max-width: 480px) {
  .navbar {
    padding: 2rem 0;
  }
  
  .navbar .container {
    padding: 0 1.5rem;
  }
  
  .navbar .logo {
    font-size: 1.6rem;
  }
  
  .mobile-logo {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }
  
  .mobile-cta {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }
  
  .hero {
    padding: 520px 0 100px !important;
  }
  
  .hero-content {
    padding-top: 420px !important;
  }
}
