.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 5px var(--section-padding-x);
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar p.motto {
  text-align: left;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  margin: 0;
}

.container_logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.church_name {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  margin: auto;
  text-decoration: none;
  line-height: 0.6;
}
.church_name h1 {
  font-size: 12px;
}
.church_name p {
  font-size: 10px;
  font-weight: 100;
}

.logo {
  height: 62px;
  width: 62px;
  display: block;
  margin-top: 10px;
}
.logo:hover {
  transform: scale(1.05);
  transition: all 0.3 ease-in-out;
  cursor: pointer;
}

.nav_right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

.menu a {
  color: inherit;
  text-decoration: none;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s ease;
}

.menu a:hover {
  opacity: 0.7;
}

.menu a.is-active {
  color: var(--color-primary);
}

.nav_give {
  background-color: var(--color-accent);
  color: white;
  min-width: 135px;
  height: 50px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.navbar.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
  .navbar {
    position: sticky;
    top: 0;
    flex-wrap: nowrap;
    background-color: #fff;
  }

  .navbar .motto {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    position: relative;
    z-index: 1002;
  }

  .nav-brand {
    position: relative;
    z-index: 1002;
  }

  .navbar.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }

  .nav_right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin: 0;
    padding: 24px var(--section-padding-x) 20px;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }

  .navbar.is-open .nav_right {
    display: flex;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .menu a {
    font-size: 18px;
  }

  .nav_give {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 52px;
    width: 52px;
  }
}
