
/*
 Theme Name:   BRAVE Child
 Theme URI:    https://example.org/brave-child
 Description:  Child theme for BRAVE. Use this to safely add custom CSS and PHP overrides without editing the parent theme.
 Author:       BRAVE Project
 Author URI:   https://example.org
 Template:     brave
 Version:      1.0.0
 Text Domain:  brave-child
*/

/* Example override: change body text color */
/* body { color: #444; } */


/* Navigation styling */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.nav-menu li {
  list-style: none;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-menu a:hover {
  text-decoration: underline;
}

/* Hamburger button hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #002855; /* navy */
    width: 100%;
    padding: 1rem;
  }
  .nav-menu.toggled {
    display: flex;
  }
  .nav-menu a {
    padding: 10px 0;
    color: #fff;
  }
}


/* Smooth slide-down animation for mobile nav */
@media (max-width: 768px) {
  .nav-menu {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #002855;
    width: 100%;
    padding: 0 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-menu.toggled {
    max-height: 500px; /* enough space for all links */
    padding: 1rem;
  }
}
